@dcl/js-runtime 7.24.5-28985931443.commit-4a0bcfc → 7.24.5-29247185020.commit-e92dfe6

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 (2) hide show
  1. package/apis.d.ts +34 -44
  2. package/package.json +2 -2
package/apis.d.ts CHANGED
@@ -20,39 +20,9 @@ declare module "~system/CommsApi" {
20
20
  trackSid: string;
21
21
  sourceType: VideoTrackSourceType;
22
22
  }
23
- export interface SubscribeToTopicRequest {
24
- topic: string;
25
- }
26
- export interface SubscribeToTopicResponse {
27
- }
28
- export interface UnsubscribeFromTopicRequest {
29
- topic: string;
30
- }
31
- export interface UnsubscribeFromTopicResponse {
32
- }
33
- export interface PublishDataRequest {
34
- topic: string;
35
- data: string;
36
- }
37
- export interface PublishDataResponse {
38
- }
39
- export interface ConsumeMessagesRequest {
40
- topic: string;
41
- }
42
- export interface ConsumeMessages {
43
- sender: string;
44
- data: string;
45
- }
46
- export interface ConsumeMessagesResponse {
47
- messages: ConsumeMessages[];
48
- }
49
23
 
50
24
  // Function declaration section
51
25
  export function getActiveVideoStreams(body: VideoTracksActiveStreamsRequest): Promise<VideoTracksActiveStreamsResponse>;
52
- export function subscribeToTopic(body: SubscribeToTopicRequest): Promise<SubscribeToTopicResponse>;
53
- export function unsubscribeFromTopic(body: UnsubscribeFromTopicRequest): Promise<UnsubscribeFromTopicResponse>;
54
- export function publishData(body: PublishDataRequest): Promise<PublishDataResponse>;
55
- export function consumeMessages(body: ConsumeMessagesRequest): Promise<ConsumeMessagesResponse>;
56
26
 
57
27
  }
