@dcl/js-runtime 7.25.1-30828532396.commit-0c215c3 → 7.25.1-30863706897.commit-bc71402

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 +73 -33
  2. package/package.json +2 -2
package/apis.d.ts CHANGED
@@ -20,9 +20,39 @@ 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
+ }
23
49
 
24
50
  // Function declaration section
25
51
  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>;
26
56
 
27
57
  }
28
58
  /**
@@ -1251,6 +1281,34 @@ declare module "~system/RestrictedActions" {
1251
1281
  }
1252
1282
 
1253
1283
  // Function declaration section
1284
+ /**
1285
+ * Identifies which fullscreen explorer panel OpenExplorerUi targets.
1286
+ * EU_SETTINGS holds 0 so an unset `ui` field defaults to the least-intrusive panel.
1287
+ */
1288
+ export enum ExplorerUi {
1289
+ EU_SETTINGS = 0,
1290
+ EU_MAP = 1,
1291
+ EU_BACKPACK = 2,
1292
+ EU_CAMERA_REEL = 3,
1293
+ EU_COMMUNITIES = 4,
1294
+ EU_PLACES = 5,
1295
+ EU_EVENTS = 6,
1296
+ UNRECOGNIZED = -1
1297
+ }
1298
+ /** Verdict of an OpenExplorerUi request (enum rather than a bool so new outcomes stay expressible). */
1299
+ export enum OpenExplorerUiResult {
1300
+ UNSPECIFIED = 0,
1301
+ OPENED = 1,
1302
+ /** WAS_ALREADY_OPEN - a fullscreen panel is already open */
1303
+ WAS_ALREADY_OPEN = 2,
1304
+ /** REJECTED_NOT_CURRENT_SCENE - the standard restricted-actions current-scene gate rejected the call */
1305
+ REJECTED_NOT_CURRENT_SCENE = 3,
1306
+ /** REJECTED_FEATURE_DISABLED - the requested section is hidden by feature flags or client doesn't have that feature */
1307
+ REJECTED_FEATURE_DISABLED = 4,
1308
+ /** REJECTED_NO_USER_GESTURE - rejected: the call did not originate from a user gesture */
1309
+ REJECTED_NO_USER_GESTURE = 5,
1310
+ UNRECOGNIZED = -1
1311
+ }
1254
1312
  export interface MovePlayerToRequest {
1255
1313
  newRelativePosition: Vector3 | undefined;
1256
1314
  cameraTarget?: Vector3 | undefined;
@@ -1263,6 +1321,7 @@ declare module "~system/RestrictedActions" {
1263
1321
  }
1264
1322
  export interface TriggerEmoteRequest {
1265
1323
  predefinedEmote: string;
1324
+ mask?: import('../ecs').AvatarMask | undefined;
1266
1325
  }
1267
1326
  export interface ChangeRealmRequest {
1268
1327
  realm: string;
@@ -1282,6 +1341,7 @@ declare module "~system/RestrictedActions" {
1282
1341
  export interface TriggerSceneEmoteRequest {
1283
1342
  src: string;
1284
1343
  loop?: boolean | undefined;
1344
+ mask?: import('../ecs').AvatarMask | undefined;
1285
1345
  }
1286
1346
  export interface SuccessResponse {
1287
1347
  success: boolean;
@@ -1291,32 +1351,21 @@ declare module "~system/RestrictedActions" {
1291
1351
  export interface MovePlayerToResponse {
1292
1352
  success: boolean;
1293
1353
  }
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
- }
1303
1354
  export interface TeleportToResponse {
1304
1355
  }
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
- }
1316
1356
  export interface CopyToClipboardRequest {
1317
1357
  text: string;
1318
1358
  }
1319
1359
  export interface EmptyResponse {
1360
+ }
1361
+ export interface StopEmoteRequest {
1362
+ }
1363
+ export interface OpenExplorerUiRequest {
1364
+ ui: ExplorerUi;
1365
+ }
1366
+ export interface OpenExplorerUiResponse {
1367
+ /** Carries only the verdict of the open action. */
1368
+ openResult: OpenExplorerUiResult;
1320
1369
  }
1321
1370
 
1322
1371
  // Function declaration section
@@ -1326,13 +1375,6 @@ declare module "~system/RestrictedActions" {
1326
1375
  * whole interpolation being completed or interrupted (e.g: by input movement)
1327
1376
  */
1328
1377
  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>;
1336
1378
  /** TeleportTo will move the user to the specified world LAND parcel coordinates */
1337
1379
  export function teleportTo(body: TeleportToRequest): Promise<TeleportToResponse>;
1338
1380
  /** TriggerEmote will trigger an emote in this current user */
@@ -1350,14 +1392,12 @@ declare module "~system/RestrictedActions" {
1350
1392
  export function setCommunicationsAdapter(body: CommsAdapterRequest): Promise<SuccessResponse>;
1351
1393
  /** TriggerSceneEmote will trigger an scene emote file in this current user */
1352
1394
  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>;
1359
1395
  /** CopyToClipboard copies the provided text into the clipboard */
1360
1396
  export function copyToClipboard(body: CopyToClipboardRequest): Promise<EmptyResponse>;
1397
+ /** StopEmote will stop the current emote */
1398
+ export function stopEmote(body: StopEmoteRequest): Promise<SuccessResponse>;
1399
+ /** OpenExplorerUi opens a specific fullscreen explorer panel and returns the open verdict. */
1400
+ export function openExplorerUi(body: OpenExplorerUiRequest): Promise<OpenExplorerUiResponse>;
1361
1401
 
1362
1402
  }
1363
1403
  /**
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.25.1-30828532396.commit-0c215c3",
4
+ "version": "7.25.1-30863706897.commit-bc71402",
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": "0c215c3495851aa943d616f3d4f7cfad5a32285e"
23
+ "commit": "bc71402cb794a96a08f023e52706c6d9c2616b59"
24
24
  }