diff --git a/PlayFabSdk/package.json b/PlayFabSdk/package.json index 4a0ea44d..297b5fd3 100644 --- a/PlayFabSdk/package.json +++ b/PlayFabSdk/package.json @@ -1,6 +1,6 @@ { "name": "playfab-web-sdk", - "version": "1.124.220816", + "version": "1.126.220907", "description": "Playfab SDK for JS client applications", "license": "Apache-2.0", "repository": { diff --git a/PlayFabSdk/src/PlayFab/PlayFabAdminApi.js b/PlayFabSdk/src/PlayFab/PlayFabAdminApi.js index 46a3e979..4ee2e9fb 100644 --- a/PlayFabSdk/src/PlayFab/PlayFabAdminApi.js +++ b/PlayFabSdk/src/PlayFab/PlayFabAdminApi.js @@ -14,9 +14,9 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { entityToken: null, - sdkVersion: "1.124.220816", + sdkVersion: "1.126.220907", requestGetParams: { - sdk: "JavaScriptSDK-1.124.220816" + sdk: "JavaScriptSDK-1.126.220907" }, sessionTicket: null, verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this @@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) { } } -PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; -PlayFab.sdkVersion = "1.124.220816"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_115"; +PlayFab.sdkVersion = "1.126.220907"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabSdk/src/PlayFab/PlayFabAuthenticationApi.js b/PlayFabSdk/src/PlayFab/PlayFabAuthenticationApi.js index 69f3b621..f54c8708 100644 --- a/PlayFabSdk/src/PlayFab/PlayFabAuthenticationApi.js +++ b/PlayFabSdk/src/PlayFab/PlayFabAuthenticationApi.js @@ -14,9 +14,9 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { entityToken: null, - sdkVersion: "1.124.220816", + sdkVersion: "1.126.220907", requestGetParams: { - sdk: "JavaScriptSDK-1.124.220816" + sdk: "JavaScriptSDK-1.126.220907" }, sessionTicket: null, verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this @@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) { } } -PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; -PlayFab.sdkVersion = "1.124.220816"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_115"; +PlayFab.sdkVersion = "1.126.220907"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabSdk/src/PlayFab/PlayFabClientApi.js b/PlayFabSdk/src/PlayFab/PlayFabClientApi.js index b5987795..1f1e3255 100644 --- a/PlayFabSdk/src/PlayFab/PlayFabClientApi.js +++ b/PlayFabSdk/src/PlayFab/PlayFabClientApi.js @@ -14,9 +14,9 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { entityToken: null, - sdkVersion: "1.124.220816", + sdkVersion: "1.126.220907", requestGetParams: { - sdk: "JavaScriptSDK-1.124.220816" + sdk: "JavaScriptSDK-1.126.220907" }, sessionTicket: null, verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this @@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) { } } -PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; -PlayFab.sdkVersion = "1.124.220816"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_115"; +PlayFab.sdkVersion = "1.126.220907"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabSdk/src/PlayFab/PlayFabCloudScriptApi.js b/PlayFabSdk/src/PlayFab/PlayFabCloudScriptApi.js index e895287c..fc8363ef 100644 --- a/PlayFabSdk/src/PlayFab/PlayFabCloudScriptApi.js +++ b/PlayFabSdk/src/PlayFab/PlayFabCloudScriptApi.js @@ -14,9 +14,9 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { entityToken: null, - sdkVersion: "1.124.220816", + sdkVersion: "1.126.220907", requestGetParams: { - sdk: "JavaScriptSDK-1.124.220816" + sdk: "JavaScriptSDK-1.126.220907" }, sessionTicket: null, verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this @@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) { } } -PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; -PlayFab.sdkVersion = "1.124.220816"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_115"; +PlayFab.sdkVersion = "1.126.220907"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabSdk/src/PlayFab/PlayFabDataApi.js b/PlayFabSdk/src/PlayFab/PlayFabDataApi.js index cf0bc3f2..e924f8be 100644 --- a/PlayFabSdk/src/PlayFab/PlayFabDataApi.js +++ b/PlayFabSdk/src/PlayFab/PlayFabDataApi.js @@ -14,9 +14,9 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { entityToken: null, - sdkVersion: "1.124.220816", + sdkVersion: "1.126.220907", requestGetParams: { - sdk: "JavaScriptSDK-1.124.220816" + sdk: "JavaScriptSDK-1.126.220907" }, sessionTicket: null, verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this @@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) { } } -PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; -PlayFab.sdkVersion = "1.124.220816"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_115"; +PlayFab.sdkVersion = "1.126.220907"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabSdk/src/PlayFab/PlayFabEconomyApi.js b/PlayFabSdk/src/PlayFab/PlayFabEconomyApi.js index 4be14cc6..6263ca8b 100644 --- a/PlayFabSdk/src/PlayFab/PlayFabEconomyApi.js +++ b/PlayFabSdk/src/PlayFab/PlayFabEconomyApi.js @@ -14,9 +14,9 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { entityToken: null, - sdkVersion: "1.124.220816", + sdkVersion: "1.126.220907", requestGetParams: { - sdk: "JavaScriptSDK-1.124.220816" + sdk: "JavaScriptSDK-1.126.220907" }, sessionTicket: null, verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this @@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) { } } -PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; -PlayFab.sdkVersion = "1.124.220816"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_115"; +PlayFab.sdkVersion = "1.126.220907"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; @@ -241,6 +241,10 @@ PlayFab.EconomyApi = { PlayFab._internalSettings.entityToken = null; }, + AddInventoryItems: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Inventory/AddInventoryItems", request, "X-EntityToken", callback, customData, extraHeaders); + }, + CreateDraftItem: function (request, callback, customData, extraHeaders) { return PlayFab._internalSettings.ExecuteRequestWrapper("/Catalog/CreateDraftItem", request, "X-EntityToken", callback, customData, extraHeaders); }, @@ -253,10 +257,22 @@ PlayFab.EconomyApi = { return PlayFab._internalSettings.ExecuteRequestWrapper("/Catalog/DeleteEntityItemReviews", request, "X-EntityToken", callback, customData, extraHeaders); }, + DeleteInventoryCollection: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Inventory/DeleteInventoryCollection", request, "X-EntityToken", callback, customData, extraHeaders); + }, + + DeleteInventoryItems: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Inventory/DeleteInventoryItems", request, "X-EntityToken", callback, customData, extraHeaders); + }, + DeleteItem: function (request, callback, customData, extraHeaders) { return PlayFab._internalSettings.ExecuteRequestWrapper("/Catalog/DeleteItem", request, "X-EntityToken", callback, customData, extraHeaders); }, + ExecuteInventoryOperations: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Inventory/ExecuteInventoryOperations", request, "X-EntityToken", callback, customData, extraHeaders); + }, + GetCatalogConfig: function (request, callback, customData, extraHeaders) { return PlayFab._internalSettings.ExecuteRequestWrapper("/Catalog/GetCatalogConfig", request, "X-EntityToken", callback, customData, extraHeaders); }, @@ -277,10 +293,22 @@ PlayFab.EconomyApi = { return PlayFab._internalSettings.ExecuteRequestWrapper("/Catalog/GetEntityItemReview", request, "X-EntityToken", callback, customData, extraHeaders); }, + GetInventoryCollectionIds: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Inventory/GetInventoryCollectionIds", request, "X-EntityToken", callback, customData, extraHeaders); + }, + + GetInventoryItems: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Inventory/GetInventoryItems", request, "X-EntityToken", callback, customData, extraHeaders); + }, + GetItem: function (request, callback, customData, extraHeaders) { return PlayFab._internalSettings.ExecuteRequestWrapper("/Catalog/GetItem", request, "X-EntityToken", callback, customData, extraHeaders); }, + GetItemContainers: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Catalog/GetItemContainers", request, "X-EntityToken", callback, customData, extraHeaders); + }, + GetItemModerationState: function (request, callback, customData, extraHeaders) { return PlayFab._internalSettings.ExecuteRequestWrapper("/Catalog/GetItemModerationState", request, "X-EntityToken", callback, customData, extraHeaders); }, @@ -301,10 +329,42 @@ PlayFab.EconomyApi = { return PlayFab._internalSettings.ExecuteRequestWrapper("/Catalog/GetItems", request, "X-EntityToken", callback, customData, extraHeaders); }, + GetMicrosoftStoreAccessTokens: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Inventory/GetMicrosoftStoreAccessTokens", request, "X-EntityToken", callback, customData, extraHeaders); + }, + PublishDraftItem: function (request, callback, customData, extraHeaders) { return PlayFab._internalSettings.ExecuteRequestWrapper("/Catalog/PublishDraftItem", request, "X-EntityToken", callback, customData, extraHeaders); }, + PurchaseInventoryItems: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Inventory/PurchaseInventoryItems", request, "X-EntityToken", callback, customData, extraHeaders); + }, + + RedeemAppleAppStoreInventoryItems: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Inventory/RedeemAppleAppStoreInventoryItems", request, "X-EntityToken", callback, customData, extraHeaders); + }, + + RedeemGooglePlayInventoryItems: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Inventory/RedeemGooglePlayInventoryItems", request, "X-EntityToken", callback, customData, extraHeaders); + }, + + RedeemMicrosoftStoreInventoryItems: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Inventory/RedeemMicrosoftStoreInventoryItems", request, "X-EntityToken", callback, customData, extraHeaders); + }, + + RedeemNintendoEShopInventoryItems: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Inventory/RedeemNintendoEShopInventoryItems", request, "X-EntityToken", callback, customData, extraHeaders); + }, + + RedeemPlayStationStoreInventoryItems: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Inventory/RedeemPlayStationStoreInventoryItems", request, "X-EntityToken", callback, customData, extraHeaders); + }, + + RedeemSteamInventoryItems: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Inventory/RedeemSteamInventoryItems", request, "X-EntityToken", callback, customData, extraHeaders); + }, + ReportItem: function (request, callback, customData, extraHeaders) { return PlayFab._internalSettings.ExecuteRequestWrapper("/Catalog/ReportItem", request, "X-EntityToken", callback, customData, extraHeaders); }, @@ -329,10 +389,18 @@ PlayFab.EconomyApi = { return PlayFab._internalSettings.ExecuteRequestWrapper("/Catalog/SubmitItemReviewVote", request, "X-EntityToken", callback, customData, extraHeaders); }, + SubtractInventoryItems: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Inventory/SubtractInventoryItems", request, "X-EntityToken", callback, customData, extraHeaders); + }, + TakedownItemReviews: function (request, callback, customData, extraHeaders) { return PlayFab._internalSettings.ExecuteRequestWrapper("/Catalog/TakedownItemReviews", request, "X-EntityToken", callback, customData, extraHeaders); }, + TransferInventoryItems: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Inventory/TransferInventoryItems", request, "X-EntityToken", callback, customData, extraHeaders); + }, + UpdateCatalogConfig: function (request, callback, customData, extraHeaders) { return PlayFab._internalSettings.ExecuteRequestWrapper("/Catalog/UpdateCatalogConfig", request, "X-EntityToken", callback, customData, extraHeaders); }, @@ -341,6 +409,10 @@ PlayFab.EconomyApi = { return PlayFab._internalSettings.ExecuteRequestWrapper("/Catalog/UpdateDraftItem", request, "X-EntityToken", callback, customData, extraHeaders); }, + UpdateInventoryItems: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Inventory/UpdateInventoryItems", request, "X-EntityToken", callback, customData, extraHeaders); + }, + }; var PlayFabEconomySDK = PlayFab.EconomyApi; diff --git a/PlayFabSdk/src/PlayFab/PlayFabEventsApi.js b/PlayFabSdk/src/PlayFab/PlayFabEventsApi.js index 8d981719..c443908b 100644 --- a/PlayFabSdk/src/PlayFab/PlayFabEventsApi.js +++ b/PlayFabSdk/src/PlayFab/PlayFabEventsApi.js @@ -14,9 +14,9 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { entityToken: null, - sdkVersion: "1.124.220816", + sdkVersion: "1.126.220907", requestGetParams: { - sdk: "JavaScriptSDK-1.124.220816" + sdk: "JavaScriptSDK-1.126.220907" }, sessionTicket: null, verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this @@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) { } } -PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; -PlayFab.sdkVersion = "1.124.220816"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_115"; +PlayFab.sdkVersion = "1.126.220907"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabSdk/src/PlayFab/PlayFabExperimentationApi.js b/PlayFabSdk/src/PlayFab/PlayFabExperimentationApi.js index ec1477ad..fc0f9900 100644 --- a/PlayFabSdk/src/PlayFab/PlayFabExperimentationApi.js +++ b/PlayFabSdk/src/PlayFab/PlayFabExperimentationApi.js @@ -14,9 +14,9 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { entityToken: null, - sdkVersion: "1.124.220816", + sdkVersion: "1.126.220907", requestGetParams: { - sdk: "JavaScriptSDK-1.124.220816" + sdk: "JavaScriptSDK-1.126.220907" }, sessionTicket: null, verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this @@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) { } } -PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; -PlayFab.sdkVersion = "1.124.220816"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_115"; +PlayFab.sdkVersion = "1.126.220907"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabSdk/src/PlayFab/PlayFabGroupsApi.js b/PlayFabSdk/src/PlayFab/PlayFabGroupsApi.js index 3e67d57f..7afba520 100644 --- a/PlayFabSdk/src/PlayFab/PlayFabGroupsApi.js +++ b/PlayFabSdk/src/PlayFab/PlayFabGroupsApi.js @@ -14,9 +14,9 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { entityToken: null, - sdkVersion: "1.124.220816", + sdkVersion: "1.126.220907", requestGetParams: { - sdk: "JavaScriptSDK-1.124.220816" + sdk: "JavaScriptSDK-1.126.220907" }, sessionTicket: null, verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this @@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) { } } -PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; -PlayFab.sdkVersion = "1.124.220816"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_115"; +PlayFab.sdkVersion = "1.126.220907"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabSdk/src/PlayFab/PlayFabInsightsApi.js b/PlayFabSdk/src/PlayFab/PlayFabInsightsApi.js index 2626480b..37b0e04d 100644 --- a/PlayFabSdk/src/PlayFab/PlayFabInsightsApi.js +++ b/PlayFabSdk/src/PlayFab/PlayFabInsightsApi.js @@ -14,9 +14,9 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { entityToken: null, - sdkVersion: "1.124.220816", + sdkVersion: "1.126.220907", requestGetParams: { - sdk: "JavaScriptSDK-1.124.220816" + sdk: "JavaScriptSDK-1.126.220907" }, sessionTicket: null, verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this @@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) { } } -PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; -PlayFab.sdkVersion = "1.124.220816"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_115"; +PlayFab.sdkVersion = "1.126.220907"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabSdk/src/PlayFab/PlayFabLocalizationApi.js b/PlayFabSdk/src/PlayFab/PlayFabLocalizationApi.js index 4785bf61..6c0fb346 100644 --- a/PlayFabSdk/src/PlayFab/PlayFabLocalizationApi.js +++ b/PlayFabSdk/src/PlayFab/PlayFabLocalizationApi.js @@ -14,9 +14,9 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { entityToken: null, - sdkVersion: "1.124.220816", + sdkVersion: "1.126.220907", requestGetParams: { - sdk: "JavaScriptSDK-1.124.220816" + sdk: "JavaScriptSDK-1.126.220907" }, sessionTicket: null, verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this @@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) { } } -PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; -PlayFab.sdkVersion = "1.124.220816"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_115"; +PlayFab.sdkVersion = "1.126.220907"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabSdk/src/PlayFab/PlayFabMatchmakerApi.js b/PlayFabSdk/src/PlayFab/PlayFabMatchmakerApi.js index c39bf38f..ff1dc12d 100644 --- a/PlayFabSdk/src/PlayFab/PlayFabMatchmakerApi.js +++ b/PlayFabSdk/src/PlayFab/PlayFabMatchmakerApi.js @@ -14,9 +14,9 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { entityToken: null, - sdkVersion: "1.124.220816", + sdkVersion: "1.126.220907", requestGetParams: { - sdk: "JavaScriptSDK-1.124.220816" + sdk: "JavaScriptSDK-1.126.220907" }, sessionTicket: null, verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this @@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) { } } -PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; -PlayFab.sdkVersion = "1.124.220816"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_115"; +PlayFab.sdkVersion = "1.126.220907"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabSdk/src/PlayFab/PlayFabMultiplayerApi.js b/PlayFabSdk/src/PlayFab/PlayFabMultiplayerApi.js index 3599adb2..966d15b0 100644 --- a/PlayFabSdk/src/PlayFab/PlayFabMultiplayerApi.js +++ b/PlayFabSdk/src/PlayFab/PlayFabMultiplayerApi.js @@ -14,9 +14,9 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { entityToken: null, - sdkVersion: "1.124.220816", + sdkVersion: "1.126.220907", requestGetParams: { - sdk: "JavaScriptSDK-1.124.220816" + sdk: "JavaScriptSDK-1.126.220907" }, sessionTicket: null, verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this @@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) { } } -PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; -PlayFab.sdkVersion = "1.124.220816"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_115"; +PlayFab.sdkVersion = "1.126.220907"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabSdk/src/PlayFab/PlayFabProfilesApi.js b/PlayFabSdk/src/PlayFab/PlayFabProfilesApi.js index 364e91f7..08a497a2 100644 --- a/PlayFabSdk/src/PlayFab/PlayFabProfilesApi.js +++ b/PlayFabSdk/src/PlayFab/PlayFabProfilesApi.js @@ -14,9 +14,9 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { entityToken: null, - sdkVersion: "1.124.220816", + sdkVersion: "1.126.220907", requestGetParams: { - sdk: "JavaScriptSDK-1.124.220816" + sdk: "JavaScriptSDK-1.126.220907" }, sessionTicket: null, verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this @@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) { } } -PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; -PlayFab.sdkVersion = "1.124.220816"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_115"; +PlayFab.sdkVersion = "1.126.220907"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabSdk/src/PlayFab/PlayFabServerApi.js b/PlayFabSdk/src/PlayFab/PlayFabServerApi.js index eecbb78a..7af34e4f 100644 --- a/PlayFabSdk/src/PlayFab/PlayFabServerApi.js +++ b/PlayFabSdk/src/PlayFab/PlayFabServerApi.js @@ -14,9 +14,9 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { entityToken: null, - sdkVersion: "1.124.220816", + sdkVersion: "1.126.220907", requestGetParams: { - sdk: "JavaScriptSDK-1.124.220816" + sdk: "JavaScriptSDK-1.126.220907" }, sessionTicket: null, verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this @@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) { } } -PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; -PlayFab.sdkVersion = "1.124.220816"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_115"; +PlayFab.sdkVersion = "1.126.220907"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; @@ -529,6 +529,14 @@ PlayFab.ServerApi = { return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GrantItemsToUsers", request, "X-SecretKey", callback, customData, extraHeaders); }, + LinkNintendoServiceAccount: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/LinkNintendoServiceAccount", request, "X-SecretKey", callback, customData, extraHeaders); + }, + + LinkNintendoSwitchDeviceId: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/LinkNintendoSwitchDeviceId", request, "X-SecretKey", callback, customData, extraHeaders); + }, + LinkPSNAccount: function (request, callback, customData, extraHeaders) { return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/LinkPSNAccount", request, "X-SecretKey", callback, customData, extraHeaders); }, @@ -689,6 +697,14 @@ PlayFab.ServerApi = { return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/SubtractUserVirtualCurrency", request, "X-SecretKey", callback, customData, extraHeaders); }, + UnlinkNintendoServiceAccount: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/UnlinkNintendoServiceAccount", request, "X-SecretKey", callback, customData, extraHeaders); + }, + + UnlinkNintendoSwitchDeviceId: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/UnlinkNintendoSwitchDeviceId", request, "X-SecretKey", callback, customData, extraHeaders); + }, + UnlinkPSNAccount: function (request, callback, customData, extraHeaders) { return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/UnlinkPSNAccount", request, "X-SecretKey", callback, customData, extraHeaders); }, diff --git a/PlayFabSdk/src/Typings/PlayFab/PlayFabAdminApi.d.ts b/PlayFabSdk/src/Typings/PlayFab/PlayFabAdminApi.d.ts index 7c958d3d..1b46d0e4 100644 --- a/PlayFabSdk/src/Typings/PlayFab/PlayFabAdminApi.d.ts +++ b/PlayFabSdk/src/Typings/PlayFab/PlayFabAdminApi.d.ts @@ -769,6 +769,7 @@ declare module PlayFabAdminModels { type AuthTokenType = "Email" + export interface BanInfo { /** The active state of this ban. Expired bans may still have this value set to true but they will have no effect. */ Active: boolean; @@ -800,8 +801,6 @@ declare module PlayFabAdminModels { DurationInHours?: number; /** IP address to be banned. May affect multiple players. */ IPAddress?: string; - /** MAC address to be banned. May affect multiple players. */ - MACAddress?: string; /** Unique PlayFab assigned ID of the user on whom the operation will be performed. */ PlayFabId: string; /** The reason for this ban. Maximum 140 characters. */ @@ -948,6 +947,7 @@ declare module PlayFabAdminModels { } type ChurnRiskLevel = "NoData" + | "LowRisk" | "MediumRisk" | "HighRisk"; @@ -1004,6 +1004,7 @@ declare module PlayFabAdminModels { } type Conditionals = "Any" + | "True" | "False"; @@ -1038,6 +1039,7 @@ declare module PlayFabAdminModels { } type ContinentCode = "AF" + | "AN" | "AS" | "EU" @@ -1046,6 +1048,7 @@ declare module PlayFabAdminModels { | "SA"; type CountryCode = "AF" + | "AX" | "AL" | "DZ" @@ -1415,6 +1418,7 @@ declare module PlayFabAdminModels { } type Currency = "AED" + | "AFN" | "ALL" | "AMD" @@ -1705,6 +1709,7 @@ declare module PlayFabAdminModels { } type EffectType = "Allow" + | "Deny"; export interface EmailNotificationSegmentAction { @@ -1716,6 +1721,7 @@ declare module PlayFabAdminModels { } type EmailVerificationStatus = "Unverified" + | "Pending" | "Confirmed"; @@ -1837,6 +1843,7 @@ declare module PlayFabAdminModels { } type GameBuildStatus = "Available" + | "Validating" | "InvalidBuildPackage" | "Processing" @@ -1855,6 +1862,7 @@ declare module PlayFabAdminModels { } type GenericErrorCodes = "Success" + | "UnkownError" | "InvalidParams" | "AccountNotFound" @@ -2477,6 +2485,7 @@ declare module PlayFabAdminModels { | "PartyVersionNotFound" | "MultiplayerServerBuildReferencedByMatchmakingQueue" | "MultiplayerServerBuildReferencedByBuildAlias" + | "MultiplayerServerBuildAliasReferencedByMatchmakingQueue" | "ExperimentationExperimentStopped" | "ExperimentationExperimentRunning" | "ExperimentationExperimentNotFound" @@ -3355,6 +3364,7 @@ declare module PlayFabAdminModels { } type LoginIdentityProvider = "Unknown" + | "PlayFab" | "Custom" | "GameCenter" @@ -3774,6 +3784,7 @@ declare module PlayFabAdminModels { } type PushNotificationPlatform = "ApplePushNotificationService" + | "GoogleCloudMessaging"; export interface PushNotificationRegistration { @@ -3805,6 +3816,7 @@ declare module PlayFabAdminModels { } type PushSetupPlatform = "GCM" + | "APNS" | "APNS_SANDBOX"; @@ -3847,6 +3859,7 @@ declare module PlayFabAdminModels { } type Region = "USCentral" + | "USEast" | "EUWest" | "Singapore" @@ -3915,6 +3928,7 @@ declare module PlayFabAdminModels { } type ResolutionOutcome = "Revoke" + | "Reinstate" | "Manual"; @@ -3954,6 +3968,7 @@ declare module PlayFabAdminModels { } type ResultTableNodeType = "ItemId" + | "TableId"; export interface RevokeAllBansForUserRequest extends PlayFabModule.IPlayFabRequestCommon { @@ -4067,6 +4082,7 @@ declare module PlayFabAdminModels { } type ScheduledTaskType = "CloudScript" + | "ActionsOnPlayerSegment" | "CloudScriptAzureFunctions" | "InsightsScheduledScaling"; @@ -4127,6 +4143,7 @@ declare module PlayFabAdminModels { } type SegmentCountryCode = "AF" + | "AX" | "AL" | "DZ" @@ -4377,6 +4394,7 @@ declare module PlayFabAdminModels { | "ZW"; type SegmentCurrency = "AED" + | "AFN" | "ALL" | "AMD" @@ -4540,6 +4558,7 @@ declare module PlayFabAdminModels { | "ZWD"; type SegmentFilterComparison = "GreaterThan" + | "LessThan" | "EqualTo" | "NotEqualTo" @@ -4550,6 +4569,7 @@ declare module PlayFabAdminModels { | "NotContains"; type SegmentLoginIdentityProvider = "Unknown" + | "PlayFab" | "Custom" | "GameCenter" @@ -4596,6 +4616,7 @@ declare module PlayFabAdminModels { } type SegmentPushNotificationDevicePlatform = "ApplePushNotificationService" + | "GoogleCloudMessaging"; export interface SegmentTrigger { @@ -4764,6 +4785,7 @@ declare module PlayFabAdminModels { } type SourceType = "Admin" + | "BackEnd" | "GameClient" | "GameServer" @@ -4772,6 +4794,7 @@ declare module PlayFabAdminModels { | "API"; type StatisticAggregationMethod = "Last" + | "Min" | "Max" | "Sum"; @@ -4787,6 +4810,7 @@ declare module PlayFabAdminModels { } type StatisticResetIntervalOption = "Never" + | "Hour" | "Day" | "Week" @@ -4807,12 +4831,14 @@ declare module PlayFabAdminModels { } type StatisticVersionArchivalStatus = "NotScheduled" + | "Scheduled" | "Queued" | "InProgress" | "Complete"; type StatisticVersionStatus = "Active" + | "SnapshotPending" | "Snapshot" | "ArchivalPending" @@ -4864,6 +4890,7 @@ declare module PlayFabAdminModels { } type SubscriptionProviderStatus = "NoError" + | "Cancelled" | "UnknownError" | "BillingError" @@ -4923,6 +4950,7 @@ declare module PlayFabAdminModels { } type TaskInstanceStatus = "Succeeded" + | "Starting" | "InProgress" | "Failed" @@ -4930,6 +4958,7 @@ declare module PlayFabAdminModels { | "Stalled"; type TitleActivationStatus = "None" + | "ActivatedTitleKey" | "PendingSteam" | "ActivatedSteam" @@ -4963,8 +4992,6 @@ declare module PlayFabAdminModels { Expires?: string; /** The updated IP address for the ban. Null for no change. */ IPAddress?: string; - /** The updated MAC address for the ban. Null for no change. */ - MACAddress?: string; /** Whether to make this ban permanent. Set to true to make this ban permanent. This will not modify Active state. */ Permanent?: boolean; /** The updated reason for the ban to be updated. Maximum 140 characters. Null for no change. */ @@ -5258,7 +5285,7 @@ declare module PlayFabAdminModels { PlayFabId?: string; /** Personal information for the user which is considered more sensitive */ PrivateInfo?: UserPrivateAccountInfo; - /** User PSN account information, if a PSN account has been linked */ + /** User PlayStation :tm: Network account information, if a PlayStation :tm: Network account has been linked */ PsnInfo?: UserPsnInfo; /** User Steam information, if a Steam account has been linked */ SteamInfo?: UserSteamInfo; @@ -5292,6 +5319,7 @@ declare module PlayFabAdminModels { } type UserDataPermission = "Private" + | "Public"; export interface UserDataRecord { @@ -5388,6 +5416,7 @@ declare module PlayFabAdminModels { } type UserOrigination = "Organic" + | "Steam" | "Google" | "Amazon" @@ -5425,9 +5454,9 @@ declare module PlayFabAdminModels { } export interface UserPsnInfo { - /** PSN account ID */ + /** PlayStation :tm: Network account ID */ PsnAccountId?: string; - /** PSN online ID */ + /** PlayStation :tm: Network online ID */ PsnOnlineId?: string; } diff --git a/PlayFabSdk/src/Typings/PlayFab/PlayFabAuthenticationApi.d.ts b/PlayFabSdk/src/Typings/PlayFab/PlayFabAuthenticationApi.d.ts index 802c802e..6089abfe 100644 --- a/PlayFabSdk/src/Typings/PlayFab/PlayFabAuthenticationApi.d.ts +++ b/PlayFabSdk/src/Typings/PlayFab/PlayFabAuthenticationApi.d.ts @@ -80,10 +80,12 @@ declare module PlayFabAuthenticationModels { } type IdentifiedDeviceType = "Unknown" + | "XboxOne" | "Scarlett"; type LoginIdentityProvider = "Unknown" + | "PlayFab" | "Custom" | "GameCenter" diff --git a/PlayFabSdk/src/Typings/PlayFab/PlayFabClientApi.d.ts b/PlayFabSdk/src/Typings/PlayFab/PlayFabClientApi.d.ts index bcf35f35..38a170e3 100644 --- a/PlayFabSdk/src/Typings/PlayFab/PlayFabClientApi.d.ts +++ b/PlayFabSdk/src/Typings/PlayFab/PlayFabClientApi.d.ts @@ -661,7 +661,7 @@ declare module PlayFabClientModule { */ RedeemCoupon(request: PlayFabClientModels.RedeemCouponRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; /** - * Uses the supplied OAuth code to refresh the internally cached player PSN :tm: auth token + * Uses the supplied OAuth code to refresh the internally cached player PlayStation :tm: Network auth token * https://docs.microsoft.com/rest/api/playfab/client/platform-specific-methods/refreshpsnauthtoken */ RefreshPSNAuthToken(request: PlayFabClientModels.RefreshPSNAuthTokenRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; @@ -823,7 +823,7 @@ declare module PlayFabClientModule { */ UnlinkOpenIdConnect(request: PlayFabClientModels.UnlinkOpenIdConnectRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; /** - * Unlinks the related PSN :tm: account from the user's PlayFab account + * Unlinks the related PlayStation :tm: Network account from the user's PlayFab account * https://docs.microsoft.com/rest/api/playfab/client/account-management/unlinkpsnaccount */ UnlinkPSNAccount(request: PlayFabClientModels.UnlinkPSNAccountRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; @@ -965,6 +965,7 @@ declare module PlayFabClientModels { } type AdActivity = "Opened" + | "Closed" | "Start" | "End"; @@ -1305,6 +1306,7 @@ declare module PlayFabClientModels { } type CloudScriptRevisionOption = "Live" + | "Latest" | "Specific"; @@ -1394,7 +1396,7 @@ declare module PlayFabClientModels { CatalogVersion?: string; /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ CustomTags?: { [key: string]: string | null }; - /** Id of the PSN service label to consume entitlements from */ + /** Id of the PlayStation :tm: Network service label to consume entitlements from */ ServiceLabel: number; } @@ -1438,6 +1440,7 @@ declare module PlayFabClientModels { } type ContinentCode = "AF" + | "AN" | "AS" | "EU" @@ -1446,6 +1449,7 @@ declare module PlayFabClientModels { | "SA"; type CountryCode = "AF" + | "AX" | "AL" | "DZ" @@ -1708,6 +1712,7 @@ declare module PlayFabClientModels { } type Currency = "AED" + | "AFN" | "ALL" | "AMD" @@ -1901,6 +1906,7 @@ declare module PlayFabClientModels { } type EmailVerificationStatus = "Unverified" + | "Pending" | "Confirmed"; @@ -2016,7 +2022,10 @@ declare module PlayFabClientModels { GameCenterInfo?: UserGameCenterInfo; /** The profile of the user, if requested. */ Profile?: PlayerProfileModel; - /** Available PSN information, if the user and PlayFab friend are both connected to PSN. */ + /** + * Available PlayStation :tm: Network information, if the user and PlayFab friend are both connected to PlayStation :tm: + * Network. + */ PSNInfo?: UserPsnInfo; /** Available Steam information (if the user and PlayFab friend are also connected in Steam). */ SteamInfo?: UserSteamInfo; @@ -2076,6 +2085,7 @@ declare module PlayFabClientModels { } type GameInstanceState = "Open" + | "Closed"; export interface GameServerRegionsRequest extends PlayFabModule.IPlayFabRequestCommon { @@ -2760,15 +2770,15 @@ declare module PlayFabClientModels { } export interface GetPlayFabIDsFromPSNAccountIDsRequest extends PlayFabModule.IPlayFabRequestCommon { - /** Id of the PSN issuer environment. If null, defaults to production environment. */ + /** Id of the PlayStation :tm: Network issuer environment. If null, defaults to production environment. */ IssuerId?: number; - /** Array of unique PlayStation Network identifiers for which the title needs to get PlayFab identifiers. */ + /** Array of unique PlayStation :tm: Network identifiers for which the title needs to get PlayFab identifiers. */ PSNAccountIDs: string[]; } export interface GetPlayFabIDsFromPSNAccountIDsResult extends PlayFabModule.IPlayFabResultCommon { - /** Mapping of PlayStation Network identifiers to PlayFab identifiers. */ + /** Mapping of PlayStation :tm: Network identifiers to PlayFab identifiers. */ Data?: PSNAccountPlayFabIdPair[]; } @@ -2806,7 +2816,7 @@ declare module PlayFabClientModels { } export interface GetPlayFabIDsFromXboxLiveIDsResult extends PlayFabModule.IPlayFabResultCommon { - /** Mapping of PlayStation Network identifiers to PlayFab identifiers. */ + /** Mapping of Xbox Live identifiers to PlayFab identifiers. */ Data?: XboxLiveAccountPlayFabIdPair[]; } @@ -3340,15 +3350,15 @@ declare module PlayFabClientModels { } export interface LinkPSNAccountRequest extends PlayFabModule.IPlayFabRequestCommon { - /** Authentication code provided by the PlayStation Network. */ + /** Authentication code provided by the PlayStation :tm: Network. */ AuthCode: string; /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ CustomTags?: { [key: string]: string | null }; /** If another user is already linked to the account, unlink the other user and re-link. */ ForceLink?: boolean; - /** Id of the PSN issuer environment. If null, defaults to production environment. */ + /** Id of the PlayStation :tm: Network issuer environment. If null, defaults to production environment. */ IssuerId?: number; - /** Redirect URI supplied to PSN when requesting an auth code */ + /** Redirect URI supplied to PlayStation :tm: Network when requesting an auth code */ RedirectUri: string; } @@ -3429,6 +3439,7 @@ declare module PlayFabClientModels { } type LoginIdentityProvider = "Unknown" + | "PlayFab" | "Custom" | "GameCenter" @@ -3508,7 +3519,8 @@ declare module PlayFabClientModels { EncryptedRequest?: string; /** * The JSON Web token (JWT) returned by Apple after login. Represented as the identityToken field in the authorization - * credential payload. + * credential payload. If you choose to ignore the expiration date for identity tokens, you will receive an NotAuthorized + * error if Apple rotates the signing key. In this case, users have to login to provide a fresh identity token. */ IdentityToken: string; /** Flags for which pieces of info to return for the user. */ @@ -3817,7 +3829,7 @@ declare module PlayFabClientModels { } export interface LoginWithPSNRequest extends PlayFabModule.IPlayFabRequestCommon { - /** Auth code provided by the PSN OAuth provider. */ + /** Auth code provided by the PlayStation :tm: Network OAuth provider. */ AuthCode?: string; /** Automatically create a PlayFab account if one is not currently linked to this ID. */ CreateAccount?: boolean; @@ -3827,11 +3839,11 @@ declare module PlayFabClientModels { EncryptedRequest?: string; /** Flags for which pieces of info to return for the user. */ InfoRequestParameters?: GetPlayerCombinedInfoRequestParams; - /** Id of the PSN issuer environment. If null, defaults to production environment. */ + /** Id of the PlayStation :tm: Network issuer environment. If null, defaults to production environment. */ IssuerId?: number; /** Player secret that is used to verify API request signatures (Enterprise Only). */ PlayerSecret?: string; - /** Redirect URI supplied to PSN when requesting an auth code */ + /** Redirect URI supplied to PlayStation :tm: Network when requesting an auth code */ RedirectUri?: string; /** * Unique identifier for the title, found in the Settings > Game Properties section of the PlayFab developer site when a @@ -3961,6 +3973,7 @@ declare module PlayFabClientModels { } type MatchmakeStatus = "Complete" + | "Waiting" | "GameNotFound" | "NoAvailableSlots" @@ -4227,17 +4240,20 @@ declare module PlayFabClientModels { } export interface PlayStation5Payload { - /** An optional list of entitlement ids to query against PSN */ + /** An optional list of entitlement ids to query against PlayStation :tm: Network */ Ids?: string[]; - /** Id of the PSN service label to consume entitlements from */ + /** Id of the PlayStation :tm: Network service label to consume entitlements from */ ServiceLabel?: string; } export interface PSNAccountPlayFabIdPair { - /** Unique PlayFab identifier for a user, or null if no PlayFab account is linked to the PlayStation Network identifier. */ + /** + * Unique PlayFab identifier for a user, or null if no PlayFab account is linked to the PlayStation :tm: Network + * identifier. + */ PlayFabId?: string; - /** Unique PlayStation Network identifier for a user. */ + /** Unique PlayStation :tm: Network identifier for a user. */ PSNAccountId?: string; } @@ -4284,6 +4300,7 @@ declare module PlayFabClientModels { } type PushNotificationPlatform = "ApplePushNotificationService" + | "GoogleCloudMessaging"; export interface PushNotificationRegistrationModel { @@ -4313,16 +4330,17 @@ declare module PlayFabClientModels { } export interface RefreshPSNAuthTokenRequest extends PlayFabModule.IPlayFabRequestCommon { - /** Auth code returned by PSN OAuth system. */ + /** Auth code returned by PlayStation :tm: Network OAuth system. */ AuthCode: string; - /** Id of the PSN issuer environment. If null, defaults to production environment. */ + /** Id of the PlayStation :tm: Network issuer environment. If null, defaults to production environment. */ IssuerId?: number; - /** Redirect URI supplied to PSN when requesting an auth code */ + /** Redirect URI supplied to PlayStation :tm: Network when requesting an auth code */ RedirectUri: string; } type Region = "USCentral" + | "USEast" | "EUWest" | "Singapore" @@ -4591,6 +4609,7 @@ declare module PlayFabClientModels { } type SourceType = "Admin" + | "BackEnd" | "GameClient" | "GameServer" @@ -4717,6 +4736,7 @@ declare module PlayFabClientModels { } type SubscriptionProviderStatus = "NoError" + | "Cancelled" | "UnknownError" | "BillingError" @@ -4742,6 +4762,7 @@ declare module PlayFabClientModels { } type TitleActivationStatus = "None" + | "ActivatedTitleKey" | "PendingSteam" | "ActivatedSteam" @@ -4790,6 +4811,7 @@ declare module PlayFabClientModels { } type TradeStatus = "Invalid" + | "Opening" | "Open" | "Accepting" @@ -4798,6 +4820,7 @@ declare module PlayFabClientModels { | "Cancelled"; type TransactionStatus = "CreateCart" + | "Init" | "Approved" | "Succeeded" @@ -5227,7 +5250,7 @@ declare module PlayFabClientModels { PlayFabId?: string; /** Personal information for the user which is considered more sensitive */ PrivateInfo?: UserPrivateAccountInfo; - /** User PSN account information, if a PSN account has been linked */ + /** User PlayStation :tm: Network account information, if a PlayStation :tm: Network account has been linked */ PsnInfo?: UserPsnInfo; /** User Steam information, if a Steam account has been linked */ SteamInfo?: UserSteamInfo; @@ -5261,6 +5284,7 @@ declare module PlayFabClientModels { } type UserDataPermission = "Private" + | "Public"; export interface UserDataRecord { @@ -5357,6 +5381,7 @@ declare module PlayFabClientModels { } type UserOrigination = "Organic" + | "Steam" | "Google" | "Amazon" @@ -5388,9 +5413,9 @@ declare module PlayFabClientModels { } export interface UserPsnInfo { - /** PSN account ID */ + /** PlayStation :tm: Network account ID */ PsnAccountId?: string; - /** PSN online ID */ + /** PlayStation :tm: Network online ID */ PsnOnlineId?: string; } diff --git a/PlayFabSdk/src/Typings/PlayFab/PlayFabCloudScriptApi.d.ts b/PlayFabSdk/src/Typings/PlayFab/PlayFabCloudScriptApi.d.ts index dcbd5ed3..4dbdf608 100644 --- a/PlayFabSdk/src/Typings/PlayFab/PlayFabCloudScriptApi.d.ts +++ b/PlayFabSdk/src/Typings/PlayFab/PlayFabCloudScriptApi.d.ts @@ -87,6 +87,7 @@ declare module PlayFabCloudScriptModels { } type CloudScriptRevisionOption = "Live" + | "Latest" | "Specific"; @@ -101,6 +102,7 @@ declare module PlayFabCloudScriptModels { } type ContinentCode = "AF" + | "AN" | "AS" | "EU" @@ -109,6 +111,7 @@ declare module PlayFabCloudScriptModels { | "SA"; type CountryCode = "AF" + | "AX" | "AL" | "DZ" @@ -359,6 +362,7 @@ declare module PlayFabCloudScriptModels { | "ZW"; type EmailVerificationStatus = "Unverified" + | "Pending" | "Confirmed"; @@ -570,6 +574,7 @@ declare module PlayFabCloudScriptModels { } type LoginIdentityProvider = "Unknown" + | "PlayFab" | "Custom" | "GameCenter" @@ -740,6 +745,7 @@ declare module PlayFabCloudScriptModels { } type PushNotificationPlatform = "ApplePushNotificationService" + | "GoogleCloudMessaging"; export interface PushNotificationRegistrationModel { @@ -824,6 +830,7 @@ declare module PlayFabCloudScriptModels { } type SubscriptionProviderStatus = "NoError" + | "Cancelled" | "UnknownError" | "BillingError" @@ -839,6 +846,7 @@ declare module PlayFabCloudScriptModels { } type TriggerType = "HTTP" + | "Queue"; export interface UnregisterFunctionRequest extends PlayFabModule.IPlayFabRequestCommon { diff --git a/PlayFabSdk/src/Typings/PlayFab/PlayFabDataApi.d.ts b/PlayFabSdk/src/Typings/PlayFab/PlayFabDataApi.d.ts index 9c817922..e0a633ff 100644 --- a/PlayFabSdk/src/Typings/PlayFab/PlayFabDataApi.d.ts +++ b/PlayFabSdk/src/Typings/PlayFab/PlayFabDataApi.d.ts @@ -219,6 +219,7 @@ declare module PlayFabDataModels { } type OperationTypes = "Created" + | "Updated" | "Deleted" | "None"; diff --git a/PlayFabSdk/src/Typings/PlayFab/PlayFabEconomyApi.d.ts b/PlayFabSdk/src/Typings/PlayFab/PlayFabEconomyApi.d.ts index 72014ef5..3f397aab 100644 --- a/PlayFabSdk/src/Typings/PlayFab/PlayFabEconomyApi.d.ts +++ b/PlayFabSdk/src/Typings/PlayFab/PlayFabEconomyApi.d.ts @@ -4,6 +4,11 @@ declare module PlayFabEconomyModule { export interface IPlayFabEconomy { ForgetAllCredentials(): void; + /** + * Add inventory items. + * https://docs.microsoft.com/rest/api/playfab/economy/inventory/addinventoryitems + */ + AddInventoryItems(request: PlayFabEconomyModels.AddInventoryItemsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; /** * Creates a new item in the working catalog using provided metadata. * https://docs.microsoft.com/rest/api/playfab/economy/catalog/createdraftitem @@ -19,11 +24,26 @@ declare module PlayFabEconomyModule { * https://docs.microsoft.com/rest/api/playfab/economy/catalog/deleteentityitemreviews */ DeleteEntityItemReviews(request: PlayFabEconomyModels.DeleteEntityItemReviewsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; + /** + * Delete an Inventory Collection + * https://docs.microsoft.com/rest/api/playfab/economy/inventory/deleteinventorycollection + */ + DeleteInventoryCollection(request: PlayFabEconomyModels.DeleteInventoryCollectionRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; + /** + * Delete inventory items + * https://docs.microsoft.com/rest/api/playfab/economy/inventory/deleteinventoryitems + */ + DeleteInventoryItems(request: PlayFabEconomyModels.DeleteInventoryItemsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; /** * Removes an item from working catalog and all published versions from the public catalog. * https://docs.microsoft.com/rest/api/playfab/economy/catalog/deleteitem */ DeleteItem(request: PlayFabEconomyModels.DeleteItemRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; + /** + * Execute a list of Inventory Operations + * https://docs.microsoft.com/rest/api/playfab/economy/inventory/executeinventoryoperations + */ + ExecuteInventoryOperations(request: PlayFabEconomyModels.ExecuteInventoryOperationsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; /** * Gets the configuration for the catalog. * https://docs.microsoft.com/rest/api/playfab/economy/catalog/getcatalogconfig @@ -49,11 +69,26 @@ declare module PlayFabEconomyModule { * https://docs.microsoft.com/rest/api/playfab/economy/catalog/getentityitemreview */ GetEntityItemReview(request: PlayFabEconomyModels.GetEntityItemReviewRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; + /** + * Get Inventory Collection Ids + * https://docs.microsoft.com/rest/api/playfab/economy/inventory/getinventorycollectionids + */ + GetInventoryCollectionIds(request: PlayFabEconomyModels.GetInventoryCollectionIdsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; + /** + * Get current inventory items. + * https://docs.microsoft.com/rest/api/playfab/economy/inventory/getinventoryitems + */ + GetInventoryItems(request: PlayFabEconomyModels.GetInventoryItemsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; /** * Retrieves an item from the public catalog. * https://docs.microsoft.com/rest/api/playfab/economy/catalog/getitem */ GetItem(request: PlayFabEconomyModels.GetItemRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; + /** + * Search for a given item and return a set of bundles and stores containing the item + * https://docs.microsoft.com/rest/api/playfab/economy/catalog/getitemcontainers + */ + GetItemContainers(request: PlayFabEconomyModels.GetItemContainersRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; /** * Gets the moderation state for an item, including the concern category and string reason. * https://docs.microsoft.com/rest/api/playfab/economy/catalog/getitemmoderationstate @@ -79,11 +114,51 @@ declare module PlayFabEconomyModule { * https://docs.microsoft.com/rest/api/playfab/economy/catalog/getitems */ GetItems(request: PlayFabEconomyModels.GetItemsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; + /** + * Gets the access tokens. + * https://docs.microsoft.com/rest/api/playfab/economy/inventory/getmicrosoftstoreaccesstokens + */ + GetMicrosoftStoreAccessTokens(request: PlayFabEconomyModels.GetMicrosoftStoreAccessTokensRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; /** * Initiates a publish of an item from the working catalog to the public catalog. * https://docs.microsoft.com/rest/api/playfab/economy/catalog/publishdraftitem */ PublishDraftItem(request: PlayFabEconomyModels.PublishDraftItemRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; + /** + * Purchase an item or bundle + * https://docs.microsoft.com/rest/api/playfab/economy/inventory/purchaseinventoryitems + */ + PurchaseInventoryItems(request: PlayFabEconomyModels.PurchaseInventoryItemsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; + /** + * Redeem items. + * https://docs.microsoft.com/rest/api/playfab/economy/inventory/redeemappleappstoreinventoryitems + */ + RedeemAppleAppStoreInventoryItems(request: PlayFabEconomyModels.RedeemAppleAppStoreInventoryItemsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; + /** + * Redeem items. + * https://docs.microsoft.com/rest/api/playfab/economy/inventory/redeemgoogleplayinventoryitems + */ + RedeemGooglePlayInventoryItems(request: PlayFabEconomyModels.RedeemGooglePlayInventoryItemsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; + /** + * Redeem items. + * https://docs.microsoft.com/rest/api/playfab/economy/inventory/redeemmicrosoftstoreinventoryitems + */ + RedeemMicrosoftStoreInventoryItems(request: PlayFabEconomyModels.RedeemMicrosoftStoreInventoryItemsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; + /** + * Redeem items. + * https://docs.microsoft.com/rest/api/playfab/economy/inventory/redeemnintendoeshopinventoryitems + */ + RedeemNintendoEShopInventoryItems(request: PlayFabEconomyModels.RedeemNintendoEShopInventoryItemsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; + /** + * Redeem items. + * https://docs.microsoft.com/rest/api/playfab/economy/inventory/redeemplaystationstoreinventoryitems + */ + RedeemPlayStationStoreInventoryItems(request: PlayFabEconomyModels.RedeemPlayStationStoreInventoryItemsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; + /** + * Redeem items. + * https://docs.microsoft.com/rest/api/playfab/economy/inventory/redeemsteaminventoryitems + */ + RedeemSteamInventoryItems(request: PlayFabEconomyModels.RedeemSteamInventoryItemsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; /** * Submit a report for an item, indicating in what way the item is inappropriate. * https://docs.microsoft.com/rest/api/playfab/economy/catalog/reportitem @@ -115,11 +190,21 @@ declare module PlayFabEconomyModule { * https://docs.microsoft.com/rest/api/playfab/economy/catalog/submititemreviewvote */ SubmitItemReviewVote(request: PlayFabEconomyModels.SubmitItemReviewVoteRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; + /** + * Subtract inventory items. + * https://docs.microsoft.com/rest/api/playfab/economy/inventory/subtractinventoryitems + */ + SubtractInventoryItems(request: PlayFabEconomyModels.SubtractInventoryItemsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; /** * Submit a request to takedown one or more reviews. * https://docs.microsoft.com/rest/api/playfab/economy/catalog/takedownitemreviews */ TakedownItemReviews(request: PlayFabEconomyModels.TakedownItemReviewsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; + /** + * Transfer inventory items. + * https://docs.microsoft.com/rest/api/playfab/economy/inventory/transferinventoryitems + */ + TransferInventoryItems(request: PlayFabEconomyModels.TransferInventoryItemsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; /** * Updates the configuration for the catalog. * https://docs.microsoft.com/rest/api/playfab/economy/catalog/updatecatalogconfig @@ -130,11 +215,73 @@ declare module PlayFabEconomyModule { * https://docs.microsoft.com/rest/api/playfab/economy/catalog/updatedraftitem */ UpdateDraftItem(request: PlayFabEconomyModels.UpdateDraftItemRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; + /** + * Update inventory items + * https://docs.microsoft.com/rest/api/playfab/economy/inventory/updateinventoryitems + */ + UpdateInventoryItems(request: PlayFabEconomyModels.UpdateInventoryItemsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; } } declare module PlayFabEconomyModels { + export interface AddInventoryItemsOperation { + /** The amount to add to the current item amount. */ + Amount: number; + /** The inventory item the operation applies to. */ + Item?: InventoryItemReference; + + } + + export interface AddInventoryItemsRequest extends PlayFabModule.IPlayFabRequestCommon { + /** The amount to add for the current item. */ + Amount: number; + /** The id of the entity's collection to perform this action on. (Default="default") */ + CollectionId?: string; + /** The currency code of the real money transaction. */ + CurrencyCode?: string; + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** The entity to perform this action on. */ + Entity?: EntityKey; + /** The Idempotency ID for this request. */ + IdempotencyId?: string; + /** The inventory item the request applies to. */ + Item?: InventoryItemReference; + /** A list of Items to modify. */ + Items?: InventoryItem[]; + /** Purchase price of the offer. */ + PurchasePrice?: number; + /** Indicates if the full inventory should be returned. */ + ReturnInventory: boolean; + + } + + export interface AddInventoryItemsResponse extends PlayFabModule.IPlayFabResultCommon { + /** The idempotency id used in the request. */ + IdempotencyId?: string; + /** + * Details of the current inventory items. Null if ReturnInventory was set to false in request or InventoryTooLarge is set + * to true in response. + */ + InventoryItems?: InventoryItem[]; + /** Whether the number of inventory items is too large to be returned. */ + InventoryTooLarge: boolean; + /** The ids of transactions that occurred as a result of the request. */ + TransactionIds?: string[]; + /** The updated items for this request. */ + UpdatedItems?: InventoryItem[]; + + } + + export interface AlternateId { + /** Type of the alternate ID. */ + Type?: string; + /** Value of the alternate ID. */ + Value?: string; + + } + export interface CatalogAlternateId { /** Type of the alternate ID. */ Type?: string; @@ -146,6 +293,10 @@ declare module PlayFabEconomyModels { export interface CatalogConfig { /** A list of player entity keys that will have admin permissions. */ AdminEntities?: EntityKey[]; + /** The set of configuration that only applies to catalog items. */ + Catalog?: CatalogSpecificConfig; + /** A list of deep link formats. */ + DeepLinkFormats?: DeepLinkFormat[]; /** A list of display properties to index. */ DisplayPropertyIndexInfos?: DisplayPropertyIndexInfo[]; /** The set of configuration that only applies to Files. */ @@ -174,6 +325,8 @@ declare module PlayFabEconomyModels { CreationDate?: string; /** The ID of the creator of this catalog item. */ CreatorEntity?: EntityKey; + /** The set of platform specific deep links for this item. */ + DeepLinks?: DeepLink[]; /** * A dictionary of localized descriptions. Key is language code and localized string is the value. The neutral locale is * required. @@ -193,16 +346,24 @@ declare module PlayFabEconomyModels { Images?: Image[]; /** Indicates if the item is hidden. */ IsHidden?: boolean; + /** The item references associated with this item. */ + ItemReferences?: CatalogItemReference[]; /** A dictionary of localized keywords. Key is language code and localized list of keywords is the value. */ Keywords?: { [key: string]: KeywordSet }; /** The date and time this item was last updated. */ LastModifiedDate?: string; /** The moderation state for this item. */ Moderation?: ModerationState; + /** The platforms supported by this item. */ + Platforms?: string[]; + /** The base price of this item. */ + PriceOptions?: CatalogPriceOptions; /** Rating summary for this item. */ Rating?: Rating; /** The date of when the item will be available. If not provided then the product will appear immediately. */ StartDate?: string; + /** Optional details for stores items. */ + StoreDetails?: StoreDetails; /** The list of tags that are associated with this item. */ Tags?: string[]; /** @@ -210,7 +371,7 @@ declare module PlayFabEconomyModels { * required. */ Title?: { [key: string]: string | null }; - /** The high-level type of the item. */ + /** The high-level type of the item. The following item types are supported: bundle, catalogItem, currency, store, ugc. */ Type?: string; } @@ -220,32 +381,53 @@ declare module PlayFabEconomyModels { Amount?: number; /** The unique ID of the catalog item. */ Id?: string; - /** The price of the catalog item. */ - Price?: CatalogPrice; + /** The prices the catalog item can be purchased for. */ + PriceOptions?: CatalogPriceOptions; } export interface CatalogPrice { - /** Prices of the catalog item. */ - Prices?: CatalogPriceInstance[]; - /** Real prices of the catalog item. */ - RealPrices?: CatalogPriceInstance[]; - /** A standardized sorting key to allow proper sorting between items with prices in different currencies. */ - Sort?: number; + /** The amounts of the catalog item price. */ + Amounts?: CatalogPriceAmount[]; } export interface CatalogPriceAmount { - /** The amount of the catalog price. */ + /** The amount of the price. */ Amount: number; - /** The Item ID of the price. */ - Id?: string; + /** The Item Id of the price. */ + ItemId?: string; } - export interface CatalogPriceInstance { - /** The amounts of the catalog item price. */ - Amounts?: CatalogPriceAmount[]; + export interface CatalogPriceAmountOverride { + /** The exact value that should be utilized in the override. */ + FixedValue?: number; + /** The id of the item this override should utilize. */ + ItemId?: string; + /** + * The multiplier that will be applied to the base Catalog value to determine what value should be utilized in the + * override. + */ + Multiplier?: number; + + } + + export interface CatalogPriceOptions { + /** Prices of the catalog item. */ + Prices?: CatalogPrice[]; + + } + + export interface CatalogPriceOptionsOverride { + /** The prices utilized in the override. */ + Prices?: CatalogPriceOverride[]; + + } + + export interface CatalogPriceOverride { + /** The currency amounts utilized in the override for a singular price. */ + Amounts?: CatalogPriceAmountOverride[]; } @@ -258,6 +440,7 @@ declare module PlayFabEconomyModels { } type ConcernCategory = "None" + | "OffensiveContent" | "ChildExploitation" | "MalwareOrVirus" @@ -288,6 +471,257 @@ declare module PlayFabEconomyModels { } + type CountryCode = "AF" + + | "AX" + | "AL" + | "DZ" + | "AS" + | "AD" + | "AO" + | "AI" + | "AQ" + | "AG" + | "AR" + | "AM" + | "AW" + | "AU" + | "AT" + | "AZ" + | "BS" + | "BH" + | "BD" + | "BB" + | "BY" + | "BE" + | "BZ" + | "BJ" + | "BM" + | "BT" + | "BO" + | "BQ" + | "BA" + | "BW" + | "BV" + | "BR" + | "IO" + | "BN" + | "BG" + | "BF" + | "BI" + | "KH" + | "CM" + | "CA" + | "CV" + | "KY" + | "CF" + | "TD" + | "CL" + | "CN" + | "CX" + | "CC" + | "CO" + | "KM" + | "CG" + | "CD" + | "CK" + | "CR" + | "CI" + | "HR" + | "CU" + | "CW" + | "CY" + | "CZ" + | "DK" + | "DJ" + | "DM" + | "DO" + | "EC" + | "EG" + | "SV" + | "GQ" + | "ER" + | "EE" + | "ET" + | "FK" + | "FO" + | "FJ" + | "FI" + | "FR" + | "GF" + | "PF" + | "TF" + | "GA" + | "GM" + | "GE" + | "DE" + | "GH" + | "GI" + | "GR" + | "GL" + | "GD" + | "GP" + | "GU" + | "GT" + | "GG" + | "GN" + | "GW" + | "GY" + | "HT" + | "HM" + | "VA" + | "HN" + | "HK" + | "HU" + | "IS" + | "IN" + | "ID" + | "IR" + | "IQ" + | "IE" + | "IM" + | "IL" + | "IT" + | "JM" + | "JP" + | "JE" + | "JO" + | "KZ" + | "KE" + | "KI" + | "KP" + | "KR" + | "KW" + | "KG" + | "LA" + | "LV" + | "LB" + | "LS" + | "LR" + | "LY" + | "LI" + | "LT" + | "LU" + | "MO" + | "MK" + | "MG" + | "MW" + | "MY" + | "MV" + | "ML" + | "MT" + | "MH" + | "MQ" + | "MR" + | "MU" + | "YT" + | "MX" + | "FM" + | "MD" + | "MC" + | "MN" + | "ME" + | "MS" + | "MA" + | "MZ" + | "MM" + | "NA" + | "NR" + | "NP" + | "NL" + | "NC" + | "NZ" + | "NI" + | "NE" + | "NG" + | "NU" + | "NF" + | "MP" + | "NO" + | "OM" + | "PK" + | "PW" + | "PS" + | "PA" + | "PG" + | "PY" + | "PE" + | "PH" + | "PN" + | "PL" + | "PT" + | "PR" + | "QA" + | "RE" + | "RO" + | "RU" + | "RW" + | "BL" + | "SH" + | "KN" + | "LC" + | "MF" + | "PM" + | "VC" + | "WS" + | "SM" + | "ST" + | "SA" + | "SN" + | "RS" + | "SC" + | "SL" + | "SG" + | "SX" + | "SK" + | "SI" + | "SB" + | "SO" + | "ZA" + | "GS" + | "SS" + | "ES" + | "LK" + | "SD" + | "SR" + | "SJ" + | "SZ" + | "SE" + | "CH" + | "SY" + | "TW" + | "TJ" + | "TZ" + | "TH" + | "TL" + | "TG" + | "TK" + | "TO" + | "TT" + | "TN" + | "TR" + | "TM" + | "TC" + | "TV" + | "UG" + | "UA" + | "AE" + | "GB" + | "US" + | "UM" + | "UY" + | "UZ" + | "VU" + | "VE" + | "VN" + | "VG" + | "VI" + | "WF" + | "EH" + | "YE" + | "ZM" + | "ZW"; + export interface CreateDraftItemRequest extends PlayFabModule.IPlayFabRequestCommon { /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ CustomTags?: { [key: string]: string | null }; @@ -318,6 +752,14 @@ declare module PlayFabEconomyModels { } + export interface DeepLink { + /** Target platform for this deep link. */ + Platform?: string; + /** The deep link for this platform. */ + Url?: string; + + } + export interface DeepLinkFormat { /** The format of the deep link to return. The format should contain '{id}' to represent where the item ID should be placed. */ Format?: string; @@ -338,6 +780,48 @@ declare module PlayFabEconomyModels { } + export interface DeleteInventoryCollectionRequest extends PlayFabModule.IPlayFabRequestCommon { + /** The inventory collection id the request applies to. */ + CollectionId?: string; + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** The entity the request is about. Set to the caller by default. */ + Entity?: EntityKey; + + } + + export interface DeleteInventoryCollectionResponse extends PlayFabModule.IPlayFabResultCommon { + + } + + export interface DeleteInventoryItemsOperation { + /** The inventory item the operation applies to. */ + Item?: InventoryItemReference; + + } + + export interface DeleteInventoryItemsRequest extends PlayFabModule.IPlayFabRequestCommon { + /** The id of the entity's collection to perform this action on. (Default="default") */ + CollectionId?: string; + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** The entity to perform this action on. */ + Entity?: EntityKey; + /** The Idempotency ID for this request. */ + IdempotencyId?: string; + /** The inventory item the request applies to. */ + Item?: InventoryItemReference; + + } + + export interface DeleteInventoryItemsResponse extends PlayFabModule.IPlayFabResultCommon { + /** The idempotency id used in the request. */ + IdempotencyId?: string; + /** The ids of transactions that occurred as a result of the request. */ + TransactionIds?: string[]; + + } + export interface DeleteItemRequest extends PlayFabModule.IPlayFabRequestCommon { /** An alternate ID associated with this item. */ AlternateId?: CatalogAlternateId; @@ -363,6 +847,7 @@ declare module PlayFabEconomyModels { } type DisplayPropertyType = "None" + | "QueryDateTime" | "QueryDouble" | "QueryString" @@ -376,6 +861,31 @@ declare module PlayFabEconomyModels { } + export interface ExecuteInventoryOperationsRequest extends PlayFabModule.IPlayFabRequestCommon { + /** The id of the entity's collection to perform this action on. (Default="default") */ + CollectionId?: string; + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** The entity to perform this action on. */ + Entity?: EntityKey; + /** The Idempotency ID for this request. */ + IdempotencyId?: string; + /** + * The operations to run transactionally. The operations will be executed in-order sequentially and will succeed or fail as + * a batch. + */ + Operations?: InventoryOperation[]; + + } + + export interface ExecuteInventoryOperationsResponse extends PlayFabModule.IPlayFabResultCommon { + /** The idempotency id used in the request. */ + IdempotencyId?: string; + /** The ids of the transactions that occurred as a result of the request. */ + TransactionIds?: string[]; + + } + export interface FileConfig { /** The set of content types that will be used for validation. */ ContentTypes?: string[]; @@ -385,6 +895,10 @@ declare module PlayFabEconomyModels { } export interface FilterOptions { + /** The OData filter utilized. Mutually exclusive with 'IncludeAllItems'. */ + Filter?: string; + /** The flag that overrides the filter and allows for returning all catalog items. Mutually exclusive with 'Filter'. */ + IncludeAllItems?: boolean; } @@ -450,6 +964,8 @@ declare module PlayFabEconomyModels { CustomTags?: { [key: string]: string | null }; /** The entity to perform this action on. */ Entity?: EntityKey; + /** OData Filter to specify ItemType. */ + Filter?: string; } @@ -479,6 +995,80 @@ declare module PlayFabEconomyModels { } + export interface GetInventoryCollectionIdsRequest extends PlayFabModule.IPlayFabRequestCommon { + /** An opaque token used to retrieve the next page of collection ids, if any are available. */ + ContinuationToken?: string; + /** Number of items to retrieve. (Default = 10) */ + Count: number; + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** The entity the request is about. Set to the caller by default. */ + Entity?: EntityKey; + + } + + export interface GetInventoryCollectionIdsResponse extends PlayFabModule.IPlayFabResultCommon { + /** The requested inventory collection ids. */ + CollectionIds?: string[]; + /** An opaque token used to retrieve the next page of collection ids, if any are available. */ + ContinuationToken?: string; + + } + + export interface GetInventoryItemsRequest extends PlayFabModule.IPlayFabRequestCommon { + /** The id of the entity's collection to perform this action on. (Default="default") */ + CollectionId?: string; + /** + * An opaque token used to retrieve the next page of items in the inventory, if any are available. Should be null on + * initial request. + */ + ContinuationToken?: string; + /** Number of items to retrieve. Maximum page size is 50. (Default=10) */ + Count: number; + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** The entity to perform this action on. */ + Entity?: EntityKey; + /** The filters to limit what is returned to the client. */ + Filter?: string; + + } + + export interface GetInventoryItemsResponse extends PlayFabModule.IPlayFabResultCommon { + /** An opaque token used to retrieve the next page of items, if any are available. */ + ContinuationToken?: string; + /** The requested inventory items. */ + Items?: InventoryItem[]; + + } + + export interface GetItemContainersRequest extends PlayFabModule.IPlayFabRequestCommon { + /** An alternate ID associated with this item. */ + AlternateId?: CatalogAlternateId; + /** + * An opaque token used to retrieve the next page of items in the inventory, if any are available. Should be null on + * initial request. + */ + ContinuationToken?: string; + /** Number of items to retrieve. Maximum page size is 25. */ + Count: number; + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** The entity to perform this action on. */ + Entity?: EntityKey; + /** The unique ID of the item. */ + Id?: string; + + } + + export interface GetItemContainersResponse extends PlayFabModule.IPlayFabResultCommon { + /** List of Bundles and Stores containing the requested items. */ + Containers?: CatalogItem[]; + /** An opaque token used to retrieve the next page of items, if any are available. */ + ContinuationToken?: string; + + } + export interface GetItemModerationStateRequest extends PlayFabModule.IPlayFabRequestCommon { /** An alternate ID associated with this item. */ AlternateId?: CatalogAlternateId; @@ -597,7 +1187,33 @@ declare module PlayFabEconomyModels { } + export interface GetMicrosoftStoreAccessTokensRequest extends PlayFabModule.IPlayFabRequestCommon { + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + + } + + export interface GetMicrosoftStoreAccessTokensResponse extends PlayFabModule.IPlayFabResultCommon { + /** + * The collections access token for calling https://onestore.microsoft.com/b2b/keys/create/collections to obtain a + * CollectionsIdKey for the user + */ + CollectionsAccessToken?: string; + /** The date the collections access token expires */ + CollectionsAccessTokenExpirationDate: string; + + } + + export interface GooglePlayProductPurchase { + /** The Product ID (SKU) of the InApp product purchased from the Google Play store. */ + ProductId?: string; + /** The token provided to the player's device when the product was purchased */ + Token?: string; + + } + type HelpfulnessVote = "None" + | "UnHelpful" | "Helpful"; @@ -619,6 +1235,44 @@ declare module PlayFabEconomyModels { } + export interface InventoryItem { + /** The amount of the item. */ + Amount: number; + /** The id of the item. This should correspond to the item id in the catalog. */ + Id?: string; + /** The stack id of the item. */ + StackId?: string; + /** The type of the item. This should correspond to the item type in the catalog. */ + Type?: string; + + } + + export interface InventoryItemReference { + /** The inventory item alternate id the request applies to. */ + AlternateId?: AlternateId; + /** The inventory item id the request applies to. */ + Id?: string; + /** The inventory stack id the request should redeem to. (Default="default") */ + StackId?: string; + + } + + export interface InventoryOperation { + /** The add operation. */ + Add?: AddInventoryItemsOperation; + /** The delete operation. */ + Delete?: DeleteInventoryItemsOperation; + /** The purchase operation. */ + Purchase?: PurchaseInventoryItemsOperation; + /** The subtract operation. */ + Subtract?: SubtractInventoryItemsOperation; + /** The transfer operation. */ + Transfer?: TransferInventoryItemsOperation; + /** The update operation. */ + Update?: UpdateInventoryItemsOperation; + + } + export interface KeywordSet { /** A list of localized keywords. */ Values?: string[]; @@ -636,6 +1290,7 @@ declare module PlayFabEconomyModels { } type ModerationStatus = "Unknown" + | "AwaitingModeration" | "Approved" | "Rejected"; @@ -650,14 +1305,6 @@ declare module PlayFabEconomyModels { } - export interface PriceOverride { - - } - - export interface PricesOverride { - - } - export interface PublishDraftItemRequest extends PlayFabModule.IPlayFabRequestCommon { /** An alternate ID associated with this item. */ AlternateId?: CatalogAlternateId; @@ -681,15 +1328,82 @@ declare module PlayFabEconomyModels { } type PublishResult = "Unknown" + | "Pending" | "Succeeded" | "Failed" | "Canceled"; + export interface PurchaseInventoryItemsOperation { + /** The amount to purchase. */ + Amount: number; + /** + * Indicates whether stacks reduced to an amount of 0 during the operation should be deleted from the inventory. (Default = + * false) + */ + DeleteEmptyStacks: boolean; + /** The inventory item the operation applies to. */ + Item?: InventoryItemReference; + /** + * The per-item price the item is expected to be purchased at. This must match a value configured in the Catalog or + * specified Store. + */ + PriceAmounts?: PurchasePriceAmount[]; + /** The id of the Store to purchase the item from. */ + StoreId?: string; + + } + + export interface PurchaseInventoryItemsRequest extends PlayFabModule.IPlayFabRequestCommon { + /** The amount to purchase. */ + Amount: number; + /** The id of the entity's collection to perform this action on. (Default="default") */ + CollectionId?: string; + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** + * Indicates whether stacks reduced to an amount of 0 during the request should be deleted from the inventory. + * (Default=false) + */ + DeleteEmptyStacks: boolean; + /** The entity to perform this action on. */ + Entity?: EntityKey; + /** The Idempotency ID for this request. */ + IdempotencyId?: string; + /** The inventory item the request applies to. */ + Item?: InventoryItemReference; + /** + * The per-item price the item is expected to be purchased at. This must match a value configured in the Catalog or + * specified Store. + */ + PriceAmounts?: PurchasePriceAmount[]; + /** The id of the Store to purchase the item from. */ + StoreId?: string; + + } + + export interface PurchaseInventoryItemsResponse extends PlayFabModule.IPlayFabResultCommon { + /** The idempotency id used in the request. */ + IdempotencyId?: string; + /** The ids of transactions that occurred as a result of the request. */ + TransactionIds?: string[]; + + } + export interface PurchaseOverride { } + export interface PurchasePriceAmount { + /** The amount of the inventory item to use in the purchase . */ + Amount: number; + /** The inventory item id to use in the purchase . */ + ItemId?: string; + /** The inventory stack id the to use in the purchase. Set to "default" by default */ + StackId?: string; + + } + export interface Rating { /** The average rating for this item. */ Average?: number; @@ -708,6 +1422,174 @@ declare module PlayFabEconomyModels { } + export interface RedeemAppleAppStoreInventoryItemsRequest extends PlayFabModule.IPlayFabRequestCommon { + /** The id of the entity's collection to perform this action on. (Default="default") */ + CollectionId?: string; + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** The entity to perform this action on. */ + Entity?: EntityKey; + /** The Idempotency ID for this request. */ + IdempotencyId?: string; + /** The receipt provided by the Apple marketplace upon successful purchase. */ + Receipt?: string; + + } + + export interface RedeemAppleAppStoreInventoryItemsResponse extends PlayFabModule.IPlayFabResultCommon { + /** The list of failed redemptions from the external marketplace. */ + Failed?: RedemptionFailure[]; + /** The list of successful redemptions from the external marketplace. */ + Succeeded?: RedemptionSuccess[]; + /** The Transaction IDs associated with the inventory modifications */ + TransactionIds?: string[]; + + } + + export interface RedeemGooglePlayInventoryItemsRequest extends PlayFabModule.IPlayFabRequestCommon { + /** The id of the entity's collection to perform this action on. (Default="default") */ + CollectionId?: string; + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** The entity to perform this action on. */ + Entity?: EntityKey; + /** The Idempotency ID for this request. */ + IdempotencyId?: string; + /** The list of purchases to redeem */ + Purchases?: GooglePlayProductPurchase[]; + + } + + export interface RedeemGooglePlayInventoryItemsResponse extends PlayFabModule.IPlayFabResultCommon { + /** The list of failed redemptions from the external marketplace. */ + Failed?: RedemptionFailure[]; + /** The list of successful redemptions from the external marketplace. */ + Succeeded?: RedemptionSuccess[]; + /** The Transaction IDs associated with the inventory modifications */ + TransactionIds?: string[]; + + } + + export interface RedeemMicrosoftStoreInventoryItemsRequest extends PlayFabModule.IPlayFabRequestCommon { + /** The id of the entity's collection to perform this action on. (Default="default") */ + CollectionId?: string; + /** The OneStore Collections Id Key used for AAD authentication. */ + CollectionsIdKey?: string; + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** The entity to perform this action on. */ + Entity?: EntityKey; + /** The Idempotency ID for this request. */ + IdempotencyId?: string; + /** Xbox Token used for delegated business partner authentication. */ + XboxToken?: string; + + } + + export interface RedeemMicrosoftStoreInventoryItemsResponse extends PlayFabModule.IPlayFabResultCommon { + /** The list of failed redemptions from the external marketplace. */ + Failed?: RedemptionFailure[]; + /** The list of successful redemptions from the external marketplace. */ + Succeeded?: RedemptionSuccess[]; + /** The Transaction IDs associated with the inventory modifications */ + TransactionIds?: string[]; + + } + + export interface RedeemNintendoEShopInventoryItemsRequest extends PlayFabModule.IPlayFabRequestCommon { + /** The id of the entity's collection to perform this action on. (Default="default") */ + CollectionId?: string; + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** The entity to perform this action on. */ + Entity?: EntityKey; + /** The Idempotency ID for this request. */ + IdempotencyId?: string; + /** The Nintendo provided token authorizing redemption */ + NintendoServiceAccountIdToken?: string; + + } + + export interface RedeemNintendoEShopInventoryItemsResponse extends PlayFabModule.IPlayFabResultCommon { + /** The list of failed redemptions from the external marketplace. */ + Failed?: RedemptionFailure[]; + /** The list of successful redemptions from the external marketplace. */ + Succeeded?: RedemptionSuccess[]; + /** The Transaction IDs associated with the inventory modifications */ + TransactionIds?: string[]; + + } + + export interface RedeemPlayStationStoreInventoryItemsRequest extends PlayFabModule.IPlayFabRequestCommon { + /** Authorization code provided by the PlayStation OAuth provider. */ + AuthorizationCode?: string; + /** The id of the entity's collection to perform this action on. (Default="default") */ + CollectionId?: string; + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** The entity to perform this action on. */ + Entity?: EntityKey; + /** The Idempotency ID for this request. */ + IdempotencyId?: string; + /** Optional Service Label to pass into the request. */ + ServiceLabel?: string; + + } + + export interface RedeemPlayStationStoreInventoryItemsResponse extends PlayFabModule.IPlayFabResultCommon { + /** The list of failed redemptions from the external marketplace. */ + Failed?: RedemptionFailure[]; + /** The list of successful redemptions from the external marketplace. */ + Succeeded?: RedemptionSuccess[]; + /** The Transaction IDs associated with the inventory modifications */ + TransactionIds?: string[]; + + } + + export interface RedeemSteamInventoryItemsRequest extends PlayFabModule.IPlayFabRequestCommon { + /** The id of the entity's collection to perform this action on. (Default="default") */ + CollectionId?: string; + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** The entity to perform this action on. */ + Entity?: EntityKey; + /** The Idempotency ID for this request. */ + IdempotencyId?: string; + + } + + export interface RedeemSteamInventoryItemsResponse extends PlayFabModule.IPlayFabResultCommon { + /** The list of failed redemptions from the external marketplace. */ + Failed?: RedemptionFailure[]; + /** The list of successful redemptions from the external marketplace. */ + Succeeded?: RedemptionSuccess[]; + /** The Transaction IDs associated with the inventory modifications */ + TransactionIds?: string[]; + + } + + export interface RedemptionFailure { + /** The marketplace failure code. */ + FailureCode?: string; + /** The marketplace error details explaining why the offer failed to redeem. */ + FailureDetails?: string; + /** The transaction id in the external marketplace. */ + MarketplaceTransactionId?: string; + /** The ID of the offer being redeemed. */ + OfferId?: string; + + } + + export interface RedemptionSuccess { + /** The transaction id in the external marketplace. */ + MarketplaceTransactionId?: string; + /** The ID of the offer being redeemed. */ + OfferId?: string; + /** The timestamp for when the redeem was completed. */ + SuccessTimestamp: string; + + } + export interface ReportItemRequest extends PlayFabModule.IPlayFabRequestCommon { /** An alternate ID associated with this item. */ AlternateId?: CatalogAlternateId; @@ -766,6 +1648,8 @@ declare module PlayFabEconomyModels { /** Star rating associated with this review. */ Rating: number; /** The ID of the author of the review. */ + ReviewerEntity?: EntityKey; + /** Deprecated. Use ReviewerEntity instead. This property will be removed in a future release. */ ReviewerId?: string; /** The ID of the review. */ ReviewId?: string; @@ -832,6 +1716,8 @@ declare module PlayFabEconomyModels { * be returned. */ Select?: string; + /** The store to restrict the search request to. */ + Store?: StoreReference; } @@ -862,10 +1748,14 @@ declare module PlayFabEconomyModels { } export interface StoreDetails { + /** The options for the filter in filter-based stores. These options are mutually exclusive with item references. */ + FilterOptions?: FilterOptions; + /** The global prices utilized in the store. These options are mutually exclusive with price options in item references. */ + PriceOptionsOverride?: CatalogPriceOptionsOverride; } - export interface StoreInfo { + export interface StoreReference { /** An alternate ID of the store. */ AlternateId?: CatalogAlternateId; /** The unique ID of the store. */ @@ -899,6 +1789,61 @@ declare module PlayFabEconomyModels { } + export interface SubtractInventoryItemsOperation { + /** The amount to subtract from the current item amount. */ + Amount: number; + /** + * Indicates whether stacks reduced to an amount of 0 during the request should be deleted from the inventory. (Default = + * false). + */ + DeleteEmptyStacks: boolean; + /** The inventory item the operation applies to. */ + Item?: InventoryItemReference; + + } + + export interface SubtractInventoryItemsRequest extends PlayFabModule.IPlayFabRequestCommon { + /** The amount to add for the current item. */ + Amount: number; + /** The id of the entity's collection to perform this action on. (Default="default") */ + CollectionId?: string; + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** + * Indicates whether stacks reduced to an amount of 0 during the request should be deleted from the inventory. + * (Default=false) + */ + DeleteEmptyStacks: boolean; + /** The entity to perform this action on. */ + Entity?: EntityKey; + /** The Idempotency ID for this request. */ + IdempotencyId?: string; + /** The inventory item the request applies to. */ + Item?: InventoryItemReference; + /** A list of Items to modify. */ + Items?: InventoryItem[]; + /** Indicates if the full inventory should be returned. */ + ReturnInventory: boolean; + + } + + export interface SubtractInventoryItemsResponse extends PlayFabModule.IPlayFabResultCommon { + /** The idempotency id used in the request. */ + IdempotencyId?: string; + /** + * Details of the current inventory items. Null if ReturnInventory was set to false in request or InventoryTooLarge is set + * to true in response. + */ + InventoryItems?: InventoryItem[]; + /** Whether the number of inventory items is too large to be returned. */ + InventoryTooLarge: boolean; + /** The ids of transactions that occurred as a result of the request. */ + TransactionIds?: string[]; + /** The updated items for this request. */ + UpdatedItems?: InventoryItem[]; + + } + export interface TakedownItemReviewsRequest extends PlayFabModule.IPlayFabRequestCommon { /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ CustomTags?: { [key: string]: string | null }; @@ -911,6 +1856,58 @@ declare module PlayFabEconomyModels { } + export interface TransferInventoryItemsOperation { + /** The amount to transfer. */ + Amount: number; + /** + * Indicates whether stacks reduced to an amount of 0 during the operation should be deleted from the inventory. (Default = + * false) + */ + DeleteEmptyStacks: boolean; + /** The inventory item the operation is transferring from. */ + GivingItem?: InventoryItemReference; + /** The inventory item the operation is transferring to. */ + ReceivingItem?: InventoryItemReference; + + } + + export interface TransferInventoryItemsRequest extends PlayFabModule.IPlayFabRequestCommon { + /** The amount to transfer . */ + Amount: number; + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** + * Indicates whether stacks reduced to an amount of 0 during the request should be deleted from the inventory. (Default = + * false) + */ + DeleteEmptyStacks: boolean; + /** The inventory collection id the request is transferring from. (Default="default") */ + GivingCollectionId?: string; + /** The entity the request is transferring from. Set to the caller by default. */ + GivingEntity?: EntityKey; + /** The inventory item the request is transferring from. */ + GivingItem?: InventoryItemReference; + /** The idempotency id for the request. */ + IdempotencyId?: string; + /** The inventory collection id the request is transferring to. (Default="default") */ + ReceivingCollectionId?: string; + /** The entity the request is transferring to. Set to the caller by default. */ + ReceivingEntity?: EntityKey; + /** The inventory item the request is transferring to. */ + ReceivingItem?: InventoryItemReference; + + } + + export interface TransferInventoryItemsResponse extends PlayFabModule.IPlayFabResultCommon { + /** The ids of transactions that occurred as a result of the request's giving action. */ + GivingTransactionIds?: string[]; + /** The idempotency id for the request. */ + IdempotencyId?: string; + /** The ids of transactions that occurred as a result of the request's receiving action. */ + ReceivingTransactionIds?: string[]; + + } + export interface UpdateCatalogConfigRequest extends PlayFabModule.IPlayFabRequestCommon { /** The updated catalog configuration. */ Config?: CatalogConfig; @@ -939,6 +1936,47 @@ declare module PlayFabEconomyModels { } + export interface UpdateInventoryItemsOperation { + /** The inventory item to update with the specified values. */ + Item?: InventoryItem; + + } + + export interface UpdateInventoryItemsRequest extends PlayFabModule.IPlayFabRequestCommon { + /** The id of the entity's collection to perform this action on. (Default="default") */ + CollectionId?: string; + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** The entity to perform this action on. */ + Entity?: EntityKey; + /** The Idempotency ID for this request. */ + IdempotencyId?: string; + /** The inventory item to update with the specified values. */ + Item?: InventoryItem; + /** A list of Items to modify. */ + Items?: InventoryItem[]; + /** Indicates if the full inventory should be returned. */ + ReturnInventory: boolean; + + } + + export interface UpdateInventoryItemsResponse extends PlayFabModule.IPlayFabResultCommon { + /** The idempotency id used in the request. */ + IdempotencyId?: string; + /** + * Details of the current inventory items. Null if ReturnInventory was set to false in request or InventoryTooLarge is set + * to true in response. + */ + InventoryItems?: InventoryItem[]; + /** Whether the number of inventory items is too large to be returned. */ + InventoryTooLarge: boolean; + /** The ids of transactions that occurred as a result of the request. */ + TransactionIds?: string[]; + /** The updated items for this request. */ + UpdatedItems?: InventoryItem[]; + + } + export interface UploadInfo { /** Name of the file to be uploaded. */ FileName?: string; diff --git a/PlayFabSdk/src/Typings/PlayFab/PlayFabExperimentationApi.d.ts b/PlayFabSdk/src/Typings/PlayFab/PlayFabExperimentationApi.d.ts index 5bbcc129..9b6f778f 100644 --- a/PlayFabSdk/src/Typings/PlayFab/PlayFabExperimentationApi.d.ts +++ b/PlayFabSdk/src/Typings/PlayFab/PlayFabExperimentationApi.d.ts @@ -75,6 +75,7 @@ declare module PlayFabExperimentationModule { declare module PlayFabExperimentationModels { type AnalysisTaskState = "Waiting" + | "ReadyForSubmission" | "SubmittingToPipeline" | "Running" @@ -211,11 +212,13 @@ declare module PlayFabExperimentationModels { } type ExperimentState = "New" + | "Started" | "Stopped" | "Deleted"; type ExperimentType = "Active" + | "Snapshot"; export interface GetExclusionGroupsRequest extends PlayFabModule.IPlayFabRequestCommon { diff --git a/PlayFabSdk/src/Typings/PlayFab/PlayFabGroupsApi.d.ts b/PlayFabSdk/src/Typings/PlayFab/PlayFabGroupsApi.d.ts index 6367ab0a..3d270c72 100644 --- a/PlayFabSdk/src/Typings/PlayFab/PlayFabGroupsApi.d.ts +++ b/PlayFabSdk/src/Typings/PlayFab/PlayFabGroupsApi.d.ts @@ -547,6 +547,7 @@ declare module PlayFabGroupsModels { } type OperationTypes = "Created" + | "Updated" | "Deleted" | "None"; diff --git a/PlayFabSdk/src/Typings/PlayFab/PlayFabMultiplayerApi.d.ts b/PlayFabSdk/src/Typings/PlayFab/PlayFabMultiplayerApi.d.ts index 8c4868cf..84c97113 100644 --- a/PlayFabSdk/src/Typings/PlayFab/PlayFabMultiplayerApi.d.ts +++ b/PlayFabSdk/src/Typings/PlayFab/PlayFabMultiplayerApi.d.ts @@ -419,6 +419,7 @@ declare module PlayFabMultiplayerModule { declare module PlayFabMultiplayerModels { type AccessPolicy = "Public" + | "Friends" | "Private"; @@ -447,16 +448,20 @@ declare module PlayFabMultiplayerModels { } type AttributeMergeFunction = "Min" + | "Max" | "Average"; type AttributeNotSpecifiedBehavior = "UseDefault" + | "MatchAny"; type AttributeSource = "User" + | "PlayerEntity"; type AzureRegion = "AustraliaEast" + | "AustraliaSoutheast" | "BrazilSouth" | "CentralUs" @@ -481,6 +486,7 @@ declare module PlayFabMultiplayerModels { | "UkSouth"; type AzureVmFamily = "A" + | "Av2" | "Dv2" | "Dv3" @@ -500,6 +506,7 @@ declare module PlayFabMultiplayerModels { | "HBv3"; type AzureVmSize = "Standard_A1" + | "Standard_A2" | "Standard_A3" | "Standard_A4" @@ -675,6 +682,7 @@ declare module PlayFabMultiplayerModels { } type CancellationReason = "Requested" + | "Internal" | "Timeout"; @@ -734,6 +742,7 @@ declare module PlayFabMultiplayerModels { } type ContainerFlavor = "ManagedWindowsServerCore" + | "CustomLinux" | "ManagedWindowsServerCorePreview" | "Invalid"; @@ -1816,12 +1825,8 @@ declare module PlayFabMultiplayerModels { } export interface GetMultiplayerServerDetailsRequest extends PlayFabModule.IPlayFabRequestCommon { - /** The guid string build ID of the multiplayer server to get details for. */ - BuildId?: string; /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ CustomTags?: { [key: string]: string | null }; - /** The region the multiplayer server is located in to get details for. */ - Region?: string; /** * The title generated guid string session ID of the multiplayer server to get details for. This is to keep track of * multiplayer server sessions. @@ -2597,6 +2602,7 @@ declare module PlayFabMultiplayerModels { } type MembershipLock = "Unlocked" + | "Locked"; export interface MonitoringApplicationConfiguration { @@ -2642,6 +2648,7 @@ declare module PlayFabMultiplayerModels { } type OsPlatform = "Windows" + | "Linux"; export interface OverrideDouble { @@ -2657,6 +2664,7 @@ declare module PlayFabMultiplayerModels { } type OwnerMigrationPolicy = "None" + | "Automatic" | "Manual" | "Server"; @@ -2688,6 +2696,7 @@ declare module PlayFabMultiplayerModels { } type ProtocolType = "TCP" + | "UDP"; export interface QosServer { @@ -2892,6 +2901,7 @@ declare module PlayFabMultiplayerModels { } type ServerType = "Container" + | "Process"; export interface SetIntersectionRule { @@ -3057,6 +3067,7 @@ declare module PlayFabMultiplayerModels { } type SubscriptionType = "LobbyChange" + | "LobbyInvite"; export interface TeamDifferenceRule { @@ -3118,6 +3129,7 @@ declare module PlayFabMultiplayerModels { } type TitleMultiplayerServerEnabledStatus = "Initializing" + | "Enabled" | "Disabled"; diff --git a/PlayFabSdk/src/Typings/PlayFab/PlayFabProfilesApi.d.ts b/PlayFabSdk/src/Typings/PlayFab/PlayFabProfilesApi.d.ts index 8fba427b..2d3baf15 100644 --- a/PlayFabSdk/src/Typings/PlayFab/PlayFabProfilesApi.d.ts +++ b/PlayFabSdk/src/Typings/PlayFab/PlayFabProfilesApi.d.ts @@ -46,6 +46,7 @@ declare module PlayFabProfilesModule { declare module PlayFabProfilesModels { type EffectType = "Allow" + | "Deny"; export interface EntityDataObject { @@ -246,6 +247,7 @@ declare module PlayFabProfilesModels { } type OperationTypes = "Created" + | "Updated" | "Deleted" | "None"; diff --git a/PlayFabSdk/src/Typings/PlayFab/PlayFabServerApi.d.ts b/PlayFabSdk/src/Typings/PlayFab/PlayFabServerApi.d.ts index c9459aec..818a5fe4 100644 --- a/PlayFabSdk/src/Typings/PlayFab/PlayFabServerApi.d.ts +++ b/PlayFabSdk/src/Typings/PlayFab/PlayFabServerApi.d.ts @@ -400,6 +400,16 @@ declare module PlayFabServerModule { * https://docs.microsoft.com/rest/api/playfab/server/player-item-management/grantitemstousers */ GrantItemsToUsers(request: PlayFabServerModels.GrantItemsToUsersRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; + /** + * Links the Nintendo account associated with the token to the user's PlayFab account + * https://docs.microsoft.com/rest/api/playfab/server/account-management/linknintendoserviceaccount + */ + LinkNintendoServiceAccount(request: PlayFabServerModels.LinkNintendoServiceAccountRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; + /** + * Links the NintendoSwitchDeviceId to the user's PlayFab account + * https://docs.microsoft.com/rest/api/playfab/server/account-management/linknintendoswitchdeviceid + */ + LinkNintendoSwitchDeviceId(request: PlayFabServerModels.LinkNintendoSwitchDeviceIdRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; /** * Links the PlayStation :tm: Network account associated with the provided access code to the user's PlayFab account * https://docs.microsoft.com/rest/api/playfab/server/account-management/linkpsnaccount @@ -616,7 +626,17 @@ declare module PlayFabServerModule { */ SubtractUserVirtualCurrency(request: PlayFabServerModels.SubtractUserVirtualCurrencyRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; /** - * Unlinks the related PSN account from the user's PlayFab account + * Unlinks the related Nintendo account from the user's PlayFab account + * https://docs.microsoft.com/rest/api/playfab/server/account-management/unlinknintendoserviceaccount + */ + UnlinkNintendoServiceAccount(request: PlayFabServerModels.UnlinkNintendoServiceAccountRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; + /** + * Unlinks the related NintendoSwitchDeviceId from the user's PlayFab account + * https://docs.microsoft.com/rest/api/playfab/server/account-management/unlinknintendoswitchdeviceid + */ + UnlinkNintendoSwitchDeviceId(request: PlayFabServerModels.UnlinkNintendoSwitchDeviceIdRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; + /** + * Unlinks the related PlayStation :tm: Network account from the user's PlayFab account * https://docs.microsoft.com/rest/api/playfab/server/account-management/unlinkpsnaccount */ UnlinkPSNAccount(request: PlayFabServerModels.UnlinkPSNAccountRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; @@ -916,8 +936,6 @@ declare module PlayFabServerModels { DurationInHours?: number; /** IP address to be banned. May affect multiple players. */ IPAddress?: string; - /** MAC address to be banned. May affect multiple players. */ - MACAddress?: string; /** Unique PlayFab assigned ID of the user on whom the operation will be performed. */ PlayFabId: string; /** The reason for this ban. Maximum 140 characters. */ @@ -1082,6 +1100,7 @@ declare module PlayFabServerModels { } type CloudScriptRevisionOption = "Live" + | "Latest" | "Specific"; @@ -1128,6 +1147,7 @@ declare module PlayFabServerModels { } type ContinentCode = "AF" + | "AN" | "AS" | "EU" @@ -1136,6 +1156,7 @@ declare module PlayFabServerModels { | "SA"; type CountryCode = "AF" + | "AX" | "AL" | "DZ" @@ -1398,6 +1419,7 @@ declare module PlayFabServerModels { } type Currency = "AED" + | "AFN" | "ALL" | "AMD" @@ -1618,6 +1640,7 @@ declare module PlayFabServerModels { } type EmailVerificationStatus = "Unverified" + | "Pending" | "Confirmed"; @@ -1752,7 +1775,10 @@ declare module PlayFabServerModels { GameCenterInfo?: UserGameCenterInfo; /** The profile of the user, if requested. */ Profile?: PlayerProfileModel; - /** Available PSN information, if the user and PlayFab friend are both connected to PSN. */ + /** + * Available PlayStation :tm: Network information, if the user and PlayFab friend are both connected to PlayStation :tm: + * Network. + */ PSNInfo?: UserPsnInfo; /** Available Steam information (if the user and PlayFab friend are also connected in Steam). */ SteamInfo?: UserSteamInfo; @@ -1768,9 +1794,11 @@ declare module PlayFabServerModels { } type GameInstanceState = "Open" + | "Closed"; type GenericErrorCodes = "Success" + | "UnkownError" | "InvalidParams" | "AccountNotFound" @@ -2393,6 +2421,7 @@ declare module PlayFabServerModels { | "PartyVersionNotFound" | "MultiplayerServerBuildReferencedByMatchmakingQueue" | "MultiplayerServerBuildReferencedByBuildAlias" + | "MultiplayerServerBuildAliasReferencedByMatchmakingQueue" | "ExperimentationExperimentStopped" | "ExperimentationExperimentRunning" | "ExperimentationExperimentNotFound" @@ -3034,15 +3063,15 @@ declare module PlayFabServerModels { } export interface GetPlayFabIDsFromPSNAccountIDsRequest extends PlayFabModule.IPlayFabRequestCommon { - /** Id of the PSN issuer environment. If null, defaults to production environment. */ + /** Id of the PlayStation :tm: Network issuer environment. If null, defaults to production environment. */ IssuerId?: number; - /** Array of unique PlayStation Network identifiers for which the title needs to get PlayFab identifiers. */ + /** Array of unique PlayStation :tm: Network identifiers for which the title needs to get PlayFab identifiers. */ PSNAccountIDs: string[]; } export interface GetPlayFabIDsFromPSNAccountIDsResult extends PlayFabModule.IPlayFabResultCommon { - /** Mapping of PlayStation Network identifiers to PlayFab identifiers. */ + /** Mapping of PlayStation :tm: Network identifiers to PlayFab identifiers. */ Data?: PSNAccountPlayFabIdPair[]; } @@ -3080,7 +3109,7 @@ declare module PlayFabServerModels { } export interface GetPlayFabIDsFromXboxLiveIDsResult extends PlayFabModule.IPlayFabResultCommon { - /** Mapping of PlayStation Network identifiers to PlayFab identifiers. */ + /** Mapping of Xbox Live identifiers to PlayFab identifiers. */ Data?: XboxLiveAccountPlayFabIdPair[]; } @@ -3494,18 +3523,49 @@ declare module PlayFabServerModels { } + export interface LinkNintendoServiceAccountRequest extends PlayFabModule.IPlayFabRequestCommon { + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** If another user is already linked to a specific Nintendo Switch account, unlink the other user and re-link. */ + ForceLink?: boolean; + /** + * The JSON Web token (JWT) returned by Nintendo after login. Used to validate the request and find the user ID (Nintendo + * Switch subject) to link with. + */ + IdentityToken: string; + /** Unique PlayFab assigned ID of the user on whom the operation will be performed. */ + PlayFabId: string; + + } + + export interface LinkNintendoSwitchDeviceIdRequest extends PlayFabModule.IPlayFabRequestCommon { + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** If another user is already linked to the Nintendo Switch Device ID, unlink the other user and re-link. */ + ForceLink?: boolean; + /** Nintendo Switch unique identifier for the user's device. */ + NintendoSwitchDeviceId: string; + /** Unique PlayFab assigned ID of the user on whom the operation will be performed. */ + PlayFabId: string; + + } + + export interface LinkNintendoSwitchDeviceIdResult extends PlayFabModule.IPlayFabResultCommon { + + } + export interface LinkPSNAccountRequest extends PlayFabModule.IPlayFabRequestCommon { - /** Authentication code provided by the PlayStation Network. */ + /** Authentication code provided by the PlayStation :tm: Network. */ AuthCode: string; /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ CustomTags?: { [key: string]: string | null }; /** If another user is already linked to the account, unlink the other user and re-link. */ ForceLink?: boolean; - /** Id of the PSN issuer environment. If null, defaults to production environment. */ + /** Id of the PlayStation :tm: Network issuer environment. If null, defaults to production environment. */ IssuerId?: number; /** Unique PlayFab assigned ID of the user on whom the operation will be performed. */ PlayFabId: string; - /** Redirect URI supplied to PSN when requesting an auth code */ + /** Redirect URI supplied to PlayStation :tm: Network when requesting an auth code */ RedirectUri: string; } @@ -3581,6 +3641,7 @@ declare module PlayFabServerModels { } type LoginIdentityProvider = "Unknown" + | "PlayFab" | "Custom" | "GameCenter" @@ -3804,6 +3865,7 @@ declare module PlayFabServerModels { } type PlayerConnectionState = "Unassigned" + | "Connecting" | "Participating" | "Participated"; @@ -4012,9 +4074,12 @@ declare module PlayFabServerModels { } export interface PSNAccountPlayFabIdPair { - /** Unique PlayFab identifier for a user, or null if no PlayFab account is linked to the PlayStation Network identifier. */ + /** + * Unique PlayFab identifier for a user, or null if no PlayFab account is linked to the PlayStation :tm: Network + * identifier. + */ PlayFabId?: string; - /** Unique PlayStation Network identifier for a user. */ + /** Unique PlayStation :tm: Network identifier for a user. */ PSNAccountId?: string; } @@ -4036,6 +4101,7 @@ declare module PlayFabServerModels { } type PushNotificationPlatform = "ApplePushNotificationService" + | "GoogleCloudMessaging"; export interface PushNotificationRegistration { @@ -4115,6 +4181,7 @@ declare module PlayFabServerModels { } type Region = "USCentral" + | "USEast" | "EUWest" | "Singapore" @@ -4232,6 +4299,7 @@ declare module PlayFabServerModels { } type ResultTableNodeType = "ItemId" + | "TableId"; export interface RevokeAllBansForUserRequest extends PlayFabModule.IPlayFabRequestCommon { @@ -4540,6 +4608,7 @@ declare module PlayFabServerModels { } type SourceType = "Admin" + | "BackEnd" | "GameClient" | "GameServer" @@ -4642,6 +4711,7 @@ declare module PlayFabServerModels { } type SubscriptionProviderStatus = "NoError" + | "Cancelled" | "UnknownError" | "BillingError" @@ -4683,6 +4753,7 @@ declare module PlayFabServerModels { } type TitleActivationStatus = "None" + | "ActivatedTitleKey" | "PendingSteam" | "ActivatedSteam" @@ -4716,6 +4787,28 @@ declare module PlayFabServerModels { } + export interface UnlinkNintendoServiceAccountRequest extends PlayFabModule.IPlayFabRequestCommon { + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** Unique PlayFab assigned ID of the user on whom the operation will be performed. */ + PlayFabId: string; + + } + + export interface UnlinkNintendoSwitchDeviceIdRequest extends PlayFabModule.IPlayFabRequestCommon { + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** Nintendo Switch Device identifier for the user. If not specified, the most recently signed in device ID will be used. */ + NintendoSwitchDeviceId?: string; + /** Unique PlayFab assigned ID of the user on whom the operation will be performed. */ + PlayFabId: string; + + } + + export interface UnlinkNintendoSwitchDeviceIdResult extends PlayFabModule.IPlayFabResultCommon { + + } + export interface UnlinkPSNAccountRequest extends PlayFabModule.IPlayFabRequestCommon { /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ CustomTags?: { [key: string]: string | null }; @@ -4822,8 +4915,6 @@ declare module PlayFabServerModels { Expires?: string; /** The updated IP address for the ban. Null for no change. */ IPAddress?: string; - /** The updated MAC address for the ban. Null for no change. */ - MACAddress?: string; /** Whether to make this ban permanent. Set to true to make this ban permanent. This will not modify Active state. */ Permanent?: boolean; /** The updated reason for the ban to be updated. Maximum 140 characters. Null for no change. */ @@ -5035,7 +5126,7 @@ declare module PlayFabServerModels { PlayFabId?: string; /** Personal information for the user which is considered more sensitive */ PrivateInfo?: UserPrivateAccountInfo; - /** User PSN account information, if a PSN account has been linked */ + /** User PlayStation :tm: Network account information, if a PlayStation :tm: Network account has been linked */ PsnInfo?: UserPsnInfo; /** User Steam information, if a Steam account has been linked */ SteamInfo?: UserSteamInfo; @@ -5069,6 +5160,7 @@ declare module PlayFabServerModels { } type UserDataPermission = "Private" + | "Public"; export interface UserDataRecord { @@ -5165,6 +5257,7 @@ declare module PlayFabServerModels { } type UserOrigination = "Organic" + | "Steam" | "Google" | "Amazon" @@ -5196,9 +5289,9 @@ declare module PlayFabServerModels { } export interface UserPsnInfo { - /** PSN account ID */ + /** PlayStation :tm: Network account ID */ PsnAccountId?: string; - /** PSN online ID */ + /** PlayStation :tm: Network online ID */ PsnOnlineId?: string; } diff --git a/PlayFabTestingExample/src/PlayFab/PlayFabAdminApi.js b/PlayFabTestingExample/src/PlayFab/PlayFabAdminApi.js index 46a3e979..4ee2e9fb 100644 --- a/PlayFabTestingExample/src/PlayFab/PlayFabAdminApi.js +++ b/PlayFabTestingExample/src/PlayFab/PlayFabAdminApi.js @@ -14,9 +14,9 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { entityToken: null, - sdkVersion: "1.124.220816", + sdkVersion: "1.126.220907", requestGetParams: { - sdk: "JavaScriptSDK-1.124.220816" + sdk: "JavaScriptSDK-1.126.220907" }, sessionTicket: null, verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this @@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) { } } -PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; -PlayFab.sdkVersion = "1.124.220816"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_115"; +PlayFab.sdkVersion = "1.126.220907"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabTestingExample/src/PlayFab/PlayFabAuthenticationApi.js b/PlayFabTestingExample/src/PlayFab/PlayFabAuthenticationApi.js index 69f3b621..f54c8708 100644 --- a/PlayFabTestingExample/src/PlayFab/PlayFabAuthenticationApi.js +++ b/PlayFabTestingExample/src/PlayFab/PlayFabAuthenticationApi.js @@ -14,9 +14,9 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { entityToken: null, - sdkVersion: "1.124.220816", + sdkVersion: "1.126.220907", requestGetParams: { - sdk: "JavaScriptSDK-1.124.220816" + sdk: "JavaScriptSDK-1.126.220907" }, sessionTicket: null, verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this @@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) { } } -PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; -PlayFab.sdkVersion = "1.124.220816"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_115"; +PlayFab.sdkVersion = "1.126.220907"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabTestingExample/src/PlayFab/PlayFabClientApi.js b/PlayFabTestingExample/src/PlayFab/PlayFabClientApi.js index b5987795..1f1e3255 100644 --- a/PlayFabTestingExample/src/PlayFab/PlayFabClientApi.js +++ b/PlayFabTestingExample/src/PlayFab/PlayFabClientApi.js @@ -14,9 +14,9 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { entityToken: null, - sdkVersion: "1.124.220816", + sdkVersion: "1.126.220907", requestGetParams: { - sdk: "JavaScriptSDK-1.124.220816" + sdk: "JavaScriptSDK-1.126.220907" }, sessionTicket: null, verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this @@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) { } } -PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; -PlayFab.sdkVersion = "1.124.220816"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_115"; +PlayFab.sdkVersion = "1.126.220907"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabTestingExample/src/PlayFab/PlayFabCloudScriptApi.js b/PlayFabTestingExample/src/PlayFab/PlayFabCloudScriptApi.js index e895287c..fc8363ef 100644 --- a/PlayFabTestingExample/src/PlayFab/PlayFabCloudScriptApi.js +++ b/PlayFabTestingExample/src/PlayFab/PlayFabCloudScriptApi.js @@ -14,9 +14,9 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { entityToken: null, - sdkVersion: "1.124.220816", + sdkVersion: "1.126.220907", requestGetParams: { - sdk: "JavaScriptSDK-1.124.220816" + sdk: "JavaScriptSDK-1.126.220907" }, sessionTicket: null, verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this @@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) { } } -PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; -PlayFab.sdkVersion = "1.124.220816"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_115"; +PlayFab.sdkVersion = "1.126.220907"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabTestingExample/src/PlayFab/PlayFabDataApi.js b/PlayFabTestingExample/src/PlayFab/PlayFabDataApi.js index cf0bc3f2..e924f8be 100644 --- a/PlayFabTestingExample/src/PlayFab/PlayFabDataApi.js +++ b/PlayFabTestingExample/src/PlayFab/PlayFabDataApi.js @@ -14,9 +14,9 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { entityToken: null, - sdkVersion: "1.124.220816", + sdkVersion: "1.126.220907", requestGetParams: { - sdk: "JavaScriptSDK-1.124.220816" + sdk: "JavaScriptSDK-1.126.220907" }, sessionTicket: null, verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this @@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) { } } -PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; -PlayFab.sdkVersion = "1.124.220816"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_115"; +PlayFab.sdkVersion = "1.126.220907"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabTestingExample/src/PlayFab/PlayFabEconomyApi.js b/PlayFabTestingExample/src/PlayFab/PlayFabEconomyApi.js index 4be14cc6..6263ca8b 100644 --- a/PlayFabTestingExample/src/PlayFab/PlayFabEconomyApi.js +++ b/PlayFabTestingExample/src/PlayFab/PlayFabEconomyApi.js @@ -14,9 +14,9 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { entityToken: null, - sdkVersion: "1.124.220816", + sdkVersion: "1.126.220907", requestGetParams: { - sdk: "JavaScriptSDK-1.124.220816" + sdk: "JavaScriptSDK-1.126.220907" }, sessionTicket: null, verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this @@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) { } } -PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; -PlayFab.sdkVersion = "1.124.220816"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_115"; +PlayFab.sdkVersion = "1.126.220907"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; @@ -241,6 +241,10 @@ PlayFab.EconomyApi = { PlayFab._internalSettings.entityToken = null; }, + AddInventoryItems: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Inventory/AddInventoryItems", request, "X-EntityToken", callback, customData, extraHeaders); + }, + CreateDraftItem: function (request, callback, customData, extraHeaders) { return PlayFab._internalSettings.ExecuteRequestWrapper("/Catalog/CreateDraftItem", request, "X-EntityToken", callback, customData, extraHeaders); }, @@ -253,10 +257,22 @@ PlayFab.EconomyApi = { return PlayFab._internalSettings.ExecuteRequestWrapper("/Catalog/DeleteEntityItemReviews", request, "X-EntityToken", callback, customData, extraHeaders); }, + DeleteInventoryCollection: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Inventory/DeleteInventoryCollection", request, "X-EntityToken", callback, customData, extraHeaders); + }, + + DeleteInventoryItems: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Inventory/DeleteInventoryItems", request, "X-EntityToken", callback, customData, extraHeaders); + }, + DeleteItem: function (request, callback, customData, extraHeaders) { return PlayFab._internalSettings.ExecuteRequestWrapper("/Catalog/DeleteItem", request, "X-EntityToken", callback, customData, extraHeaders); }, + ExecuteInventoryOperations: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Inventory/ExecuteInventoryOperations", request, "X-EntityToken", callback, customData, extraHeaders); + }, + GetCatalogConfig: function (request, callback, customData, extraHeaders) { return PlayFab._internalSettings.ExecuteRequestWrapper("/Catalog/GetCatalogConfig", request, "X-EntityToken", callback, customData, extraHeaders); }, @@ -277,10 +293,22 @@ PlayFab.EconomyApi = { return PlayFab._internalSettings.ExecuteRequestWrapper("/Catalog/GetEntityItemReview", request, "X-EntityToken", callback, customData, extraHeaders); }, + GetInventoryCollectionIds: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Inventory/GetInventoryCollectionIds", request, "X-EntityToken", callback, customData, extraHeaders); + }, + + GetInventoryItems: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Inventory/GetInventoryItems", request, "X-EntityToken", callback, customData, extraHeaders); + }, + GetItem: function (request, callback, customData, extraHeaders) { return PlayFab._internalSettings.ExecuteRequestWrapper("/Catalog/GetItem", request, "X-EntityToken", callback, customData, extraHeaders); }, + GetItemContainers: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Catalog/GetItemContainers", request, "X-EntityToken", callback, customData, extraHeaders); + }, + GetItemModerationState: function (request, callback, customData, extraHeaders) { return PlayFab._internalSettings.ExecuteRequestWrapper("/Catalog/GetItemModerationState", request, "X-EntityToken", callback, customData, extraHeaders); }, @@ -301,10 +329,42 @@ PlayFab.EconomyApi = { return PlayFab._internalSettings.ExecuteRequestWrapper("/Catalog/GetItems", request, "X-EntityToken", callback, customData, extraHeaders); }, + GetMicrosoftStoreAccessTokens: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Inventory/GetMicrosoftStoreAccessTokens", request, "X-EntityToken", callback, customData, extraHeaders); + }, + PublishDraftItem: function (request, callback, customData, extraHeaders) { return PlayFab._internalSettings.ExecuteRequestWrapper("/Catalog/PublishDraftItem", request, "X-EntityToken", callback, customData, extraHeaders); }, + PurchaseInventoryItems: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Inventory/PurchaseInventoryItems", request, "X-EntityToken", callback, customData, extraHeaders); + }, + + RedeemAppleAppStoreInventoryItems: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Inventory/RedeemAppleAppStoreInventoryItems", request, "X-EntityToken", callback, customData, extraHeaders); + }, + + RedeemGooglePlayInventoryItems: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Inventory/RedeemGooglePlayInventoryItems", request, "X-EntityToken", callback, customData, extraHeaders); + }, + + RedeemMicrosoftStoreInventoryItems: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Inventory/RedeemMicrosoftStoreInventoryItems", request, "X-EntityToken", callback, customData, extraHeaders); + }, + + RedeemNintendoEShopInventoryItems: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Inventory/RedeemNintendoEShopInventoryItems", request, "X-EntityToken", callback, customData, extraHeaders); + }, + + RedeemPlayStationStoreInventoryItems: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Inventory/RedeemPlayStationStoreInventoryItems", request, "X-EntityToken", callback, customData, extraHeaders); + }, + + RedeemSteamInventoryItems: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Inventory/RedeemSteamInventoryItems", request, "X-EntityToken", callback, customData, extraHeaders); + }, + ReportItem: function (request, callback, customData, extraHeaders) { return PlayFab._internalSettings.ExecuteRequestWrapper("/Catalog/ReportItem", request, "X-EntityToken", callback, customData, extraHeaders); }, @@ -329,10 +389,18 @@ PlayFab.EconomyApi = { return PlayFab._internalSettings.ExecuteRequestWrapper("/Catalog/SubmitItemReviewVote", request, "X-EntityToken", callback, customData, extraHeaders); }, + SubtractInventoryItems: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Inventory/SubtractInventoryItems", request, "X-EntityToken", callback, customData, extraHeaders); + }, + TakedownItemReviews: function (request, callback, customData, extraHeaders) { return PlayFab._internalSettings.ExecuteRequestWrapper("/Catalog/TakedownItemReviews", request, "X-EntityToken", callback, customData, extraHeaders); }, + TransferInventoryItems: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Inventory/TransferInventoryItems", request, "X-EntityToken", callback, customData, extraHeaders); + }, + UpdateCatalogConfig: function (request, callback, customData, extraHeaders) { return PlayFab._internalSettings.ExecuteRequestWrapper("/Catalog/UpdateCatalogConfig", request, "X-EntityToken", callback, customData, extraHeaders); }, @@ -341,6 +409,10 @@ PlayFab.EconomyApi = { return PlayFab._internalSettings.ExecuteRequestWrapper("/Catalog/UpdateDraftItem", request, "X-EntityToken", callback, customData, extraHeaders); }, + UpdateInventoryItems: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Inventory/UpdateInventoryItems", request, "X-EntityToken", callback, customData, extraHeaders); + }, + }; var PlayFabEconomySDK = PlayFab.EconomyApi; diff --git a/PlayFabTestingExample/src/PlayFab/PlayFabEventsApi.js b/PlayFabTestingExample/src/PlayFab/PlayFabEventsApi.js index 8d981719..c443908b 100644 --- a/PlayFabTestingExample/src/PlayFab/PlayFabEventsApi.js +++ b/PlayFabTestingExample/src/PlayFab/PlayFabEventsApi.js @@ -14,9 +14,9 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { entityToken: null, - sdkVersion: "1.124.220816", + sdkVersion: "1.126.220907", requestGetParams: { - sdk: "JavaScriptSDK-1.124.220816" + sdk: "JavaScriptSDK-1.126.220907" }, sessionTicket: null, verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this @@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) { } } -PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; -PlayFab.sdkVersion = "1.124.220816"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_115"; +PlayFab.sdkVersion = "1.126.220907"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabTestingExample/src/PlayFab/PlayFabExperimentationApi.js b/PlayFabTestingExample/src/PlayFab/PlayFabExperimentationApi.js index ec1477ad..fc0f9900 100644 --- a/PlayFabTestingExample/src/PlayFab/PlayFabExperimentationApi.js +++ b/PlayFabTestingExample/src/PlayFab/PlayFabExperimentationApi.js @@ -14,9 +14,9 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { entityToken: null, - sdkVersion: "1.124.220816", + sdkVersion: "1.126.220907", requestGetParams: { - sdk: "JavaScriptSDK-1.124.220816" + sdk: "JavaScriptSDK-1.126.220907" }, sessionTicket: null, verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this @@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) { } } -PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; -PlayFab.sdkVersion = "1.124.220816"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_115"; +PlayFab.sdkVersion = "1.126.220907"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabTestingExample/src/PlayFab/PlayFabGroupsApi.js b/PlayFabTestingExample/src/PlayFab/PlayFabGroupsApi.js index 3e67d57f..7afba520 100644 --- a/PlayFabTestingExample/src/PlayFab/PlayFabGroupsApi.js +++ b/PlayFabTestingExample/src/PlayFab/PlayFabGroupsApi.js @@ -14,9 +14,9 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { entityToken: null, - sdkVersion: "1.124.220816", + sdkVersion: "1.126.220907", requestGetParams: { - sdk: "JavaScriptSDK-1.124.220816" + sdk: "JavaScriptSDK-1.126.220907" }, sessionTicket: null, verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this @@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) { } } -PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; -PlayFab.sdkVersion = "1.124.220816"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_115"; +PlayFab.sdkVersion = "1.126.220907"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabTestingExample/src/PlayFab/PlayFabInsightsApi.js b/PlayFabTestingExample/src/PlayFab/PlayFabInsightsApi.js index 2626480b..37b0e04d 100644 --- a/PlayFabTestingExample/src/PlayFab/PlayFabInsightsApi.js +++ b/PlayFabTestingExample/src/PlayFab/PlayFabInsightsApi.js @@ -14,9 +14,9 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { entityToken: null, - sdkVersion: "1.124.220816", + sdkVersion: "1.126.220907", requestGetParams: { - sdk: "JavaScriptSDK-1.124.220816" + sdk: "JavaScriptSDK-1.126.220907" }, sessionTicket: null, verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this @@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) { } } -PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; -PlayFab.sdkVersion = "1.124.220816"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_115"; +PlayFab.sdkVersion = "1.126.220907"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabTestingExample/src/PlayFab/PlayFabLocalizationApi.js b/PlayFabTestingExample/src/PlayFab/PlayFabLocalizationApi.js index 4785bf61..6c0fb346 100644 --- a/PlayFabTestingExample/src/PlayFab/PlayFabLocalizationApi.js +++ b/PlayFabTestingExample/src/PlayFab/PlayFabLocalizationApi.js @@ -14,9 +14,9 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { entityToken: null, - sdkVersion: "1.124.220816", + sdkVersion: "1.126.220907", requestGetParams: { - sdk: "JavaScriptSDK-1.124.220816" + sdk: "JavaScriptSDK-1.126.220907" }, sessionTicket: null, verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this @@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) { } } -PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; -PlayFab.sdkVersion = "1.124.220816"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_115"; +PlayFab.sdkVersion = "1.126.220907"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabTestingExample/src/PlayFab/PlayFabMatchmakerApi.js b/PlayFabTestingExample/src/PlayFab/PlayFabMatchmakerApi.js index c39bf38f..ff1dc12d 100644 --- a/PlayFabTestingExample/src/PlayFab/PlayFabMatchmakerApi.js +++ b/PlayFabTestingExample/src/PlayFab/PlayFabMatchmakerApi.js @@ -14,9 +14,9 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { entityToken: null, - sdkVersion: "1.124.220816", + sdkVersion: "1.126.220907", requestGetParams: { - sdk: "JavaScriptSDK-1.124.220816" + sdk: "JavaScriptSDK-1.126.220907" }, sessionTicket: null, verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this @@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) { } } -PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; -PlayFab.sdkVersion = "1.124.220816"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_115"; +PlayFab.sdkVersion = "1.126.220907"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabTestingExample/src/PlayFab/PlayFabMultiplayerApi.js b/PlayFabTestingExample/src/PlayFab/PlayFabMultiplayerApi.js index 3599adb2..966d15b0 100644 --- a/PlayFabTestingExample/src/PlayFab/PlayFabMultiplayerApi.js +++ b/PlayFabTestingExample/src/PlayFab/PlayFabMultiplayerApi.js @@ -14,9 +14,9 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { entityToken: null, - sdkVersion: "1.124.220816", + sdkVersion: "1.126.220907", requestGetParams: { - sdk: "JavaScriptSDK-1.124.220816" + sdk: "JavaScriptSDK-1.126.220907" }, sessionTicket: null, verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this @@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) { } } -PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; -PlayFab.sdkVersion = "1.124.220816"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_115"; +PlayFab.sdkVersion = "1.126.220907"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabTestingExample/src/PlayFab/PlayFabProfilesApi.js b/PlayFabTestingExample/src/PlayFab/PlayFabProfilesApi.js index 364e91f7..08a497a2 100644 --- a/PlayFabTestingExample/src/PlayFab/PlayFabProfilesApi.js +++ b/PlayFabTestingExample/src/PlayFab/PlayFabProfilesApi.js @@ -14,9 +14,9 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { entityToken: null, - sdkVersion: "1.124.220816", + sdkVersion: "1.126.220907", requestGetParams: { - sdk: "JavaScriptSDK-1.124.220816" + sdk: "JavaScriptSDK-1.126.220907" }, sessionTicket: null, verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this @@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) { } } -PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; -PlayFab.sdkVersion = "1.124.220816"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_115"; +PlayFab.sdkVersion = "1.126.220907"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabTestingExample/src/PlayFab/PlayFabServerApi.js b/PlayFabTestingExample/src/PlayFab/PlayFabServerApi.js index eecbb78a..7af34e4f 100644 --- a/PlayFabTestingExample/src/PlayFab/PlayFabServerApi.js +++ b/PlayFabTestingExample/src/PlayFab/PlayFabServerApi.js @@ -14,9 +14,9 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { entityToken: null, - sdkVersion: "1.124.220816", + sdkVersion: "1.126.220907", requestGetParams: { - sdk: "JavaScriptSDK-1.124.220816" + sdk: "JavaScriptSDK-1.126.220907" }, sessionTicket: null, verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this @@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) { } } -PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; -PlayFab.sdkVersion = "1.124.220816"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_115"; +PlayFab.sdkVersion = "1.126.220907"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; @@ -529,6 +529,14 @@ PlayFab.ServerApi = { return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GrantItemsToUsers", request, "X-SecretKey", callback, customData, extraHeaders); }, + LinkNintendoServiceAccount: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/LinkNintendoServiceAccount", request, "X-SecretKey", callback, customData, extraHeaders); + }, + + LinkNintendoSwitchDeviceId: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/LinkNintendoSwitchDeviceId", request, "X-SecretKey", callback, customData, extraHeaders); + }, + LinkPSNAccount: function (request, callback, customData, extraHeaders) { return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/LinkPSNAccount", request, "X-SecretKey", callback, customData, extraHeaders); }, @@ -689,6 +697,14 @@ PlayFab.ServerApi = { return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/SubtractUserVirtualCurrency", request, "X-SecretKey", callback, customData, extraHeaders); }, + UnlinkNintendoServiceAccount: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/UnlinkNintendoServiceAccount", request, "X-SecretKey", callback, customData, extraHeaders); + }, + + UnlinkNintendoSwitchDeviceId: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/UnlinkNintendoSwitchDeviceId", request, "X-SecretKey", callback, customData, extraHeaders); + }, + UnlinkPSNAccount: function (request, callback, customData, extraHeaders) { return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/UnlinkPSNAccount", request, "X-SecretKey", callback, customData, extraHeaders); }, diff --git a/PlayFabTestingExample/src/typings/PlayFab/PlayFabAdminApi.d.ts b/PlayFabTestingExample/src/typings/PlayFab/PlayFabAdminApi.d.ts index 7c958d3d..1b46d0e4 100644 --- a/PlayFabTestingExample/src/typings/PlayFab/PlayFabAdminApi.d.ts +++ b/PlayFabTestingExample/src/typings/PlayFab/PlayFabAdminApi.d.ts @@ -769,6 +769,7 @@ declare module PlayFabAdminModels { type AuthTokenType = "Email" + export interface BanInfo { /** The active state of this ban. Expired bans may still have this value set to true but they will have no effect. */ Active: boolean; @@ -800,8 +801,6 @@ declare module PlayFabAdminModels { DurationInHours?: number; /** IP address to be banned. May affect multiple players. */ IPAddress?: string; - /** MAC address to be banned. May affect multiple players. */ - MACAddress?: string; /** Unique PlayFab assigned ID of the user on whom the operation will be performed. */ PlayFabId: string; /** The reason for this ban. Maximum 140 characters. */ @@ -948,6 +947,7 @@ declare module PlayFabAdminModels { } type ChurnRiskLevel = "NoData" + | "LowRisk" | "MediumRisk" | "HighRisk"; @@ -1004,6 +1004,7 @@ declare module PlayFabAdminModels { } type Conditionals = "Any" + | "True" | "False"; @@ -1038,6 +1039,7 @@ declare module PlayFabAdminModels { } type ContinentCode = "AF" + | "AN" | "AS" | "EU" @@ -1046,6 +1048,7 @@ declare module PlayFabAdminModels { | "SA"; type CountryCode = "AF" + | "AX" | "AL" | "DZ" @@ -1415,6 +1418,7 @@ declare module PlayFabAdminModels { } type Currency = "AED" + | "AFN" | "ALL" | "AMD" @@ -1705,6 +1709,7 @@ declare module PlayFabAdminModels { } type EffectType = "Allow" + | "Deny"; export interface EmailNotificationSegmentAction { @@ -1716,6 +1721,7 @@ declare module PlayFabAdminModels { } type EmailVerificationStatus = "Unverified" + | "Pending" | "Confirmed"; @@ -1837,6 +1843,7 @@ declare module PlayFabAdminModels { } type GameBuildStatus = "Available" + | "Validating" | "InvalidBuildPackage" | "Processing" @@ -1855,6 +1862,7 @@ declare module PlayFabAdminModels { } type GenericErrorCodes = "Success" + | "UnkownError" | "InvalidParams" | "AccountNotFound" @@ -2477,6 +2485,7 @@ declare module PlayFabAdminModels { | "PartyVersionNotFound" | "MultiplayerServerBuildReferencedByMatchmakingQueue" | "MultiplayerServerBuildReferencedByBuildAlias" + | "MultiplayerServerBuildAliasReferencedByMatchmakingQueue" | "ExperimentationExperimentStopped" | "ExperimentationExperimentRunning" | "ExperimentationExperimentNotFound" @@ -3355,6 +3364,7 @@ declare module PlayFabAdminModels { } type LoginIdentityProvider = "Unknown" + | "PlayFab" | "Custom" | "GameCenter" @@ -3774,6 +3784,7 @@ declare module PlayFabAdminModels { } type PushNotificationPlatform = "ApplePushNotificationService" + | "GoogleCloudMessaging"; export interface PushNotificationRegistration { @@ -3805,6 +3816,7 @@ declare module PlayFabAdminModels { } type PushSetupPlatform = "GCM" + | "APNS" | "APNS_SANDBOX"; @@ -3847,6 +3859,7 @@ declare module PlayFabAdminModels { } type Region = "USCentral" + | "USEast" | "EUWest" | "Singapore" @@ -3915,6 +3928,7 @@ declare module PlayFabAdminModels { } type ResolutionOutcome = "Revoke" + | "Reinstate" | "Manual"; @@ -3954,6 +3968,7 @@ declare module PlayFabAdminModels { } type ResultTableNodeType = "ItemId" + | "TableId"; export interface RevokeAllBansForUserRequest extends PlayFabModule.IPlayFabRequestCommon { @@ -4067,6 +4082,7 @@ declare module PlayFabAdminModels { } type ScheduledTaskType = "CloudScript" + | "ActionsOnPlayerSegment" | "CloudScriptAzureFunctions" | "InsightsScheduledScaling"; @@ -4127,6 +4143,7 @@ declare module PlayFabAdminModels { } type SegmentCountryCode = "AF" + | "AX" | "AL" | "DZ" @@ -4377,6 +4394,7 @@ declare module PlayFabAdminModels { | "ZW"; type SegmentCurrency = "AED" + | "AFN" | "ALL" | "AMD" @@ -4540,6 +4558,7 @@ declare module PlayFabAdminModels { | "ZWD"; type SegmentFilterComparison = "GreaterThan" + | "LessThan" | "EqualTo" | "NotEqualTo" @@ -4550,6 +4569,7 @@ declare module PlayFabAdminModels { | "NotContains"; type SegmentLoginIdentityProvider = "Unknown" + | "PlayFab" | "Custom" | "GameCenter" @@ -4596,6 +4616,7 @@ declare module PlayFabAdminModels { } type SegmentPushNotificationDevicePlatform = "ApplePushNotificationService" + | "GoogleCloudMessaging"; export interface SegmentTrigger { @@ -4764,6 +4785,7 @@ declare module PlayFabAdminModels { } type SourceType = "Admin" + | "BackEnd" | "GameClient" | "GameServer" @@ -4772,6 +4794,7 @@ declare module PlayFabAdminModels { | "API"; type StatisticAggregationMethod = "Last" + | "Min" | "Max" | "Sum"; @@ -4787,6 +4810,7 @@ declare module PlayFabAdminModels { } type StatisticResetIntervalOption = "Never" + | "Hour" | "Day" | "Week" @@ -4807,12 +4831,14 @@ declare module PlayFabAdminModels { } type StatisticVersionArchivalStatus = "NotScheduled" + | "Scheduled" | "Queued" | "InProgress" | "Complete"; type StatisticVersionStatus = "Active" + | "SnapshotPending" | "Snapshot" | "ArchivalPending" @@ -4864,6 +4890,7 @@ declare module PlayFabAdminModels { } type SubscriptionProviderStatus = "NoError" + | "Cancelled" | "UnknownError" | "BillingError" @@ -4923,6 +4950,7 @@ declare module PlayFabAdminModels { } type TaskInstanceStatus = "Succeeded" + | "Starting" | "InProgress" | "Failed" @@ -4930,6 +4958,7 @@ declare module PlayFabAdminModels { | "Stalled"; type TitleActivationStatus = "None" + | "ActivatedTitleKey" | "PendingSteam" | "ActivatedSteam" @@ -4963,8 +4992,6 @@ declare module PlayFabAdminModels { Expires?: string; /** The updated IP address for the ban. Null for no change. */ IPAddress?: string; - /** The updated MAC address for the ban. Null for no change. */ - MACAddress?: string; /** Whether to make this ban permanent. Set to true to make this ban permanent. This will not modify Active state. */ Permanent?: boolean; /** The updated reason for the ban to be updated. Maximum 140 characters. Null for no change. */ @@ -5258,7 +5285,7 @@ declare module PlayFabAdminModels { PlayFabId?: string; /** Personal information for the user which is considered more sensitive */ PrivateInfo?: UserPrivateAccountInfo; - /** User PSN account information, if a PSN account has been linked */ + /** User PlayStation :tm: Network account information, if a PlayStation :tm: Network account has been linked */ PsnInfo?: UserPsnInfo; /** User Steam information, if a Steam account has been linked */ SteamInfo?: UserSteamInfo; @@ -5292,6 +5319,7 @@ declare module PlayFabAdminModels { } type UserDataPermission = "Private" + | "Public"; export interface UserDataRecord { @@ -5388,6 +5416,7 @@ declare module PlayFabAdminModels { } type UserOrigination = "Organic" + | "Steam" | "Google" | "Amazon" @@ -5425,9 +5454,9 @@ declare module PlayFabAdminModels { } export interface UserPsnInfo { - /** PSN account ID */ + /** PlayStation :tm: Network account ID */ PsnAccountId?: string; - /** PSN online ID */ + /** PlayStation :tm: Network online ID */ PsnOnlineId?: string; } diff --git a/PlayFabTestingExample/src/typings/PlayFab/PlayFabAuthenticationApi.d.ts b/PlayFabTestingExample/src/typings/PlayFab/PlayFabAuthenticationApi.d.ts index 802c802e..6089abfe 100644 --- a/PlayFabTestingExample/src/typings/PlayFab/PlayFabAuthenticationApi.d.ts +++ b/PlayFabTestingExample/src/typings/PlayFab/PlayFabAuthenticationApi.d.ts @@ -80,10 +80,12 @@ declare module PlayFabAuthenticationModels { } type IdentifiedDeviceType = "Unknown" + | "XboxOne" | "Scarlett"; type LoginIdentityProvider = "Unknown" + | "PlayFab" | "Custom" | "GameCenter" diff --git a/PlayFabTestingExample/src/typings/PlayFab/PlayFabClientApi.d.ts b/PlayFabTestingExample/src/typings/PlayFab/PlayFabClientApi.d.ts index bcf35f35..38a170e3 100644 --- a/PlayFabTestingExample/src/typings/PlayFab/PlayFabClientApi.d.ts +++ b/PlayFabTestingExample/src/typings/PlayFab/PlayFabClientApi.d.ts @@ -661,7 +661,7 @@ declare module PlayFabClientModule { */ RedeemCoupon(request: PlayFabClientModels.RedeemCouponRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; /** - * Uses the supplied OAuth code to refresh the internally cached player PSN :tm: auth token + * Uses the supplied OAuth code to refresh the internally cached player PlayStation :tm: Network auth token * https://docs.microsoft.com/rest/api/playfab/client/platform-specific-methods/refreshpsnauthtoken */ RefreshPSNAuthToken(request: PlayFabClientModels.RefreshPSNAuthTokenRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; @@ -823,7 +823,7 @@ declare module PlayFabClientModule { */ UnlinkOpenIdConnect(request: PlayFabClientModels.UnlinkOpenIdConnectRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; /** - * Unlinks the related PSN :tm: account from the user's PlayFab account + * Unlinks the related PlayStation :tm: Network account from the user's PlayFab account * https://docs.microsoft.com/rest/api/playfab/client/account-management/unlinkpsnaccount */ UnlinkPSNAccount(request: PlayFabClientModels.UnlinkPSNAccountRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; @@ -965,6 +965,7 @@ declare module PlayFabClientModels { } type AdActivity = "Opened" + | "Closed" | "Start" | "End"; @@ -1305,6 +1306,7 @@ declare module PlayFabClientModels { } type CloudScriptRevisionOption = "Live" + | "Latest" | "Specific"; @@ -1394,7 +1396,7 @@ declare module PlayFabClientModels { CatalogVersion?: string; /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ CustomTags?: { [key: string]: string | null }; - /** Id of the PSN service label to consume entitlements from */ + /** Id of the PlayStation :tm: Network service label to consume entitlements from */ ServiceLabel: number; } @@ -1438,6 +1440,7 @@ declare module PlayFabClientModels { } type ContinentCode = "AF" + | "AN" | "AS" | "EU" @@ -1446,6 +1449,7 @@ declare module PlayFabClientModels { | "SA"; type CountryCode = "AF" + | "AX" | "AL" | "DZ" @@ -1708,6 +1712,7 @@ declare module PlayFabClientModels { } type Currency = "AED" + | "AFN" | "ALL" | "AMD" @@ -1901,6 +1906,7 @@ declare module PlayFabClientModels { } type EmailVerificationStatus = "Unverified" + | "Pending" | "Confirmed"; @@ -2016,7 +2022,10 @@ declare module PlayFabClientModels { GameCenterInfo?: UserGameCenterInfo; /** The profile of the user, if requested. */ Profile?: PlayerProfileModel; - /** Available PSN information, if the user and PlayFab friend are both connected to PSN. */ + /** + * Available PlayStation :tm: Network information, if the user and PlayFab friend are both connected to PlayStation :tm: + * Network. + */ PSNInfo?: UserPsnInfo; /** Available Steam information (if the user and PlayFab friend are also connected in Steam). */ SteamInfo?: UserSteamInfo; @@ -2076,6 +2085,7 @@ declare module PlayFabClientModels { } type GameInstanceState = "Open" + | "Closed"; export interface GameServerRegionsRequest extends PlayFabModule.IPlayFabRequestCommon { @@ -2760,15 +2770,15 @@ declare module PlayFabClientModels { } export interface GetPlayFabIDsFromPSNAccountIDsRequest extends PlayFabModule.IPlayFabRequestCommon { - /** Id of the PSN issuer environment. If null, defaults to production environment. */ + /** Id of the PlayStation :tm: Network issuer environment. If null, defaults to production environment. */ IssuerId?: number; - /** Array of unique PlayStation Network identifiers for which the title needs to get PlayFab identifiers. */ + /** Array of unique PlayStation :tm: Network identifiers for which the title needs to get PlayFab identifiers. */ PSNAccountIDs: string[]; } export interface GetPlayFabIDsFromPSNAccountIDsResult extends PlayFabModule.IPlayFabResultCommon { - /** Mapping of PlayStation Network identifiers to PlayFab identifiers. */ + /** Mapping of PlayStation :tm: Network identifiers to PlayFab identifiers. */ Data?: PSNAccountPlayFabIdPair[]; } @@ -2806,7 +2816,7 @@ declare module PlayFabClientModels { } export interface GetPlayFabIDsFromXboxLiveIDsResult extends PlayFabModule.IPlayFabResultCommon { - /** Mapping of PlayStation Network identifiers to PlayFab identifiers. */ + /** Mapping of Xbox Live identifiers to PlayFab identifiers. */ Data?: XboxLiveAccountPlayFabIdPair[]; } @@ -3340,15 +3350,15 @@ declare module PlayFabClientModels { } export interface LinkPSNAccountRequest extends PlayFabModule.IPlayFabRequestCommon { - /** Authentication code provided by the PlayStation Network. */ + /** Authentication code provided by the PlayStation :tm: Network. */ AuthCode: string; /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ CustomTags?: { [key: string]: string | null }; /** If another user is already linked to the account, unlink the other user and re-link. */ ForceLink?: boolean; - /** Id of the PSN issuer environment. If null, defaults to production environment. */ + /** Id of the PlayStation :tm: Network issuer environment. If null, defaults to production environment. */ IssuerId?: number; - /** Redirect URI supplied to PSN when requesting an auth code */ + /** Redirect URI supplied to PlayStation :tm: Network when requesting an auth code */ RedirectUri: string; } @@ -3429,6 +3439,7 @@ declare module PlayFabClientModels { } type LoginIdentityProvider = "Unknown" + | "PlayFab" | "Custom" | "GameCenter" @@ -3508,7 +3519,8 @@ declare module PlayFabClientModels { EncryptedRequest?: string; /** * The JSON Web token (JWT) returned by Apple after login. Represented as the identityToken field in the authorization - * credential payload. + * credential payload. If you choose to ignore the expiration date for identity tokens, you will receive an NotAuthorized + * error if Apple rotates the signing key. In this case, users have to login to provide a fresh identity token. */ IdentityToken: string; /** Flags for which pieces of info to return for the user. */ @@ -3817,7 +3829,7 @@ declare module PlayFabClientModels { } export interface LoginWithPSNRequest extends PlayFabModule.IPlayFabRequestCommon { - /** Auth code provided by the PSN OAuth provider. */ + /** Auth code provided by the PlayStation :tm: Network OAuth provider. */ AuthCode?: string; /** Automatically create a PlayFab account if one is not currently linked to this ID. */ CreateAccount?: boolean; @@ -3827,11 +3839,11 @@ declare module PlayFabClientModels { EncryptedRequest?: string; /** Flags for which pieces of info to return for the user. */ InfoRequestParameters?: GetPlayerCombinedInfoRequestParams; - /** Id of the PSN issuer environment. If null, defaults to production environment. */ + /** Id of the PlayStation :tm: Network issuer environment. If null, defaults to production environment. */ IssuerId?: number; /** Player secret that is used to verify API request signatures (Enterprise Only). */ PlayerSecret?: string; - /** Redirect URI supplied to PSN when requesting an auth code */ + /** Redirect URI supplied to PlayStation :tm: Network when requesting an auth code */ RedirectUri?: string; /** * Unique identifier for the title, found in the Settings > Game Properties section of the PlayFab developer site when a @@ -3961,6 +3973,7 @@ declare module PlayFabClientModels { } type MatchmakeStatus = "Complete" + | "Waiting" | "GameNotFound" | "NoAvailableSlots" @@ -4227,17 +4240,20 @@ declare module PlayFabClientModels { } export interface PlayStation5Payload { - /** An optional list of entitlement ids to query against PSN */ + /** An optional list of entitlement ids to query against PlayStation :tm: Network */ Ids?: string[]; - /** Id of the PSN service label to consume entitlements from */ + /** Id of the PlayStation :tm: Network service label to consume entitlements from */ ServiceLabel?: string; } export interface PSNAccountPlayFabIdPair { - /** Unique PlayFab identifier for a user, or null if no PlayFab account is linked to the PlayStation Network identifier. */ + /** + * Unique PlayFab identifier for a user, or null if no PlayFab account is linked to the PlayStation :tm: Network + * identifier. + */ PlayFabId?: string; - /** Unique PlayStation Network identifier for a user. */ + /** Unique PlayStation :tm: Network identifier for a user. */ PSNAccountId?: string; } @@ -4284,6 +4300,7 @@ declare module PlayFabClientModels { } type PushNotificationPlatform = "ApplePushNotificationService" + | "GoogleCloudMessaging"; export interface PushNotificationRegistrationModel { @@ -4313,16 +4330,17 @@ declare module PlayFabClientModels { } export interface RefreshPSNAuthTokenRequest extends PlayFabModule.IPlayFabRequestCommon { - /** Auth code returned by PSN OAuth system. */ + /** Auth code returned by PlayStation :tm: Network OAuth system. */ AuthCode: string; - /** Id of the PSN issuer environment. If null, defaults to production environment. */ + /** Id of the PlayStation :tm: Network issuer environment. If null, defaults to production environment. */ IssuerId?: number; - /** Redirect URI supplied to PSN when requesting an auth code */ + /** Redirect URI supplied to PlayStation :tm: Network when requesting an auth code */ RedirectUri: string; } type Region = "USCentral" + | "USEast" | "EUWest" | "Singapore" @@ -4591,6 +4609,7 @@ declare module PlayFabClientModels { } type SourceType = "Admin" + | "BackEnd" | "GameClient" | "GameServer" @@ -4717,6 +4736,7 @@ declare module PlayFabClientModels { } type SubscriptionProviderStatus = "NoError" + | "Cancelled" | "UnknownError" | "BillingError" @@ -4742,6 +4762,7 @@ declare module PlayFabClientModels { } type TitleActivationStatus = "None" + | "ActivatedTitleKey" | "PendingSteam" | "ActivatedSteam" @@ -4790,6 +4811,7 @@ declare module PlayFabClientModels { } type TradeStatus = "Invalid" + | "Opening" | "Open" | "Accepting" @@ -4798,6 +4820,7 @@ declare module PlayFabClientModels { | "Cancelled"; type TransactionStatus = "CreateCart" + | "Init" | "Approved" | "Succeeded" @@ -5227,7 +5250,7 @@ declare module PlayFabClientModels { PlayFabId?: string; /** Personal information for the user which is considered more sensitive */ PrivateInfo?: UserPrivateAccountInfo; - /** User PSN account information, if a PSN account has been linked */ + /** User PlayStation :tm: Network account information, if a PlayStation :tm: Network account has been linked */ PsnInfo?: UserPsnInfo; /** User Steam information, if a Steam account has been linked */ SteamInfo?: UserSteamInfo; @@ -5261,6 +5284,7 @@ declare module PlayFabClientModels { } type UserDataPermission = "Private" + | "Public"; export interface UserDataRecord { @@ -5357,6 +5381,7 @@ declare module PlayFabClientModels { } type UserOrigination = "Organic" + | "Steam" | "Google" | "Amazon" @@ -5388,9 +5413,9 @@ declare module PlayFabClientModels { } export interface UserPsnInfo { - /** PSN account ID */ + /** PlayStation :tm: Network account ID */ PsnAccountId?: string; - /** PSN online ID */ + /** PlayStation :tm: Network online ID */ PsnOnlineId?: string; } diff --git a/PlayFabTestingExample/src/typings/PlayFab/PlayFabCloudScriptApi.d.ts b/PlayFabTestingExample/src/typings/PlayFab/PlayFabCloudScriptApi.d.ts index dcbd5ed3..4dbdf608 100644 --- a/PlayFabTestingExample/src/typings/PlayFab/PlayFabCloudScriptApi.d.ts +++ b/PlayFabTestingExample/src/typings/PlayFab/PlayFabCloudScriptApi.d.ts @@ -87,6 +87,7 @@ declare module PlayFabCloudScriptModels { } type CloudScriptRevisionOption = "Live" + | "Latest" | "Specific"; @@ -101,6 +102,7 @@ declare module PlayFabCloudScriptModels { } type ContinentCode = "AF" + | "AN" | "AS" | "EU" @@ -109,6 +111,7 @@ declare module PlayFabCloudScriptModels { | "SA"; type CountryCode = "AF" + | "AX" | "AL" | "DZ" @@ -359,6 +362,7 @@ declare module PlayFabCloudScriptModels { | "ZW"; type EmailVerificationStatus = "Unverified" + | "Pending" | "Confirmed"; @@ -570,6 +574,7 @@ declare module PlayFabCloudScriptModels { } type LoginIdentityProvider = "Unknown" + | "PlayFab" | "Custom" | "GameCenter" @@ -740,6 +745,7 @@ declare module PlayFabCloudScriptModels { } type PushNotificationPlatform = "ApplePushNotificationService" + | "GoogleCloudMessaging"; export interface PushNotificationRegistrationModel { @@ -824,6 +830,7 @@ declare module PlayFabCloudScriptModels { } type SubscriptionProviderStatus = "NoError" + | "Cancelled" | "UnknownError" | "BillingError" @@ -839,6 +846,7 @@ declare module PlayFabCloudScriptModels { } type TriggerType = "HTTP" + | "Queue"; export interface UnregisterFunctionRequest extends PlayFabModule.IPlayFabRequestCommon { diff --git a/PlayFabTestingExample/src/typings/PlayFab/PlayFabDataApi.d.ts b/PlayFabTestingExample/src/typings/PlayFab/PlayFabDataApi.d.ts index 9c817922..e0a633ff 100644 --- a/PlayFabTestingExample/src/typings/PlayFab/PlayFabDataApi.d.ts +++ b/PlayFabTestingExample/src/typings/PlayFab/PlayFabDataApi.d.ts @@ -219,6 +219,7 @@ declare module PlayFabDataModels { } type OperationTypes = "Created" + | "Updated" | "Deleted" | "None"; diff --git a/PlayFabTestingExample/src/typings/PlayFab/PlayFabEconomyApi.d.ts b/PlayFabTestingExample/src/typings/PlayFab/PlayFabEconomyApi.d.ts index 72014ef5..3f397aab 100644 --- a/PlayFabTestingExample/src/typings/PlayFab/PlayFabEconomyApi.d.ts +++ b/PlayFabTestingExample/src/typings/PlayFab/PlayFabEconomyApi.d.ts @@ -4,6 +4,11 @@ declare module PlayFabEconomyModule { export interface IPlayFabEconomy { ForgetAllCredentials(): void; + /** + * Add inventory items. + * https://docs.microsoft.com/rest/api/playfab/economy/inventory/addinventoryitems + */ + AddInventoryItems(request: PlayFabEconomyModels.AddInventoryItemsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; /** * Creates a new item in the working catalog using provided metadata. * https://docs.microsoft.com/rest/api/playfab/economy/catalog/createdraftitem @@ -19,11 +24,26 @@ declare module PlayFabEconomyModule { * https://docs.microsoft.com/rest/api/playfab/economy/catalog/deleteentityitemreviews */ DeleteEntityItemReviews(request: PlayFabEconomyModels.DeleteEntityItemReviewsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; + /** + * Delete an Inventory Collection + * https://docs.microsoft.com/rest/api/playfab/economy/inventory/deleteinventorycollection + */ + DeleteInventoryCollection(request: PlayFabEconomyModels.DeleteInventoryCollectionRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; + /** + * Delete inventory items + * https://docs.microsoft.com/rest/api/playfab/economy/inventory/deleteinventoryitems + */ + DeleteInventoryItems(request: PlayFabEconomyModels.DeleteInventoryItemsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; /** * Removes an item from working catalog and all published versions from the public catalog. * https://docs.microsoft.com/rest/api/playfab/economy/catalog/deleteitem */ DeleteItem(request: PlayFabEconomyModels.DeleteItemRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; + /** + * Execute a list of Inventory Operations + * https://docs.microsoft.com/rest/api/playfab/economy/inventory/executeinventoryoperations + */ + ExecuteInventoryOperations(request: PlayFabEconomyModels.ExecuteInventoryOperationsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; /** * Gets the configuration for the catalog. * https://docs.microsoft.com/rest/api/playfab/economy/catalog/getcatalogconfig @@ -49,11 +69,26 @@ declare module PlayFabEconomyModule { * https://docs.microsoft.com/rest/api/playfab/economy/catalog/getentityitemreview */ GetEntityItemReview(request: PlayFabEconomyModels.GetEntityItemReviewRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; + /** + * Get Inventory Collection Ids + * https://docs.microsoft.com/rest/api/playfab/economy/inventory/getinventorycollectionids + */ + GetInventoryCollectionIds(request: PlayFabEconomyModels.GetInventoryCollectionIdsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; + /** + * Get current inventory items. + * https://docs.microsoft.com/rest/api/playfab/economy/inventory/getinventoryitems + */ + GetInventoryItems(request: PlayFabEconomyModels.GetInventoryItemsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; /** * Retrieves an item from the public catalog. * https://docs.microsoft.com/rest/api/playfab/economy/catalog/getitem */ GetItem(request: PlayFabEconomyModels.GetItemRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; + /** + * Search for a given item and return a set of bundles and stores containing the item + * https://docs.microsoft.com/rest/api/playfab/economy/catalog/getitemcontainers + */ + GetItemContainers(request: PlayFabEconomyModels.GetItemContainersRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; /** * Gets the moderation state for an item, including the concern category and string reason. * https://docs.microsoft.com/rest/api/playfab/economy/catalog/getitemmoderationstate @@ -79,11 +114,51 @@ declare module PlayFabEconomyModule { * https://docs.microsoft.com/rest/api/playfab/economy/catalog/getitems */ GetItems(request: PlayFabEconomyModels.GetItemsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; + /** + * Gets the access tokens. + * https://docs.microsoft.com/rest/api/playfab/economy/inventory/getmicrosoftstoreaccesstokens + */ + GetMicrosoftStoreAccessTokens(request: PlayFabEconomyModels.GetMicrosoftStoreAccessTokensRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; /** * Initiates a publish of an item from the working catalog to the public catalog. * https://docs.microsoft.com/rest/api/playfab/economy/catalog/publishdraftitem */ PublishDraftItem(request: PlayFabEconomyModels.PublishDraftItemRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; + /** + * Purchase an item or bundle + * https://docs.microsoft.com/rest/api/playfab/economy/inventory/purchaseinventoryitems + */ + PurchaseInventoryItems(request: PlayFabEconomyModels.PurchaseInventoryItemsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; + /** + * Redeem items. + * https://docs.microsoft.com/rest/api/playfab/economy/inventory/redeemappleappstoreinventoryitems + */ + RedeemAppleAppStoreInventoryItems(request: PlayFabEconomyModels.RedeemAppleAppStoreInventoryItemsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; + /** + * Redeem items. + * https://docs.microsoft.com/rest/api/playfab/economy/inventory/redeemgoogleplayinventoryitems + */ + RedeemGooglePlayInventoryItems(request: PlayFabEconomyModels.RedeemGooglePlayInventoryItemsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; + /** + * Redeem items. + * https://docs.microsoft.com/rest/api/playfab/economy/inventory/redeemmicrosoftstoreinventoryitems + */ + RedeemMicrosoftStoreInventoryItems(request: PlayFabEconomyModels.RedeemMicrosoftStoreInventoryItemsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; + /** + * Redeem items. + * https://docs.microsoft.com/rest/api/playfab/economy/inventory/redeemnintendoeshopinventoryitems + */ + RedeemNintendoEShopInventoryItems(request: PlayFabEconomyModels.RedeemNintendoEShopInventoryItemsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; + /** + * Redeem items. + * https://docs.microsoft.com/rest/api/playfab/economy/inventory/redeemplaystationstoreinventoryitems + */ + RedeemPlayStationStoreInventoryItems(request: PlayFabEconomyModels.RedeemPlayStationStoreInventoryItemsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; + /** + * Redeem items. + * https://docs.microsoft.com/rest/api/playfab/economy/inventory/redeemsteaminventoryitems + */ + RedeemSteamInventoryItems(request: PlayFabEconomyModels.RedeemSteamInventoryItemsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; /** * Submit a report for an item, indicating in what way the item is inappropriate. * https://docs.microsoft.com/rest/api/playfab/economy/catalog/reportitem @@ -115,11 +190,21 @@ declare module PlayFabEconomyModule { * https://docs.microsoft.com/rest/api/playfab/economy/catalog/submititemreviewvote */ SubmitItemReviewVote(request: PlayFabEconomyModels.SubmitItemReviewVoteRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; + /** + * Subtract inventory items. + * https://docs.microsoft.com/rest/api/playfab/economy/inventory/subtractinventoryitems + */ + SubtractInventoryItems(request: PlayFabEconomyModels.SubtractInventoryItemsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; /** * Submit a request to takedown one or more reviews. * https://docs.microsoft.com/rest/api/playfab/economy/catalog/takedownitemreviews */ TakedownItemReviews(request: PlayFabEconomyModels.TakedownItemReviewsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; + /** + * Transfer inventory items. + * https://docs.microsoft.com/rest/api/playfab/economy/inventory/transferinventoryitems + */ + TransferInventoryItems(request: PlayFabEconomyModels.TransferInventoryItemsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; /** * Updates the configuration for the catalog. * https://docs.microsoft.com/rest/api/playfab/economy/catalog/updatecatalogconfig @@ -130,11 +215,73 @@ declare module PlayFabEconomyModule { * https://docs.microsoft.com/rest/api/playfab/economy/catalog/updatedraftitem */ UpdateDraftItem(request: PlayFabEconomyModels.UpdateDraftItemRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; + /** + * Update inventory items + * https://docs.microsoft.com/rest/api/playfab/economy/inventory/updateinventoryitems + */ + UpdateInventoryItems(request: PlayFabEconomyModels.UpdateInventoryItemsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; } } declare module PlayFabEconomyModels { + export interface AddInventoryItemsOperation { + /** The amount to add to the current item amount. */ + Amount: number; + /** The inventory item the operation applies to. */ + Item?: InventoryItemReference; + + } + + export interface AddInventoryItemsRequest extends PlayFabModule.IPlayFabRequestCommon { + /** The amount to add for the current item. */ + Amount: number; + /** The id of the entity's collection to perform this action on. (Default="default") */ + CollectionId?: string; + /** The currency code of the real money transaction. */ + CurrencyCode?: string; + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** The entity to perform this action on. */ + Entity?: EntityKey; + /** The Idempotency ID for this request. */ + IdempotencyId?: string; + /** The inventory item the request applies to. */ + Item?: InventoryItemReference; + /** A list of Items to modify. */ + Items?: InventoryItem[]; + /** Purchase price of the offer. */ + PurchasePrice?: number; + /** Indicates if the full inventory should be returned. */ + ReturnInventory: boolean; + + } + + export interface AddInventoryItemsResponse extends PlayFabModule.IPlayFabResultCommon { + /** The idempotency id used in the request. */ + IdempotencyId?: string; + /** + * Details of the current inventory items. Null if ReturnInventory was set to false in request or InventoryTooLarge is set + * to true in response. + */ + InventoryItems?: InventoryItem[]; + /** Whether the number of inventory items is too large to be returned. */ + InventoryTooLarge: boolean; + /** The ids of transactions that occurred as a result of the request. */ + TransactionIds?: string[]; + /** The updated items for this request. */ + UpdatedItems?: InventoryItem[]; + + } + + export interface AlternateId { + /** Type of the alternate ID. */ + Type?: string; + /** Value of the alternate ID. */ + Value?: string; + + } + export interface CatalogAlternateId { /** Type of the alternate ID. */ Type?: string; @@ -146,6 +293,10 @@ declare module PlayFabEconomyModels { export interface CatalogConfig { /** A list of player entity keys that will have admin permissions. */ AdminEntities?: EntityKey[]; + /** The set of configuration that only applies to catalog items. */ + Catalog?: CatalogSpecificConfig; + /** A list of deep link formats. */ + DeepLinkFormats?: DeepLinkFormat[]; /** A list of display properties to index. */ DisplayPropertyIndexInfos?: DisplayPropertyIndexInfo[]; /** The set of configuration that only applies to Files. */ @@ -174,6 +325,8 @@ declare module PlayFabEconomyModels { CreationDate?: string; /** The ID of the creator of this catalog item. */ CreatorEntity?: EntityKey; + /** The set of platform specific deep links for this item. */ + DeepLinks?: DeepLink[]; /** * A dictionary of localized descriptions. Key is language code and localized string is the value. The neutral locale is * required. @@ -193,16 +346,24 @@ declare module PlayFabEconomyModels { Images?: Image[]; /** Indicates if the item is hidden. */ IsHidden?: boolean; + /** The item references associated with this item. */ + ItemReferences?: CatalogItemReference[]; /** A dictionary of localized keywords. Key is language code and localized list of keywords is the value. */ Keywords?: { [key: string]: KeywordSet }; /** The date and time this item was last updated. */ LastModifiedDate?: string; /** The moderation state for this item. */ Moderation?: ModerationState; + /** The platforms supported by this item. */ + Platforms?: string[]; + /** The base price of this item. */ + PriceOptions?: CatalogPriceOptions; /** Rating summary for this item. */ Rating?: Rating; /** The date of when the item will be available. If not provided then the product will appear immediately. */ StartDate?: string; + /** Optional details for stores items. */ + StoreDetails?: StoreDetails; /** The list of tags that are associated with this item. */ Tags?: string[]; /** @@ -210,7 +371,7 @@ declare module PlayFabEconomyModels { * required. */ Title?: { [key: string]: string | null }; - /** The high-level type of the item. */ + /** The high-level type of the item. The following item types are supported: bundle, catalogItem, currency, store, ugc. */ Type?: string; } @@ -220,32 +381,53 @@ declare module PlayFabEconomyModels { Amount?: number; /** The unique ID of the catalog item. */ Id?: string; - /** The price of the catalog item. */ - Price?: CatalogPrice; + /** The prices the catalog item can be purchased for. */ + PriceOptions?: CatalogPriceOptions; } export interface CatalogPrice { - /** Prices of the catalog item. */ - Prices?: CatalogPriceInstance[]; - /** Real prices of the catalog item. */ - RealPrices?: CatalogPriceInstance[]; - /** A standardized sorting key to allow proper sorting between items with prices in different currencies. */ - Sort?: number; + /** The amounts of the catalog item price. */ + Amounts?: CatalogPriceAmount[]; } export interface CatalogPriceAmount { - /** The amount of the catalog price. */ + /** The amount of the price. */ Amount: number; - /** The Item ID of the price. */ - Id?: string; + /** The Item Id of the price. */ + ItemId?: string; } - export interface CatalogPriceInstance { - /** The amounts of the catalog item price. */ - Amounts?: CatalogPriceAmount[]; + export interface CatalogPriceAmountOverride { + /** The exact value that should be utilized in the override. */ + FixedValue?: number; + /** The id of the item this override should utilize. */ + ItemId?: string; + /** + * The multiplier that will be applied to the base Catalog value to determine what value should be utilized in the + * override. + */ + Multiplier?: number; + + } + + export interface CatalogPriceOptions { + /** Prices of the catalog item. */ + Prices?: CatalogPrice[]; + + } + + export interface CatalogPriceOptionsOverride { + /** The prices utilized in the override. */ + Prices?: CatalogPriceOverride[]; + + } + + export interface CatalogPriceOverride { + /** The currency amounts utilized in the override for a singular price. */ + Amounts?: CatalogPriceAmountOverride[]; } @@ -258,6 +440,7 @@ declare module PlayFabEconomyModels { } type ConcernCategory = "None" + | "OffensiveContent" | "ChildExploitation" | "MalwareOrVirus" @@ -288,6 +471,257 @@ declare module PlayFabEconomyModels { } + type CountryCode = "AF" + + | "AX" + | "AL" + | "DZ" + | "AS" + | "AD" + | "AO" + | "AI" + | "AQ" + | "AG" + | "AR" + | "AM" + | "AW" + | "AU" + | "AT" + | "AZ" + | "BS" + | "BH" + | "BD" + | "BB" + | "BY" + | "BE" + | "BZ" + | "BJ" + | "BM" + | "BT" + | "BO" + | "BQ" + | "BA" + | "BW" + | "BV" + | "BR" + | "IO" + | "BN" + | "BG" + | "BF" + | "BI" + | "KH" + | "CM" + | "CA" + | "CV" + | "KY" + | "CF" + | "TD" + | "CL" + | "CN" + | "CX" + | "CC" + | "CO" + | "KM" + | "CG" + | "CD" + | "CK" + | "CR" + | "CI" + | "HR" + | "CU" + | "CW" + | "CY" + | "CZ" + | "DK" + | "DJ" + | "DM" + | "DO" + | "EC" + | "EG" + | "SV" + | "GQ" + | "ER" + | "EE" + | "ET" + | "FK" + | "FO" + | "FJ" + | "FI" + | "FR" + | "GF" + | "PF" + | "TF" + | "GA" + | "GM" + | "GE" + | "DE" + | "GH" + | "GI" + | "GR" + | "GL" + | "GD" + | "GP" + | "GU" + | "GT" + | "GG" + | "GN" + | "GW" + | "GY" + | "HT" + | "HM" + | "VA" + | "HN" + | "HK" + | "HU" + | "IS" + | "IN" + | "ID" + | "IR" + | "IQ" + | "IE" + | "IM" + | "IL" + | "IT" + | "JM" + | "JP" + | "JE" + | "JO" + | "KZ" + | "KE" + | "KI" + | "KP" + | "KR" + | "KW" + | "KG" + | "LA" + | "LV" + | "LB" + | "LS" + | "LR" + | "LY" + | "LI" + | "LT" + | "LU" + | "MO" + | "MK" + | "MG" + | "MW" + | "MY" + | "MV" + | "ML" + | "MT" + | "MH" + | "MQ" + | "MR" + | "MU" + | "YT" + | "MX" + | "FM" + | "MD" + | "MC" + | "MN" + | "ME" + | "MS" + | "MA" + | "MZ" + | "MM" + | "NA" + | "NR" + | "NP" + | "NL" + | "NC" + | "NZ" + | "NI" + | "NE" + | "NG" + | "NU" + | "NF" + | "MP" + | "NO" + | "OM" + | "PK" + | "PW" + | "PS" + | "PA" + | "PG" + | "PY" + | "PE" + | "PH" + | "PN" + | "PL" + | "PT" + | "PR" + | "QA" + | "RE" + | "RO" + | "RU" + | "RW" + | "BL" + | "SH" + | "KN" + | "LC" + | "MF" + | "PM" + | "VC" + | "WS" + | "SM" + | "ST" + | "SA" + | "SN" + | "RS" + | "SC" + | "SL" + | "SG" + | "SX" + | "SK" + | "SI" + | "SB" + | "SO" + | "ZA" + | "GS" + | "SS" + | "ES" + | "LK" + | "SD" + | "SR" + | "SJ" + | "SZ" + | "SE" + | "CH" + | "SY" + | "TW" + | "TJ" + | "TZ" + | "TH" + | "TL" + | "TG" + | "TK" + | "TO" + | "TT" + | "TN" + | "TR" + | "TM" + | "TC" + | "TV" + | "UG" + | "UA" + | "AE" + | "GB" + | "US" + | "UM" + | "UY" + | "UZ" + | "VU" + | "VE" + | "VN" + | "VG" + | "VI" + | "WF" + | "EH" + | "YE" + | "ZM" + | "ZW"; + export interface CreateDraftItemRequest extends PlayFabModule.IPlayFabRequestCommon { /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ CustomTags?: { [key: string]: string | null }; @@ -318,6 +752,14 @@ declare module PlayFabEconomyModels { } + export interface DeepLink { + /** Target platform for this deep link. */ + Platform?: string; + /** The deep link for this platform. */ + Url?: string; + + } + export interface DeepLinkFormat { /** The format of the deep link to return. The format should contain '{id}' to represent where the item ID should be placed. */ Format?: string; @@ -338,6 +780,48 @@ declare module PlayFabEconomyModels { } + export interface DeleteInventoryCollectionRequest extends PlayFabModule.IPlayFabRequestCommon { + /** The inventory collection id the request applies to. */ + CollectionId?: string; + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** The entity the request is about. Set to the caller by default. */ + Entity?: EntityKey; + + } + + export interface DeleteInventoryCollectionResponse extends PlayFabModule.IPlayFabResultCommon { + + } + + export interface DeleteInventoryItemsOperation { + /** The inventory item the operation applies to. */ + Item?: InventoryItemReference; + + } + + export interface DeleteInventoryItemsRequest extends PlayFabModule.IPlayFabRequestCommon { + /** The id of the entity's collection to perform this action on. (Default="default") */ + CollectionId?: string; + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** The entity to perform this action on. */ + Entity?: EntityKey; + /** The Idempotency ID for this request. */ + IdempotencyId?: string; + /** The inventory item the request applies to. */ + Item?: InventoryItemReference; + + } + + export interface DeleteInventoryItemsResponse extends PlayFabModule.IPlayFabResultCommon { + /** The idempotency id used in the request. */ + IdempotencyId?: string; + /** The ids of transactions that occurred as a result of the request. */ + TransactionIds?: string[]; + + } + export interface DeleteItemRequest extends PlayFabModule.IPlayFabRequestCommon { /** An alternate ID associated with this item. */ AlternateId?: CatalogAlternateId; @@ -363,6 +847,7 @@ declare module PlayFabEconomyModels { } type DisplayPropertyType = "None" + | "QueryDateTime" | "QueryDouble" | "QueryString" @@ -376,6 +861,31 @@ declare module PlayFabEconomyModels { } + export interface ExecuteInventoryOperationsRequest extends PlayFabModule.IPlayFabRequestCommon { + /** The id of the entity's collection to perform this action on. (Default="default") */ + CollectionId?: string; + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** The entity to perform this action on. */ + Entity?: EntityKey; + /** The Idempotency ID for this request. */ + IdempotencyId?: string; + /** + * The operations to run transactionally. The operations will be executed in-order sequentially and will succeed or fail as + * a batch. + */ + Operations?: InventoryOperation[]; + + } + + export interface ExecuteInventoryOperationsResponse extends PlayFabModule.IPlayFabResultCommon { + /** The idempotency id used in the request. */ + IdempotencyId?: string; + /** The ids of the transactions that occurred as a result of the request. */ + TransactionIds?: string[]; + + } + export interface FileConfig { /** The set of content types that will be used for validation. */ ContentTypes?: string[]; @@ -385,6 +895,10 @@ declare module PlayFabEconomyModels { } export interface FilterOptions { + /** The OData filter utilized. Mutually exclusive with 'IncludeAllItems'. */ + Filter?: string; + /** The flag that overrides the filter and allows for returning all catalog items. Mutually exclusive with 'Filter'. */ + IncludeAllItems?: boolean; } @@ -450,6 +964,8 @@ declare module PlayFabEconomyModels { CustomTags?: { [key: string]: string | null }; /** The entity to perform this action on. */ Entity?: EntityKey; + /** OData Filter to specify ItemType. */ + Filter?: string; } @@ -479,6 +995,80 @@ declare module PlayFabEconomyModels { } + export interface GetInventoryCollectionIdsRequest extends PlayFabModule.IPlayFabRequestCommon { + /** An opaque token used to retrieve the next page of collection ids, if any are available. */ + ContinuationToken?: string; + /** Number of items to retrieve. (Default = 10) */ + Count: number; + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** The entity the request is about. Set to the caller by default. */ + Entity?: EntityKey; + + } + + export interface GetInventoryCollectionIdsResponse extends PlayFabModule.IPlayFabResultCommon { + /** The requested inventory collection ids. */ + CollectionIds?: string[]; + /** An opaque token used to retrieve the next page of collection ids, if any are available. */ + ContinuationToken?: string; + + } + + export interface GetInventoryItemsRequest extends PlayFabModule.IPlayFabRequestCommon { + /** The id of the entity's collection to perform this action on. (Default="default") */ + CollectionId?: string; + /** + * An opaque token used to retrieve the next page of items in the inventory, if any are available. Should be null on + * initial request. + */ + ContinuationToken?: string; + /** Number of items to retrieve. Maximum page size is 50. (Default=10) */ + Count: number; + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** The entity to perform this action on. */ + Entity?: EntityKey; + /** The filters to limit what is returned to the client. */ + Filter?: string; + + } + + export interface GetInventoryItemsResponse extends PlayFabModule.IPlayFabResultCommon { + /** An opaque token used to retrieve the next page of items, if any are available. */ + ContinuationToken?: string; + /** The requested inventory items. */ + Items?: InventoryItem[]; + + } + + export interface GetItemContainersRequest extends PlayFabModule.IPlayFabRequestCommon { + /** An alternate ID associated with this item. */ + AlternateId?: CatalogAlternateId; + /** + * An opaque token used to retrieve the next page of items in the inventory, if any are available. Should be null on + * initial request. + */ + ContinuationToken?: string; + /** Number of items to retrieve. Maximum page size is 25. */ + Count: number; + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** The entity to perform this action on. */ + Entity?: EntityKey; + /** The unique ID of the item. */ + Id?: string; + + } + + export interface GetItemContainersResponse extends PlayFabModule.IPlayFabResultCommon { + /** List of Bundles and Stores containing the requested items. */ + Containers?: CatalogItem[]; + /** An opaque token used to retrieve the next page of items, if any are available. */ + ContinuationToken?: string; + + } + export interface GetItemModerationStateRequest extends PlayFabModule.IPlayFabRequestCommon { /** An alternate ID associated with this item. */ AlternateId?: CatalogAlternateId; @@ -597,7 +1187,33 @@ declare module PlayFabEconomyModels { } + export interface GetMicrosoftStoreAccessTokensRequest extends PlayFabModule.IPlayFabRequestCommon { + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + + } + + export interface GetMicrosoftStoreAccessTokensResponse extends PlayFabModule.IPlayFabResultCommon { + /** + * The collections access token for calling https://onestore.microsoft.com/b2b/keys/create/collections to obtain a + * CollectionsIdKey for the user + */ + CollectionsAccessToken?: string; + /** The date the collections access token expires */ + CollectionsAccessTokenExpirationDate: string; + + } + + export interface GooglePlayProductPurchase { + /** The Product ID (SKU) of the InApp product purchased from the Google Play store. */ + ProductId?: string; + /** The token provided to the player's device when the product was purchased */ + Token?: string; + + } + type HelpfulnessVote = "None" + | "UnHelpful" | "Helpful"; @@ -619,6 +1235,44 @@ declare module PlayFabEconomyModels { } + export interface InventoryItem { + /** The amount of the item. */ + Amount: number; + /** The id of the item. This should correspond to the item id in the catalog. */ + Id?: string; + /** The stack id of the item. */ + StackId?: string; + /** The type of the item. This should correspond to the item type in the catalog. */ + Type?: string; + + } + + export interface InventoryItemReference { + /** The inventory item alternate id the request applies to. */ + AlternateId?: AlternateId; + /** The inventory item id the request applies to. */ + Id?: string; + /** The inventory stack id the request should redeem to. (Default="default") */ + StackId?: string; + + } + + export interface InventoryOperation { + /** The add operation. */ + Add?: AddInventoryItemsOperation; + /** The delete operation. */ + Delete?: DeleteInventoryItemsOperation; + /** The purchase operation. */ + Purchase?: PurchaseInventoryItemsOperation; + /** The subtract operation. */ + Subtract?: SubtractInventoryItemsOperation; + /** The transfer operation. */ + Transfer?: TransferInventoryItemsOperation; + /** The update operation. */ + Update?: UpdateInventoryItemsOperation; + + } + export interface KeywordSet { /** A list of localized keywords. */ Values?: string[]; @@ -636,6 +1290,7 @@ declare module PlayFabEconomyModels { } type ModerationStatus = "Unknown" + | "AwaitingModeration" | "Approved" | "Rejected"; @@ -650,14 +1305,6 @@ declare module PlayFabEconomyModels { } - export interface PriceOverride { - - } - - export interface PricesOverride { - - } - export interface PublishDraftItemRequest extends PlayFabModule.IPlayFabRequestCommon { /** An alternate ID associated with this item. */ AlternateId?: CatalogAlternateId; @@ -681,15 +1328,82 @@ declare module PlayFabEconomyModels { } type PublishResult = "Unknown" + | "Pending" | "Succeeded" | "Failed" | "Canceled"; + export interface PurchaseInventoryItemsOperation { + /** The amount to purchase. */ + Amount: number; + /** + * Indicates whether stacks reduced to an amount of 0 during the operation should be deleted from the inventory. (Default = + * false) + */ + DeleteEmptyStacks: boolean; + /** The inventory item the operation applies to. */ + Item?: InventoryItemReference; + /** + * The per-item price the item is expected to be purchased at. This must match a value configured in the Catalog or + * specified Store. + */ + PriceAmounts?: PurchasePriceAmount[]; + /** The id of the Store to purchase the item from. */ + StoreId?: string; + + } + + export interface PurchaseInventoryItemsRequest extends PlayFabModule.IPlayFabRequestCommon { + /** The amount to purchase. */ + Amount: number; + /** The id of the entity's collection to perform this action on. (Default="default") */ + CollectionId?: string; + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** + * Indicates whether stacks reduced to an amount of 0 during the request should be deleted from the inventory. + * (Default=false) + */ + DeleteEmptyStacks: boolean; + /** The entity to perform this action on. */ + Entity?: EntityKey; + /** The Idempotency ID for this request. */ + IdempotencyId?: string; + /** The inventory item the request applies to. */ + Item?: InventoryItemReference; + /** + * The per-item price the item is expected to be purchased at. This must match a value configured in the Catalog or + * specified Store. + */ + PriceAmounts?: PurchasePriceAmount[]; + /** The id of the Store to purchase the item from. */ + StoreId?: string; + + } + + export interface PurchaseInventoryItemsResponse extends PlayFabModule.IPlayFabResultCommon { + /** The idempotency id used in the request. */ + IdempotencyId?: string; + /** The ids of transactions that occurred as a result of the request. */ + TransactionIds?: string[]; + + } + export interface PurchaseOverride { } + export interface PurchasePriceAmount { + /** The amount of the inventory item to use in the purchase . */ + Amount: number; + /** The inventory item id to use in the purchase . */ + ItemId?: string; + /** The inventory stack id the to use in the purchase. Set to "default" by default */ + StackId?: string; + + } + export interface Rating { /** The average rating for this item. */ Average?: number; @@ -708,6 +1422,174 @@ declare module PlayFabEconomyModels { } + export interface RedeemAppleAppStoreInventoryItemsRequest extends PlayFabModule.IPlayFabRequestCommon { + /** The id of the entity's collection to perform this action on. (Default="default") */ + CollectionId?: string; + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** The entity to perform this action on. */ + Entity?: EntityKey; + /** The Idempotency ID for this request. */ + IdempotencyId?: string; + /** The receipt provided by the Apple marketplace upon successful purchase. */ + Receipt?: string; + + } + + export interface RedeemAppleAppStoreInventoryItemsResponse extends PlayFabModule.IPlayFabResultCommon { + /** The list of failed redemptions from the external marketplace. */ + Failed?: RedemptionFailure[]; + /** The list of successful redemptions from the external marketplace. */ + Succeeded?: RedemptionSuccess[]; + /** The Transaction IDs associated with the inventory modifications */ + TransactionIds?: string[]; + + } + + export interface RedeemGooglePlayInventoryItemsRequest extends PlayFabModule.IPlayFabRequestCommon { + /** The id of the entity's collection to perform this action on. (Default="default") */ + CollectionId?: string; + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** The entity to perform this action on. */ + Entity?: EntityKey; + /** The Idempotency ID for this request. */ + IdempotencyId?: string; + /** The list of purchases to redeem */ + Purchases?: GooglePlayProductPurchase[]; + + } + + export interface RedeemGooglePlayInventoryItemsResponse extends PlayFabModule.IPlayFabResultCommon { + /** The list of failed redemptions from the external marketplace. */ + Failed?: RedemptionFailure[]; + /** The list of successful redemptions from the external marketplace. */ + Succeeded?: RedemptionSuccess[]; + /** The Transaction IDs associated with the inventory modifications */ + TransactionIds?: string[]; + + } + + export interface RedeemMicrosoftStoreInventoryItemsRequest extends PlayFabModule.IPlayFabRequestCommon { + /** The id of the entity's collection to perform this action on. (Default="default") */ + CollectionId?: string; + /** The OneStore Collections Id Key used for AAD authentication. */ + CollectionsIdKey?: string; + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** The entity to perform this action on. */ + Entity?: EntityKey; + /** The Idempotency ID for this request. */ + IdempotencyId?: string; + /** Xbox Token used for delegated business partner authentication. */ + XboxToken?: string; + + } + + export interface RedeemMicrosoftStoreInventoryItemsResponse extends PlayFabModule.IPlayFabResultCommon { + /** The list of failed redemptions from the external marketplace. */ + Failed?: RedemptionFailure[]; + /** The list of successful redemptions from the external marketplace. */ + Succeeded?: RedemptionSuccess[]; + /** The Transaction IDs associated with the inventory modifications */ + TransactionIds?: string[]; + + } + + export interface RedeemNintendoEShopInventoryItemsRequest extends PlayFabModule.IPlayFabRequestCommon { + /** The id of the entity's collection to perform this action on. (Default="default") */ + CollectionId?: string; + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** The entity to perform this action on. */ + Entity?: EntityKey; + /** The Idempotency ID for this request. */ + IdempotencyId?: string; + /** The Nintendo provided token authorizing redemption */ + NintendoServiceAccountIdToken?: string; + + } + + export interface RedeemNintendoEShopInventoryItemsResponse extends PlayFabModule.IPlayFabResultCommon { + /** The list of failed redemptions from the external marketplace. */ + Failed?: RedemptionFailure[]; + /** The list of successful redemptions from the external marketplace. */ + Succeeded?: RedemptionSuccess[]; + /** The Transaction IDs associated with the inventory modifications */ + TransactionIds?: string[]; + + } + + export interface RedeemPlayStationStoreInventoryItemsRequest extends PlayFabModule.IPlayFabRequestCommon { + /** Authorization code provided by the PlayStation OAuth provider. */ + AuthorizationCode?: string; + /** The id of the entity's collection to perform this action on. (Default="default") */ + CollectionId?: string; + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** The entity to perform this action on. */ + Entity?: EntityKey; + /** The Idempotency ID for this request. */ + IdempotencyId?: string; + /** Optional Service Label to pass into the request. */ + ServiceLabel?: string; + + } + + export interface RedeemPlayStationStoreInventoryItemsResponse extends PlayFabModule.IPlayFabResultCommon { + /** The list of failed redemptions from the external marketplace. */ + Failed?: RedemptionFailure[]; + /** The list of successful redemptions from the external marketplace. */ + Succeeded?: RedemptionSuccess[]; + /** The Transaction IDs associated with the inventory modifications */ + TransactionIds?: string[]; + + } + + export interface RedeemSteamInventoryItemsRequest extends PlayFabModule.IPlayFabRequestCommon { + /** The id of the entity's collection to perform this action on. (Default="default") */ + CollectionId?: string; + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** The entity to perform this action on. */ + Entity?: EntityKey; + /** The Idempotency ID for this request. */ + IdempotencyId?: string; + + } + + export interface RedeemSteamInventoryItemsResponse extends PlayFabModule.IPlayFabResultCommon { + /** The list of failed redemptions from the external marketplace. */ + Failed?: RedemptionFailure[]; + /** The list of successful redemptions from the external marketplace. */ + Succeeded?: RedemptionSuccess[]; + /** The Transaction IDs associated with the inventory modifications */ + TransactionIds?: string[]; + + } + + export interface RedemptionFailure { + /** The marketplace failure code. */ + FailureCode?: string; + /** The marketplace error details explaining why the offer failed to redeem. */ + FailureDetails?: string; + /** The transaction id in the external marketplace. */ + MarketplaceTransactionId?: string; + /** The ID of the offer being redeemed. */ + OfferId?: string; + + } + + export interface RedemptionSuccess { + /** The transaction id in the external marketplace. */ + MarketplaceTransactionId?: string; + /** The ID of the offer being redeemed. */ + OfferId?: string; + /** The timestamp for when the redeem was completed. */ + SuccessTimestamp: string; + + } + export interface ReportItemRequest extends PlayFabModule.IPlayFabRequestCommon { /** An alternate ID associated with this item. */ AlternateId?: CatalogAlternateId; @@ -766,6 +1648,8 @@ declare module PlayFabEconomyModels { /** Star rating associated with this review. */ Rating: number; /** The ID of the author of the review. */ + ReviewerEntity?: EntityKey; + /** Deprecated. Use ReviewerEntity instead. This property will be removed in a future release. */ ReviewerId?: string; /** The ID of the review. */ ReviewId?: string; @@ -832,6 +1716,8 @@ declare module PlayFabEconomyModels { * be returned. */ Select?: string; + /** The store to restrict the search request to. */ + Store?: StoreReference; } @@ -862,10 +1748,14 @@ declare module PlayFabEconomyModels { } export interface StoreDetails { + /** The options for the filter in filter-based stores. These options are mutually exclusive with item references. */ + FilterOptions?: FilterOptions; + /** The global prices utilized in the store. These options are mutually exclusive with price options in item references. */ + PriceOptionsOverride?: CatalogPriceOptionsOverride; } - export interface StoreInfo { + export interface StoreReference { /** An alternate ID of the store. */ AlternateId?: CatalogAlternateId; /** The unique ID of the store. */ @@ -899,6 +1789,61 @@ declare module PlayFabEconomyModels { } + export interface SubtractInventoryItemsOperation { + /** The amount to subtract from the current item amount. */ + Amount: number; + /** + * Indicates whether stacks reduced to an amount of 0 during the request should be deleted from the inventory. (Default = + * false). + */ + DeleteEmptyStacks: boolean; + /** The inventory item the operation applies to. */ + Item?: InventoryItemReference; + + } + + export interface SubtractInventoryItemsRequest extends PlayFabModule.IPlayFabRequestCommon { + /** The amount to add for the current item. */ + Amount: number; + /** The id of the entity's collection to perform this action on. (Default="default") */ + CollectionId?: string; + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** + * Indicates whether stacks reduced to an amount of 0 during the request should be deleted from the inventory. + * (Default=false) + */ + DeleteEmptyStacks: boolean; + /** The entity to perform this action on. */ + Entity?: EntityKey; + /** The Idempotency ID for this request. */ + IdempotencyId?: string; + /** The inventory item the request applies to. */ + Item?: InventoryItemReference; + /** A list of Items to modify. */ + Items?: InventoryItem[]; + /** Indicates if the full inventory should be returned. */ + ReturnInventory: boolean; + + } + + export interface SubtractInventoryItemsResponse extends PlayFabModule.IPlayFabResultCommon { + /** The idempotency id used in the request. */ + IdempotencyId?: string; + /** + * Details of the current inventory items. Null if ReturnInventory was set to false in request or InventoryTooLarge is set + * to true in response. + */ + InventoryItems?: InventoryItem[]; + /** Whether the number of inventory items is too large to be returned. */ + InventoryTooLarge: boolean; + /** The ids of transactions that occurred as a result of the request. */ + TransactionIds?: string[]; + /** The updated items for this request. */ + UpdatedItems?: InventoryItem[]; + + } + export interface TakedownItemReviewsRequest extends PlayFabModule.IPlayFabRequestCommon { /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ CustomTags?: { [key: string]: string | null }; @@ -911,6 +1856,58 @@ declare module PlayFabEconomyModels { } + export interface TransferInventoryItemsOperation { + /** The amount to transfer. */ + Amount: number; + /** + * Indicates whether stacks reduced to an amount of 0 during the operation should be deleted from the inventory. (Default = + * false) + */ + DeleteEmptyStacks: boolean; + /** The inventory item the operation is transferring from. */ + GivingItem?: InventoryItemReference; + /** The inventory item the operation is transferring to. */ + ReceivingItem?: InventoryItemReference; + + } + + export interface TransferInventoryItemsRequest extends PlayFabModule.IPlayFabRequestCommon { + /** The amount to transfer . */ + Amount: number; + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** + * Indicates whether stacks reduced to an amount of 0 during the request should be deleted from the inventory. (Default = + * false) + */ + DeleteEmptyStacks: boolean; + /** The inventory collection id the request is transferring from. (Default="default") */ + GivingCollectionId?: string; + /** The entity the request is transferring from. Set to the caller by default. */ + GivingEntity?: EntityKey; + /** The inventory item the request is transferring from. */ + GivingItem?: InventoryItemReference; + /** The idempotency id for the request. */ + IdempotencyId?: string; + /** The inventory collection id the request is transferring to. (Default="default") */ + ReceivingCollectionId?: string; + /** The entity the request is transferring to. Set to the caller by default. */ + ReceivingEntity?: EntityKey; + /** The inventory item the request is transferring to. */ + ReceivingItem?: InventoryItemReference; + + } + + export interface TransferInventoryItemsResponse extends PlayFabModule.IPlayFabResultCommon { + /** The ids of transactions that occurred as a result of the request's giving action. */ + GivingTransactionIds?: string[]; + /** The idempotency id for the request. */ + IdempotencyId?: string; + /** The ids of transactions that occurred as a result of the request's receiving action. */ + ReceivingTransactionIds?: string[]; + + } + export interface UpdateCatalogConfigRequest extends PlayFabModule.IPlayFabRequestCommon { /** The updated catalog configuration. */ Config?: CatalogConfig; @@ -939,6 +1936,47 @@ declare module PlayFabEconomyModels { } + export interface UpdateInventoryItemsOperation { + /** The inventory item to update with the specified values. */ + Item?: InventoryItem; + + } + + export interface UpdateInventoryItemsRequest extends PlayFabModule.IPlayFabRequestCommon { + /** The id of the entity's collection to perform this action on. (Default="default") */ + CollectionId?: string; + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** The entity to perform this action on. */ + Entity?: EntityKey; + /** The Idempotency ID for this request. */ + IdempotencyId?: string; + /** The inventory item to update with the specified values. */ + Item?: InventoryItem; + /** A list of Items to modify. */ + Items?: InventoryItem[]; + /** Indicates if the full inventory should be returned. */ + ReturnInventory: boolean; + + } + + export interface UpdateInventoryItemsResponse extends PlayFabModule.IPlayFabResultCommon { + /** The idempotency id used in the request. */ + IdempotencyId?: string; + /** + * Details of the current inventory items. Null if ReturnInventory was set to false in request or InventoryTooLarge is set + * to true in response. + */ + InventoryItems?: InventoryItem[]; + /** Whether the number of inventory items is too large to be returned. */ + InventoryTooLarge: boolean; + /** The ids of transactions that occurred as a result of the request. */ + TransactionIds?: string[]; + /** The updated items for this request. */ + UpdatedItems?: InventoryItem[]; + + } + export interface UploadInfo { /** Name of the file to be uploaded. */ FileName?: string; diff --git a/PlayFabTestingExample/src/typings/PlayFab/PlayFabExperimentationApi.d.ts b/PlayFabTestingExample/src/typings/PlayFab/PlayFabExperimentationApi.d.ts index 5bbcc129..9b6f778f 100644 --- a/PlayFabTestingExample/src/typings/PlayFab/PlayFabExperimentationApi.d.ts +++ b/PlayFabTestingExample/src/typings/PlayFab/PlayFabExperimentationApi.d.ts @@ -75,6 +75,7 @@ declare module PlayFabExperimentationModule { declare module PlayFabExperimentationModels { type AnalysisTaskState = "Waiting" + | "ReadyForSubmission" | "SubmittingToPipeline" | "Running" @@ -211,11 +212,13 @@ declare module PlayFabExperimentationModels { } type ExperimentState = "New" + | "Started" | "Stopped" | "Deleted"; type ExperimentType = "Active" + | "Snapshot"; export interface GetExclusionGroupsRequest extends PlayFabModule.IPlayFabRequestCommon { diff --git a/PlayFabTestingExample/src/typings/PlayFab/PlayFabGroupsApi.d.ts b/PlayFabTestingExample/src/typings/PlayFab/PlayFabGroupsApi.d.ts index 6367ab0a..3d270c72 100644 --- a/PlayFabTestingExample/src/typings/PlayFab/PlayFabGroupsApi.d.ts +++ b/PlayFabTestingExample/src/typings/PlayFab/PlayFabGroupsApi.d.ts @@ -547,6 +547,7 @@ declare module PlayFabGroupsModels { } type OperationTypes = "Created" + | "Updated" | "Deleted" | "None"; diff --git a/PlayFabTestingExample/src/typings/PlayFab/PlayFabMultiplayerApi.d.ts b/PlayFabTestingExample/src/typings/PlayFab/PlayFabMultiplayerApi.d.ts index 8c4868cf..84c97113 100644 --- a/PlayFabTestingExample/src/typings/PlayFab/PlayFabMultiplayerApi.d.ts +++ b/PlayFabTestingExample/src/typings/PlayFab/PlayFabMultiplayerApi.d.ts @@ -419,6 +419,7 @@ declare module PlayFabMultiplayerModule { declare module PlayFabMultiplayerModels { type AccessPolicy = "Public" + | "Friends" | "Private"; @@ -447,16 +448,20 @@ declare module PlayFabMultiplayerModels { } type AttributeMergeFunction = "Min" + | "Max" | "Average"; type AttributeNotSpecifiedBehavior = "UseDefault" + | "MatchAny"; type AttributeSource = "User" + | "PlayerEntity"; type AzureRegion = "AustraliaEast" + | "AustraliaSoutheast" | "BrazilSouth" | "CentralUs" @@ -481,6 +486,7 @@ declare module PlayFabMultiplayerModels { | "UkSouth"; type AzureVmFamily = "A" + | "Av2" | "Dv2" | "Dv3" @@ -500,6 +506,7 @@ declare module PlayFabMultiplayerModels { | "HBv3"; type AzureVmSize = "Standard_A1" + | "Standard_A2" | "Standard_A3" | "Standard_A4" @@ -675,6 +682,7 @@ declare module PlayFabMultiplayerModels { } type CancellationReason = "Requested" + | "Internal" | "Timeout"; @@ -734,6 +742,7 @@ declare module PlayFabMultiplayerModels { } type ContainerFlavor = "ManagedWindowsServerCore" + | "CustomLinux" | "ManagedWindowsServerCorePreview" | "Invalid"; @@ -1816,12 +1825,8 @@ declare module PlayFabMultiplayerModels { } export interface GetMultiplayerServerDetailsRequest extends PlayFabModule.IPlayFabRequestCommon { - /** The guid string build ID of the multiplayer server to get details for. */ - BuildId?: string; /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ CustomTags?: { [key: string]: string | null }; - /** The region the multiplayer server is located in to get details for. */ - Region?: string; /** * The title generated guid string session ID of the multiplayer server to get details for. This is to keep track of * multiplayer server sessions. @@ -2597,6 +2602,7 @@ declare module PlayFabMultiplayerModels { } type MembershipLock = "Unlocked" + | "Locked"; export interface MonitoringApplicationConfiguration { @@ -2642,6 +2648,7 @@ declare module PlayFabMultiplayerModels { } type OsPlatform = "Windows" + | "Linux"; export interface OverrideDouble { @@ -2657,6 +2664,7 @@ declare module PlayFabMultiplayerModels { } type OwnerMigrationPolicy = "None" + | "Automatic" | "Manual" | "Server"; @@ -2688,6 +2696,7 @@ declare module PlayFabMultiplayerModels { } type ProtocolType = "TCP" + | "UDP"; export interface QosServer { @@ -2892,6 +2901,7 @@ declare module PlayFabMultiplayerModels { } type ServerType = "Container" + | "Process"; export interface SetIntersectionRule { @@ -3057,6 +3067,7 @@ declare module PlayFabMultiplayerModels { } type SubscriptionType = "LobbyChange" + | "LobbyInvite"; export interface TeamDifferenceRule { @@ -3118,6 +3129,7 @@ declare module PlayFabMultiplayerModels { } type TitleMultiplayerServerEnabledStatus = "Initializing" + | "Enabled" | "Disabled"; diff --git a/PlayFabTestingExample/src/typings/PlayFab/PlayFabProfilesApi.d.ts b/PlayFabTestingExample/src/typings/PlayFab/PlayFabProfilesApi.d.ts index 8fba427b..2d3baf15 100644 --- a/PlayFabTestingExample/src/typings/PlayFab/PlayFabProfilesApi.d.ts +++ b/PlayFabTestingExample/src/typings/PlayFab/PlayFabProfilesApi.d.ts @@ -46,6 +46,7 @@ declare module PlayFabProfilesModule { declare module PlayFabProfilesModels { type EffectType = "Allow" + | "Deny"; export interface EntityDataObject { @@ -246,6 +247,7 @@ declare module PlayFabProfilesModels { } type OperationTypes = "Created" + | "Updated" | "Deleted" | "None"; diff --git a/PlayFabTestingExample/src/typings/PlayFab/PlayFabServerApi.d.ts b/PlayFabTestingExample/src/typings/PlayFab/PlayFabServerApi.d.ts index c9459aec..818a5fe4 100644 --- a/PlayFabTestingExample/src/typings/PlayFab/PlayFabServerApi.d.ts +++ b/PlayFabTestingExample/src/typings/PlayFab/PlayFabServerApi.d.ts @@ -400,6 +400,16 @@ declare module PlayFabServerModule { * https://docs.microsoft.com/rest/api/playfab/server/player-item-management/grantitemstousers */ GrantItemsToUsers(request: PlayFabServerModels.GrantItemsToUsersRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; + /** + * Links the Nintendo account associated with the token to the user's PlayFab account + * https://docs.microsoft.com/rest/api/playfab/server/account-management/linknintendoserviceaccount + */ + LinkNintendoServiceAccount(request: PlayFabServerModels.LinkNintendoServiceAccountRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; + /** + * Links the NintendoSwitchDeviceId to the user's PlayFab account + * https://docs.microsoft.com/rest/api/playfab/server/account-management/linknintendoswitchdeviceid + */ + LinkNintendoSwitchDeviceId(request: PlayFabServerModels.LinkNintendoSwitchDeviceIdRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; /** * Links the PlayStation :tm: Network account associated with the provided access code to the user's PlayFab account * https://docs.microsoft.com/rest/api/playfab/server/account-management/linkpsnaccount @@ -616,7 +626,17 @@ declare module PlayFabServerModule { */ SubtractUserVirtualCurrency(request: PlayFabServerModels.SubtractUserVirtualCurrencyRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; /** - * Unlinks the related PSN account from the user's PlayFab account + * Unlinks the related Nintendo account from the user's PlayFab account + * https://docs.microsoft.com/rest/api/playfab/server/account-management/unlinknintendoserviceaccount + */ + UnlinkNintendoServiceAccount(request: PlayFabServerModels.UnlinkNintendoServiceAccountRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; + /** + * Unlinks the related NintendoSwitchDeviceId from the user's PlayFab account + * https://docs.microsoft.com/rest/api/playfab/server/account-management/unlinknintendoswitchdeviceid + */ + UnlinkNintendoSwitchDeviceId(request: PlayFabServerModels.UnlinkNintendoSwitchDeviceIdRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; + /** + * Unlinks the related PlayStation :tm: Network account from the user's PlayFab account * https://docs.microsoft.com/rest/api/playfab/server/account-management/unlinkpsnaccount */ UnlinkPSNAccount(request: PlayFabServerModels.UnlinkPSNAccountRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void; @@ -916,8 +936,6 @@ declare module PlayFabServerModels { DurationInHours?: number; /** IP address to be banned. May affect multiple players. */ IPAddress?: string; - /** MAC address to be banned. May affect multiple players. */ - MACAddress?: string; /** Unique PlayFab assigned ID of the user on whom the operation will be performed. */ PlayFabId: string; /** The reason for this ban. Maximum 140 characters. */ @@ -1082,6 +1100,7 @@ declare module PlayFabServerModels { } type CloudScriptRevisionOption = "Live" + | "Latest" | "Specific"; @@ -1128,6 +1147,7 @@ declare module PlayFabServerModels { } type ContinentCode = "AF" + | "AN" | "AS" | "EU" @@ -1136,6 +1156,7 @@ declare module PlayFabServerModels { | "SA"; type CountryCode = "AF" + | "AX" | "AL" | "DZ" @@ -1398,6 +1419,7 @@ declare module PlayFabServerModels { } type Currency = "AED" + | "AFN" | "ALL" | "AMD" @@ -1618,6 +1640,7 @@ declare module PlayFabServerModels { } type EmailVerificationStatus = "Unverified" + | "Pending" | "Confirmed"; @@ -1752,7 +1775,10 @@ declare module PlayFabServerModels { GameCenterInfo?: UserGameCenterInfo; /** The profile of the user, if requested. */ Profile?: PlayerProfileModel; - /** Available PSN information, if the user and PlayFab friend are both connected to PSN. */ + /** + * Available PlayStation :tm: Network information, if the user and PlayFab friend are both connected to PlayStation :tm: + * Network. + */ PSNInfo?: UserPsnInfo; /** Available Steam information (if the user and PlayFab friend are also connected in Steam). */ SteamInfo?: UserSteamInfo; @@ -1768,9 +1794,11 @@ declare module PlayFabServerModels { } type GameInstanceState = "Open" + | "Closed"; type GenericErrorCodes = "Success" + | "UnkownError" | "InvalidParams" | "AccountNotFound" @@ -2393,6 +2421,7 @@ declare module PlayFabServerModels { | "PartyVersionNotFound" | "MultiplayerServerBuildReferencedByMatchmakingQueue" | "MultiplayerServerBuildReferencedByBuildAlias" + | "MultiplayerServerBuildAliasReferencedByMatchmakingQueue" | "ExperimentationExperimentStopped" | "ExperimentationExperimentRunning" | "ExperimentationExperimentNotFound" @@ -3034,15 +3063,15 @@ declare module PlayFabServerModels { } export interface GetPlayFabIDsFromPSNAccountIDsRequest extends PlayFabModule.IPlayFabRequestCommon { - /** Id of the PSN issuer environment. If null, defaults to production environment. */ + /** Id of the PlayStation :tm: Network issuer environment. If null, defaults to production environment. */ IssuerId?: number; - /** Array of unique PlayStation Network identifiers for which the title needs to get PlayFab identifiers. */ + /** Array of unique PlayStation :tm: Network identifiers for which the title needs to get PlayFab identifiers. */ PSNAccountIDs: string[]; } export interface GetPlayFabIDsFromPSNAccountIDsResult extends PlayFabModule.IPlayFabResultCommon { - /** Mapping of PlayStation Network identifiers to PlayFab identifiers. */ + /** Mapping of PlayStation :tm: Network identifiers to PlayFab identifiers. */ Data?: PSNAccountPlayFabIdPair[]; } @@ -3080,7 +3109,7 @@ declare module PlayFabServerModels { } export interface GetPlayFabIDsFromXboxLiveIDsResult extends PlayFabModule.IPlayFabResultCommon { - /** Mapping of PlayStation Network identifiers to PlayFab identifiers. */ + /** Mapping of Xbox Live identifiers to PlayFab identifiers. */ Data?: XboxLiveAccountPlayFabIdPair[]; } @@ -3494,18 +3523,49 @@ declare module PlayFabServerModels { } + export interface LinkNintendoServiceAccountRequest extends PlayFabModule.IPlayFabRequestCommon { + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** If another user is already linked to a specific Nintendo Switch account, unlink the other user and re-link. */ + ForceLink?: boolean; + /** + * The JSON Web token (JWT) returned by Nintendo after login. Used to validate the request and find the user ID (Nintendo + * Switch subject) to link with. + */ + IdentityToken: string; + /** Unique PlayFab assigned ID of the user on whom the operation will be performed. */ + PlayFabId: string; + + } + + export interface LinkNintendoSwitchDeviceIdRequest extends PlayFabModule.IPlayFabRequestCommon { + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** If another user is already linked to the Nintendo Switch Device ID, unlink the other user and re-link. */ + ForceLink?: boolean; + /** Nintendo Switch unique identifier for the user's device. */ + NintendoSwitchDeviceId: string; + /** Unique PlayFab assigned ID of the user on whom the operation will be performed. */ + PlayFabId: string; + + } + + export interface LinkNintendoSwitchDeviceIdResult extends PlayFabModule.IPlayFabResultCommon { + + } + export interface LinkPSNAccountRequest extends PlayFabModule.IPlayFabRequestCommon { - /** Authentication code provided by the PlayStation Network. */ + /** Authentication code provided by the PlayStation :tm: Network. */ AuthCode: string; /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ CustomTags?: { [key: string]: string | null }; /** If another user is already linked to the account, unlink the other user and re-link. */ ForceLink?: boolean; - /** Id of the PSN issuer environment. If null, defaults to production environment. */ + /** Id of the PlayStation :tm: Network issuer environment. If null, defaults to production environment. */ IssuerId?: number; /** Unique PlayFab assigned ID of the user on whom the operation will be performed. */ PlayFabId: string; - /** Redirect URI supplied to PSN when requesting an auth code */ + /** Redirect URI supplied to PlayStation :tm: Network when requesting an auth code */ RedirectUri: string; } @@ -3581,6 +3641,7 @@ declare module PlayFabServerModels { } type LoginIdentityProvider = "Unknown" + | "PlayFab" | "Custom" | "GameCenter" @@ -3804,6 +3865,7 @@ declare module PlayFabServerModels { } type PlayerConnectionState = "Unassigned" + | "Connecting" | "Participating" | "Participated"; @@ -4012,9 +4074,12 @@ declare module PlayFabServerModels { } export interface PSNAccountPlayFabIdPair { - /** Unique PlayFab identifier for a user, or null if no PlayFab account is linked to the PlayStation Network identifier. */ + /** + * Unique PlayFab identifier for a user, or null if no PlayFab account is linked to the PlayStation :tm: Network + * identifier. + */ PlayFabId?: string; - /** Unique PlayStation Network identifier for a user. */ + /** Unique PlayStation :tm: Network identifier for a user. */ PSNAccountId?: string; } @@ -4036,6 +4101,7 @@ declare module PlayFabServerModels { } type PushNotificationPlatform = "ApplePushNotificationService" + | "GoogleCloudMessaging"; export interface PushNotificationRegistration { @@ -4115,6 +4181,7 @@ declare module PlayFabServerModels { } type Region = "USCentral" + | "USEast" | "EUWest" | "Singapore" @@ -4232,6 +4299,7 @@ declare module PlayFabServerModels { } type ResultTableNodeType = "ItemId" + | "TableId"; export interface RevokeAllBansForUserRequest extends PlayFabModule.IPlayFabRequestCommon { @@ -4540,6 +4608,7 @@ declare module PlayFabServerModels { } type SourceType = "Admin" + | "BackEnd" | "GameClient" | "GameServer" @@ -4642,6 +4711,7 @@ declare module PlayFabServerModels { } type SubscriptionProviderStatus = "NoError" + | "Cancelled" | "UnknownError" | "BillingError" @@ -4683,6 +4753,7 @@ declare module PlayFabServerModels { } type TitleActivationStatus = "None" + | "ActivatedTitleKey" | "PendingSteam" | "ActivatedSteam" @@ -4716,6 +4787,28 @@ declare module PlayFabServerModels { } + export interface UnlinkNintendoServiceAccountRequest extends PlayFabModule.IPlayFabRequestCommon { + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** Unique PlayFab assigned ID of the user on whom the operation will be performed. */ + PlayFabId: string; + + } + + export interface UnlinkNintendoSwitchDeviceIdRequest extends PlayFabModule.IPlayFabRequestCommon { + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** Nintendo Switch Device identifier for the user. If not specified, the most recently signed in device ID will be used. */ + NintendoSwitchDeviceId?: string; + /** Unique PlayFab assigned ID of the user on whom the operation will be performed. */ + PlayFabId: string; + + } + + export interface UnlinkNintendoSwitchDeviceIdResult extends PlayFabModule.IPlayFabResultCommon { + + } + export interface UnlinkPSNAccountRequest extends PlayFabModule.IPlayFabRequestCommon { /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ CustomTags?: { [key: string]: string | null }; @@ -4822,8 +4915,6 @@ declare module PlayFabServerModels { Expires?: string; /** The updated IP address for the ban. Null for no change. */ IPAddress?: string; - /** The updated MAC address for the ban. Null for no change. */ - MACAddress?: string; /** Whether to make this ban permanent. Set to true to make this ban permanent. This will not modify Active state. */ Permanent?: boolean; /** The updated reason for the ban to be updated. Maximum 140 characters. Null for no change. */ @@ -5035,7 +5126,7 @@ declare module PlayFabServerModels { PlayFabId?: string; /** Personal information for the user which is considered more sensitive */ PrivateInfo?: UserPrivateAccountInfo; - /** User PSN account information, if a PSN account has been linked */ + /** User PlayStation :tm: Network account information, if a PlayStation :tm: Network account has been linked */ PsnInfo?: UserPsnInfo; /** User Steam information, if a Steam account has been linked */ SteamInfo?: UserSteamInfo; @@ -5069,6 +5160,7 @@ declare module PlayFabServerModels { } type UserDataPermission = "Private" + | "Public"; export interface UserDataRecord { @@ -5165,6 +5257,7 @@ declare module PlayFabServerModels { } type UserOrigination = "Organic" + | "Steam" | "Google" | "Amazon" @@ -5196,9 +5289,9 @@ declare module PlayFabServerModels { } export interface UserPsnInfo { - /** PSN account ID */ + /** PlayStation :tm: Network account ID */ PsnAccountId?: string; - /** PSN online ID */ + /** PlayStation :tm: Network online ID */ PsnOnlineId?: string; }