@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,8 @@
1
+ import {
2
+ PlayFabEconomyApi
3
+ } from "./chunk-YI4OQ74L.js";
4
+ import "./chunk-6OZSERVG.js";
5
+ export {
6
+ PlayFabEconomyApi as default
7
+ };
8
+ //# sourceMappingURL=Economy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,494 @@
1
+ import { I as IPlayFabRequestCommon, a as IPlayFabResultCommon, P as PlayFabCommon } from './PlayFabCommon-Dnp_xHg5.js';
2
+
3
+ interface CreateTelemetryKeyRequest extends IPlayFabRequestCommon {
4
+ /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
5
+ CustomTags?: Record<string, string | null>;
6
+ /** The optional entity to perform this action on. Defaults to the currently logged in entity. */
7
+ Entity?: EntityKey;
8
+ /** The name of the new key. Telemetry key names must be unique within the scope of the title. */
9
+ KeyName: string;
10
+ }
11
+ interface CreateTelemetryKeyResponse extends IPlayFabResultCommon {
12
+ /** Details about the newly created telemetry key. */
13
+ NewKeyDetails?: TelemetryKeyDetails;
14
+ }
15
+ interface DataConnectionAzureBlobSettings {
16
+ /** Name of the storage account. */
17
+ AccountName?: string;
18
+ /** Name of the container. */
19
+ ContainerName?: string;
20
+ /** Azure Entra Tenant Id. */
21
+ TenantId?: string;
22
+ }
23
+ interface DataConnectionAzureDataExplorerSettings {
24
+ /** The URI of the ADX cluster. */
25
+ ClusterUri?: string;
26
+ /** The database to write to. */
27
+ Database?: string;
28
+ /** The table to write to. */
29
+ Table?: string;
30
+ }
31
+ interface DataConnectionDetails {
32
+ /** Settings of the data connection. */
33
+ ConnectionSettings: DataConnectionSettings;
34
+ /** Whether or not the connection is currently active. */
35
+ IsActive: boolean;
36
+ /** The name of the data connection. */
37
+ Name: string;
38
+ /** Current status of the data connection, if any. */
39
+ Status?: DataConnectionStatusDetails;
40
+ /** The type of data connection. */
41
+ Type: string;
42
+ }
43
+ interface DataConnectionFabricKQLSettings {
44
+ /** The URI of the Fabric cluster. */
45
+ ClusterUri?: string;
46
+ /** The database to write to. */
47
+ Database?: string;
48
+ /** The table to write to. */
49
+ Table?: string;
50
+ }
51
+ interface DataConnectionSettings {
52
+ /** Settings if the type of connection is AzureBlobStorage. */
53
+ AzureBlobSettings?: DataConnectionAzureBlobSettings;
54
+ /** Settings if the type of connection is AzureDataExplorer. */
55
+ AzureDataExplorerSettings?: DataConnectionAzureDataExplorerSettings;
56
+ /** Settings if the type of connection is FabricKQL. */
57
+ AzureFabricKQLSettings?: DataConnectionFabricKQLSettings;
58
+ }
59
+ interface DataConnectionStatusDetails {
60
+ /** The name of the error affecting the data connection, if any. */
61
+ Error?: string;
62
+ /** A description of the error affecting the data connection, if any. This may be empty for some errors. */
63
+ ErrorMessage?: string;
64
+ /** The most recent time of the error affecting the data connection, if any. */
65
+ MostRecentErrorTime?: string;
66
+ /** Indicates if the connection is in a normal state or error state. */
67
+ State?: string;
68
+ }
69
+ interface DeleteDataConnectionRequest extends IPlayFabRequestCommon {
70
+ /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
71
+ CustomTags?: Record<string, string | null>;
72
+ /** The name of the data connection to delete. */
73
+ Name: string;
74
+ }
75
+ interface DeleteDataConnectionResponse extends IPlayFabResultCommon {
76
+ /** Indicates whether or not the connection was deleted as part of the request. */
77
+ WasDeleted: boolean;
78
+ }
79
+ interface DeleteEventSamplingRatioRequest extends IPlayFabRequestCommon {
80
+ /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
81
+ CustomTags?: Record<string, string | null>;
82
+ /** Name of the sampled event */
83
+ EventName: string;
84
+ /** Namespace of the sampled event */
85
+ EventNamespace: string;
86
+ }
87
+ interface DeleteEventSamplingRatioResult extends IPlayFabResultCommon {
88
+ }
89
+ interface DeleteTelemetryKeyRequest extends IPlayFabRequestCommon {
90
+ /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
91
+ CustomTags?: Record<string, string | null>;
92
+ /** The optional entity to perform this action on. Defaults to the currently logged in entity. */
93
+ Entity?: EntityKey;
94
+ /** The name of the key to delete. */
95
+ KeyName: string;
96
+ }
97
+ interface DeleteTelemetryKeyResponse extends IPlayFabResultCommon {
98
+ /** Indicates whether or not the key was deleted. If false, no key with that name existed. */
99
+ WasKeyDeleted: boolean;
100
+ }
101
+ interface EntityKey {
102
+ /** Unique ID of the entity. */
103
+ Id: string;
104
+ /** Entity type. See https://docs.microsoft.com/gaming/playfab/features/data/entities/available-built-in-entity-types */
105
+ Type?: string;
106
+ /**
107
+ * Alternate name for Type.
108
+ * @deprecated Please use Type instead.
109
+ */
110
+ TypeString?: string;
111
+ }
112
+ interface EventContents {
113
+ /**
114
+ * The optional custom tags associated with the event (e.g. build number, external trace identifiers, etc.). Before an
115
+ * event is written, this collection and the base request custom tags will be merged, but not overriden. This enables the
116
+ * caller to specify static tags and per event tags.
117
+ */
118
+ CustomTags?: Record<string, string | null>;
119
+ /** Entity associated with the event. If null, the event will apply to the calling entity. */
120
+ Entity?: EntityKey;
121
+ /** The namespace in which the event is defined. Allowed namespaces can vary by API. */
122
+ EventNamespace: string;
123
+ /** The name of this event. */
124
+ Name: string;
125
+ /**
126
+ * The original unique identifier associated with this event before it was posted to PlayFab. The value might differ from
127
+ * the EventId value, which is assigned when the event is received by the server.
128
+ */
129
+ OriginalId?: string;
130
+ /**
131
+ * The time (in UTC) associated with this event when it occurred. If specified, this value is stored in the
132
+ * OriginalTimestamp property of the PlayStream event.
133
+ */
134
+ OriginalTimestamp?: string;
135
+ /** Arbitrary data associated with the event. Only one of Payload or PayloadJSON is allowed. */
136
+ Payload?: any;
137
+ /**
138
+ * Arbitrary data associated with the event, represented as a JSON serialized string. Only one of Payload or PayloadJSON is
139
+ * allowed.
140
+ */
141
+ PayloadJSON?: string;
142
+ }
143
+ interface EventSamplingRatio {
144
+ EventName?: string;
145
+ EventNamespace?: string;
146
+ Ratio: number;
147
+ }
148
+ interface GetDataConnectionRequest extends IPlayFabRequestCommon {
149
+ /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
150
+ CustomTags?: Record<string, string | null>;
151
+ /** The name of the data connection to retrieve. */
152
+ Name: string;
153
+ }
154
+ interface GetDataConnectionResponse extends IPlayFabResultCommon {
155
+ /** The details of the queried Data Connection. */
156
+ DataConnection?: DataConnectionDetails;
157
+ }
158
+ interface GetEventSamplingRatioRequest extends IPlayFabRequestCommon {
159
+ /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
160
+ CustomTags?: Record<string, string | null>;
161
+ /** Name of the sampled event */
162
+ EventName: string;
163
+ /** Namespace of the sampled event */
164
+ EventNamespace: string;
165
+ }
166
+ interface GetEventSamplingRatioResult extends IPlayFabResultCommon {
167
+ /** Name of the sampled event */
168
+ EventName: string;
169
+ /** Namespace of the sampled event */
170
+ EventNamespace: string;
171
+ /** Sampling ratio of the event */
172
+ Ratio: number;
173
+ }
174
+ interface GetEventSamplingRatiosRequest extends IPlayFabRequestCommon {
175
+ /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
176
+ CustomTags?: Record<string, string | null>;
177
+ }
178
+ interface GetEventSamplingRatiosResult extends IPlayFabResultCommon {
179
+ Ratios?: EventSamplingRatio[];
180
+ }
181
+ interface GetTelemetryKeyRequest extends IPlayFabRequestCommon {
182
+ /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
183
+ CustomTags?: Record<string, string | null>;
184
+ /** The optional entity to perform this action on. Defaults to the currently logged in entity. */
185
+ Entity?: EntityKey;
186
+ /** The name of the key to retrieve. */
187
+ KeyName: string;
188
+ }
189
+ interface GetTelemetryKeyResponse extends IPlayFabResultCommon {
190
+ /** Details about the requested telemetry key. */
191
+ KeyDetails?: TelemetryKeyDetails;
192
+ }
193
+ interface ListDataConnectionsRequest extends IPlayFabRequestCommon {
194
+ /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
195
+ CustomTags?: Record<string, string | null>;
196
+ }
197
+ interface ListDataConnectionsResponse extends IPlayFabResultCommon {
198
+ /** The list of existing Data Connections. */
199
+ DataConnections?: DataConnectionDetails[];
200
+ }
201
+ interface ListTelemetryKeysRequest extends IPlayFabRequestCommon {
202
+ /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
203
+ CustomTags?: Record<string, string | null>;
204
+ /** The optional entity to perform this action on. Defaults to the currently logged in entity. */
205
+ Entity?: EntityKey;
206
+ }
207
+ interface ListTelemetryKeysResponse extends IPlayFabResultCommon {
208
+ /** The telemetry keys configured for the title. */
209
+ KeyDetails?: TelemetryKeyDetails[];
210
+ }
211
+ interface SetDataConnectionActiveRequest extends IPlayFabRequestCommon {
212
+ /** Whether to set the data connection to active (true) or deactivated (false). */
213
+ Active: boolean;
214
+ /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
215
+ CustomTags?: Record<string, string | null>;
216
+ /** The name of the data connection to update. */
217
+ Name: string;
218
+ }
219
+ interface SetDataConnectionActiveResponse extends IPlayFabResultCommon {
220
+ /** The most current details about the data connection that was to be updated. */
221
+ DataConnection?: DataConnectionDetails;
222
+ /**
223
+ * Indicates whether or not the data connection was updated. If false, the data connection was already in the desired
224
+ * state.
225
+ */
226
+ WasUpdated: boolean;
227
+ }
228
+ interface SetDataConnectionRequest extends IPlayFabRequestCommon {
229
+ /** Settings of the data connection. */
230
+ ConnectionSettings: DataConnectionSettings;
231
+ /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
232
+ CustomTags?: Record<string, string | null>;
233
+ /** Whether or not the connection is currently active. */
234
+ IsActive: boolean;
235
+ /** The name of the data connection to update or create. */
236
+ Name: string;
237
+ /** The type of data connection. */
238
+ Type: string;
239
+ }
240
+ interface SetDataConnectionResponse extends IPlayFabResultCommon {
241
+ /** The details of the Data Connection to be created or updated. */
242
+ DataConnection?: DataConnectionDetails;
243
+ }
244
+ interface SetEventSamplingRatioRequest extends IPlayFabRequestCommon {
245
+ /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
246
+ CustomTags?: Record<string, string | null>;
247
+ /** Name of the sampled event */
248
+ EventName: string;
249
+ /** Namespace of the sampled event */
250
+ EventNamespace: string;
251
+ /** Sampling ratio of the event */
252
+ Ratio: number;
253
+ }
254
+ interface SetEventSamplingRatioResult extends IPlayFabResultCommon {
255
+ }
256
+ interface SetTelemetryKeyActiveRequest extends IPlayFabRequestCommon {
257
+ /** Whether to set the key to active (true) or deactivated (false). */
258
+ Active: boolean;
259
+ /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
260
+ CustomTags?: Record<string, string | null>;
261
+ /** The optional entity to perform this action on. Defaults to the currently logged in entity. */
262
+ Entity?: EntityKey;
263
+ /** The name of the key to update. */
264
+ KeyName: string;
265
+ }
266
+ interface SetTelemetryKeyActiveResponse extends IPlayFabResultCommon {
267
+ /** The most current details about the telemetry key that was to be updated. */
268
+ KeyDetails?: TelemetryKeyDetails;
269
+ /** Indicates whether or not the key was updated. If false, the key was already in the desired state. */
270
+ WasKeyUpdated: boolean;
271
+ }
272
+ interface TelemetryKeyDetails {
273
+ /** When the key was created. */
274
+ CreateTime: string;
275
+ /** Whether or not the key is currently active. Deactivated keys cannot be used for telemetry ingestion. */
276
+ IsActive: boolean;
277
+ /** The key that can be distributed to clients for use during telemetry ingestion. */
278
+ KeyValue?: string;
279
+ /** When the key was last updated. */
280
+ LastUpdateTime: string;
281
+ /** The name of the key. Telemetry key names are unique within the scope of the title. */
282
+ Name?: string;
283
+ }
284
+ interface WriteEventsRequest extends IPlayFabRequestCommon {
285
+ /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
286
+ CustomTags?: Record<string, string | null>;
287
+ /** The collection of events to write. Up to 200 events can be written per request. */
288
+ Events: EventContents[];
289
+ }
290
+ interface WriteEventsResponse extends IPlayFabResultCommon {
291
+ /**
292
+ * The unique identifiers assigned by the server to the events, in the same order as the events in the request. Only
293
+ * returned if FlushToPlayStream option is true.
294
+ */
295
+ AssignedEventIds?: string[];
296
+ }
297
+
298
+ declare class PlayFabEventsApi extends PlayFabCommon {
299
+ /**
300
+ * Creates a new telemetry key for the title.
301
+ *
302
+ * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/createtelemetrykey Microsoft Documentation}
303
+ * @example
304
+ * await eventClient.CreateTelemetryKey({
305
+ * "KeyName": "MyTelemetryKey"
306
+ * });
307
+ */
308
+ CreateTelemetryKey(request: CreateTelemetryKeyRequest, extraHeaders?: Record<string, string>): Promise<CreateTelemetryKeyResponse>;
309
+ /**
310
+ * Deletes a Data Connection from a title.
311
+ *
312
+ * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/deletedataconnection Microsoft Documentation}
313
+ * @example
314
+ * await eventClient.DeleteDataConnection({
315
+ * "Name": "MyDataConnection"
316
+ * });
317
+ */
318
+ DeleteDataConnection(request: DeleteDataConnectionRequest, extraHeaders?: Record<string, string>): Promise<DeleteDataConnectionResponse>;
319
+ /**
320
+ * Deletes the sampling ratio for an event.
321
+ *
322
+ * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream/deleteeventsamplingratio Microsoft Documentation}
323
+ */
324
+ DeleteEventSamplingRatio(request: DeleteEventSamplingRatioRequest, extraHeaders?: Record<string, string>): Promise<DeleteEventSamplingRatioResult>;
325
+ /**
326
+ * Deletes a telemetry key configured for the title.
327
+ *
328
+ * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/deletetelemetrykey Microsoft Documentation}
329
+ * @example
330
+ * await eventClient.DeleteTelemetryKey({
331
+ * "KeyName": "MyTelemetryKey"
332
+ * });
333
+ */
334
+ DeleteTelemetryKey(request: DeleteTelemetryKeyRequest, extraHeaders?: Record<string, string>): Promise<DeleteTelemetryKeyResponse>;
335
+ /**
336
+ * Retrieves a single Data Connection associated with a title.
337
+ *
338
+ * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/getdataconnection Microsoft Documentation}
339
+ * @example
340
+ * await eventClient.GetDataConnection({
341
+ * "Name": "MyDataConnection"
342
+ * });
343
+ */
344
+ GetDataConnection(request: GetDataConnectionRequest, extraHeaders?: Record<string, string>): Promise<GetDataConnectionResponse>;
345
+ /**
346
+ * Gets the sampling ratio for an event.
347
+ *
348
+ * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream/geteventsamplingratio Microsoft Documentation}
349
+ * @example
350
+ * await eventClient.GetEventSamplingRatio({
351
+ * "EventNamespace": "com.playfab",
352
+ * "EventName": "player_executed_cloudscript"
353
+ * });
354
+ */
355
+ GetEventSamplingRatio(request: GetEventSamplingRatioRequest, extraHeaders?: Record<string, string>): Promise<GetEventSamplingRatioResult>;
356
+ /**
357
+ * Gets the event sampling ratios for a title.
358
+ *
359
+ * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream/geteventsamplingratios Microsoft Documentation}
360
+ */
361
+ GetEventSamplingRatios(request: GetEventSamplingRatiosRequest, extraHeaders?: Record<string, string>): Promise<GetEventSamplingRatiosResult>;
362
+ /**
363
+ * Gets information about a telemetry key configured for the title.
364
+ *
365
+ * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/gettelemetrykey Microsoft Documentation}
366
+ * @example
367
+ * await eventClient.GetTelemetryKey({
368
+ * "KeyName": "MyTelemetryKey"
369
+ * });
370
+ */
371
+ GetTelemetryKey(request: GetTelemetryKeyRequest, extraHeaders?: Record<string, string>): Promise<GetTelemetryKeyResponse>;
372
+ /**
373
+ * Retrieves the list of Data Connections associated with a title.
374
+ *
375
+ * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/listdataconnections Microsoft Documentation}
376
+ * @example
377
+ * await eventClient.ListDataConnections({});
378
+ */
379
+ ListDataConnections(request: ListDataConnectionsRequest, extraHeaders?: Record<string, string>): Promise<ListDataConnectionsResponse>;
380
+ /**
381
+ * Lists all telemetry keys configured for the title.
382
+ *
383
+ * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/listtelemetrykeys Microsoft Documentation}
384
+ * @example
385
+ * await eventClient.ListTelemetryKeys({});
386
+ */
387
+ ListTelemetryKeys(request: ListTelemetryKeysRequest, extraHeaders?: Record<string, string>): Promise<ListTelemetryKeysResponse>;
388
+ /**
389
+ * Creates or updates a Data Connection on a title.
390
+ *
391
+ * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/setdataconnection Microsoft Documentation}
392
+ * @example
393
+ * await eventClient.SetDataConnection({
394
+ * "Name": "MyDataConnection",
395
+ * "Type": "AzureDataExplorer",
396
+ * "IsActive": true,
397
+ * "ConnectionSettings": {
398
+ * "AzureDataExplorerSettings": {
399
+ * "ClusterUri": "https://myadxcluster.kusto.windows.net",
400
+ * "Database": "MyDatabase",
401
+ * "Table": "MyTable"
402
+ * }
403
+ * }
404
+ * });
405
+ */
406
+ SetDataConnection(request: SetDataConnectionRequest, extraHeaders?: Record<string, string>): Promise<SetDataConnectionResponse>;
407
+ /**
408
+ * Sets a Data Connection for the title to either the active or deactivated state.
409
+ *
410
+ * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/setdataconnectionactive Microsoft Documentation}
411
+ * @example
412
+ * await eventClient.SetDataConnectionActive({
413
+ * "Name": "MyDataConnection",
414
+ * "Active": false
415
+ * });
416
+ */
417
+ SetDataConnectionActive(request: SetDataConnectionActiveRequest, extraHeaders?: Record<string, string>): Promise<SetDataConnectionActiveResponse>;
418
+ /**
419
+ * Sets the sampling ratio for an event.
420
+ *
421
+ * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream/seteventsamplingratio Microsoft Documentation}
422
+ */
423
+ SetEventSamplingRatio(request: SetEventSamplingRatioRequest, extraHeaders?: Record<string, string>): Promise<SetEventSamplingRatioResult>;
424
+ /**
425
+ * Sets a telemetry key to the active or deactivated state.
426
+ *
427
+ * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/settelemetrykeyactive Microsoft Documentation}
428
+ * @example
429
+ * await eventClient.SetTelemetryKeyActive({
430
+ * "KeyName": "MyTelemetryKey",
431
+ * "Active": false
432
+ * });
433
+ */
434
+ SetTelemetryKeyActive(request: SetTelemetryKeyActiveRequest, extraHeaders?: Record<string, string>): Promise<SetTelemetryKeyActiveResponse>;
435
+ /**
436
+ * Write batches of entity based events to PlayStream. The namespace of the Event must be 'custom' or start with 'custom.'.
437
+ *
438
+ * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/writeevents Microsoft Documentation}
439
+ * @example
440
+ * await eventClient.WriteEvents({
441
+ * "Events": [
442
+ * {
443
+ * "Entity": {
444
+ * "Id": "A8140AB9109712B",
445
+ * "Type": "title",
446
+ * "TypeString": "title"
447
+ * },
448
+ * "EventNamespace": "com.playfab.events.example",
449
+ * "Name": "something_happened",
450
+ * "Payload": {
451
+ * "Foo": "Bar",
452
+ * "Nums": [
453
+ * 1,
454
+ * 2,
455
+ * 3
456
+ * ]
457
+ * }
458
+ * }
459
+ * ]
460
+ * });
461
+ */
462
+ WriteEvents(request: WriteEventsRequest, extraHeaders?: Record<string, string>): Promise<WriteEventsResponse>;
463
+ /**
464
+ * Write batches of entity based events to as Telemetry events (bypass PlayStream). The namespace must be 'custom' or start
465
+ * with 'custom.'
466
+ *
467
+ * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/writetelemetryevents Microsoft Documentation}
468
+ * @example
469
+ * await eventClient.WriteTelemetryEvents({
470
+ * "Events": [
471
+ * {
472
+ * "Entity": {
473
+ * "Id": "A8140AB9109712B",
474
+ * "Type": "title",
475
+ * "TypeString": "title"
476
+ * },
477
+ * "EventNamespace": "com.playfab.events.example",
478
+ * "Name": "something_happened",
479
+ * "Payload": {
480
+ * "Foo": "Bar",
481
+ * "Nums": [
482
+ * 1,
483
+ * 2,
484
+ * 3
485
+ * ]
486
+ * }
487
+ * }
488
+ * ]
489
+ * });
490
+ */
491
+ WriteTelemetryEvents(request: WriteEventsRequest, extraHeaders?: Record<string, string>): Promise<WriteEventsResponse>;
492
+ }
493
+
494
+ export { PlayFabEventsApi as default };
package/dist/Events.js ADDED
@@ -0,0 +1,8 @@
1
+ import {
2
+ PlayFabEventsApi
3
+ } from "./chunk-RVBFE5D5.js";
4
+ import "./chunk-6OZSERVG.js";
5
+ export {
6
+ PlayFabEventsApi as default
7
+ };
8
+ //# sourceMappingURL=Events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}