From 4523febb5646483d646c45d85378a058bfa033fd Mon Sep 17 00:00:00 2001 From: PlayFab SDK Team Date: Mon, 11 Dec 2023 23:59:41 +0000 Subject: [PATCH] https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#231208 --- PlayFabSdk/package.json | 2 +- PlayFabSdk/src/PlayFab/PlayFabAdminApi.js | 8 +- .../src/PlayFab/PlayFabAuthenticationApi.js | 8 +- PlayFabSdk/src/PlayFab/PlayFabClientApi.js | 8 +- .../src/PlayFab/PlayFabCloudScriptApi.js | 8 +- PlayFabSdk/src/PlayFab/PlayFabDataApi.js | 8 +- PlayFabSdk/src/PlayFab/PlayFabEconomyApi.js | 8 +- PlayFabSdk/src/PlayFab/PlayFabEventsApi.js | 8 +- .../src/PlayFab/PlayFabExperimentationApi.js | 8 +- PlayFabSdk/src/PlayFab/PlayFabGroupsApi.js | 8 +- PlayFabSdk/src/PlayFab/PlayFabInsightsApi.js | 8 +- .../src/PlayFab/PlayFabLocalizationApi.js | 8 +- .../src/PlayFab/PlayFabMultiplayerApi.js | 20 +++- PlayFabSdk/src/PlayFab/PlayFabProfilesApi.js | 8 +- PlayFabSdk/src/PlayFab/PlayFabServerApi.js | 8 +- .../src/Typings/PlayFab/PlayFabAdminApi.d.ts | 46 +++++++++ .../PlayFab/PlayFabMultiplayerApi.d.ts | 96 +++++++++++++++++++ .../src/Typings/PlayFab/PlayFabServerApi.d.ts | 2 + .../src/PlayFab/PlayFabAdminApi.js | 8 +- .../src/PlayFab/PlayFabAuthenticationApi.js | 8 +- .../src/PlayFab/PlayFabClientApi.js | 8 +- .../src/PlayFab/PlayFabCloudScriptApi.js | 8 +- .../src/PlayFab/PlayFabDataApi.js | 8 +- .../src/PlayFab/PlayFabEconomyApi.js | 8 +- .../src/PlayFab/PlayFabEventsApi.js | 8 +- .../src/PlayFab/PlayFabExperimentationApi.js | 8 +- .../src/PlayFab/PlayFabGroupsApi.js | 8 +- .../src/PlayFab/PlayFabInsightsApi.js | 8 +- .../src/PlayFab/PlayFabLocalizationApi.js | 8 +- .../src/PlayFab/PlayFabMultiplayerApi.js | 20 +++- .../src/PlayFab/PlayFabProfilesApi.js | 8 +- .../src/PlayFab/PlayFabServerApi.js | 8 +- .../src/typings/PlayFab/PlayFabAdminApi.d.ts | 46 +++++++++ .../PlayFab/PlayFabMultiplayerApi.d.ts | 96 +++++++++++++++++++ .../src/typings/PlayFab/PlayFabServerApi.d.ts | 2 + 35 files changed, 425 insertions(+), 113 deletions(-) diff --git a/PlayFabSdk/package.json b/PlayFabSdk/package.json index 1d3f74ba..34c94b85 100644 --- a/PlayFabSdk/package.json +++ b/PlayFabSdk/package.json @@ -1,6 +1,6 @@ { "name": "playfab-web-sdk", - "version": "1.161.231124", + "version": "1.162.231208", "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 731b37c6..c77ed9e4 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.161.231124", + sdkVersion: "1.162.231208", requestGetParams: { - sdk: "JavaScriptSDK-1.161.231124" + sdk: "JavaScriptSDK-1.162.231208" }, 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_8"; -PlayFab.sdkVersion = "1.161.231124"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; +PlayFab.sdkVersion = "1.162.231208"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabSdk/src/PlayFab/PlayFabAuthenticationApi.js b/PlayFabSdk/src/PlayFab/PlayFabAuthenticationApi.js index b73383ef..4225092f 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.161.231124", + sdkVersion: "1.162.231208", requestGetParams: { - sdk: "JavaScriptSDK-1.161.231124" + sdk: "JavaScriptSDK-1.162.231208" }, 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_8"; -PlayFab.sdkVersion = "1.161.231124"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; +PlayFab.sdkVersion = "1.162.231208"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabSdk/src/PlayFab/PlayFabClientApi.js b/PlayFabSdk/src/PlayFab/PlayFabClientApi.js index e0e18fc5..e9456938 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.161.231124", + sdkVersion: "1.162.231208", requestGetParams: { - sdk: "JavaScriptSDK-1.161.231124" + sdk: "JavaScriptSDK-1.162.231208" }, 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_8"; -PlayFab.sdkVersion = "1.161.231124"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; +PlayFab.sdkVersion = "1.162.231208"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabSdk/src/PlayFab/PlayFabCloudScriptApi.js b/PlayFabSdk/src/PlayFab/PlayFabCloudScriptApi.js index d7f24356..bb25b6cb 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.161.231124", + sdkVersion: "1.162.231208", requestGetParams: { - sdk: "JavaScriptSDK-1.161.231124" + sdk: "JavaScriptSDK-1.162.231208" }, 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_8"; -PlayFab.sdkVersion = "1.161.231124"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; +PlayFab.sdkVersion = "1.162.231208"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabSdk/src/PlayFab/PlayFabDataApi.js b/PlayFabSdk/src/PlayFab/PlayFabDataApi.js index 294f50a2..90eab54b 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.161.231124", + sdkVersion: "1.162.231208", requestGetParams: { - sdk: "JavaScriptSDK-1.161.231124" + sdk: "JavaScriptSDK-1.162.231208" }, 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_8"; -PlayFab.sdkVersion = "1.161.231124"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; +PlayFab.sdkVersion = "1.162.231208"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabSdk/src/PlayFab/PlayFabEconomyApi.js b/PlayFabSdk/src/PlayFab/PlayFabEconomyApi.js index a010f7b0..67dc21c8 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.161.231124", + sdkVersion: "1.162.231208", requestGetParams: { - sdk: "JavaScriptSDK-1.161.231124" + sdk: "JavaScriptSDK-1.162.231208" }, 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_8"; -PlayFab.sdkVersion = "1.161.231124"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; +PlayFab.sdkVersion = "1.162.231208"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabSdk/src/PlayFab/PlayFabEventsApi.js b/PlayFabSdk/src/PlayFab/PlayFabEventsApi.js index 42c788c9..213a6853 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.161.231124", + sdkVersion: "1.162.231208", requestGetParams: { - sdk: "JavaScriptSDK-1.161.231124" + sdk: "JavaScriptSDK-1.162.231208" }, 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_8"; -PlayFab.sdkVersion = "1.161.231124"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; +PlayFab.sdkVersion = "1.162.231208"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabSdk/src/PlayFab/PlayFabExperimentationApi.js b/PlayFabSdk/src/PlayFab/PlayFabExperimentationApi.js index e1d6d229..61dcba33 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.161.231124", + sdkVersion: "1.162.231208", requestGetParams: { - sdk: "JavaScriptSDK-1.161.231124" + sdk: "JavaScriptSDK-1.162.231208" }, 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_8"; -PlayFab.sdkVersion = "1.161.231124"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; +PlayFab.sdkVersion = "1.162.231208"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabSdk/src/PlayFab/PlayFabGroupsApi.js b/PlayFabSdk/src/PlayFab/PlayFabGroupsApi.js index a04e75cc..6b7d02ce 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.161.231124", + sdkVersion: "1.162.231208", requestGetParams: { - sdk: "JavaScriptSDK-1.161.231124" + sdk: "JavaScriptSDK-1.162.231208" }, 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_8"; -PlayFab.sdkVersion = "1.161.231124"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; +PlayFab.sdkVersion = "1.162.231208"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabSdk/src/PlayFab/PlayFabInsightsApi.js b/PlayFabSdk/src/PlayFab/PlayFabInsightsApi.js index 7f8a2517..2a4e21b4 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.161.231124", + sdkVersion: "1.162.231208", requestGetParams: { - sdk: "JavaScriptSDK-1.161.231124" + sdk: "JavaScriptSDK-1.162.231208" }, 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_8"; -PlayFab.sdkVersion = "1.161.231124"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; +PlayFab.sdkVersion = "1.162.231208"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabSdk/src/PlayFab/PlayFabLocalizationApi.js b/PlayFabSdk/src/PlayFab/PlayFabLocalizationApi.js index acd87f26..7d3fa8d5 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.161.231124", + sdkVersion: "1.162.231208", requestGetParams: { - sdk: "JavaScriptSDK-1.161.231124" + sdk: "JavaScriptSDK-1.162.231208" }, 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_8"; -PlayFab.sdkVersion = "1.161.231124"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; +PlayFab.sdkVersion = "1.162.231208"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabSdk/src/PlayFab/PlayFabMultiplayerApi.js b/PlayFabSdk/src/PlayFab/PlayFabMultiplayerApi.js index 077f0bed..a32a9ede 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.161.231124", + sdkVersion: "1.162.231208", requestGetParams: { - sdk: "JavaScriptSDK-1.161.231124" + sdk: "JavaScriptSDK-1.162.231208" }, 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_8"; -PlayFab.sdkVersion = "1.161.231124"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; +PlayFab.sdkVersion = "1.162.231208"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; @@ -425,6 +425,10 @@ PlayFab.MultiplayerApi = { return PlayFab._internalSettings.ExecuteRequestWrapper("/Lobby/JoinLobby", request, "X-EntityToken", callback, customData, extraHeaders); }, + JoinLobbyAsServer: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Lobby/JoinLobbyAsServer", request, "X-EntityToken", callback, customData, extraHeaders); + }, + JoinMatchmakingTicket: function (request, callback, customData, extraHeaders) { return PlayFab._internalSettings.ExecuteRequestWrapper("/Match/JoinMatchmakingTicket", request, "X-EntityToken", callback, customData, extraHeaders); }, @@ -433,6 +437,10 @@ PlayFab.MultiplayerApi = { return PlayFab._internalSettings.ExecuteRequestWrapper("/Lobby/LeaveLobby", request, "X-EntityToken", callback, customData, extraHeaders); }, + LeaveLobbyAsServer: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Lobby/LeaveLobbyAsServer", request, "X-EntityToken", callback, customData, extraHeaders); + }, + ListArchivedMultiplayerServers: function (request, callback, customData, extraHeaders) { return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/ListArchivedMultiplayerServers", request, "X-EntityToken", callback, customData, extraHeaders); }, @@ -561,6 +569,10 @@ PlayFab.MultiplayerApi = { return PlayFab._internalSettings.ExecuteRequestWrapper("/Lobby/UpdateLobby", request, "X-EntityToken", callback, customData, extraHeaders); }, + UpdateLobbyAsServer: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Lobby/UpdateLobbyAsServer", request, "X-EntityToken", callback, customData, extraHeaders); + }, + UploadCertificate: function (request, callback, customData, extraHeaders) { return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/UploadCertificate", request, "X-EntityToken", callback, customData, extraHeaders); }, diff --git a/PlayFabSdk/src/PlayFab/PlayFabProfilesApi.js b/PlayFabSdk/src/PlayFab/PlayFabProfilesApi.js index e1e9af84..124b5d78 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.161.231124", + sdkVersion: "1.162.231208", requestGetParams: { - sdk: "JavaScriptSDK-1.161.231124" + sdk: "JavaScriptSDK-1.162.231208" }, 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_8"; -PlayFab.sdkVersion = "1.161.231124"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; +PlayFab.sdkVersion = "1.162.231208"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabSdk/src/PlayFab/PlayFabServerApi.js b/PlayFabSdk/src/PlayFab/PlayFabServerApi.js index 3c0eb743..c8e2a53c 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.161.231124", + sdkVersion: "1.162.231208", requestGetParams: { - sdk: "JavaScriptSDK-1.161.231124" + sdk: "JavaScriptSDK-1.162.231208" }, 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_8"; -PlayFab.sdkVersion = "1.161.231124"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; +PlayFab.sdkVersion = "1.162.231208"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabSdk/src/Typings/PlayFab/PlayFabAdminApi.d.ts b/PlayFabSdk/src/Typings/PlayFab/PlayFabAdminApi.d.ts index f10cb271..b58fa262 100644 --- a/PlayFabSdk/src/Typings/PlayFab/PlayFabAdminApi.d.ts +++ b/PlayFabSdk/src/Typings/PlayFab/PlayFabAdminApi.d.ts @@ -727,6 +727,20 @@ declare module PlayFabAdminModels { } + export interface AddInventoryItemsV2SegmentAction { + /** Amount of the item to be granted to a player */ + Amount?: number; + /** The collection id for where the item will be granted in the player inventory */ + CollectionId?: string; + /** The duration in seconds of the subscription to be granted to a player */ + DurationInSeconds?: number; + /** The id of item to be granted to the player */ + ItemId?: string; + /** The stack id for where the item will be granted in the player inventory */ + StackId?: string; + + } + export interface AddInventoryItemV2Content { /** Amount of the item to be granted to a player */ Amount?: number; @@ -1665,6 +1679,16 @@ declare module PlayFabAdminModels { } + export interface DeleteInventoryItemsV2SegmentAction { + /** The collection id for where the item will be removed from the player inventory */ + CollectionId?: string; + /** The id of item to be removed from the player */ + ItemId?: string; + /** The stack id for where the item will be removed from the player inventory */ + StackId?: string; + + } + export interface DeleteInventoryItemV2Content { /** The collection id for where the item will be removed from the player inventory */ CollectionId?: string; @@ -2517,6 +2541,7 @@ declare module PlayFabAdminModels { | "LeaderboardColumnLengthMismatch" | "InvalidStatisticScore" | "LeaderboardColumnsNotSpecified" + | "LeaderboardMaxSizeTooLarge" | "MatchmakingEntityInvalid" | "MatchmakingPlayerAttributesInvalid" | "MatchmakingQueueNotFound" @@ -2560,6 +2585,7 @@ declare module PlayFabAdminModels { | "CatalogItemTypeInvalid" | "CatalogBadRequest" | "CatalogTooManyRequests" + | "InvalidCatalogItemConfiguration" | "ExportInvalidStatusUpdate" | "ExportInvalidPrefix" | "ExportBlobContainerDoesNotExist" @@ -4720,8 +4746,12 @@ declare module PlayFabAdminModels { | "GoogleCloudMessaging"; export interface SegmentTrigger { + /** Add inventory item v2 segment trigger action. */ + AddInventoryItemsV2Action?: AddInventoryItemsV2SegmentAction; /** Ban player segment trigger action. */ BanPlayerAction?: BanPlayerSegmentAction; + /** Delete inventory item v2 segment trigger action. */ + DeleteInventoryItemsV2Action?: DeleteInventoryItemsV2SegmentAction; /** Delete player segment trigger action. */ DeletePlayerAction?: DeletePlayerSegmentAction; /** Delete player statistic segment trigger action. */ @@ -4740,6 +4770,8 @@ declare module PlayFabAdminModels { IncrementPlayerStatisticAction?: IncrementPlayerStatisticSegmentAction; /** Push notification segment trigger action. */ PushNotificationAction?: PushNotificationSegmentAction; + /** Subtract inventory item v2 segment trigger action. */ + SubtractInventoryItemsV2Action?: SubtractInventoryItemsV2SegmentAction; } @@ -5001,6 +5033,20 @@ declare module PlayFabAdminModels { | "FreeTrial" | "PaymentPending"; + export interface SubtractInventoryItemsV2SegmentAction { + /** Amount of the item to removed from the player */ + Amount?: number; + /** The collection id for where the item will be removed from the player inventory */ + CollectionId?: string; + /** The duration in seconds to be removed from the subscription in the players inventory */ + DurationInSeconds?: number; + /** The id of item to be removed from the player */ + ItemId?: string; + /** The stack id for where the item will be removed from the player inventory */ + StackId?: string; + + } + export interface SubtractInventoryItemV2Content { /** Amount of the item to removed from the player */ Amount?: number; diff --git a/PlayFabSdk/src/Typings/PlayFab/PlayFabMultiplayerApi.d.ts b/PlayFabSdk/src/Typings/PlayFab/PlayFabMultiplayerApi.d.ts index d2a23d45..753a2bb0 100644 --- a/PlayFabSdk/src/Typings/PlayFab/PlayFabMultiplayerApi.d.ts +++ b/PlayFabSdk/src/Typings/PlayFab/PlayFabMultiplayerApi.d.ts @@ -239,6 +239,11 @@ declare module PlayFabMultiplayerModule { * https://docs.microsoft.com/rest/api/playfab/multiplayer/lobby/joinlobby */ JoinLobby(request: PlayFabMultiplayerModels.JoinLobbyRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): Promise>; + /** + * Preview: Join a lobby as a server entity. This is restricted to client lobbies which are using connections. + * https://docs.microsoft.com/rest/api/playfab/multiplayer/lobby/joinlobbyasserver + */ + JoinLobbyAsServer(request: PlayFabMultiplayerModels.JoinLobbyAsServerRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): Promise>; /** * Join a matchmaking ticket. * https://docs.microsoft.com/rest/api/playfab/multiplayer/matchmaking/joinmatchmakingticket @@ -249,6 +254,11 @@ declare module PlayFabMultiplayerModule { * https://docs.microsoft.com/rest/api/playfab/multiplayer/lobby/leavelobby */ LeaveLobby(request: PlayFabMultiplayerModels.LeaveLobbyRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): Promise>; + /** + * Preview: Request for server to leave a lobby. This is restricted to client owned lobbies which are using connections. + * https://docs.microsoft.com/rest/api/playfab/multiplayer/lobby/leavelobbyasserver + */ + LeaveLobbyAsServer(request: PlayFabMultiplayerModels.LeaveLobbyAsServerRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): Promise>; /** * Lists archived multiplayer server sessions for a build. * https://docs.microsoft.com/rest/api/playfab/multiplayer/multiplayerserver/listarchivedmultiplayerservers @@ -413,6 +423,13 @@ declare module PlayFabMultiplayerModule { * https://docs.microsoft.com/rest/api/playfab/multiplayer/lobby/updatelobby */ UpdateLobby(request: PlayFabMultiplayerModels.UpdateLobbyRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): Promise>; + /** + * Preview: Update fields related to a joined server in the lobby the server is in. Servers can keep a lobby from expiring + * by being the one to "update" the lobby in some way. Servers have no impact on last member leave/last member disconnect + * behavior. + * https://docs.microsoft.com/rest/api/playfab/multiplayer/lobby/updatelobbyasserver + */ + UpdateLobbyAsServer(request: PlayFabMultiplayerModels.UpdateLobbyAsServerRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): Promise>; /** * Uploads a multiplayer server game certificate. * https://docs.microsoft.com/rest/api/playfab/multiplayer/multiplayerserver/uploadcertificate @@ -2098,6 +2115,41 @@ declare module PlayFabMultiplayerModels { } + export interface JoinLobbyAsServerRequest extends PlayFabModule.IPlayFabRequestCommon { + /** + * A field which indicates which lobby the game_server will be joining. This field is opaque to everyone except the Lobby + * service. + */ + ConnectionString: string; + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** + * The private key-value pairs which are visible to all entities in the lobby but can only be modified by the joined + * server.At most 30 key - value pairs may be stored here, keys are limited to 30 characters and values to 1000.The total + * size of all serverData values may not exceed 4096 bytes. + */ + ServerData?: { [key: string]: string | null }; + /** + * The game_server entity which is joining the Lobby. If a different game_server entity has already joined the request will + * fail unless the joined entity is disconnected, in which case the incoming game_server entity will replace the + * disconnected entity. + */ + ServerEntity: EntityKey; + + } + + export interface JoinLobbyAsServerResult extends PlayFabModule.IPlayFabResultCommon { + /** Successfully joined lobby's id. */ + LobbyId: string; + /** + * A setting that describes the state of the ServerData after JoinLobbyAsServer call is completed. It is "Initialized", the + * first time a server joins the lobby. It is "Ignored" in any subsequent JoinLobbyAsServer calls after it has been + * initialized. Any new server taking over should call UpdateLobbyAsServer to update ServerData fields. + */ + ServerDataStatus: string; + + } + export interface JoinLobbyRequest extends PlayFabModule.IPlayFabRequestCommon { /** A field which indicates which lobby the user will be joining. This field is opaque to everyone except the Lobby service. */ ConnectionString?: string; @@ -2136,6 +2188,19 @@ declare module PlayFabMultiplayerModels { } + export interface LeaveLobbyAsServerRequest extends PlayFabModule.IPlayFabRequestCommon { + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** The id of the lobby. */ + LobbyId: string; + /** + * The game_server entity leaving the lobby. If the game_server was subscribed to notifications, it will be unsubscribed. + * If a the given game_server entity is not in the lobby, it will fail. + */ + ServerEntity: EntityKey; + + } + export interface LeaveLobbyRequest extends PlayFabModule.IPlayFabRequestCommon { /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ CustomTags?: { [key: string]: string | null }; @@ -3001,6 +3066,10 @@ declare module PlayFabMultiplayerModels { } + type ServerDataStatus = "Initialized" + + | "Ignored"; + export interface ServerDetails { /** The fully qualified domain name of the virtual machine that is hosting this multiplayer server. */ Fqdn?: string; @@ -3357,6 +3426,33 @@ declare module PlayFabMultiplayerModels { } + export interface UpdateLobbyAsServerRequest extends PlayFabModule.IPlayFabRequestCommon { + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** The id of the lobby. */ + LobbyId: string; + /** + * The lobby server. Optional. Set a different server as the joined server of the lobby (there can only be 1 joined + * server). When changing the server the previous server will automatically be unsubscribed. + */ + Server?: EntityKey; + /** + * The private key-value pairs which are visible to all entities in the lobby and modifiable by the joined server. + * Optional. Sets or updates key-value pairs on the lobby. Only the current lobby lobby server can set serverData. Keys may + * be an arbitrary string of at most 30 characters. The total size of all serverData values may not exceed 4096 bytes. + * Values are not individually limited. There can be up to 30 key-value pairs stored here. Keys are case sensitive. + */ + ServerData?: { [key: string]: string | null }; + /** + * The keys to delete from the lobby serverData. Optional. Optional. Deletes key-value pairs on the lobby. Only the current + * joined lobby server can delete serverData. All the specified keys will be removed from the serverData. Keys that do not + * exist in the lobby are a no-op. If the key to delete exists in the serverData (same request) it will result in a bad + * request. + */ + ServerDataToDelete?: string[]; + + } + export interface UpdateLobbyRequest extends PlayFabModule.IPlayFabRequestCommon { /** * The policy indicating who is allowed to join the lobby, and the visibility to queries. May be 'Public', 'Friends' or diff --git a/PlayFabSdk/src/Typings/PlayFab/PlayFabServerApi.d.ts b/PlayFabSdk/src/Typings/PlayFab/PlayFabServerApi.d.ts index 40a1c24e..16681d2b 100644 --- a/PlayFabSdk/src/Typings/PlayFab/PlayFabServerApi.d.ts +++ b/PlayFabSdk/src/Typings/PlayFab/PlayFabServerApi.d.ts @@ -2357,6 +2357,7 @@ declare module PlayFabServerModels { | "LeaderboardColumnLengthMismatch" | "InvalidStatisticScore" | "LeaderboardColumnsNotSpecified" + | "LeaderboardMaxSizeTooLarge" | "MatchmakingEntityInvalid" | "MatchmakingPlayerAttributesInvalid" | "MatchmakingQueueNotFound" @@ -2400,6 +2401,7 @@ declare module PlayFabServerModels { | "CatalogItemTypeInvalid" | "CatalogBadRequest" | "CatalogTooManyRequests" + | "InvalidCatalogItemConfiguration" | "ExportInvalidStatusUpdate" | "ExportInvalidPrefix" | "ExportBlobContainerDoesNotExist" diff --git a/PlayFabTestingExample/src/PlayFab/PlayFabAdminApi.js b/PlayFabTestingExample/src/PlayFab/PlayFabAdminApi.js index 731b37c6..c77ed9e4 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.161.231124", + sdkVersion: "1.162.231208", requestGetParams: { - sdk: "JavaScriptSDK-1.161.231124" + sdk: "JavaScriptSDK-1.162.231208" }, 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_8"; -PlayFab.sdkVersion = "1.161.231124"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; +PlayFab.sdkVersion = "1.162.231208"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabTestingExample/src/PlayFab/PlayFabAuthenticationApi.js b/PlayFabTestingExample/src/PlayFab/PlayFabAuthenticationApi.js index b73383ef..4225092f 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.161.231124", + sdkVersion: "1.162.231208", requestGetParams: { - sdk: "JavaScriptSDK-1.161.231124" + sdk: "JavaScriptSDK-1.162.231208" }, 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_8"; -PlayFab.sdkVersion = "1.161.231124"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; +PlayFab.sdkVersion = "1.162.231208"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabTestingExample/src/PlayFab/PlayFabClientApi.js b/PlayFabTestingExample/src/PlayFab/PlayFabClientApi.js index e0e18fc5..e9456938 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.161.231124", + sdkVersion: "1.162.231208", requestGetParams: { - sdk: "JavaScriptSDK-1.161.231124" + sdk: "JavaScriptSDK-1.162.231208" }, 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_8"; -PlayFab.sdkVersion = "1.161.231124"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; +PlayFab.sdkVersion = "1.162.231208"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabTestingExample/src/PlayFab/PlayFabCloudScriptApi.js b/PlayFabTestingExample/src/PlayFab/PlayFabCloudScriptApi.js index d7f24356..bb25b6cb 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.161.231124", + sdkVersion: "1.162.231208", requestGetParams: { - sdk: "JavaScriptSDK-1.161.231124" + sdk: "JavaScriptSDK-1.162.231208" }, 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_8"; -PlayFab.sdkVersion = "1.161.231124"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; +PlayFab.sdkVersion = "1.162.231208"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabTestingExample/src/PlayFab/PlayFabDataApi.js b/PlayFabTestingExample/src/PlayFab/PlayFabDataApi.js index 294f50a2..90eab54b 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.161.231124", + sdkVersion: "1.162.231208", requestGetParams: { - sdk: "JavaScriptSDK-1.161.231124" + sdk: "JavaScriptSDK-1.162.231208" }, 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_8"; -PlayFab.sdkVersion = "1.161.231124"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; +PlayFab.sdkVersion = "1.162.231208"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabTestingExample/src/PlayFab/PlayFabEconomyApi.js b/PlayFabTestingExample/src/PlayFab/PlayFabEconomyApi.js index a010f7b0..67dc21c8 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.161.231124", + sdkVersion: "1.162.231208", requestGetParams: { - sdk: "JavaScriptSDK-1.161.231124" + sdk: "JavaScriptSDK-1.162.231208" }, 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_8"; -PlayFab.sdkVersion = "1.161.231124"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; +PlayFab.sdkVersion = "1.162.231208"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabTestingExample/src/PlayFab/PlayFabEventsApi.js b/PlayFabTestingExample/src/PlayFab/PlayFabEventsApi.js index 42c788c9..213a6853 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.161.231124", + sdkVersion: "1.162.231208", requestGetParams: { - sdk: "JavaScriptSDK-1.161.231124" + sdk: "JavaScriptSDK-1.162.231208" }, 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_8"; -PlayFab.sdkVersion = "1.161.231124"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; +PlayFab.sdkVersion = "1.162.231208"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabTestingExample/src/PlayFab/PlayFabExperimentationApi.js b/PlayFabTestingExample/src/PlayFab/PlayFabExperimentationApi.js index e1d6d229..61dcba33 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.161.231124", + sdkVersion: "1.162.231208", requestGetParams: { - sdk: "JavaScriptSDK-1.161.231124" + sdk: "JavaScriptSDK-1.162.231208" }, 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_8"; -PlayFab.sdkVersion = "1.161.231124"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; +PlayFab.sdkVersion = "1.162.231208"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabTestingExample/src/PlayFab/PlayFabGroupsApi.js b/PlayFabTestingExample/src/PlayFab/PlayFabGroupsApi.js index a04e75cc..6b7d02ce 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.161.231124", + sdkVersion: "1.162.231208", requestGetParams: { - sdk: "JavaScriptSDK-1.161.231124" + sdk: "JavaScriptSDK-1.162.231208" }, 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_8"; -PlayFab.sdkVersion = "1.161.231124"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; +PlayFab.sdkVersion = "1.162.231208"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabTestingExample/src/PlayFab/PlayFabInsightsApi.js b/PlayFabTestingExample/src/PlayFab/PlayFabInsightsApi.js index 7f8a2517..2a4e21b4 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.161.231124", + sdkVersion: "1.162.231208", requestGetParams: { - sdk: "JavaScriptSDK-1.161.231124" + sdk: "JavaScriptSDK-1.162.231208" }, 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_8"; -PlayFab.sdkVersion = "1.161.231124"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; +PlayFab.sdkVersion = "1.162.231208"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabTestingExample/src/PlayFab/PlayFabLocalizationApi.js b/PlayFabTestingExample/src/PlayFab/PlayFabLocalizationApi.js index acd87f26..7d3fa8d5 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.161.231124", + sdkVersion: "1.162.231208", requestGetParams: { - sdk: "JavaScriptSDK-1.161.231124" + sdk: "JavaScriptSDK-1.162.231208" }, 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_8"; -PlayFab.sdkVersion = "1.161.231124"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; +PlayFab.sdkVersion = "1.162.231208"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabTestingExample/src/PlayFab/PlayFabMultiplayerApi.js b/PlayFabTestingExample/src/PlayFab/PlayFabMultiplayerApi.js index 077f0bed..a32a9ede 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.161.231124", + sdkVersion: "1.162.231208", requestGetParams: { - sdk: "JavaScriptSDK-1.161.231124" + sdk: "JavaScriptSDK-1.162.231208" }, 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_8"; -PlayFab.sdkVersion = "1.161.231124"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; +PlayFab.sdkVersion = "1.162.231208"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; @@ -425,6 +425,10 @@ PlayFab.MultiplayerApi = { return PlayFab._internalSettings.ExecuteRequestWrapper("/Lobby/JoinLobby", request, "X-EntityToken", callback, customData, extraHeaders); }, + JoinLobbyAsServer: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Lobby/JoinLobbyAsServer", request, "X-EntityToken", callback, customData, extraHeaders); + }, + JoinMatchmakingTicket: function (request, callback, customData, extraHeaders) { return PlayFab._internalSettings.ExecuteRequestWrapper("/Match/JoinMatchmakingTicket", request, "X-EntityToken", callback, customData, extraHeaders); }, @@ -433,6 +437,10 @@ PlayFab.MultiplayerApi = { return PlayFab._internalSettings.ExecuteRequestWrapper("/Lobby/LeaveLobby", request, "X-EntityToken", callback, customData, extraHeaders); }, + LeaveLobbyAsServer: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Lobby/LeaveLobbyAsServer", request, "X-EntityToken", callback, customData, extraHeaders); + }, + ListArchivedMultiplayerServers: function (request, callback, customData, extraHeaders) { return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/ListArchivedMultiplayerServers", request, "X-EntityToken", callback, customData, extraHeaders); }, @@ -561,6 +569,10 @@ PlayFab.MultiplayerApi = { return PlayFab._internalSettings.ExecuteRequestWrapper("/Lobby/UpdateLobby", request, "X-EntityToken", callback, customData, extraHeaders); }, + UpdateLobbyAsServer: function (request, callback, customData, extraHeaders) { + return PlayFab._internalSettings.ExecuteRequestWrapper("/Lobby/UpdateLobbyAsServer", request, "X-EntityToken", callback, customData, extraHeaders); + }, + UploadCertificate: function (request, callback, customData, extraHeaders) { return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/UploadCertificate", request, "X-EntityToken", callback, customData, extraHeaders); }, diff --git a/PlayFabTestingExample/src/PlayFab/PlayFabProfilesApi.js b/PlayFabTestingExample/src/PlayFab/PlayFabProfilesApi.js index e1e9af84..124b5d78 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.161.231124", + sdkVersion: "1.162.231208", requestGetParams: { - sdk: "JavaScriptSDK-1.161.231124" + sdk: "JavaScriptSDK-1.162.231208" }, 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_8"; -PlayFab.sdkVersion = "1.161.231124"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; +PlayFab.sdkVersion = "1.162.231208"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabTestingExample/src/PlayFab/PlayFabServerApi.js b/PlayFabTestingExample/src/PlayFab/PlayFabServerApi.js index 3c0eb743..c8e2a53c 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.161.231124", + sdkVersion: "1.162.231208", requestGetParams: { - sdk: "JavaScriptSDK-1.161.231124" + sdk: "JavaScriptSDK-1.162.231208" }, 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_8"; -PlayFab.sdkVersion = "1.161.231124"; +PlayFab.buildIdentifier = "adobuild_javascriptsdk_116"; +PlayFab.sdkVersion = "1.162.231208"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabTestingExample/src/typings/PlayFab/PlayFabAdminApi.d.ts b/PlayFabTestingExample/src/typings/PlayFab/PlayFabAdminApi.d.ts index f10cb271..b58fa262 100644 --- a/PlayFabTestingExample/src/typings/PlayFab/PlayFabAdminApi.d.ts +++ b/PlayFabTestingExample/src/typings/PlayFab/PlayFabAdminApi.d.ts @@ -727,6 +727,20 @@ declare module PlayFabAdminModels { } + export interface AddInventoryItemsV2SegmentAction { + /** Amount of the item to be granted to a player */ + Amount?: number; + /** The collection id for where the item will be granted in the player inventory */ + CollectionId?: string; + /** The duration in seconds of the subscription to be granted to a player */ + DurationInSeconds?: number; + /** The id of item to be granted to the player */ + ItemId?: string; + /** The stack id for where the item will be granted in the player inventory */ + StackId?: string; + + } + export interface AddInventoryItemV2Content { /** Amount of the item to be granted to a player */ Amount?: number; @@ -1665,6 +1679,16 @@ declare module PlayFabAdminModels { } + export interface DeleteInventoryItemsV2SegmentAction { + /** The collection id for where the item will be removed from the player inventory */ + CollectionId?: string; + /** The id of item to be removed from the player */ + ItemId?: string; + /** The stack id for where the item will be removed from the player inventory */ + StackId?: string; + + } + export interface DeleteInventoryItemV2Content { /** The collection id for where the item will be removed from the player inventory */ CollectionId?: string; @@ -2517,6 +2541,7 @@ declare module PlayFabAdminModels { | "LeaderboardColumnLengthMismatch" | "InvalidStatisticScore" | "LeaderboardColumnsNotSpecified" + | "LeaderboardMaxSizeTooLarge" | "MatchmakingEntityInvalid" | "MatchmakingPlayerAttributesInvalid" | "MatchmakingQueueNotFound" @@ -2560,6 +2585,7 @@ declare module PlayFabAdminModels { | "CatalogItemTypeInvalid" | "CatalogBadRequest" | "CatalogTooManyRequests" + | "InvalidCatalogItemConfiguration" | "ExportInvalidStatusUpdate" | "ExportInvalidPrefix" | "ExportBlobContainerDoesNotExist" @@ -4720,8 +4746,12 @@ declare module PlayFabAdminModels { | "GoogleCloudMessaging"; export interface SegmentTrigger { + /** Add inventory item v2 segment trigger action. */ + AddInventoryItemsV2Action?: AddInventoryItemsV2SegmentAction; /** Ban player segment trigger action. */ BanPlayerAction?: BanPlayerSegmentAction; + /** Delete inventory item v2 segment trigger action. */ + DeleteInventoryItemsV2Action?: DeleteInventoryItemsV2SegmentAction; /** Delete player segment trigger action. */ DeletePlayerAction?: DeletePlayerSegmentAction; /** Delete player statistic segment trigger action. */ @@ -4740,6 +4770,8 @@ declare module PlayFabAdminModels { IncrementPlayerStatisticAction?: IncrementPlayerStatisticSegmentAction; /** Push notification segment trigger action. */ PushNotificationAction?: PushNotificationSegmentAction; + /** Subtract inventory item v2 segment trigger action. */ + SubtractInventoryItemsV2Action?: SubtractInventoryItemsV2SegmentAction; } @@ -5001,6 +5033,20 @@ declare module PlayFabAdminModels { | "FreeTrial" | "PaymentPending"; + export interface SubtractInventoryItemsV2SegmentAction { + /** Amount of the item to removed from the player */ + Amount?: number; + /** The collection id for where the item will be removed from the player inventory */ + CollectionId?: string; + /** The duration in seconds to be removed from the subscription in the players inventory */ + DurationInSeconds?: number; + /** The id of item to be removed from the player */ + ItemId?: string; + /** The stack id for where the item will be removed from the player inventory */ + StackId?: string; + + } + export interface SubtractInventoryItemV2Content { /** Amount of the item to removed from the player */ Amount?: number; diff --git a/PlayFabTestingExample/src/typings/PlayFab/PlayFabMultiplayerApi.d.ts b/PlayFabTestingExample/src/typings/PlayFab/PlayFabMultiplayerApi.d.ts index d2a23d45..753a2bb0 100644 --- a/PlayFabTestingExample/src/typings/PlayFab/PlayFabMultiplayerApi.d.ts +++ b/PlayFabTestingExample/src/typings/PlayFab/PlayFabMultiplayerApi.d.ts @@ -239,6 +239,11 @@ declare module PlayFabMultiplayerModule { * https://docs.microsoft.com/rest/api/playfab/multiplayer/lobby/joinlobby */ JoinLobby(request: PlayFabMultiplayerModels.JoinLobbyRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): Promise>; + /** + * Preview: Join a lobby as a server entity. This is restricted to client lobbies which are using connections. + * https://docs.microsoft.com/rest/api/playfab/multiplayer/lobby/joinlobbyasserver + */ + JoinLobbyAsServer(request: PlayFabMultiplayerModels.JoinLobbyAsServerRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): Promise>; /** * Join a matchmaking ticket. * https://docs.microsoft.com/rest/api/playfab/multiplayer/matchmaking/joinmatchmakingticket @@ -249,6 +254,11 @@ declare module PlayFabMultiplayerModule { * https://docs.microsoft.com/rest/api/playfab/multiplayer/lobby/leavelobby */ LeaveLobby(request: PlayFabMultiplayerModels.LeaveLobbyRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): Promise>; + /** + * Preview: Request for server to leave a lobby. This is restricted to client owned lobbies which are using connections. + * https://docs.microsoft.com/rest/api/playfab/multiplayer/lobby/leavelobbyasserver + */ + LeaveLobbyAsServer(request: PlayFabMultiplayerModels.LeaveLobbyAsServerRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): Promise>; /** * Lists archived multiplayer server sessions for a build. * https://docs.microsoft.com/rest/api/playfab/multiplayer/multiplayerserver/listarchivedmultiplayerservers @@ -413,6 +423,13 @@ declare module PlayFabMultiplayerModule { * https://docs.microsoft.com/rest/api/playfab/multiplayer/lobby/updatelobby */ UpdateLobby(request: PlayFabMultiplayerModels.UpdateLobbyRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): Promise>; + /** + * Preview: Update fields related to a joined server in the lobby the server is in. Servers can keep a lobby from expiring + * by being the one to "update" the lobby in some way. Servers have no impact on last member leave/last member disconnect + * behavior. + * https://docs.microsoft.com/rest/api/playfab/multiplayer/lobby/updatelobbyasserver + */ + UpdateLobbyAsServer(request: PlayFabMultiplayerModels.UpdateLobbyAsServerRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): Promise>; /** * Uploads a multiplayer server game certificate. * https://docs.microsoft.com/rest/api/playfab/multiplayer/multiplayerserver/uploadcertificate @@ -2098,6 +2115,41 @@ declare module PlayFabMultiplayerModels { } + export interface JoinLobbyAsServerRequest extends PlayFabModule.IPlayFabRequestCommon { + /** + * A field which indicates which lobby the game_server will be joining. This field is opaque to everyone except the Lobby + * service. + */ + ConnectionString: string; + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** + * The private key-value pairs which are visible to all entities in the lobby but can only be modified by the joined + * server.At most 30 key - value pairs may be stored here, keys are limited to 30 characters and values to 1000.The total + * size of all serverData values may not exceed 4096 bytes. + */ + ServerData?: { [key: string]: string | null }; + /** + * The game_server entity which is joining the Lobby. If a different game_server entity has already joined the request will + * fail unless the joined entity is disconnected, in which case the incoming game_server entity will replace the + * disconnected entity. + */ + ServerEntity: EntityKey; + + } + + export interface JoinLobbyAsServerResult extends PlayFabModule.IPlayFabResultCommon { + /** Successfully joined lobby's id. */ + LobbyId: string; + /** + * A setting that describes the state of the ServerData after JoinLobbyAsServer call is completed. It is "Initialized", the + * first time a server joins the lobby. It is "Ignored" in any subsequent JoinLobbyAsServer calls after it has been + * initialized. Any new server taking over should call UpdateLobbyAsServer to update ServerData fields. + */ + ServerDataStatus: string; + + } + export interface JoinLobbyRequest extends PlayFabModule.IPlayFabRequestCommon { /** A field which indicates which lobby the user will be joining. This field is opaque to everyone except the Lobby service. */ ConnectionString?: string; @@ -2136,6 +2188,19 @@ declare module PlayFabMultiplayerModels { } + export interface LeaveLobbyAsServerRequest extends PlayFabModule.IPlayFabRequestCommon { + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** The id of the lobby. */ + LobbyId: string; + /** + * The game_server entity leaving the lobby. If the game_server was subscribed to notifications, it will be unsubscribed. + * If a the given game_server entity is not in the lobby, it will fail. + */ + ServerEntity: EntityKey; + + } + export interface LeaveLobbyRequest extends PlayFabModule.IPlayFabRequestCommon { /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ CustomTags?: { [key: string]: string | null }; @@ -3001,6 +3066,10 @@ declare module PlayFabMultiplayerModels { } + type ServerDataStatus = "Initialized" + + | "Ignored"; + export interface ServerDetails { /** The fully qualified domain name of the virtual machine that is hosting this multiplayer server. */ Fqdn?: string; @@ -3357,6 +3426,33 @@ declare module PlayFabMultiplayerModels { } + export interface UpdateLobbyAsServerRequest extends PlayFabModule.IPlayFabRequestCommon { + /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ + CustomTags?: { [key: string]: string | null }; + /** The id of the lobby. */ + LobbyId: string; + /** + * The lobby server. Optional. Set a different server as the joined server of the lobby (there can only be 1 joined + * server). When changing the server the previous server will automatically be unsubscribed. + */ + Server?: EntityKey; + /** + * The private key-value pairs which are visible to all entities in the lobby and modifiable by the joined server. + * Optional. Sets or updates key-value pairs on the lobby. Only the current lobby lobby server can set serverData. Keys may + * be an arbitrary string of at most 30 characters. The total size of all serverData values may not exceed 4096 bytes. + * Values are not individually limited. There can be up to 30 key-value pairs stored here. Keys are case sensitive. + */ + ServerData?: { [key: string]: string | null }; + /** + * The keys to delete from the lobby serverData. Optional. Optional. Deletes key-value pairs on the lobby. Only the current + * joined lobby server can delete serverData. All the specified keys will be removed from the serverData. Keys that do not + * exist in the lobby are a no-op. If the key to delete exists in the serverData (same request) it will result in a bad + * request. + */ + ServerDataToDelete?: string[]; + + } + export interface UpdateLobbyRequest extends PlayFabModule.IPlayFabRequestCommon { /** * The policy indicating who is allowed to join the lobby, and the visibility to queries. May be 'Public', 'Friends' or diff --git a/PlayFabTestingExample/src/typings/PlayFab/PlayFabServerApi.d.ts b/PlayFabTestingExample/src/typings/PlayFab/PlayFabServerApi.d.ts index 40a1c24e..16681d2b 100644 --- a/PlayFabTestingExample/src/typings/PlayFab/PlayFabServerApi.d.ts +++ b/PlayFabTestingExample/src/typings/PlayFab/PlayFabServerApi.d.ts @@ -2357,6 +2357,7 @@ declare module PlayFabServerModels { | "LeaderboardColumnLengthMismatch" | "InvalidStatisticScore" | "LeaderboardColumnsNotSpecified" + | "LeaderboardMaxSizeTooLarge" | "MatchmakingEntityInvalid" | "MatchmakingPlayerAttributesInvalid" | "MatchmakingQueueNotFound" @@ -2400,6 +2401,7 @@ declare module PlayFabServerModels { | "CatalogItemTypeInvalid" | "CatalogBadRequest" | "CatalogTooManyRequests" + | "InvalidCatalogItemConfiguration" | "ExportInvalidStatusUpdate" | "ExportInvalidPrefix" | "ExportBlobContainerDoesNotExist"