58
28
  /**
@@ -1281,14 +1251,7 @@ declare module "~system/RestrictedActions" {
1281
1251
  }
1282
1252
 
1283
1253
  // Function declaration section
1284
- /** Mask for which bones an animation applies to. */
1285
- export enum AvatarMask {
1286
- AM_UPPER_BODY = 0,
1287
- UNRECOGNIZED = -1
1288
- }
1289
-
1290
- // Function declaration section
1291
- export interface MovePlayerToRequest {
1254
+ export interface MovePlayerToRequest {
1292
1255
  newRelativePosition: Vector3 | undefined;
1293
1256
  cameraTarget?: Vector3 | undefined;
1294
1257
  avatarTarget?: Vector3 | undefined;
@@ -1300,7 +1263,6 @@ declare module "~system/RestrictedActions" {
1300
1263
  }
1301
1264
  export interface TriggerEmoteRequest {
1302
1265
  predefinedEmote: string;
1303
- mask?: AvatarMask | undefined;
1304
1266
  }
1305
1267
  export interface ChangeRealmRequest {
1306
1268
  realm: string;
@@ -1320,7 +1282,6 @@ declare module "~system/RestrictedActions" {
1320
1282
  export interface TriggerSceneEmoteRequest {
1321
1283
  src: string;
1322
1284
  loop?: boolean | undefined;
1323
- mask?: AvatarMask | undefined;
1324
1285
  }
1325
1286
  export interface SuccessResponse {
1326
1287
  success: boolean;
@@ -1330,14 +1291,32 @@ declare module "~system/RestrictedActions" {
1330
1291
  export interface MovePlayerToResponse {
1331
1292
  success: boolean;
1332
1293
  }
1294
+ export interface WalkPlayerToRequest {
1295
+ newRelativePosition: Vector3 | undefined;
1296
+ stopThreshold: number;
1297
+ /** max seconds before the request is failed; not passed to the movement scene */
1298
+ timeout?: number | undefined;
1299
+ }
1300
+ export interface WalkPlayerToResponse {
1301
+ success: boolean;
1302
+ }
1333
1303
  export interface TeleportToResponse {
1334
1304
  }
1305
+ export interface SetUiFocusRequest {
1306
+ elementId: string;
1307
+ }
1308
+ export interface ClearUiFocusRequest {
1309
+ }
1310
+ export interface GetUiFocusRequest {
1311
+ }
1312
+ export interface UiFocusResponse {
1313
+ /** the element that is/was focussed */
1314
+ elementId?: string | undefined;
1315
+ }
1335
1316
  export interface CopyToClipboardRequest {
1336
1317
  text: string;
1337
1318
  }
1338
1319
  export interface EmptyResponse {
1339
- }
1340
- export interface StopEmoteRequest {
1341
1320
  }
1342
1321
 
1343
1322
  // Function declaration section
@@ -1347,6 +1326,13 @@ declare module "~system/RestrictedActions" {
1347
1326
  * whole interpolation being completed or interrupted (e.g: by input movement)
1348
1327
  */
1349
1328
  export function movePlayerTo(body: MovePlayerToRequest): Promise<MovePlayerToResponse>;
1329
+ /**
1330
+ * WalkPlayerTo will walk the player to a position relative to the current scene,
1331
+ * managed by the movement controller scene. Returns success when the player reaches
1332
+ * within stop_threshold distance, or false if the path is blocked, the player gets
1333
+ * stuck, the player interrupts the walk with manual input, or the optional timeout expires.
1334
+ */
1335
+ export function walkPlayerTo(body: WalkPlayerToRequest): Promise<WalkPlayerToResponse>;
1350
1336
  /** TeleportTo will move the user to the specified world LAND parcel coordinates */
1351
1337
  export function teleportTo(body: TeleportToRequest): Promise<TeleportToResponse>;
1352
1338
  /** TriggerEmote will trigger an emote in this current user */
@@ -1364,10 +1350,14 @@ declare module "~system/RestrictedActions" {
1364
1350
  export function setCommunicationsAdapter(body: CommsAdapterRequest): Promise<SuccessResponse>;
1365
1351
  /** TriggerSceneEmote will trigger an scene emote file in this current user */
1366
1352
  export function triggerSceneEmote(body: TriggerSceneEmoteRequest): Promise<SuccessResponse>;
1353
+ /** Sets the focus to a specific UI element */
1354
+ export function setUiFocus(body: SetUiFocusRequest): Promise<UiFocusResponse>;
1355
+ /** Clears the focus from any currently focused textentry or dropdown */
1356
+ export function clearUiFocus(body: SetUiFocusRequest): Promise<UiFocusResponse>;
1357
+ /** Returns the element_id of any currently focused textentry or dropdown */
1358
+ export function getUiFocus(body: GetUiFocusRequest): Promise<UiFocusResponse>;
1367
1359
  /** CopyToClipboard copies the provided text into the clipboard */
1368
1360
  export function copyToClipboard(body: CopyToClipboardRequest): Promise<EmptyResponse>;
1369
- /** StopEmote will stop the current emote */
1370
- export function stopEmote(body: StopEmoteRequest): Promise<SuccessResponse>;
1371
1361
 
1372
1362
  }
1373
1363
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dcl/js-runtime",
3
3
  "description": "JavaScript runtime definitions for Decentraland environments",
4
- "version": "7.24.5-28985931443.commit-4a0bcfc",
4
+ "version": "7.24.5-29247185020.commit-e92dfe6",
5
5
  "author": "",
6
6
  "files": [
7
7
  "index.d.ts",
@@ -20,5 +20,5 @@
20
20
  },
21
21
  "types": "./index.d.ts",
22
22
  "typings": "./index.d.ts",
23
- "commit": "4a0bcfc7d1817060e47ede9c11ba01e386648a25"
23
+ "commit": "e92dfe6298e3d808e58add843780cdbe7eb5af7d"
24
24
  }