@dcl/js-runtime 7.1.4-4668099613.commit-475ad2a → 7.1.4-4671625513.commit-bfff9b1
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.
- package/apis.d.ts +43 -2
- package/package.json +2 -2
package/apis.d.ts
CHANGED
|
@@ -395,12 +395,23 @@ declare module "~system/Players" {
|
|
|
395
395
|
*/
|
|
396
396
|
declare module "~system/RestrictedActions" {
|
|
397
397
|
|
|
398
|
+
export interface Position {
|
|
399
|
+
x: number;
|
|
400
|
+
y: number;
|
|
401
|
+
z: number;
|
|
402
|
+
}
|
|
398
403
|
export interface Vector3 {
|
|
399
404
|
x: number;
|
|
400
405
|
y: number;
|
|
401
406
|
z: number;
|
|
402
407
|
}
|
|
403
|
-
export interface
|
|
408
|
+
export interface Vector2 {
|
|
409
|
+
x: number;
|
|
410
|
+
y: number;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
// Function declaration section
|
|
414
|
+
export interface MovePlayerToResponse {
|
|
404
415
|
}
|
|
405
416
|
export interface MovePlayerToRequest {
|
|
406
417
|
newRelativePosition: Vector3 | undefined;
|
|
@@ -449,7 +460,13 @@ declare module "~system/RestrictedActions" {
|
|
|
449
460
|
*/
|
|
450
461
|
declare module "~system/Runtime" {
|
|
451
462
|
|
|
452
|
-
|
|
463
|
+
export interface ContentMapping {
|
|
464
|
+
file: string;
|
|
465
|
+
hash: string;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
// Function declaration section
|
|
469
|
+
export interface RealmInfo {
|
|
453
470
|
baseUrl: string;
|
|
454
471
|
realmName: string;
|
|
455
472
|
networkId: number;
|
|
@@ -465,11 +482,35 @@ declare module "~system/Runtime" {
|
|
|
465
482
|
export interface GetRealmRequest {
|
|
466
483
|
}
|
|
467
484
|
export interface GetWorldTimeRequest {
|
|
485
|
+
}
|
|
486
|
+
export interface ReadFileRequest {
|
|
487
|
+
/** name of the deployed file */
|
|
488
|
+
fileName: string;
|
|
489
|
+
}
|
|
490
|
+
export interface ReadFileResponse {
|
|
491
|
+
/** contents of the file */
|
|
492
|
+
content: Uint8Array;
|
|
493
|
+
/** deployed hash/CID */
|
|
494
|
+
hash: string;
|
|
495
|
+
}
|
|
496
|
+
export interface CurrentSceneEntityRequest {
|
|
497
|
+
}
|
|
498
|
+
export interface CurrentSceneEntityResponse {
|
|
499
|
+
/** this is either the entityId or the full URN of the scene that is running */
|
|
500
|
+
urn: string;
|
|
501
|
+
/** contents of the deployed entities */
|
|
502
|
+
content: ContentMapping[];
|
|
503
|
+
/** JSON serialization of the entity.metadata field */
|
|
504
|
+
metadataJson: string;
|
|
505
|
+
/** baseUrl used to resolve all content files */
|
|
506
|
+
baseUrl: string;
|
|
468
507
|
}
|
|
469
508
|
|
|
470
509
|
// Function declaration section
|
|
471
510
|
export function getRealm(body: GetRealmRequest): Promise<GetRealmResponse>;
|
|
472
511
|
export function getWorldTime(body: GetWorldTimeRequest): Promise<GetWorldTimeResponse>;
|
|
512
|
+
export function readFile(body: ReadFileRequest): Promise<ReadFileResponse>;
|
|
513
|
+
export function getSceneInformation(body: CurrentSceneEntityRequest): Promise<CurrentSceneEntityResponse>;
|
|
473
514
|
|
|
474
515
|
}
|
|
475
516
|
/**
|
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.1.4-
|
|
4
|
+
"version": "7.1.4-4671625513.commit-bfff9b1",
|
|
5
5
|
"author": "",
|
|
6
6
|
"files": [
|
|
7
7
|
"index.d.ts",
|
|
@@ -15,5 +15,5 @@
|
|
|
15
15
|
},
|
|
16
16
|
"types": "./index.d.ts",
|
|
17
17
|
"typings": "./index.d.ts",
|
|
18
|
-
"commit": "
|
|
18
|
+
"commit": "bfff9b1815c70f7f3a90fa6d8fa5dfd2934f3db1"
|
|
19
19
|
}
|