@dcl/js-runtime 7.0.6-3874914632.commit-eb56237 → 7.0.6-3942933325.commit-70f967f

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 +27 -105
  2. package/package.json +2 -2
package/apis.d.ts CHANGED
@@ -13,22 +13,6 @@ declare module "~system/CommunicationsController" {
13
13
  // Function declaration section
14
14
  export function send(body: RealSendRequest): Promise<RealSendResponse>;
15
15
 
16
- }
17
- /**
18
- * DevTools
19
- */
20
- declare module "~system/DevTools" {
21
-
22
- export interface DevToolsBody {
23
- type: string;
24
- jsonPayload: string;
25
- }
26
- export interface EventResponse {
27
- }
28
-
29
- // Function declaration section
30
- export function event(body: DevToolsBody): Promise<EventResponse>;
31
-
32
16
  }
33
17
  /**
34
18
  * EngineApi
@@ -401,37 +385,6 @@ declare module "~system/ParcelIdentity" {
401
385
  export function getSceneId(body: GetSceneIdRequest): Promise<GetSceneIdResponse>;
402
386
  export function getIsEmpty(body: GetIsEmptyRequest): Promise<GetIsEmptyResponse>;
403
387
 
404
- }
405
- /**
406
- * Permissions
407
- */
408
- declare module "~system/Permissions" {
409
-
410
- export enum PermissionItem {
411
- PI_ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE = 0,
412
- PI_ALLOW_TO_TRIGGER_AVATAR_EMOTE = 1,
413
- PI_USE_WEB3_API = 2,
414
- PI_USE_WEBSOCKET = 3,
415
- PI_USE_FETCH = 4,
416
- UNRECOGNIZED = -1
417
- }
418
- export interface PermissionResponse {
419
- hasPermission: boolean;
420
- }
421
- export interface HasPermissionRequest {
422
- permission: PermissionItem;
423
- }
424
- export interface HasManyPermissionRequest {
425
- permissions: PermissionItem[];
426
- }
427
- export interface HasManyPermissionResponse {
428
- hasManyPermission: boolean[];
429
- }
430
-
431
- // Function declaration section
432
- export function hasPermission(body: HasPermissionRequest): Promise<PermissionResponse>;
433
- export function hasManyPermissions(body: HasManyPermissionRequest): Promise<HasManyPermissionResponse>;
434
-
435
388
  }
436
389
  /**
437
390
  * Players
@@ -482,45 +435,6 @@ declare module "~system/Players" {
482
435
  export function getPlayersInScene(body: GetPlayersInSceneRequest): Promise<PlayerListResponse>;
483
436
  export function getConnectedPlayers(body: GetConnectedPlayersRequest): Promise<PlayerListResponse>;
484
437
 
485
- }
486
- /**
487
- * PortableExperiences
488
- */
489
- declare module "~system/PortableExperiences" {
490
-
491
- export interface KillRequest {
492
- pid: string;
493
- }
494
- export interface KillResponse {
495
- status: boolean;
496
- }
497
- export interface SpawnRequest {
498
- pid: string;
499
- }
500
- export interface SpawnResponse {
501
- pid: string;
502
- parentCid: string;
503
- }
504
- export interface PxRequest {
505
- pid: string;
506
- }
507
- export interface GetPortableExperiencesLoadedRequest {
508
- }
509
- export interface GetPortableExperiencesLoadedResponse {
510
- loaded: SpawnResponse[];
511
- }
512
- export interface ExitRequest {
513
- }
514
- export interface ExitResponse {
515
- status: boolean;
516
- }
517
-
518
- // Function declaration section
519
- export function spawn(body: SpawnRequest): Promise<SpawnResponse>;
520
- export function kill(body: KillRequest): Promise<KillResponse>;
521
- export function exit(body: ExitRequest): Promise<ExitResponse>;
522
- export function getPortableExperiencesLoaded(body: GetPortableExperiencesLoadedRequest): Promise<GetPortableExperiencesLoadedResponse>;
523
-
524
438
  }
525
439
  /**
526
440
  * RestrictedActions
@@ -575,6 +489,33 @@ declare module "~system/RestrictedActions" {
575
489
  export function openNftDialog(body: OpenNftDialogRequest): Promise<SuccessResponse>;
576
490
  export function setCommunicationsAdapter(body: CommsAdapterRequest): Promise<SuccessResponse>;
577
491
 
492
+ }
493
+ /**
494
+ * Runtime
495
+ */
496
+ declare module "~system/Runtime" {
497
+
498
+ export interface RealmInfo {
499
+ baseUrl: string;
500
+ realmName: string;
501
+ networkId: number;
502
+ commsAdapter: string;
503
+ }
504
+ export interface GetRealmResponse {
505
+ realmInfo?: RealmInfo | undefined;
506
+ }
507
+ export interface GetWorldTimeResponse {
508
+ seconds: number;
509
+ }
510
+ export interface GetRealmRequest {
511
+ }
512
+ export interface GetWorldTimeRequest {
513
+ }
514
+
515
+ // Function declaration section
516
+ export function getRealm(body: GetRealmRequest): Promise<GetRealmResponse>;
517
+ export function getWorldTime(body: GetWorldTimeRequest): Promise<GetWorldTimeResponse>;
518
+
578
519
  }
579
520
  /**
580
521
  * SignedFetch
@@ -613,25 +554,6 @@ declare module "~system/SignedFetch" {
613
554
  // Function declaration section
614
555
  export function signedFetch(body: SignedFetchRequest): Promise<FlatFetchResponse>;
615
556
 
616
- }
617
- /**
618
- * SocialController
619
- */
620
- declare module "~system/SocialController" {
621
-
622
- export interface InitRequest {
623
- }
624
- export interface SocialEvent {
625
- event: string;
626
- payload: string;
627
- }
628
- export interface GetAvatarEventsResponse {
629
- events: SocialEvent[];
630
- }
631
-
632
- // Function declaration section
633
- export function pullAvatarEvents(body: InitRequest): Promise<GetAvatarEventsResponse>;
634
-
635
557
  }
636
558
  /**
637
559
  * UserActionModule
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/js-runtime",
3
- "version": "7.0.6-3874914632.commit-eb56237",
3
+ "version": "7.0.6-3942933325.commit-70f967f",
4
4
  "description": "JavaScript runtime definitions for Decentraland environments",
5
5
  "scripts": {},
6
6
  "keywords": [],
@@ -21,5 +21,5 @@
21
21
  "displayName": "js-runtime",
22
22
  "tsconfig": "./tsconfig.json"
23
23
  },
24
- "commit": "eb5623794ecd280831fd47cf7b7a1139aedb5bac"
24
+ "commit": "70f967f506b6e27be0877901c693a1d5089b1bf4"
25
25
  }