@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,175 @@
1
+ import {
2
+ PlayFabCommon
3
+ } from "./chunk-6OZSERVG.js";
4
+
5
+ // src/apis/PlayFabDataApi.ts
6
+ var PlayFabDataApi = class extends PlayFabCommon {
7
+ /**
8
+ * Abort pending file uploads to an entity's profile.
9
+ *
10
+ * {@link https://docs.microsoft.com/rest/api/playfab/file/file/abortfileuploads Microsoft Documentation}
11
+ * @example
12
+ * await fileClient.AbortFileUploads({
13
+ * "FileNames": [
14
+ * "avatar",
15
+ * "game_state"
16
+ * ],
17
+ * "Entity": {
18
+ * "Id": "ID",
19
+ * "Type": "title_player_account",
20
+ * "TypeString": "title_player_account"
21
+ * }
22
+ * });
23
+ */
24
+ AbortFileUploads(request, extraHeaders) {
25
+ return this.ExecuteRequestWrapper("/File/AbortFileUploads", request, "X-EntityToken", extraHeaders);
26
+ }
27
+ /**
28
+ * Delete files on an entity's profile.
29
+ *
30
+ * {@link https://docs.microsoft.com/rest/api/playfab/file/file/deletefiles Microsoft Documentation}
31
+ * @example
32
+ * await fileClient.DeleteFiles({
33
+ * "FileNames": [
34
+ * "game_state",
35
+ * "avatar"
36
+ * ],
37
+ * "Entity": {
38
+ * "Id": "ID",
39
+ * "Type": "title_player_account",
40
+ * "TypeString": "title_player_account"
41
+ * }
42
+ * });
43
+ */
44
+ DeleteFiles(request, extraHeaders) {
45
+ return this.ExecuteRequestWrapper("/File/DeleteFiles", request, "X-EntityToken", extraHeaders);
46
+ }
47
+ /**
48
+ * Finalize file uploads to an entity's profile.
49
+ *
50
+ * {@link https://docs.microsoft.com/rest/api/playfab/file/file/finalizefileuploads Microsoft Documentation}
51
+ * @example
52
+ * await fileClient.FinalizeFileUploads({
53
+ * "ProfileVersion": 0,
54
+ * "FileNames": [
55
+ * "avatar",
56
+ * "game_state"
57
+ * ],
58
+ * "Entity": {
59
+ * "Id": "ID",
60
+ * "Type": "title_player_account",
61
+ * "TypeString": "title_player_account"
62
+ * }
63
+ * });
64
+ */
65
+ FinalizeFileUploads(request, extraHeaders) {
66
+ return this.ExecuteRequestWrapper("/File/FinalizeFileUploads", request, "X-EntityToken", extraHeaders);
67
+ }
68
+ /**
69
+ * Retrieves file metadata from an entity's profile.
70
+ *
71
+ * {@link https://docs.microsoft.com/rest/api/playfab/file/file/getfiles Microsoft Documentation}
72
+ * @example
73
+ * await fileClient.GetFiles({
74
+ * "Entity": {
75
+ * "Id": "ID",
76
+ * "Type": "title_player_account",
77
+ * "TypeString": "title_player_account"
78
+ * }
79
+ * });
80
+ */
81
+ GetFiles(request, extraHeaders) {
82
+ return this.ExecuteRequestWrapper("/File/GetFiles", request, "X-EntityToken", extraHeaders);
83
+ }
84
+ /**
85
+ * Retrieves objects from an entity's profile.
86
+ *
87
+ * {@link https://docs.microsoft.com/rest/api/playfab/object/object/getobjects Microsoft Documentation}
88
+ * @example
89
+ * await objectClient.GetObjects({
90
+ * "Entity": {
91
+ * "Id": "ABC90712ABC",
92
+ * "Type": "title_player_account",
93
+ * "TypeString": "title_player_account"
94
+ * }
95
+ * });
96
+ */
97
+ GetObjects(request, extraHeaders) {
98
+ return this.ExecuteRequestWrapper("/Object/GetObjects", request, "X-EntityToken", extraHeaders);
99
+ }
100
+ /**
101
+ * Initiates file uploads to an entity's profile.
102
+ *
103
+ * {@link https://docs.microsoft.com/rest/api/playfab/file/file/initiatefileuploads Microsoft Documentation}
104
+ * @example
105
+ * await fileClient.InitiateFileUploads({
106
+ * "FileNames": [
107
+ * "avatar",
108
+ * "game_state"
109
+ * ],
110
+ * "Entity": {
111
+ * "Id": "ID",
112
+ * "Type": "title_player_account",
113
+ * "TypeString": "title_player_account"
114
+ * }
115
+ * });
116
+ */
117
+ InitiateFileUploads(request, extraHeaders) {
118
+ return this.ExecuteRequestWrapper("/File/InitiateFileUploads", request, "X-EntityToken", extraHeaders);
119
+ }
120
+ /**
121
+ * Sets objects on an entity's profile.
122
+ *
123
+ * {@link https://docs.microsoft.com/rest/api/playfab/object/object/setobjects Microsoft Documentation}
124
+ * @example
125
+ * await objectClient.SetObjects({
126
+ * "ExpectedProfileVersion": 5,
127
+ * "Objects": [
128
+ * {
129
+ * "ObjectName": "SaveSate",
130
+ * "DataObject": {
131
+ * "PlayerDetails": {
132
+ * "LastMissionSuccess": "2017-06-15T11:05:19Z",
133
+ * "LastMissionFailure": "2017-06-12T11:05:19Z",
134
+ * "MapPosition": [
135
+ * 22.0,
136
+ * 37.78
137
+ * ],
138
+ * "IsPaidUpgrade": true
139
+ * },
140
+ * "GameSettings": {
141
+ * "Screen": "FriendsList",
142
+ * "Favorites": [
143
+ * "Place 1",
144
+ * "Place 2"
145
+ * ]
146
+ * }
147
+ * },
148
+ * "SimpleStatements": {
149
+ * "Read": [
150
+ * {
151
+ * "Friend": true
152
+ * }
153
+ * ],
154
+ * "Write": [
155
+ * "Self"
156
+ * ]
157
+ * }
158
+ * }
159
+ * ],
160
+ * "Entity": {
161
+ * "Id": "A8140AB9109712B",
162
+ * "Type": "title_player_account",
163
+ * "TypeString": "title_player_account"
164
+ * }
165
+ * });
166
+ */
167
+ SetObjects(request, extraHeaders) {
168
+ return this.ExecuteRequestWrapper("/Object/SetObjects", request, "X-EntityToken", extraHeaders);
169
+ }
170
+ };
171
+
172
+ export {
173
+ PlayFabDataApi
174
+ };
175
+ //# sourceMappingURL=chunk-P4FCADAY.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/apis/PlayFabDataApi.ts"],"sourcesContent":["import type {\n AbortFileUploadsRequest,\n DeleteFilesRequest,\n FinalizeFileUploadsRequest,\n GetFilesRequest,\n GetObjectsRequest,\n InitiateFileUploadsRequest,\n SetObjectsRequest,\n AbortFileUploadsResponse,\n DeleteFilesResponse,\n FinalizeFileUploadsResponse,\n GetFilesResponse,\n GetObjectsResponse,\n InitiateFileUploadsResponse,\n SetObjectsResponse,\n} from \"../types/PlayFabDataApi\";\nimport { PlayFabCommon } from \"../PlayFabCommon\";\n\nexport default class PlayFabDataApi extends PlayFabCommon {\n\n /**\n * Abort pending file uploads to an entity's profile.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/file/file/abortfileuploads Microsoft Documentation}\n * @example\n * await fileClient.AbortFileUploads({\n * \"FileNames\": [\n * \"avatar\",\n * \"game_state\"\n * ],\n * \"Entity\": {\n * \"Id\": \"ID\",\n * \"Type\": \"title_player_account\",\n * \"TypeString\": \"title_player_account\"\n * }\n * });\n */\n AbortFileUploads (request: AbortFileUploadsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<AbortFileUploadsResponse>(\"/File/AbortFileUploads\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Delete files on an entity's profile.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/file/file/deletefiles Microsoft Documentation}\n * @example\n * await fileClient.DeleteFiles({\n * \"FileNames\": [\n * \"game_state\",\n * \"avatar\"\n * ],\n * \"Entity\": {\n * \"Id\": \"ID\",\n * \"Type\": \"title_player_account\",\n * \"TypeString\": \"title_player_account\"\n * }\n * });\n */\n DeleteFiles (request: DeleteFilesRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<DeleteFilesResponse>(\"/File/DeleteFiles\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Finalize file uploads to an entity's profile.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/file/file/finalizefileuploads Microsoft Documentation}\n * @example\n * await fileClient.FinalizeFileUploads({\n * \"ProfileVersion\": 0,\n * \"FileNames\": [\n * \"avatar\",\n * \"game_state\"\n * ],\n * \"Entity\": {\n * \"Id\": \"ID\",\n * \"Type\": \"title_player_account\",\n * \"TypeString\": \"title_player_account\"\n * }\n * });\n */\n FinalizeFileUploads (request: FinalizeFileUploadsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<FinalizeFileUploadsResponse>(\"/File/FinalizeFileUploads\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Retrieves file metadata from an entity's profile.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/file/file/getfiles Microsoft Documentation}\n * @example\n * await fileClient.GetFiles({\n * \"Entity\": {\n * \"Id\": \"ID\",\n * \"Type\": \"title_player_account\",\n * \"TypeString\": \"title_player_account\"\n * }\n * });\n */\n GetFiles (request: GetFilesRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetFilesResponse>(\"/File/GetFiles\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Retrieves objects from an entity's profile.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/object/object/getobjects Microsoft Documentation}\n * @example\n * await objectClient.GetObjects({\n * \"Entity\": {\n * \"Id\": \"ABC90712ABC\",\n * \"Type\": \"title_player_account\",\n * \"TypeString\": \"title_player_account\"\n * }\n * });\n */\n GetObjects (request: GetObjectsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetObjectsResponse>(\"/Object/GetObjects\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Initiates file uploads to an entity's profile.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/file/file/initiatefileuploads Microsoft Documentation}\n * @example\n * await fileClient.InitiateFileUploads({\n * \"FileNames\": [\n * \"avatar\",\n * \"game_state\"\n * ],\n * \"Entity\": {\n * \"Id\": \"ID\",\n * \"Type\": \"title_player_account\",\n * \"TypeString\": \"title_player_account\"\n * }\n * });\n */\n InitiateFileUploads (request: InitiateFileUploadsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<InitiateFileUploadsResponse>(\"/File/InitiateFileUploads\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Sets objects on an entity's profile.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/object/object/setobjects Microsoft Documentation}\n * @example\n * await objectClient.SetObjects({\n * \"ExpectedProfileVersion\": 5,\n * \"Objects\": [\n * {\n * \"ObjectName\": \"SaveSate\",\n * \"DataObject\": {\n * \"PlayerDetails\": {\n * \"LastMissionSuccess\": \"2017-06-15T11:05:19Z\",\n * \"LastMissionFailure\": \"2017-06-12T11:05:19Z\",\n * \"MapPosition\": [\n * 22.0,\n * 37.78\n * ],\n * \"IsPaidUpgrade\": true\n * },\n * \"GameSettings\": {\n * \"Screen\": \"FriendsList\",\n * \"Favorites\": [\n * \"Place 1\",\n * \"Place 2\"\n * ]\n * }\n * },\n * \"SimpleStatements\": {\n * \"Read\": [\n * {\n * \"Friend\": true\n * }\n * ],\n * \"Write\": [\n * \"Self\"\n * ]\n * }\n * }\n * ],\n * \"Entity\": {\n * \"Id\": \"A8140AB9109712B\",\n * \"Type\": \"title_player_account\",\n * \"TypeString\": \"title_player_account\"\n * }\n * });\n */\n SetObjects (request: SetObjectsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<SetObjectsResponse>(\"/Object/SetObjects\", request, \"X-EntityToken\", extraHeaders);\n }\n\n};\n"],"mappings":";;;;;AAkBA,IAAqB,iBAArB,cAA4C,cAAc;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAmBxD,iBAAkB,SAAkC,cAAuC;AACzF,WAAO,KAAK,sBAAgD,0BAA0B,SAAS,iBAAiB,YAAY;AAAA,EAC9H;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA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A,WAAY,SAA4B,cAAuC;AAC7E,WAAO,KAAK,sBAA0C,sBAAsB,SAAS,iBAAiB,YAAY;AAAA,EACpH;AAEF;","names":[]}
@@ -0,0 +1,76 @@
1
+ import {
2
+ PlayFabCommon
3
+ } from "./chunk-6OZSERVG.js";
4
+
5
+ // src/apis/PlayFabMatchmakerApi.ts
6
+ var PlayFabMatchmakerApi = class extends PlayFabCommon {
7
+ /**
8
+ * Validates a user with the PlayFab service
9
+ *
10
+ * {@link https://docs.microsoft.com/rest/api/playfab/matchmaker/matchmaking/authuser Microsoft Documentation}
11
+ * @deprecated Do not use
12
+ */
13
+ AuthUser(request, extraHeaders) {
14
+ return this.ExecuteRequestWrapper("/Matchmaker/AuthUser", request, "X-SecretKey", extraHeaders);
15
+ }
16
+ /**
17
+ * Inform the matchmaker that a Game Server Instance is removed.
18
+ *
19
+ * {@link https://docs.microsoft.com/rest/api/playfab/matchmaker/matchmaking/deregistergame Microsoft Documentation}
20
+ * @deprecated Please use Server/DeregisterGame instead.
21
+ */
22
+ DeregisterGame(request, extraHeaders) {
23
+ return this.ExecuteRequestWrapper("/Matchmaker/DeregisterGame", request, "X-SecretKey", extraHeaders);
24
+ }
25
+ /**
26
+ * Informs the PlayFab game server hosting service that the indicated user has joined the Game Server Instance specified
27
+ *
28
+ * {@link https://docs.microsoft.com/rest/api/playfab/matchmaker/matchmaking/playerjoined Microsoft Documentation}
29
+ * @deprecated Do not use
30
+ */
31
+ PlayerJoined(request, extraHeaders) {
32
+ return this.ExecuteRequestWrapper("/Matchmaker/PlayerJoined", request, "X-SecretKey", extraHeaders);
33
+ }
34
+ /**
35
+ * Informs the PlayFab game server hosting service that the indicated user has left the Game Server Instance specified
36
+ *
37
+ * {@link https://docs.microsoft.com/rest/api/playfab/matchmaker/matchmaking/playerleft Microsoft Documentation}
38
+ * @deprecated Do not use
39
+ */
40
+ PlayerLeft(request, extraHeaders) {
41
+ return this.ExecuteRequestWrapper("/Matchmaker/PlayerLeft", request, "X-SecretKey", extraHeaders);
42
+ }
43
+ /**
44
+ * Inform the matchmaker that a new Game Server Instance is added.
45
+ *
46
+ * {@link https://docs.microsoft.com/rest/api/playfab/matchmaker/matchmaking/registergame Microsoft Documentation}
47
+ * @deprecated Please use Server/RegisterGame instead.
48
+ */
49
+ RegisterGame(request, extraHeaders) {
50
+ return this.ExecuteRequestWrapper("/Matchmaker/RegisterGame", request, "X-SecretKey", extraHeaders);
51
+ }
52
+ /**
53
+ * Instructs the PlayFab game server hosting service to instantiate a new Game Server Instance
54
+ *
55
+ * {@link https://docs.microsoft.com/rest/api/playfab/matchmaker/matchmaking/startgame Microsoft Documentation}
56
+ * @deprecated Do not use
57
+ */
58
+ StartGame(request, extraHeaders) {
59
+ return this.ExecuteRequestWrapper("/Matchmaker/StartGame", request, "X-SecretKey", extraHeaders);
60
+ }
61
+ /**
62
+ * Retrieves the relevant details for a specified user, which the external match-making service can then use to compute
63
+ * effective matches
64
+ *
65
+ * {@link https://docs.microsoft.com/rest/api/playfab/matchmaker/matchmaking/userinfo Microsoft Documentation}
66
+ * @deprecated Do not use
67
+ */
68
+ UserInfo(request, extraHeaders) {
69
+ return this.ExecuteRequestWrapper("/Matchmaker/UserInfo", request, "X-SecretKey", extraHeaders);
70
+ }
71
+ };
72
+
73
+ export {
74
+ PlayFabMatchmakerApi
75
+ };
76
+ //# sourceMappingURL=chunk-QHQBHTHP.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/apis/PlayFabMatchmakerApi.ts"],"sourcesContent":["import type {\n AuthUserRequest,\n DeregisterGameRequest,\n PlayerJoinedRequest,\n PlayerLeftRequest,\n RegisterGameRequest,\n StartGameRequest,\n UserInfoRequest,\n AuthUserResponse,\n DeregisterGameResponse,\n PlayerJoinedResponse,\n PlayerLeftResponse,\n RegisterGameResponse,\n StartGameResponse,\n UserInfoResponse,\n} from \"../types/PlayFabMatchmakerApi\";\nimport { PlayFabCommon } from \"../PlayFabCommon\";\n\nexport default class PlayFabMatchmakerApi extends PlayFabCommon {\n\n /**\n * Validates a user with the PlayFab service\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/matchmaker/matchmaking/authuser Microsoft Documentation}\n * @deprecated Do not use\n */\n AuthUser (request: AuthUserRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<AuthUserResponse>(\"/Matchmaker/AuthUser\", request, \"X-SecretKey\", extraHeaders);\n }\n\n /**\n * Inform the matchmaker that a Game Server Instance is removed.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/matchmaker/matchmaking/deregistergame Microsoft Documentation}\n * @deprecated Please use Server/DeregisterGame instead.\n */\n DeregisterGame (request: DeregisterGameRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<DeregisterGameResponse>(\"/Matchmaker/DeregisterGame\", request, \"X-SecretKey\", extraHeaders);\n }\n\n /**\n * Informs the PlayFab game server hosting service that the indicated user has joined the Game Server Instance specified\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/matchmaker/matchmaking/playerjoined Microsoft Documentation}\n * @deprecated Do not use\n */\n PlayerJoined (request: PlayerJoinedRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<PlayerJoinedResponse>(\"/Matchmaker/PlayerJoined\", request, \"X-SecretKey\", extraHeaders);\n }\n\n /**\n * Informs the PlayFab game server hosting service that the indicated user has left the Game Server Instance specified\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/matchmaker/matchmaking/playerleft Microsoft Documentation}\n * @deprecated Do not use\n */\n PlayerLeft (request: PlayerLeftRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<PlayerLeftResponse>(\"/Matchmaker/PlayerLeft\", request, \"X-SecretKey\", extraHeaders);\n }\n\n /**\n * Inform the matchmaker that a new Game Server Instance is added.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/matchmaker/matchmaking/registergame Microsoft Documentation}\n * @deprecated Please use Server/RegisterGame instead.\n */\n RegisterGame (request: RegisterGameRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<RegisterGameResponse>(\"/Matchmaker/RegisterGame\", request, \"X-SecretKey\", extraHeaders);\n }\n\n /**\n * Instructs the PlayFab game server hosting service to instantiate a new Game Server Instance\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/matchmaker/matchmaking/startgame Microsoft Documentation}\n * @deprecated Do not use\n */\n StartGame (request: StartGameRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<StartGameResponse>(\"/Matchmaker/StartGame\", request, \"X-SecretKey\", extraHeaders);\n }\n\n /**\n * Retrieves the relevant details for a specified user, which the external match-making service can then use to compute\n * effective matches\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/matchmaker/matchmaking/userinfo Microsoft Documentation}\n * @deprecated Do not use\n */\n UserInfo (request: UserInfoRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<UserInfoResponse>(\"/Matchmaker/UserInfo\", request, \"X-SecretKey\", extraHeaders);\n }\n\n};\n"],"mappings":";;;;;AAkBA,IAAqB,uBAArB,cAAkD,cAAc;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQ9D,SAAU,SAA0B,cAAuC;AACzE,WAAO,KAAK,sBAAwC,wBAAwB,SAAS,eAAe,YAAY;AAAA,EAClH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,eAAgB,SAAgC,cAAuC;AACrF,WAAO,KAAK,sBAA8C,8BAA8B,SAAS,eAAe,YAAY;AAAA,EAC9H;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,aAAc,SAA8B,cAAuC;AACjF,WAAO,KAAK,sBAA4C,4BAA4B,SAAS,eAAe,YAAY;AAAA,EAC1H;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,WAAY,SAA4B,cAAuC;AAC7E,WAAO,KAAK,sBAA0C,0BAA0B,SAAS,eAAe,YAAY;AAAA,EACtH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,aAAc,SAA8B,cAAuC;AACjF,WAAO,KAAK,sBAA4C,4BAA4B,SAAS,eAAe,YAAY;AAAA,EAC1H;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,UAAW,SAA2B,cAAuC;AAC3E,WAAO,KAAK,sBAAyC,yBAAyB,SAAS,eAAe,YAAY;AAAA,EACpH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASA,SAAU,SAA0B,cAAuC;AACzE,WAAO,KAAK,sBAAwC,wBAAwB,SAAS,eAAe,YAAY;AAAA,EAClH;AAEF;","names":[]}
@@ -0,0 +1,82 @@
1
+ import {
2
+ PlayFabCommon
3
+ } from "./chunk-6OZSERVG.js";
4
+
5
+ // src/apis/PlayFabAuthenticationApi.ts
6
+ var PlayFabAuthenticationApi = class extends PlayFabCommon {
7
+ /**
8
+ * Create a game_server entity token and return a new or existing game_server entity.
9
+ *
10
+ * {@link https://docs.microsoft.com/rest/api/playfab/gameserveridentity/authentication/authenticategameserverwithcustomid Microsoft Documentation}
11
+ * @example
12
+ * await gameserveridentityClient.AuthenticateGameServerWithCustomId({
13
+ * "CustomId": "12345678123412341234123456789abc"
14
+ * });
15
+ */
16
+ AuthenticateGameServerWithCustomId(request, extraHeaders) {
17
+ return this.ExecuteRequestWrapper("/GameServerIdentity/AuthenticateGameServerWithCustomId", request, "X-EntityToken", extraHeaders).then((result) => {
18
+ var _a;
19
+ if ((_a = result == null ? void 0 : result.EntityToken) == null ? void 0 : _a.EntityToken)
20
+ this.entityToken = result.EntityToken.EntityToken;
21
+ return result;
22
+ });
23
+ }
24
+ /**
25
+ * Delete a game_server entity.
26
+ *
27
+ * {@link https://docs.microsoft.com/rest/api/playfab/gameserveridentity/authentication/delete Microsoft Documentation}
28
+ * @example
29
+ * await gameserveridentityClient.Delete({
30
+ * "Entity": {
31
+ * "Id": "3D00C64954",
32
+ * "Type": "game_server",
33
+ * "TypeString": "game_server"
34
+ * }
35
+ * });
36
+ */
37
+ Delete(request, extraHeaders) {
38
+ return this.ExecuteRequestWrapper("/GameServerIdentity/Delete", request, "X-EntityToken", extraHeaders);
39
+ }
40
+ /**
41
+ * Method to exchange a legacy AuthenticationTicket or title SecretKey for an Entity Token or to refresh a still valid
42
+ * Entity Token.
43
+ *
44
+ * {@link https://docs.microsoft.com/rest/api/playfab/authentication/authentication/getentitytoken Microsoft Documentation}
45
+ * @example
46
+ * await authenticationClient.GetEntityToken({});
47
+ */
48
+ GetEntityToken(request, extraHeaders) {
49
+ var authKey = null;
50
+ var authValue = null;
51
+ if (!authKey && this.sessionTicket) {
52
+ var authInfo = this.GetAuthInfo(request, authKey = "X-Authorization");
53
+ authKey = authInfo.authKey, authValue = authInfo.authValue;
54
+ }
55
+ if (!authKey && this.settings.developerSecretKey) {
56
+ var authInfo = this.GetAuthInfo(request, authKey = "X-SecretKey");
57
+ authKey = authInfo.authKey, authValue = authInfo.authValue;
58
+ }
59
+ return this.ExecuteRequestWrapper("/Authentication/GetEntityToken", request, authKey, extraHeaders).then((result) => {
60
+ if (result == null ? void 0 : result.EntityToken)
61
+ this.entityToken = result.EntityToken;
62
+ return result;
63
+ });
64
+ }
65
+ /**
66
+ * Method for a server to validate a client provided EntityToken. Only callable by the title entity.
67
+ *
68
+ * {@link https://docs.microsoft.com/rest/api/playfab/authentication/authentication/validateentitytoken Microsoft Documentation}
69
+ * @example
70
+ * await authenticationClient.ValidateEntityToken({
71
+ * "EntityToken": "50c61b9065b27a124a400ee3b95d404313986969"
72
+ * });
73
+ */
74
+ ValidateEntityToken(request, extraHeaders) {
75
+ return this.ExecuteRequestWrapper("/Authentication/ValidateEntityToken", request, "X-EntityToken", extraHeaders);
76
+ }
77
+ };
78
+
79
+ export {
80
+ PlayFabAuthenticationApi
81
+ };
82
+ //# sourceMappingURL=chunk-QJRCYM7I.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/apis/PlayFabAuthenticationApi.ts"],"sourcesContent":["import type { EmptyResponse } from \"../types/PlayFab\";\nimport type {\n AuthenticateCustomIdRequest,\n DeleteRequest,\n GetEntityTokenRequest,\n ValidateEntityTokenRequest,\n AuthenticateCustomIdResult,\n GetEntityTokenResponse,\n ValidateEntityTokenResponse,\n} from \"../types/PlayFabAuthenticationApi\";\nimport { PlayFabCommon } from \"../PlayFabCommon\";\n\nexport default class PlayFabAuthenticationApi extends PlayFabCommon {\n\n /**\n * Create a game_server entity token and return a new or existing game_server entity.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/gameserveridentity/authentication/authenticategameserverwithcustomid Microsoft Documentation}\n * @example\n * await gameserveridentityClient.AuthenticateGameServerWithCustomId({\n * \"CustomId\": \"12345678123412341234123456789abc\"\n * });\n */\n AuthenticateGameServerWithCustomId (request: AuthenticateCustomIdRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<AuthenticateCustomIdResult>(\"/GameServerIdentity/AuthenticateGameServerWithCustomId\", request, \"X-EntityToken\", extraHeaders)\n .then(result => {\n if (result?.EntityToken?.EntityToken)\n this.entityToken = result.EntityToken.EntityToken;\n return result;\n });\n }\n\n /**\n * Delete a game_server entity.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/gameserveridentity/authentication/delete Microsoft Documentation}\n * @example\n * await gameserveridentityClient.Delete({\n * \"Entity\": {\n * \"Id\": \"3D00C64954\",\n * \"Type\": \"game_server\",\n * \"TypeString\": \"game_server\"\n * }\n * });\n */\n Delete (request: DeleteRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<EmptyResponse>(\"/GameServerIdentity/Delete\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Method to exchange a legacy AuthenticationTicket or title SecretKey for an Entity Token or to refresh a still valid\n * Entity Token.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/authentication/authentication/getentitytoken Microsoft Documentation}\n * @example\n * await authenticationClient.GetEntityToken({});\n */\n GetEntityToken (request: GetEntityTokenRequest, extraHeaders?: Record<string, string>) {\n var authKey: string | null = null; var authValue: string | null = null;\n if (!authKey && this.sessionTicket) { var authInfo = this.GetAuthInfo(request, authKey=\"X-Authorization\"); authKey = authInfo.authKey, authValue = authInfo.authValue; }\n if (!authKey && this.settings.developerSecretKey) { var authInfo = this.GetAuthInfo(request, authKey=\"X-SecretKey\"); authKey = authInfo.authKey, authValue = authInfo.authValue; }\n return this.ExecuteRequestWrapper<GetEntityTokenResponse>(\"/Authentication/GetEntityToken\", request, authKey, extraHeaders)\n .then(result => {\n if (result?.EntityToken)\n this.entityToken = result.EntityToken;\n return result;\n });\n }\n\n /**\n * Method for a server to validate a client provided EntityToken. Only callable by the title entity.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/authentication/authentication/validateentitytoken Microsoft Documentation}\n * @example\n * await authenticationClient.ValidateEntityToken({\n * \"EntityToken\": \"50c61b9065b27a124a400ee3b95d404313986969\"\n * });\n */\n ValidateEntityToken (request: ValidateEntityTokenRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<ValidateEntityTokenResponse>(\"/Authentication/ValidateEntityToken\", request, \"X-EntityToken\", extraHeaders);\n }\n\n};\n"],"mappings":";;;;;AAYA,IAAqB,2BAArB,cAAsD,cAAc;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAWlE,mCAAoC,SAAsC,cAAuC;AAC/G,WAAO,KAAK,sBAAkD,0DAA0D,SAAS,iBAAiB,YAAY,EAC3J,KAAK,YAAU;AAzBtB;AA0BQ,WAAI,sCAAQ,gBAAR,mBAAqB;AACvB,aAAK,cAAc,OAAO,YAAY;AACxC,aAAO;AAAA,IACT,CAAC;AAAA,EACL;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAeA,OAAQ,SAAwB,cAAuC;AACrE,WAAO,KAAK,sBAAqC,8BAA8B,SAAS,iBAAiB,YAAY;AAAA,EACvH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUA,eAAgB,SAAgC,cAAuC;AACrF,QAAI,UAAyB;AAAM,QAAI,YAA2B;AAClE,QAAI,CAAC,WAAW,KAAK,eAAe;AAAE,UAAI,WAAW,KAAK,YAAY,SAAS,UAAQ,iBAAiB;AAAG,gBAAU,SAAS,SAAS,YAAY,SAAS;AAAA,IAAW;AACvK,QAAI,CAAC,WAAW,KAAK,SAAS,oBAAoB;AAAE,UAAI,WAAW,KAAK,YAAY,SAAS,UAAQ,aAAa;AAAG,gBAAU,SAAS,SAAS,YAAY,SAAS;AAAA,IAAW;AACjL,WAAO,KAAK,sBAA8C,kCAAkC,SAAS,SAAS,YAAY,EACvH,KAAK,YAAU;AACd,UAAI,iCAAQ;AACV,aAAK,cAAc,OAAO;AAC5B,aAAO;AAAA,IACT,CAAC;AAAA,EACL;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAWA,oBAAqB,SAAqC,cAAuC;AAC/F,WAAO,KAAK,sBAAmD,uCAAuC,SAAS,iBAAiB,YAAY;AAAA,EAC9I;AAEF;","names":[]}
@@ -0,0 +1,237 @@
1
+ import {
2
+ PlayFabCommon
3
+ } from "./chunk-6OZSERVG.js";
4
+
5
+ // src/apis/PlayFabEventsApi.ts
6
+ var PlayFabEventsApi = class extends PlayFabCommon {
7
+ /**
8
+ * Creates a new telemetry key for the title.
9
+ *
10
+ * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/createtelemetrykey Microsoft Documentation}
11
+ * @example
12
+ * await eventClient.CreateTelemetryKey({
13
+ * "KeyName": "MyTelemetryKey"
14
+ * });
15
+ */
16
+ CreateTelemetryKey(request, extraHeaders) {
17
+ return this.ExecuteRequestWrapper("/Event/CreateTelemetryKey", request, "X-EntityToken", extraHeaders);
18
+ }
19
+ /**
20
+ * Deletes a Data Connection from a title.
21
+ *
22
+ * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/deletedataconnection Microsoft Documentation}
23
+ * @example
24
+ * await eventClient.DeleteDataConnection({
25
+ * "Name": "MyDataConnection"
26
+ * });
27
+ */
28
+ DeleteDataConnection(request, extraHeaders) {
29
+ return this.ExecuteRequestWrapper("/Event/DeleteDataConnection", request, "X-EntityToken", extraHeaders);
30
+ }
31
+ /**
32
+ * Deletes the sampling ratio for an event.
33
+ *
34
+ * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream/deleteeventsamplingratio Microsoft Documentation}
35
+ */
36
+ DeleteEventSamplingRatio(request, extraHeaders) {
37
+ return this.ExecuteRequestWrapper("/Event/DeleteEventSamplingRatio", request, "X-EntityToken", extraHeaders);
38
+ }
39
+ /**
40
+ * Deletes a telemetry key configured for the title.
41
+ *
42
+ * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/deletetelemetrykey Microsoft Documentation}
43
+ * @example
44
+ * await eventClient.DeleteTelemetryKey({
45
+ * "KeyName": "MyTelemetryKey"
46
+ * });
47
+ */
48
+ DeleteTelemetryKey(request, extraHeaders) {
49
+ return this.ExecuteRequestWrapper("/Event/DeleteTelemetryKey", request, "X-EntityToken", extraHeaders);
50
+ }
51
+ /**
52
+ * Retrieves a single Data Connection associated with a title.
53
+ *
54
+ * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/getdataconnection Microsoft Documentation}
55
+ * @example
56
+ * await eventClient.GetDataConnection({
57
+ * "Name": "MyDataConnection"
58
+ * });
59
+ */
60
+ GetDataConnection(request, extraHeaders) {
61
+ return this.ExecuteRequestWrapper("/Event/GetDataConnection", request, "X-EntityToken", extraHeaders);
62
+ }
63
+ /**
64
+ * Gets the sampling ratio for an event.
65
+ *
66
+ * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream/geteventsamplingratio Microsoft Documentation}
67
+ * @example
68
+ * await eventClient.GetEventSamplingRatio({
69
+ * "EventNamespace": "com.playfab",
70
+ * "EventName": "player_executed_cloudscript"
71
+ * });
72
+ */
73
+ GetEventSamplingRatio(request, extraHeaders) {
74
+ return this.ExecuteRequestWrapper("/Event/GetEventSamplingRatio", request, "X-EntityToken", extraHeaders);
75
+ }
76
+ /**
77
+ * Gets the event sampling ratios for a title.
78
+ *
79
+ * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream/geteventsamplingratios Microsoft Documentation}
80
+ */
81
+ GetEventSamplingRatios(request, extraHeaders) {
82
+ return this.ExecuteRequestWrapper("/Event/GetEventSamplingRatios", request, "X-EntityToken", extraHeaders);
83
+ }
84
+ /**
85
+ * Gets information about a telemetry key configured for the title.
86
+ *
87
+ * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/gettelemetrykey Microsoft Documentation}
88
+ * @example
89
+ * await eventClient.GetTelemetryKey({
90
+ * "KeyName": "MyTelemetryKey"
91
+ * });
92
+ */
93
+ GetTelemetryKey(request, extraHeaders) {
94
+ return this.ExecuteRequestWrapper("/Event/GetTelemetryKey", request, "X-EntityToken", extraHeaders);
95
+ }
96
+ /**
97
+ * Retrieves the list of Data Connections associated with a title.
98
+ *
99
+ * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/listdataconnections Microsoft Documentation}
100
+ * @example
101
+ * await eventClient.ListDataConnections({});
102
+ */
103
+ ListDataConnections(request, extraHeaders) {
104
+ return this.ExecuteRequestWrapper("/Event/ListDataConnections", request, "X-EntityToken", extraHeaders);
105
+ }
106
+ /**
107
+ * Lists all telemetry keys configured for the title.
108
+ *
109
+ * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/listtelemetrykeys Microsoft Documentation}
110
+ * @example
111
+ * await eventClient.ListTelemetryKeys({});
112
+ */
113
+ ListTelemetryKeys(request, extraHeaders) {
114
+ return this.ExecuteRequestWrapper("/Event/ListTelemetryKeys", request, "X-EntityToken", extraHeaders);
115
+ }
116
+ /**
117
+ * Creates or updates a Data Connection on a title.
118
+ *
119
+ * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/setdataconnection Microsoft Documentation}
120
+ * @example
121
+ * await eventClient.SetDataConnection({
122
+ * "Name": "MyDataConnection",
123
+ * "Type": "AzureDataExplorer",
124
+ * "IsActive": true,
125
+ * "ConnectionSettings": {
126
+ * "AzureDataExplorerSettings": {
127
+ * "ClusterUri": "https://myadxcluster.kusto.windows.net",
128
+ * "Database": "MyDatabase",
129
+ * "Table": "MyTable"
130
+ * }
131
+ * }
132
+ * });
133
+ */
134
+ SetDataConnection(request, extraHeaders) {
135
+ return this.ExecuteRequestWrapper("/Event/SetDataConnection", request, "X-EntityToken", extraHeaders);
136
+ }
137
+ /**
138
+ * Sets a Data Connection for the title to either the active or deactivated state.
139
+ *
140
+ * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/setdataconnectionactive Microsoft Documentation}
141
+ * @example
142
+ * await eventClient.SetDataConnectionActive({
143
+ * "Name": "MyDataConnection",
144
+ * "Active": false
145
+ * });
146
+ */
147
+ SetDataConnectionActive(request, extraHeaders) {
148
+ return this.ExecuteRequestWrapper("/Event/SetDataConnectionActive", request, "X-EntityToken", extraHeaders);
149
+ }
150
+ /**
151
+ * Sets the sampling ratio for an event.
152
+ *
153
+ * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream/seteventsamplingratio Microsoft Documentation}
154
+ */
155
+ SetEventSamplingRatio(request, extraHeaders) {
156
+ return this.ExecuteRequestWrapper("/Event/SetEventSamplingRatio", request, "X-EntityToken", extraHeaders);
157
+ }
158
+ /**
159
+ * Sets a telemetry key to the active or deactivated state.
160
+ *
161
+ * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/settelemetrykeyactive Microsoft Documentation}
162
+ * @example
163
+ * await eventClient.SetTelemetryKeyActive({
164
+ * "KeyName": "MyTelemetryKey",
165
+ * "Active": false
166
+ * });
167
+ */
168
+ SetTelemetryKeyActive(request, extraHeaders) {
169
+ return this.ExecuteRequestWrapper("/Event/SetTelemetryKeyActive", request, "X-EntityToken", extraHeaders);
170
+ }
171
+ /**
172
+ * Write batches of entity based events to PlayStream. The namespace of the Event must be 'custom' or start with 'custom.'.
173
+ *
174
+ * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/writeevents Microsoft Documentation}
175
+ * @example
176
+ * await eventClient.WriteEvents({
177
+ * "Events": [
178
+ * {
179
+ * "Entity": {
180
+ * "Id": "A8140AB9109712B",
181
+ * "Type": "title",
182
+ * "TypeString": "title"
183
+ * },
184
+ * "EventNamespace": "com.playfab.events.example",
185
+ * "Name": "something_happened",
186
+ * "Payload": {
187
+ * "Foo": "Bar",
188
+ * "Nums": [
189
+ * 1,
190
+ * 2,
191
+ * 3
192
+ * ]
193
+ * }
194
+ * }
195
+ * ]
196
+ * });
197
+ */
198
+ WriteEvents(request, extraHeaders) {
199
+ return this.ExecuteRequestWrapper("/Event/WriteEvents", request, "X-EntityToken", extraHeaders);
200
+ }
201
+ /**
202
+ * Write batches of entity based events to as Telemetry events (bypass PlayStream). The namespace must be 'custom' or start
203
+ * with 'custom.'
204
+ *
205
+ * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/writetelemetryevents Microsoft Documentation}
206
+ * @example
207
+ * await eventClient.WriteTelemetryEvents({
208
+ * "Events": [
209
+ * {
210
+ * "Entity": {
211
+ * "Id": "A8140AB9109712B",
212
+ * "Type": "title",
213
+ * "TypeString": "title"
214
+ * },
215
+ * "EventNamespace": "com.playfab.events.example",
216
+ * "Name": "something_happened",
217
+ * "Payload": {
218
+ * "Foo": "Bar",
219
+ * "Nums": [
220
+ * 1,
221
+ * 2,
222
+ * 3
223
+ * ]
224
+ * }
225
+ * }
226
+ * ]
227
+ * });
228
+ */
229
+ WriteTelemetryEvents(request, extraHeaders) {
230
+ return this.ExecuteRequestWrapper("/Event/WriteTelemetryEvents", request, "X-EntityToken", extraHeaders);
231
+ }
232
+ };
233
+
234
+ export {
235
+ PlayFabEventsApi
236
+ };
237
+ //# sourceMappingURL=chunk-RVBFE5D5.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/apis/PlayFabEventsApi.ts"],"sourcesContent":["import type {\n CreateTelemetryKeyRequest,\n DeleteDataConnectionRequest,\n DeleteEventSamplingRatioRequest,\n DeleteTelemetryKeyRequest,\n GetDataConnectionRequest,\n GetEventSamplingRatioRequest,\n GetEventSamplingRatiosRequest,\n GetTelemetryKeyRequest,\n ListDataConnectionsRequest,\n ListTelemetryKeysRequest,\n SetDataConnectionRequest,\n SetDataConnectionActiveRequest,\n SetEventSamplingRatioRequest,\n SetTelemetryKeyActiveRequest,\n WriteEventsRequest,\n CreateTelemetryKeyResponse,\n DeleteDataConnectionResponse,\n DeleteEventSamplingRatioResult,\n DeleteTelemetryKeyResponse,\n GetDataConnectionResponse,\n GetEventSamplingRatioResult,\n GetEventSamplingRatiosResult,\n GetTelemetryKeyResponse,\n ListDataConnectionsResponse,\n ListTelemetryKeysResponse,\n SetDataConnectionResponse,\n SetDataConnectionActiveResponse,\n SetEventSamplingRatioResult,\n SetTelemetryKeyActiveResponse,\n WriteEventsResponse,\n} from \"../types/PlayFabEventsApi\";\nimport { PlayFabCommon } from \"../PlayFabCommon\";\n\nexport default class PlayFabEventsApi extends PlayFabCommon {\n\n /**\n * Creates a new telemetry key for the title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/createtelemetrykey Microsoft Documentation}\n * @example\n * await eventClient.CreateTelemetryKey({\n * \"KeyName\": \"MyTelemetryKey\"\n * });\n */\n CreateTelemetryKey (request: CreateTelemetryKeyRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<CreateTelemetryKeyResponse>(\"/Event/CreateTelemetryKey\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Deletes a Data Connection from a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/deletedataconnection Microsoft Documentation}\n * @example\n * await eventClient.DeleteDataConnection({\n * \"Name\": \"MyDataConnection\"\n * });\n */\n DeleteDataConnection (request: DeleteDataConnectionRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<DeleteDataConnectionResponse>(\"/Event/DeleteDataConnection\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Deletes the sampling ratio for an event.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream/deleteeventsamplingratio Microsoft Documentation}\n */\n DeleteEventSamplingRatio (request: DeleteEventSamplingRatioRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<DeleteEventSamplingRatioResult>(\"/Event/DeleteEventSamplingRatio\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Deletes a telemetry key configured for the title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/deletetelemetrykey Microsoft Documentation}\n * @example\n * await eventClient.DeleteTelemetryKey({\n * \"KeyName\": \"MyTelemetryKey\"\n * });\n */\n DeleteTelemetryKey (request: DeleteTelemetryKeyRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<DeleteTelemetryKeyResponse>(\"/Event/DeleteTelemetryKey\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Retrieves a single Data Connection associated with a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/getdataconnection Microsoft Documentation}\n * @example\n * await eventClient.GetDataConnection({\n * \"Name\": \"MyDataConnection\"\n * });\n */\n GetDataConnection (request: GetDataConnectionRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetDataConnectionResponse>(\"/Event/GetDataConnection\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Gets the sampling ratio for an event.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream/geteventsamplingratio Microsoft Documentation}\n * @example\n * await eventClient.GetEventSamplingRatio({\n * \"EventNamespace\": \"com.playfab\",\n * \"EventName\": \"player_executed_cloudscript\"\n * });\n */\n GetEventSamplingRatio (request: GetEventSamplingRatioRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetEventSamplingRatioResult>(\"/Event/GetEventSamplingRatio\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Gets the event sampling ratios for a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream/geteventsamplingratios Microsoft Documentation}\n */\n GetEventSamplingRatios (request: GetEventSamplingRatiosRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetEventSamplingRatiosResult>(\"/Event/GetEventSamplingRatios\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Gets information about a telemetry key configured for the title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/gettelemetrykey Microsoft Documentation}\n * @example\n * await eventClient.GetTelemetryKey({\n * \"KeyName\": \"MyTelemetryKey\"\n * });\n */\n GetTelemetryKey (request: GetTelemetryKeyRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetTelemetryKeyResponse>(\"/Event/GetTelemetryKey\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Retrieves the list of Data Connections associated with a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/listdataconnections Microsoft Documentation}\n * @example\n * await eventClient.ListDataConnections({});\n */\n ListDataConnections (request: ListDataConnectionsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<ListDataConnectionsResponse>(\"/Event/ListDataConnections\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Lists all telemetry keys configured for the title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/listtelemetrykeys Microsoft Documentation}\n * @example\n * await eventClient.ListTelemetryKeys({});\n */\n ListTelemetryKeys (request: ListTelemetryKeysRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<ListTelemetryKeysResponse>(\"/Event/ListTelemetryKeys\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Creates or updates a Data Connection on a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/setdataconnection Microsoft Documentation}\n * @example\n * await eventClient.SetDataConnection({\n * \"Name\": \"MyDataConnection\",\n * \"Type\": \"AzureDataExplorer\",\n * \"IsActive\": true,\n * \"ConnectionSettings\": {\n * \"AzureDataExplorerSettings\": {\n * \"ClusterUri\": \"https://myadxcluster.kusto.windows.net\",\n * \"Database\": \"MyDatabase\",\n * \"Table\": \"MyTable\"\n * }\n * }\n * });\n */\n SetDataConnection (request: SetDataConnectionRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<SetDataConnectionResponse>(\"/Event/SetDataConnection\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Sets a Data Connection for the title to either the active or deactivated state.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/setdataconnectionactive Microsoft Documentation}\n * @example\n * await eventClient.SetDataConnectionActive({\n * \"Name\": \"MyDataConnection\",\n * \"Active\": false\n * });\n */\n SetDataConnectionActive (request: SetDataConnectionActiveRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<SetDataConnectionActiveResponse>(\"/Event/SetDataConnectionActive\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Sets the sampling ratio for an event.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream/seteventsamplingratio Microsoft Documentation}\n */\n SetEventSamplingRatio (request: SetEventSamplingRatioRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<SetEventSamplingRatioResult>(\"/Event/SetEventSamplingRatio\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Sets a telemetry key to the active or deactivated state.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/settelemetrykeyactive Microsoft Documentation}\n * @example\n * await eventClient.SetTelemetryKeyActive({\n * \"KeyName\": \"MyTelemetryKey\",\n * \"Active\": false\n * });\n */\n SetTelemetryKeyActive (request: SetTelemetryKeyActiveRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<SetTelemetryKeyActiveResponse>(\"/Event/SetTelemetryKeyActive\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Write batches of entity based events to PlayStream. The namespace of the Event must be 'custom' or start with 'custom.'.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/writeevents Microsoft Documentation}\n * @example\n * await eventClient.WriteEvents({\n * \"Events\": [\n * {\n * \"Entity\": {\n * \"Id\": \"A8140AB9109712B\",\n * \"Type\": \"title\",\n * \"TypeString\": \"title\"\n * },\n * \"EventNamespace\": \"com.playfab.events.example\",\n * \"Name\": \"something_happened\",\n * \"Payload\": {\n * \"Foo\": \"Bar\",\n * \"Nums\": [\n * 1,\n * 2,\n * 3\n * ]\n * }\n * }\n * ]\n * });\n */\n WriteEvents (request: WriteEventsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<WriteEventsResponse>(\"/Event/WriteEvents\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Write batches of entity based events to as Telemetry events (bypass PlayStream). The namespace must be 'custom' or start\n * with 'custom.'\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/writetelemetryevents Microsoft Documentation}\n * @example\n * await eventClient.WriteTelemetryEvents({\n * \"Events\": [\n * {\n * \"Entity\": {\n * \"Id\": \"A8140AB9109712B\",\n * \"Type\": \"title\",\n * \"TypeString\": \"title\"\n * },\n * \"EventNamespace\": \"com.playfab.events.example\",\n * \"Name\": \"something_happened\",\n * \"Payload\": {\n * \"Foo\": \"Bar\",\n * \"Nums\": [\n * 1,\n * 2,\n * 3\n * ]\n * }\n * }\n * ]\n * });\n */\n WriteTelemetryEvents (request: WriteEventsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<WriteEventsResponse>(\"/Event/WriteTelemetryEvents\", request, \"X-EntityToken\", extraHeaders);\n }\n\n};\n"],"mappings":";;;;;AAkCA,IAAqB,mBAArB,cAA8C,cAAc;AAAA;AAAA;AAAA;AAAA;AAAA;AA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