@rbxts/types 1.0.821 → 1.0.822

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.
@@ -270,17 +270,29 @@ interface BundleInfo {
270
270
 
271
271
  type TeleportData = string | number | boolean | Array<unknown> | Map<unknown, unknown>;
272
272
 
273
+ interface GameJoinContext {
274
+ JoinSource: Enum.JoinSource;
275
+ ItemType?: Enum.AvatarItemType;
276
+ AssetId?: string;
277
+ OutfitId?: string;
278
+ AssetType?: Enum.AssetType;
279
+ }
280
+
273
281
  interface PlayerJoinInfo {
274
282
  /** The `DataModel.GameId` of the experience the `Player` teleported from. Only present if the player teleports to the current experience and if a server calls the teleport function. */
275
283
  SourceGameId?: number;
276
284
  /** The `DataModel.PlaceId` of the place the `Player` teleported from. Only present if the player teleports to the current place and a server calls the teleport function. */
277
285
  SourcePlaceId?: number;
286
+ /** The `Player.UserId` of the player who invited the current player to the experience. Use this data to identify the referrer and trigger reward logic. */
287
+ ReferredByPlayerId?: number;
278
288
  /** An array containing the `UserId` numbers of the users teleported alongside the `Player`. Only present if the player teleported as part of a group. */
279
289
  Members?: Array<number>;
280
290
  /** Reflects the `teleportData` specified in the original teleport. Useful for sharing information between servers the player teleports to. Only present if `teleportData` was specified and a server calls the teleport function. */
281
291
  TeleportData?: TeleportData;
282
292
  /** A string containing launch data specified in the URL the player clicks to join the experience. Only present if the URL contains launch data. */
283
293
  LaunchData?: string;
294
+ /** A dictionary that includes relevant information based on the context of the game join. */
295
+ GameJoinContext?: GameJoinContext;
284
296
  }
285
297
 
286
298
  interface BoundActionInfo {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/types",
3
- "version": "1.0.821",
3
+ "version": "1.0.822",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },