@community-fabs/playfab-web-sdk 1.193.250606-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +32 -0
  3. package/dist/Addon.d.ts +731 -0
  4. package/dist/Addon.js +8 -0
  5. package/dist/Addon.js.map +1 -0
  6. package/dist/Admin.d.ts +5675 -0
  7. package/dist/Admin.js +8 -0
  8. package/dist/Admin.js.map +1 -0
  9. package/dist/Authentication.d.ts +136 -0
  10. package/dist/Authentication.js +8 -0
  11. package/dist/Authentication.js.map +1 -0
  12. package/dist/Client.d.ts +6398 -0
  13. package/dist/Client.js +8 -0
  14. package/dist/Client.js.map +1 -0
  15. package/dist/CloudScript.d.ts +679 -0
  16. package/dist/CloudScript.js +8 -0
  17. package/dist/CloudScript.js.map +1 -0
  18. package/dist/Data.d.ts +347 -0
  19. package/dist/Data.js +8 -0
  20. package/dist/Data.js.map +1 -0
  21. package/dist/Economy.d.ts +2910 -0
  22. package/dist/Economy.js +8 -0
  23. package/dist/Economy.js.map +1 -0
  24. package/dist/Events.d.ts +494 -0
  25. package/dist/Events.js +8 -0
  26. package/dist/Events.js.map +1 -0
  27. package/dist/Experimentation.d.ts +504 -0
  28. package/dist/Experimentation.js +8 -0
  29. package/dist/Experimentation.js.map +1 -0
  30. package/dist/Groups.d.ts +785 -0
  31. package/dist/Groups.js +8 -0
  32. package/dist/Groups.js.map +1 -0
  33. package/dist/Insights.d.ts +167 -0
  34. package/dist/Insights.js +8 -0
  35. package/dist/Insights.js.map +1 -0
  36. package/dist/Localization.d.ts +23 -0
  37. package/dist/Localization.js +8 -0
  38. package/dist/Localization.js.map +1 -0
  39. package/dist/Matchmaker.d.ts +271 -0
  40. package/dist/Matchmaker.js +8 -0
  41. package/dist/Matchmaker.js.map +1 -0
  42. package/dist/Multiplayer.d.ts +5587 -0
  43. package/dist/Multiplayer.js +8 -0
  44. package/dist/Multiplayer.js.map +1 -0
  45. package/dist/PlayFabCommon-Dnp_xHg5.d.ts +68 -0
  46. package/dist/Profiles.d.ts +422 -0
  47. package/dist/Profiles.js +8 -0
  48. package/dist/Profiles.js.map +1 -0
  49. package/dist/Progression.d.ts +862 -0
  50. package/dist/Progression.js +8 -0
  51. package/dist/Progression.js.map +1 -0
  52. package/dist/Server.d.ts +5551 -0
  53. package/dist/Server.js +8 -0
  54. package/dist/Server.js.map +1 -0
  55. package/dist/chunk-3DU2LYBT.js +2673 -0
  56. package/dist/chunk-3DU2LYBT.js.map +1 -0
  57. package/dist/chunk-6OZSERVG.js +198 -0
  58. package/dist/chunk-6OZSERVG.js.map +1 -0
  59. package/dist/chunk-BD7SF6AA.js +357 -0
  60. package/dist/chunk-BD7SF6AA.js.map +1 -0
  61. package/dist/chunk-CPJ6FMQ3.js +421 -0
  62. package/dist/chunk-CPJ6FMQ3.js.map +1 -0
  63. package/dist/chunk-IFBBLD7Q.js +2477 -0
  64. package/dist/chunk-IFBBLD7Q.js.map +1 -0
  65. package/dist/chunk-J2KKGAWN.js +2387 -0
  66. package/dist/chunk-J2KKGAWN.js.map +1 -0
  67. package/dist/chunk-K2I6VCQK.js +270 -0
  68. package/dist/chunk-K2I6VCQK.js.map +1 -0
  69. package/dist/chunk-MHSKIHSG.js +22 -0
  70. package/dist/chunk-MHSKIHSG.js.map +1 -0
  71. package/dist/chunk-MQZCB76F.js +82 -0
  72. package/dist/chunk-MQZCB76F.js.map +1 -0
  73. package/dist/chunk-OZLGFCPU.js +421 -0
  74. package/dist/chunk-OZLGFCPU.js.map +1 -0
  75. package/dist/chunk-P4FCADAY.js +175 -0
  76. package/dist/chunk-P4FCADAY.js.map +1 -0
  77. package/dist/chunk-QHQBHTHP.js +76 -0
  78. package/dist/chunk-QHQBHTHP.js.map +1 -0
  79. package/dist/chunk-QJRCYM7I.js +82 -0
  80. package/dist/chunk-QJRCYM7I.js.map +1 -0
  81. package/dist/chunk-RVBFE5D5.js +237 -0
  82. package/dist/chunk-RVBFE5D5.js.map +1 -0
  83. package/dist/chunk-SF5NNTLE.js +225 -0
  84. package/dist/chunk-SF5NNTLE.js.map +1 -0
  85. package/dist/chunk-SZJQBNVS.js +197 -0
  86. package/dist/chunk-SZJQBNVS.js.map +1 -0
  87. package/dist/chunk-WBPWV6H3.js +2970 -0
  88. package/dist/chunk-WBPWV6H3.js.map +1 -0
  89. package/dist/chunk-YI4OQ74L.js +1048 -0
  90. package/dist/chunk-YI4OQ74L.js.map +1 -0
  91. package/dist/index.d.ts +18 -0
  92. package/dist/index.js +72 -0
  93. package/dist/index.js.map +1 -0
  94. package/package.json +29 -0
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/constants.ts","../src/PlayFabContext.ts","../src/PlayFabCommon.ts"],"sourcesContent":["export interface ISettings {\n /** You must set this value for PlayFabSdk to work properly (Found in the Game Manager for your title, at the PlayFab Website) */\n titleId: string;\n /** For security reasons you must never expose this value to the client or players - You must set this value for Server-APIs to work properly (Found in the Game Manager for your title, at the PlayFab Website) */\n developerSecretKey: string;\n productionServerUrl: string;\n /** Headers to apply to every request */\n globalHeaders?: Record<string, string>;\n /** The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this */\n verticalName?: string | null;\n}\n\nexport const ErrorMessages = {\n titleId: \"Must be have settings.titleId set to call this method\",\n loggedIn: \"Must be logged in to call this method\",\n entityToken: \"You must successfully call GetEntityToken before calling this\",\n secretKey: \"Must have settings.developerSecretKey set to call this method\",\n};\n\nexport const AuthInfoMap = {\n \"X-EntityToken\": {\n authAttr: \"entityToken\",\n authError: ErrorMessages.entityToken,\n },\n \"X-Authorization\": {\n authAttr: \"sessionTicket\",\n authError: ErrorMessages.loggedIn,\n },\n \"X-SecretKey\": {\n authAttr: \"developerSecretKey\",\n authError: ErrorMessages.secretKey,\n },\n};\n\nexport default {\n sdkVersion: \"1.193.250606\",\n sdkFingerprint: \"JavaScriptSDK-1.193.250606\",\n buildIdentifier: \"ghactions_community-playfab-web-sdk\",\n defaultSettings: {\n titleId: \"\",\n developerSecretKey: \"\",\n globalHeaders: {},\n productionServerUrl: \".playfabapi.com\",\n verticalName: \"\"\n } as ISettings\n};\n","import constants, { type ISettings } from \"./constants\";\n\nexport type AuthContext = {\n PlayFabId: string | null;\n EntityId: string | null;\n EntityType: string | null;\n SessionTicket: string | null;\n EntityToken: string | null;\n};\n\nexport class PlayFabContext {\n private static _instance: PlayFabContext;\n\n settings: ISettings = constants.defaultSettings;\n\n authenticationContext: AuthContext = {\n PlayFabId: null,\n EntityId: null,\n EntityType: null,\n SessionTicket: null,\n EntityToken: null,\n };\n\n sessionTicket: string | null = null;\n\n entityToken: string | null = null;\n\n private constructor() {}\n\n public static get instance(): PlayFabContext {\n if (!PlayFabContext._instance) {\n PlayFabContext._instance = new PlayFabContext();\n }\n\n return PlayFabContext._instance;\n }\n}\n","import constants, { ISettings, AuthInfoMap, ErrorMessages } from \"./constants\";\nimport { AuthContext, PlayFabContext } from \"./PlayFabContext\";\nimport { IPlayFabError, IPlayFabResultCommon } from \"./types/PlayFab\";\n\nexport class PlayFabCommon {\n buildIdentifier: string = constants.buildIdentifier;\n requestGetParams = {\n sdk: constants.sdkFingerprint,\n } as const;\n errorTitleId = ErrorMessages.titleId;\n private _context = PlayFabContext.instance;\n\n constructor(settings: Partial<ISettings> | undefined = undefined) {\n if (settings) {\n Object.assign(this._context.settings, settings);\n }\n }\n\n get settings() {\n return this._context.settings;\n }\n\n get authenticationContext() {\n return this._context.authenticationContext;\n }\n\n get sessionTicket() {\n return this._context.sessionTicket;\n }\n\n set sessionTicket(value: string | null) {\n this._context.sessionTicket = value;\n }\n\n get entityToken() {\n return this._context.entityToken;\n }\n\n set entityToken(value: string | null) {\n this._context.entityToken = value;\n }\n\n GetServerUrl() {\n if (!(this.settings.productionServerUrl.substring(0, 4) === \"http\")) {\n return `https://${this.settings.verticalName || this.settings.titleId}${\n this.settings.productionServerUrl\n }`;\n } else {\n return this.settings.productionServerUrl;\n }\n }\n\n InjectHeaders(\n xhr: XMLHttpRequest,\n headersObj: Record<string, string> | undefined\n ) {\n if (!headersObj) return;\n\n for (const headerKey in headersObj) {\n try {\n xhr.setRequestHeader(headerKey, headersObj[headerKey]);\n } catch (e) {\n console.log(\n `Failed to append header: ${headerKey} = ${headersObj[headerKey]} Error: ${e}`\n );\n }\n }\n }\n\n async ExecuteRequest<T extends IPlayFabResultCommon>(\n url: string,\n body: any,\n authkey: string | null,\n authValue: string | null,\n extraHeaders?: Record<string, string>\n ) {\n if (body == null) {\n body = {};\n }\n\n const requestBody = JSON.stringify(body);\n\n const apiParams = new URLSearchParams(this.requestGetParams);\n const apiUrl = new URL(\n apiParams.size ? `${url}?${apiParams.toString()}` : url\n );\n\n const response = await fetch(apiUrl.toString(), {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"X-PlayFabSDK\": \"JavaScriptSDK-\" + constants.sdkVersion,\n ...this.settings.globalHeaders,\n ...extraHeaders,\n ...(authkey && authValue ? { [authkey]: authValue } : {}),\n },\n body: requestBody,\n });\n\n const jsonResponse = await response.json();\n\n if (!response.ok || jsonResponse.code !== 200) {\n throw jsonResponse as IPlayFabError;\n }\n\n return jsonResponse as { data: T };\n }\n\n UpdateAuthenticationContext(currentAuthContext: AuthContext, result: any) {\n var authenticationContextUpdates = {} as AuthContext;\n if (result?.PlayFabId) {\n authenticationContextUpdates.PlayFabId = result.PlayFabId;\n }\n if (result?.SessionTicket) {\n authenticationContextUpdates.SessionTicket = result.SessionTicket;\n }\n if (result?.EntityToken) {\n authenticationContextUpdates.EntityId = result.EntityToken.Entity.Id;\n authenticationContextUpdates.EntityType = result.EntityToken.Entity.Type;\n authenticationContextUpdates.EntityToken = result.EntityToken.EntityToken;\n }\n // Update the authenticationContext with values from the result\n currentAuthContext = Object.assign(\n currentAuthContext,\n authenticationContextUpdates\n );\n\n this._context.authenticationContext = currentAuthContext;\n\n return currentAuthContext;\n }\n\n GetAuthInfo(request: any, authKey: string) {\n // Use the most-recently saved authKey, unless one was provided in the request via the AuthenticationContext\n var authError = AuthInfoMap[authKey as keyof typeof AuthInfoMap].authError;\n var authAttr = AuthInfoMap[authKey as keyof typeof AuthInfoMap].authAttr;\n var defaultAuthValue: string | null = null;\n if (authAttr === \"entityToken\") defaultAuthValue = this.entityToken;\n else if (authAttr === \"sessionTicket\")\n defaultAuthValue = this.sessionTicket;\n else if (authAttr === \"developerSecretKey\")\n defaultAuthValue = this.settings.developerSecretKey;\n var authValue = request.AuthenticationContext\n ? request.AuthenticationContext[authAttr]\n : defaultAuthValue;\n return { authKey, authValue, authError };\n }\n\n async ExecuteRequestWrapper<T extends IPlayFabResultCommon>(\n apiURL: string,\n request: any,\n authKey: string | null,\n extraHeaders?: Record<string, string>\n ) {\n var authValue = null;\n if (authKey !== null) {\n const { authError, ...authInfo } = this.GetAuthInfo(request, authKey);\n authKey = authInfo.authKey;\n authValue = authInfo.authValue;\n if (!authValue) throw authError;\n }\n return (\n await this.ExecuteRequest<T>(\n this.GetServerUrl() + apiURL,\n request,\n authKey,\n authValue,\n extraHeaders\n )\n ).data;\n }\n\n GenerateErrorReport(error: IPlayFabError | null): string {\n if (error == null) return \"\";\n var fullErrors = error.errorMessage;\n for (var paramName in error.errorDetails)\n for (var msgIdx in error.errorDetails[paramName])\n fullErrors +=\n \"\\n\" + paramName + \": \" + error.errorDetails[paramName][msgIdx];\n return fullErrors;\n }\n\n ForgetAllCredentials() {\n this._context.sessionTicket = null;\n this._context.entityToken = null;\n }\n}\n"],"mappings":";AAYO,IAAM,gBAAgB;AAAA,EAC3B,SAAS;AAAA,EACT,UAAU;AAAA,EACV,aAAa;AAAA,EACb,WAAW;AACb;AAEO,IAAM,cAAc;AAAA,EACzB,iBAAiB;AAAA,IACf,UAAU;AAAA,IACV,WAAW,cAAc;AAAA,EAC3B;AAAA,EACA,mBAAmB;AAAA,IACjB,UAAU;AAAA,IACV,WAAW,cAAc;AAAA,EAC3B;AAAA,EACA,eAAe;AAAA,IACb,UAAU;A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C;AACvD,QAAI,SAAS,KAAM,QAAO;AAC1B,QAAI,aAAa,MAAM;AACvB,aAAS,aAAa,MAAM;AAC1B,eAAS,UAAU,MAAM,aAAa,SAAS;AAC7C,sBACE,OAAO,YAAY,OAAO,MAAM,aAAa,SAAS,EAAE,MAAM;AACpE,WAAO;AAAA,EACT;AAAA,EAEA,uBAAuB;AACrB,SAAK,SAAS,gBAAgB;AAC9B,SAAK,SAAS,cAAc;AAAA,EAC9B;AACF;","names":[]}
@@ -0,0 +1,357 @@
1
+ import {
2
+ PlayFabCommon
3
+ } from "./chunk-6OZSERVG.js";
4
+
5
+ // src/apis/PlayFabAddonApi.ts
6
+ var PlayFabAddonApi = class extends PlayFabCommon {
7
+ /**
8
+ * Creates the Apple addon on a title, or updates it if it already exists.
9
+ *
10
+ * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/createorupdateapple Microsoft Documentation}
11
+ * @example
12
+ * await addonClient.CreateOrUpdateApple({
13
+ * "AppBundleId": "123456",
14
+ * "AppSharedSecret": "654321",
15
+ * "RequireSecureAuthentication": true
16
+ * });
17
+ */
18
+ CreateOrUpdateApple(request, extraHeaders) {
19
+ return this.ExecuteRequestWrapper("/Addon/CreateOrUpdateApple", request, "X-EntityToken", extraHeaders);
20
+ }
21
+ /**
22
+ * Creates the Facebook addon on a title, or updates it if it already exists.
23
+ *
24
+ * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/createorupdatefacebook Microsoft Documentation}
25
+ * @example
26
+ * await addonClient.CreateOrUpdateFacebook({
27
+ * "AppID": "123456",
28
+ * "AppSecret": "654321",
29
+ * "NotificationEmail": "user@example.com"
30
+ * });
31
+ */
32
+ CreateOrUpdateFacebook(request, extraHeaders) {
33
+ return this.ExecuteRequestWrapper("/Addon/CreateOrUpdateFacebook", request, "X-EntityToken", extraHeaders);
34
+ }
35
+ /**
36
+ * Creates the Facebook Instant Games addon on a title, or updates it if it already exists.
37
+ *
38
+ * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/createorupdatefacebookinstantgames Microsoft Documentation}
39
+ * @example
40
+ * await addonClient.CreateOrUpdateFacebookInstantGames({
41
+ * "AppID": "123456",
42
+ * "AppSecret": "654321"
43
+ * });
44
+ */
45
+ CreateOrUpdateFacebookInstantGames(request, extraHeaders) {
46
+ return this.ExecuteRequestWrapper("/Addon/CreateOrUpdateFacebookInstantGames", request, "X-EntityToken", extraHeaders);
47
+ }
48
+ /**
49
+ * Creates the Google addon on a title, or updates it if it already exists.
50
+ *
51
+ * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/createorupdategoogle Microsoft Documentation}
52
+ * @example
53
+ * await addonClient.CreateOrUpdateGoogle({
54
+ * "AppPackageID": "abcdef",
55
+ * "AppLicenseKey": "fedcba",
56
+ * "OAuthClientID": "123456",
57
+ * "OAuthClientSecret": "654321",
58
+ * "OAuthCustomRedirectUri": "https://yourdomaingoeshere.com"
59
+ * });
60
+ */
61
+ CreateOrUpdateGoogle(request, extraHeaders) {
62
+ return this.ExecuteRequestWrapper("/Addon/CreateOrUpdateGoogle", request, "X-EntityToken", extraHeaders);
63
+ }
64
+ /**
65
+ * Creates the Kongregate addon on a title, or updates it if it already exists.
66
+ *
67
+ * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/createorupdatekongregate Microsoft Documentation}
68
+ * @example
69
+ * await addonClient.CreateOrUpdateKongregate({
70
+ * "SecretAPIKey": "123456"
71
+ * });
72
+ */
73
+ CreateOrUpdateKongregate(request, extraHeaders) {
74
+ return this.ExecuteRequestWrapper("/Addon/CreateOrUpdateKongregate", request, "X-EntityToken", extraHeaders);
75
+ }
76
+ /**
77
+ * Creates the Nintendo addon on a title, or updates it if it already exists.
78
+ *
79
+ * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/createorupdatenintendo Microsoft Documentation}
80
+ * @example
81
+ * await addonClient.CreateOrUpdateNintendo({
82
+ * "ApplicationID": "123456",
83
+ * "Environments": [
84
+ * {
85
+ * "ID": "1",
86
+ * "ClientID": "123456",
87
+ * "ClientSecret": "654321"
88
+ * }
89
+ * ]
90
+ * });
91
+ */
92
+ CreateOrUpdateNintendo(request, extraHeaders) {
93
+ return this.ExecuteRequestWrapper("/Addon/CreateOrUpdateNintendo", request, "X-EntityToken", extraHeaders);
94
+ }
95
+ /**
96
+ * Creates the PSN addon on a title, or updates it if it already exists.
97
+ *
98
+ * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/createorupdatepsn Microsoft Documentation}
99
+ * @example
100
+ * await addonClient.CreateOrUpdatePSN({
101
+ * "ClientID": "123456",
102
+ * "ClientSecret": "abcdef",
103
+ * "NextGenClientID": "654321",
104
+ * "NextGenClientSecret": "fedcba"
105
+ * });
106
+ */
107
+ CreateOrUpdatePSN(request, extraHeaders) {
108
+ return this.ExecuteRequestWrapper("/Addon/CreateOrUpdatePSN", request, "X-EntityToken", extraHeaders);
109
+ }
110
+ /**
111
+ * Creates the Steam addon on a title, or updates it if it already exists.
112
+ *
113
+ * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/createorupdatesteam Microsoft Documentation}
114
+ * @example
115
+ * await addonClient.CreateOrUpdateSteam({
116
+ * "ApplicationId": "123456",
117
+ * "SecretKey": "654321",
118
+ * "UseSandbox": true,
119
+ * "EnforceServiceSpecificTickets": true
120
+ * });
121
+ */
122
+ CreateOrUpdateSteam(request, extraHeaders) {
123
+ return this.ExecuteRequestWrapper("/Addon/CreateOrUpdateSteam", request, "X-EntityToken", extraHeaders);
124
+ }
125
+ /**
126
+ * Creates the ToxMod addon on a title, or updates it if it already exists.
127
+ *
128
+ * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/createorupdatetoxmod Microsoft Documentation}
129
+ * @example
130
+ * await addonClient.CreateOrUpdateToxMod({
131
+ * "Enabled": false,
132
+ * "AccountId": "123456",
133
+ * "AccountKey": "654321"
134
+ * });
135
+ */
136
+ CreateOrUpdateToxMod(request, extraHeaders) {
137
+ return this.ExecuteRequestWrapper("/Addon/CreateOrUpdateToxMod", request, "X-EntityToken", extraHeaders);
138
+ }
139
+ /**
140
+ * Creates the Twitch addon on a title, or updates it if it already exists.
141
+ *
142
+ * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/createorupdatetwitch Microsoft Documentation}
143
+ * @example
144
+ * await addonClient.CreateOrUpdateTwitch({
145
+ * "ClientID": "123456",
146
+ * "ClientSecret": "654321"
147
+ * });
148
+ */
149
+ CreateOrUpdateTwitch(request, extraHeaders) {
150
+ return this.ExecuteRequestWrapper("/Addon/CreateOrUpdateTwitch", request, "X-EntityToken", extraHeaders);
151
+ }
152
+ /**
153
+ * Deletes the Apple addon on a title.
154
+ *
155
+ * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/deleteapple Microsoft Documentation}
156
+ * @example
157
+ * await addonClient.DeleteApple({});
158
+ */
159
+ DeleteApple(request, extraHeaders) {
160
+ return this.ExecuteRequestWrapper("/Addon/DeleteApple", request, "X-EntityToken", extraHeaders);
161
+ }
162
+ /**
163
+ * Deletes the Facebook addon on a title.
164
+ *
165
+ * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/deletefacebook Microsoft Documentation}
166
+ * @example
167
+ * await addonClient.DeleteFacebook({});
168
+ */
169
+ DeleteFacebook(request, extraHeaders) {
170
+ return this.ExecuteRequestWrapper("/Addon/DeleteFacebook", request, "X-EntityToken", extraHeaders);
171
+ }
172
+ /**
173
+ * Deletes the Facebook addon on a title.
174
+ *
175
+ * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/deletefacebookinstantgames Microsoft Documentation}
176
+ * @example
177
+ * await addonClient.DeleteFacebookInstantGames({});
178
+ */
179
+ DeleteFacebookInstantGames(request, extraHeaders) {
180
+ return this.ExecuteRequestWrapper("/Addon/DeleteFacebookInstantGames", request, "X-EntityToken", extraHeaders);
181
+ }
182
+ /**
183
+ * Deletes the Google addon on a title.
184
+ *
185
+ * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/deletegoogle Microsoft Documentation}
186
+ * @example
187
+ * await addonClient.DeleteGoogle({});
188
+ */
189
+ DeleteGoogle(request, extraHeaders) {
190
+ return this.ExecuteRequestWrapper("/Addon/DeleteGoogle", request, "X-EntityToken", extraHeaders);
191
+ }
192
+ /**
193
+ * Deletes the Kongregate addon on a title.
194
+ *
195
+ * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/deletekongregate Microsoft Documentation}
196
+ * @example
197
+ * await addonClient.DeleteKongregate({});
198
+ */
199
+ DeleteKongregate(request, extraHeaders) {
200
+ return this.ExecuteRequestWrapper("/Addon/DeleteKongregate", request, "X-EntityToken", extraHeaders);
201
+ }
202
+ /**
203
+ * Deletes the Nintendo addon on a title.
204
+ *
205
+ * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/deletenintendo Microsoft Documentation}
206
+ * @example
207
+ * await addonClient.DeleteNintendo({});
208
+ */
209
+ DeleteNintendo(request, extraHeaders) {
210
+ return this.ExecuteRequestWrapper("/Addon/DeleteNintendo", request, "X-EntityToken", extraHeaders);
211
+ }
212
+ /**
213
+ * Deletes the PSN addon on a title.
214
+ *
215
+ * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/deletepsn Microsoft Documentation}
216
+ * @example
217
+ * await addonClient.DeletePSN({});
218
+ */
219
+ DeletePSN(request, extraHeaders) {
220
+ return this.ExecuteRequestWrapper("/Addon/DeletePSN", request, "X-EntityToken", extraHeaders);
221
+ }
222
+ /**
223
+ * Deletes the Steam addon on a title.
224
+ *
225
+ * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/deletesteam Microsoft Documentation}
226
+ * @example
227
+ * await addonClient.DeleteSteam({});
228
+ */
229
+ DeleteSteam(request, extraHeaders) {
230
+ return this.ExecuteRequestWrapper("/Addon/DeleteSteam", request, "X-EntityToken", extraHeaders);
231
+ }
232
+ /**
233
+ * Deletes the ToxMod addon on a title.
234
+ *
235
+ * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/deletetoxmod Microsoft Documentation}
236
+ * @example
237
+ * await addonClient.DeleteToxMod({});
238
+ */
239
+ DeleteToxMod(request, extraHeaders) {
240
+ return this.ExecuteRequestWrapper("/Addon/DeleteToxMod", request, "X-EntityToken", extraHeaders);
241
+ }
242
+ /**
243
+ * Deletes the Twitch addon on a title.
244
+ *
245
+ * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/deletetwitch Microsoft Documentation}
246
+ * @example
247
+ * await addonClient.DeleteTwitch({});
248
+ */
249
+ DeleteTwitch(request, extraHeaders) {
250
+ return this.ExecuteRequestWrapper("/Addon/DeleteTwitch", request, "X-EntityToken", extraHeaders);
251
+ }
252
+ /**
253
+ * Gets information of the Apple addon on a title, omits secrets.
254
+ *
255
+ * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/getapple Microsoft Documentation}
256
+ * @example
257
+ * await addonClient.GetApple({});
258
+ */
259
+ GetApple(request, extraHeaders) {
260
+ return this.ExecuteRequestWrapper("/Addon/GetApple", request, "X-EntityToken", extraHeaders);
261
+ }
262
+ /**
263
+ * Gets information of the Facebook addon on a title, omits secrets.
264
+ *
265
+ * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/getfacebook Microsoft Documentation}
266
+ * @example
267
+ * await addonClient.GetFacebook({});
268
+ */
269
+ GetFacebook(request, extraHeaders) {
270
+ return this.ExecuteRequestWrapper("/Addon/GetFacebook", request, "X-EntityToken", extraHeaders);
271
+ }
272
+ /**
273
+ * Gets information of the Facebook Instant Games addon on a title, omits secrets.
274
+ *
275
+ * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/getfacebookinstantgames Microsoft Documentation}
276
+ * @example
277
+ * await addonClient.GetFacebookInstantGames({});
278
+ */
279
+ GetFacebookInstantGames(request, extraHeaders) {
280
+ return this.ExecuteRequestWrapper("/Addon/GetFacebookInstantGames", request, "X-EntityToken", extraHeaders);
281
+ }
282
+ /**
283
+ * Gets information of the Google addon on a title, omits secrets.
284
+ *
285
+ * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/getgoogle Microsoft Documentation}
286
+ * @example
287
+ * await addonClient.GetGoogle({});
288
+ */
289
+ GetGoogle(request, extraHeaders) {
290
+ return this.ExecuteRequestWrapper("/Addon/GetGoogle", request, "X-EntityToken", extraHeaders);
291
+ }
292
+ /**
293
+ * Gets information of the Kongregate addon on a title, omits secrets.
294
+ *
295
+ * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/getkongregate Microsoft Documentation}
296
+ * @example
297
+ * await addonClient.GetKongregate({});
298
+ */
299
+ GetKongregate(request, extraHeaders) {
300
+ return this.ExecuteRequestWrapper("/Addon/GetKongregate", request, "X-EntityToken", extraHeaders);
301
+ }
302
+ /**
303
+ * Gets information of the Nintendo addon on a title, omits secrets.
304
+ *
305
+ * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/getnintendo Microsoft Documentation}
306
+ * @example
307
+ * await addonClient.GetNintendo({});
308
+ */
309
+ GetNintendo(request, extraHeaders) {
310
+ return this.ExecuteRequestWrapper("/Addon/GetNintendo", request, "X-EntityToken", extraHeaders);
311
+ }
312
+ /**
313
+ * Gets information of the PSN addon on a title, omits secrets.
314
+ *
315
+ * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/getpsn Microsoft Documentation}
316
+ * @example
317
+ * await addonClient.GetPSN({});
318
+ */
319
+ GetPSN(request, extraHeaders) {
320
+ return this.ExecuteRequestWrapper("/Addon/GetPSN", request, "X-EntityToken", extraHeaders);
321
+ }
322
+ /**
323
+ * Gets information of the Steam addon on a title, omits secrets.
324
+ *
325
+ * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/getsteam Microsoft Documentation}
326
+ * @example
327
+ * await addonClient.GetSteam({});
328
+ */
329
+ GetSteam(request, extraHeaders) {
330
+ return this.ExecuteRequestWrapper("/Addon/GetSteam", request, "X-EntityToken", extraHeaders);
331
+ }
332
+ /**
333
+ * Gets information of the ToxMod addon on a title, omits secrets.
334
+ *
335
+ * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/gettoxmod Microsoft Documentation}
336
+ * @example
337
+ * await addonClient.GetToxMod({});
338
+ */
339
+ GetToxMod(request, extraHeaders) {
340
+ return this.ExecuteRequestWrapper("/Addon/GetToxMod", request, "X-EntityToken", extraHeaders);
341
+ }
342
+ /**
343
+ * Gets information of the Twitch addon on a title, omits secrets.
344
+ *
345
+ * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/gettwitch Microsoft Documentation}
346
+ * @example
347
+ * await addonClient.GetTwitch({});
348
+ */
349
+ GetTwitch(request, extraHeaders) {
350
+ return this.ExecuteRequestWrapper("/Addon/GetTwitch", request, "X-EntityToken", extraHeaders);
351
+ }
352
+ };
353
+
354
+ export {
355
+ PlayFabAddonApi
356
+ };
357
+ //# sourceMappingURL=chunk-BD7SF6AA.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/apis/PlayFabAddonApi.ts"],"sourcesContent":["import type {\n CreateOrUpdateAppleRequest,\n CreateOrUpdateFacebookRequest,\n CreateOrUpdateFacebookInstantGamesRequest,\n CreateOrUpdateGoogleRequest,\n CreateOrUpdateKongregateRequest,\n CreateOrUpdateNintendoRequest,\n CreateOrUpdatePSNRequest,\n CreateOrUpdateSteamRequest,\n CreateOrUpdateToxModRequest,\n CreateOrUpdateTwitchRequest,\n DeleteAppleRequest,\n DeleteFacebookRequest,\n DeleteFacebookInstantGamesRequest,\n DeleteGoogleRequest,\n DeleteKongregateRequest,\n DeleteNintendoRequest,\n DeletePSNRequest,\n DeleteSteamRequest,\n DeleteToxModRequest,\n DeleteTwitchRequest,\n GetAppleRequest,\n GetFacebookRequest,\n GetFacebookInstantGamesRequest,\n GetGoogleRequest,\n GetKongregateRequest,\n GetNintendoRequest,\n GetPSNRequest,\n GetSteamRequest,\n GetToxModRequest,\n GetTwitchRequest,\n CreateOrUpdateAppleResponse,\n CreateOrUpdateFacebookResponse,\n CreateOrUpdateFacebookInstantGamesResponse,\n CreateOrUpdateGoogleResponse,\n CreateOrUpdateKongregateResponse,\n CreateOrUpdateNintendoResponse,\n CreateOrUpdatePSNResponse,\n CreateOrUpdateSteamResponse,\n CreateOrUpdateToxModResponse,\n CreateOrUpdateTwitchResponse,\n DeleteAppleResponse,\n DeleteFacebookResponse,\n DeleteFacebookInstantGamesResponse,\n DeleteGoogleResponse,\n DeleteKongregateResponse,\n DeleteNintendoResponse,\n DeletePSNResponse,\n DeleteSteamResponse,\n DeleteToxModResponse,\n DeleteTwitchResponse,\n GetAppleResponse,\n GetFacebookResponse,\n GetFacebookInstantGamesResponse,\n GetGoogleResponse,\n GetKongregateResponse,\n GetNintendoResponse,\n GetPSNResponse,\n GetSteamResponse,\n GetToxModResponse,\n GetTwitchResponse,\n} from \"../types/PlayFabAddonApi\";\nimport { PlayFabCommon } from \"../PlayFabCommon\";\n\nexport default class PlayFabAddonApi extends PlayFabCommon {\n\n /**\n * Creates the Apple addon on a title, or updates it if it already exists.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/createorupdateapple Microsoft Documentation}\n * @example\n * await addonClient.CreateOrUpdateApple({\n * \"AppBundleId\": \"123456\",\n * \"AppSharedSecret\": \"654321\",\n * \"RequireSecureAuthentication\": true\n * });\n */\n CreateOrUpdateApple (request: CreateOrUpdateAppleRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<CreateOrUpdateAppleResponse>(\"/Addon/CreateOrUpdateApple\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Creates the Facebook addon on a title, or updates it if it already exists.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/createorupdatefacebook Microsoft Documentation}\n * @example\n * await addonClient.CreateOrUpdateFacebook({\n * \"AppID\": \"123456\",\n * \"AppSecret\": \"654321\",\n * \"NotificationEmail\": \"user@example.com\"\n * });\n */\n CreateOrUpdateFacebook (request: CreateOrUpdateFacebookRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<CreateOrUpdateFacebookResponse>(\"/Addon/CreateOrUpdateFacebook\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Creates the Facebook Instant Games addon on a title, or updates it if it already exists.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/createorupdatefacebookinstantgames Microsoft Documentation}\n * @example\n * await addonClient.CreateOrUpdateFacebookInstantGames({\n * \"AppID\": \"123456\",\n * \"AppSecret\": \"654321\"\n * });\n */\n CreateOrUpdateFacebookInstantGames (request: CreateOrUpdateFacebookInstantGamesRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<CreateOrUpdateFacebookInstantGamesResponse>(\"/Addon/CreateOrUpdateFacebookInstantGames\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Creates the Google addon on a title, or updates it if it already exists.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/createorupdategoogle Microsoft Documentation}\n * @example\n * await addonClient.CreateOrUpdateGoogle({\n * \"AppPackageID\": \"abcdef\",\n * \"AppLicenseKey\": \"fedcba\",\n * \"OAuthClientID\": \"123456\",\n * \"OAuthClientSecret\": \"654321\",\n * \"OAuthCustomRedirectUri\": \"https://yourdomaingoeshere.com\"\n * });\n */\n CreateOrUpdateGoogle (request: CreateOrUpdateGoogleRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<CreateOrUpdateGoogleResponse>(\"/Addon/CreateOrUpdateGoogle\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Creates the Kongregate addon on a title, or updates it if it already exists.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/createorupdatekongregate Microsoft Documentation}\n * @example\n * await addonClient.CreateOrUpdateKongregate({\n * \"SecretAPIKey\": \"123456\"\n * });\n */\n CreateOrUpdateKongregate (request: CreateOrUpdateKongregateRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<CreateOrUpdateKongregateResponse>(\"/Addon/CreateOrUpdateKongregate\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Creates the Nintendo addon on a title, or updates it if it already exists.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/createorupdatenintendo Microsoft Documentation}\n * @example\n * await addonClient.CreateOrUpdateNintendo({\n * \"ApplicationID\": \"123456\",\n * \"Environments\": [\n * {\n * \"ID\": \"1\",\n * \"ClientID\": \"123456\",\n * \"ClientSecret\": \"654321\"\n * }\n * ]\n * });\n */\n CreateOrUpdateNintendo (request: CreateOrUpdateNintendoRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<CreateOrUpdateNintendoResponse>(\"/Addon/CreateOrUpdateNintendo\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Creates the PSN addon on a title, or updates it if it already exists.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/createorupdatepsn Microsoft Documentation}\n * @example\n * await addonClient.CreateOrUpdatePSN({\n * \"ClientID\": \"123456\",\n * \"ClientSecret\": \"abcdef\",\n * \"NextGenClientID\": \"654321\",\n * \"NextGenClientSecret\": \"fedcba\"\n * });\n */\n CreateOrUpdatePSN (request: CreateOrUpdatePSNRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<CreateOrUpdatePSNResponse>(\"/Addon/CreateOrUpdatePSN\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Creates the Steam addon on a title, or updates it if it already exists.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/createorupdatesteam Microsoft Documentation}\n * @example\n * await addonClient.CreateOrUpdateSteam({\n * \"ApplicationId\": \"123456\",\n * \"SecretKey\": \"654321\",\n * \"UseSandbox\": true,\n * \"EnforceServiceSpecificTickets\": true\n * });\n */\n CreateOrUpdateSteam (request: CreateOrUpdateSteamRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<CreateOrUpdateSteamResponse>(\"/Addon/CreateOrUpdateSteam\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Creates the ToxMod addon on a title, or updates it if it already exists.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/createorupdatetoxmod Microsoft Documentation}\n * @example\n * await addonClient.CreateOrUpdateToxMod({\n * \"Enabled\": false,\n * \"AccountId\": \"123456\",\n * \"AccountKey\": \"654321\"\n * });\n */\n CreateOrUpdateToxMod (request: CreateOrUpdateToxModRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<CreateOrUpdateToxModResponse>(\"/Addon/CreateOrUpdateToxMod\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Creates the Twitch addon on a title, or updates it if it already exists.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/createorupdatetwitch Microsoft Documentation}\n * @example\n * await addonClient.CreateOrUpdateTwitch({\n * \"ClientID\": \"123456\",\n * \"ClientSecret\": \"654321\"\n * });\n */\n CreateOrUpdateTwitch (request: CreateOrUpdateTwitchRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<CreateOrUpdateTwitchResponse>(\"/Addon/CreateOrUpdateTwitch\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Deletes the Apple addon on a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/deleteapple Microsoft Documentation}\n * @example\n * await addonClient.DeleteApple({});\n */\n DeleteApple (request: DeleteAppleRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<DeleteAppleResponse>(\"/Addon/DeleteApple\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Deletes the Facebook addon on a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/deletefacebook Microsoft Documentation}\n * @example\n * await addonClient.DeleteFacebook({});\n */\n DeleteFacebook (request: DeleteFacebookRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<DeleteFacebookResponse>(\"/Addon/DeleteFacebook\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Deletes the Facebook addon on a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/deletefacebookinstantgames Microsoft Documentation}\n * @example\n * await addonClient.DeleteFacebookInstantGames({});\n */\n DeleteFacebookInstantGames (request: DeleteFacebookInstantGamesRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<DeleteFacebookInstantGamesResponse>(\"/Addon/DeleteFacebookInstantGames\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Deletes the Google addon on a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/deletegoogle Microsoft Documentation}\n * @example\n * await addonClient.DeleteGoogle({});\n */\n DeleteGoogle (request: DeleteGoogleRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<DeleteGoogleResponse>(\"/Addon/DeleteGoogle\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Deletes the Kongregate addon on a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/deletekongregate Microsoft Documentation}\n * @example\n * await addonClient.DeleteKongregate({});\n */\n DeleteKongregate (request: DeleteKongregateRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<DeleteKongregateResponse>(\"/Addon/DeleteKongregate\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Deletes the Nintendo addon on a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/deletenintendo Microsoft Documentation}\n * @example\n * await addonClient.DeleteNintendo({});\n */\n DeleteNintendo (request: DeleteNintendoRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<DeleteNintendoResponse>(\"/Addon/DeleteNintendo\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Deletes the PSN addon on a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/deletepsn Microsoft Documentation}\n * @example\n * await addonClient.DeletePSN({});\n */\n DeletePSN (request: DeletePSNRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<DeletePSNResponse>(\"/Addon/DeletePSN\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Deletes the Steam addon on a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/deletesteam Microsoft Documentation}\n * @example\n * await addonClient.DeleteSteam({});\n */\n DeleteSteam (request: DeleteSteamRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<DeleteSteamResponse>(\"/Addon/DeleteSteam\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Deletes the ToxMod addon on a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/deletetoxmod Microsoft Documentation}\n * @example\n * await addonClient.DeleteToxMod({});\n */\n DeleteToxMod (request: DeleteToxModRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<DeleteToxModResponse>(\"/Addon/DeleteToxMod\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Deletes the Twitch addon on a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/deletetwitch Microsoft Documentation}\n * @example\n * await addonClient.DeleteTwitch({});\n */\n DeleteTwitch (request: DeleteTwitchRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<DeleteTwitchResponse>(\"/Addon/DeleteTwitch\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Gets information of the Apple addon on a title, omits secrets.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/getapple Microsoft Documentation}\n * @example\n * await addonClient.GetApple({});\n */\n GetApple (request: GetAppleRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetAppleResponse>(\"/Addon/GetApple\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Gets information of the Facebook addon on a title, omits secrets.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/getfacebook Microsoft Documentation}\n * @example\n * await addonClient.GetFacebook({});\n */\n GetFacebook (request: GetFacebookRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetFacebookResponse>(\"/Addon/GetFacebook\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Gets information of the Facebook Instant Games addon on a title, omits secrets.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/getfacebookinstantgames Microsoft Documentation}\n * @example\n * await addonClient.GetFacebookInstantGames({});\n */\n GetFacebookInstantGames (request: GetFacebookInstantGamesRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetFacebookInstantGamesResponse>(\"/Addon/GetFacebookInstantGames\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Gets information of the Google addon on a title, omits secrets.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/getgoogle Microsoft Documentation}\n * @example\n * await addonClient.GetGoogle({});\n */\n GetGoogle (request: GetGoogleRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetGoogleResponse>(\"/Addon/GetGoogle\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Gets information of the Kongregate addon on a title, omits secrets.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/getkongregate Microsoft Documentation}\n * @example\n * await addonClient.GetKongregate({});\n */\n GetKongregate (request: GetKongregateRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetKongregateResponse>(\"/Addon/GetKongregate\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Gets information of the Nintendo addon on a title, omits secrets.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/getnintendo Microsoft Documentation}\n * @example\n * await addonClient.GetNintendo({});\n */\n GetNintendo (request: GetNintendoRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetNintendoResponse>(\"/Addon/GetNintendo\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Gets information of the PSN addon on a title, omits secrets.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/getpsn Microsoft Documentation}\n * @example\n * await addonClient.GetPSN({});\n */\n GetPSN (request: GetPSNRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetPSNResponse>(\"/Addon/GetPSN\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Gets information of the Steam addon on a title, omits secrets.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/getsteam Microsoft Documentation}\n * @example\n * await addonClient.GetSteam({});\n */\n GetSteam (request: GetSteamRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetSteamResponse>(\"/Addon/GetSteam\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Gets information of the ToxMod addon on a title, omits secrets.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/gettoxmod Microsoft Documentation}\n * @example\n * await addonClient.GetToxMod({});\n */\n GetToxMod (request: GetToxModRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetToxModResponse>(\"/Addon/GetToxMod\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Gets information of the Twitch addon on a title, omits secrets.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/gettwitch Microsoft Documentation}\n * @example\n * await addonClient.GetTwitch({});\n */\n GetTwitch (request: GetTwitchRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetTwitchResponse>(\"/Addon/GetTwitch\", request, \"X-EntityToken\", extraHeaders);\n }\n\n};\n"],"mappings":";;;;;AAgEA,IAAqB,kBAArB,cAA6C,cAAc;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAazD,oBAAqB,SAAqC,cAAuC;AAC/F,WAAO,KAAK,sBAAmD,8BAA8B,SAAS,iBAAiB,YAAY;AAAA,EACrI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAaA,uBAAwB,SAAwC,cAAuC;AACrG,WAAO,KAAK,sBAA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