@dcl/sdk 7.0.0-2982061039.commit-9cc9ea8 → 7.0.0-3008112906.commit-524d1bd
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/dist/ecs7/index.d.ts +328 -0
- package/dist/ecs7/index.js +502 -4
- package/dist/ecs7/index.min.js +1 -1
- package/dist/ecs7/index.min.js.map +1 -1
- package/package.json +5 -5
- package/types/ecs7/index.d.ts +328 -0
- package/types/rpc-modules/CommunicationsController/index.d.ts +14 -0
- package/types/rpc-modules/DevTools/index.d.ts +15 -0
- package/types/rpc-modules/EngineAPI/index.d.ts +160 -0
- package/types/rpc-modules/EnvironmentAPI/index.d.ts +81 -0
- package/types/rpc-modules/EthereumController/index.d.ts +60 -0
- package/types/rpc-modules/ExperimentalAPI/index.d.ts +20 -0
- package/types/rpc-modules/ParcelIdentity/index.d.ts +48 -0
- package/types/rpc-modules/Permissions/index.d.ts +30 -0
- package/types/rpc-modules/Players/index.d.ts +52 -0
- package/types/rpc-modules/PortableExperiences/index.d.ts +38 -0
- package/types/rpc-modules/RestrictedActions/index.d.ts +26 -0
- package/types/rpc-modules/SceneStateStorageController/index.d.ts +90 -0
- package/types/rpc-modules/SignedFetch/index.d.ts +37 -0
- package/types/rpc-modules/SocialController/index.d.ts +18 -0
- package/types/rpc-modules/UserActionModule/index.d.ts +14 -0
- package/types/rpc-modules/UserIdentity/index.d.ts +45 -0
- package/types/tsconfig.ecs7.json +15 -11
- package/types/@decentraland/CommunicationsController/index.d.ts +0 -7
- package/types/@decentraland/EnvironmentAPI/index.d.ts +0 -45
- package/types/@decentraland/EthereumController/index.d.ts +0 -47
- package/types/@decentraland/Identity/index.d.ts +0 -44
- package/types/@decentraland/ParcelIdentity/index.d.ts +0 -49
- package/types/@decentraland/Players/index.d.ts +0 -49
- package/types/@decentraland/PortableExperiences/index.d.ts +0 -39
- package/types/@decentraland/RestrictedActions/index.d.ts +0 -41
- package/types/@decentraland/SignedFetch/index.d.ts +0 -16
- package/types/@decentraland/SocialController/index.d.ts +0 -1
- package/types/@decentraland/web3-provider/index.d.ts +0 -7
@@ -1,49 +0,0 @@
|
|
1
|
-
declare module '@decentraland/ParcelIdentity' {
|
2
|
-
|
3
|
-
export type ILand = {
|
4
|
-
sceneJsonData: SceneJsonData
|
5
|
-
}
|
6
|
-
|
7
|
-
export type SceneJsonData = {
|
8
|
-
display?: SceneDisplay
|
9
|
-
owner?: string
|
10
|
-
contact?: SceneContact
|
11
|
-
tags?: string[]
|
12
|
-
scene: SceneParcels
|
13
|
-
spawnPoints?: SceneSpawnPoint[]
|
14
|
-
requiredPermissions?: string[]
|
15
|
-
}
|
16
|
-
|
17
|
-
export type SceneDisplay = {
|
18
|
-
title?: string
|
19
|
-
favicon?: string
|
20
|
-
description?: string
|
21
|
-
navmapThumbnail?: string
|
22
|
-
}
|
23
|
-
|
24
|
-
export type SceneContact = {
|
25
|
-
name?: string
|
26
|
-
email?: string
|
27
|
-
url?: string
|
28
|
-
}
|
29
|
-
|
30
|
-
export type SceneParcels = {
|
31
|
-
base: string
|
32
|
-
parcels: string[]
|
33
|
-
}
|
34
|
-
|
35
|
-
export type SceneSpawnPoint = {
|
36
|
-
name?: string
|
37
|
-
position: {
|
38
|
-
x: number | number[]
|
39
|
-
y: number | number[]
|
40
|
-
z: number | number[]
|
41
|
-
}
|
42
|
-
default?: boolean
|
43
|
-
}
|
44
|
-
|
45
|
-
/**
|
46
|
-
* Returns the current parcel data
|
47
|
-
*/
|
48
|
-
export function getParcel(): Promise<{ land: ILand; cid: string }>
|
49
|
-
}
|
@@ -1,49 +0,0 @@
|
|
1
|
-
declare module '@decentraland/Players' {
|
2
|
-
export type ColorString = string
|
3
|
-
|
4
|
-
export type WearableId = string
|
5
|
-
|
6
|
-
export type Snapshots = {
|
7
|
-
// @deprecated
|
8
|
-
face: string
|
9
|
-
// @deprecated
|
10
|
-
face256: string
|
11
|
-
// @deprecated
|
12
|
-
face128: string
|
13
|
-
// @deprecated
|
14
|
-
body: string
|
15
|
-
}
|
16
|
-
|
17
|
-
export type AvatarForUserData = {
|
18
|
-
bodyShape: WearableId
|
19
|
-
skinColor: ColorString
|
20
|
-
hairColor: ColorString
|
21
|
-
eyeColor: ColorString
|
22
|
-
wearables: WearableId[]
|
23
|
-
snapshots: Snapshots
|
24
|
-
}
|
25
|
-
|
26
|
-
export type UserData = {
|
27
|
-
displayName: string
|
28
|
-
publicKey: string | null
|
29
|
-
hasConnectedWeb3: boolean
|
30
|
-
userId: string
|
31
|
-
version: number
|
32
|
-
avatar: AvatarForUserData
|
33
|
-
}
|
34
|
-
|
35
|
-
/**
|
36
|
-
* Return the players's data
|
37
|
-
*/
|
38
|
-
export function getPlayerData(opt: { userId: string }): Promise<UserData | null>
|
39
|
-
|
40
|
-
/**
|
41
|
-
* Return array of connected players
|
42
|
-
*/
|
43
|
-
export function getConnectedPlayers(): Promise<{ userId: string }[]>
|
44
|
-
|
45
|
-
/**
|
46
|
-
* Return array of players inside the scene
|
47
|
-
*/
|
48
|
-
export function getPlayersInScene(): Promise<{ userId: string }[]>
|
49
|
-
}
|
@@ -1,39 +0,0 @@
|
|
1
|
-
declare module '@decentraland/PortableExperiences' {
|
2
|
-
type PortableExperienceUrn = string
|
3
|
-
type PortableExperienceHandle = {
|
4
|
-
pid: PortableExperienceUrn
|
5
|
-
parentCid: string // Identifier of who triggered the PE to allow to kill it only to who created it
|
6
|
-
}
|
7
|
-
type PortableExperienceLoaded = {
|
8
|
-
portableExperiences: PortableExperienceHandle[]
|
9
|
-
}
|
10
|
-
|
11
|
-
/**
|
12
|
-
* Starts a portable experience.
|
13
|
-
* @param {SpawnPortableExperienceParameters} [pid] - Information to identify the PE
|
14
|
-
*
|
15
|
-
* Returns the handle of the portable experience.
|
16
|
-
*/
|
17
|
-
export function spawn(pid: PortableExperienceUrn): Promise<PortableExperienceHandle>
|
18
|
-
|
19
|
-
/**
|
20
|
-
* Stops a portable experience. Only the executor that spawned the portable experience has permission to kill it.
|
21
|
-
* @param {string} [pid] - The portable experience process id
|
22
|
-
*
|
23
|
-
* Returns true if was able to kill the portable experience, false if not.
|
24
|
-
*/
|
25
|
-
export function kill(pid: PortableExperienceUrn): Promise<boolean>
|
26
|
-
|
27
|
-
/**
|
28
|
-
* Stops a portable experience from the current running portable scene.
|
29
|
-
*
|
30
|
-
* Returns true if was able to kill the portable experience, false if not.
|
31
|
-
*/
|
32
|
-
export function exit(): Promise<boolean>
|
33
|
-
|
34
|
-
/**
|
35
|
-
*
|
36
|
-
* Returns current portable experiences loaded with ids and parentCid
|
37
|
-
*/
|
38
|
-
export function getPortableExperiencesLoaded(): Promise<PortableExperienceLoaded>
|
39
|
-
}
|
@@ -1,41 +0,0 @@
|
|
1
|
-
declare module '@decentraland/RestrictedActions' {
|
2
|
-
/**
|
3
|
-
* move player to a position inside the scene
|
4
|
-
*
|
5
|
-
* @param position PositionType
|
6
|
-
* @param cameraTarget PositionType
|
7
|
-
*/
|
8
|
-
export function movePlayerTo(newPosition: PositionType, cameraTarget?: PositionType): Promise<void>
|
9
|
-
|
10
|
-
export type PositionType = { x: number; y: number; z: number }
|
11
|
-
|
12
|
-
/**
|
13
|
-
* trigger an emote on the current player
|
14
|
-
*
|
15
|
-
* @param emote the emote to perform
|
16
|
-
*/
|
17
|
-
export function triggerEmote(emote: Emote): Promise<void>
|
18
|
-
|
19
|
-
export type Emote = {
|
20
|
-
predefined: PredefinedEmote
|
21
|
-
}
|
22
|
-
|
23
|
-
export const enum PredefinedEmote {
|
24
|
-
WAVE = 'wave',
|
25
|
-
FIST_PUMP = 'fistpump',
|
26
|
-
ROBOT = 'robot',
|
27
|
-
RAISE_HAND = 'raiseHand',
|
28
|
-
CLAP = 'clap',
|
29
|
-
MONEY = 'money',
|
30
|
-
KISS = 'kiss',
|
31
|
-
TIK = 'tik',
|
32
|
-
HAMMER = 'hammer',
|
33
|
-
TEKTONIK = 'tektonik',
|
34
|
-
DONT_SEE = 'dontsee',
|
35
|
-
HANDS_AIR = 'handsair',
|
36
|
-
SHRUG = 'shrug',
|
37
|
-
DISCO = 'disco',
|
38
|
-
DAB = 'dab',
|
39
|
-
HEAD_EXPLODDE = 'headexplode'
|
40
|
-
}
|
41
|
-
}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
declare module '@decentraland/SignedFetch' {
|
2
|
-
export type FlatFetchResponse = {
|
3
|
-
ok: boolean
|
4
|
-
status: number
|
5
|
-
statusText: string
|
6
|
-
headers: Record<string, string>
|
7
|
-
json?: any
|
8
|
-
text?: string
|
9
|
-
}
|
10
|
-
|
11
|
-
export type BodyType = 'json' | 'text'
|
12
|
-
|
13
|
-
export type FlatFetchInit = RequestInit & { responseBodyType?: BodyType }
|
14
|
-
|
15
|
-
export function signedFetch(url: string, init?: FlatFetchInit): Promise<FlatFetchResponse>
|
16
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
declare module '@decentraland/SocialController'
|