@dcl/sdk 7.0.0-3381668097.commit-01e37d6 → 7.0.0-3388940429.commit-45b2012
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/package.json +5 -4
- package/types/tsconfig.ecs7.json +3 -15
- package/types/dcl/decentraland-ecs.api.json +0 -61732
- package/types/dcl/decentraland-ecs.api.md +0 -2717
- package/types/env/index.d.ts +0 -82
- package/types/rpc-modules/CommunicationsController/index.d.ts +0 -14
- package/types/rpc-modules/DevTools/index.d.ts +0 -15
- package/types/rpc-modules/EngineApi/index.d.ts +0 -172
- package/types/rpc-modules/EnvironmentApi/index.d.ts +0 -81
- package/types/rpc-modules/EthereumController/index.d.ts +0 -60
- package/types/rpc-modules/ParcelIdentity/index.d.ts +0 -48
- package/types/rpc-modules/Permissions/index.d.ts +0 -30
- package/types/rpc-modules/Players/index.d.ts +0 -52
- package/types/rpc-modules/PortableExperiences/index.d.ts +0 -38
- package/types/rpc-modules/RestrictedActions/index.d.ts +0 -26
- package/types/rpc-modules/SignedFetch/index.d.ts +0 -37
- package/types/rpc-modules/SocialController/index.d.ts +0 -18
- package/types/rpc-modules/UserActionModule/index.d.ts +0 -14
- package/types/rpc-modules/UserIdentity/index.d.ts +0 -45
package/types/env/index.d.ts
DELETED
@@ -1,82 +0,0 @@
|
|
1
|
-
/// --- FETCH ---
|
2
|
-
|
3
|
-
type RequestRedirect = 'follow' | 'error' | 'manual'
|
4
|
-
type ResponseType = 'basic' | 'cors' | 'default' | 'error' | 'opaque' | 'opaqueredirect'
|
5
|
-
|
6
|
-
interface RequestInit {
|
7
|
-
// whatwg/fetch standard options
|
8
|
-
body?: string
|
9
|
-
headers?: { [index: string]: string }
|
10
|
-
method?: string
|
11
|
-
redirect?: RequestRedirect
|
12
|
-
|
13
|
-
// custom DCL property
|
14
|
-
timeout?: number
|
15
|
-
}
|
16
|
-
|
17
|
-
interface ReadOnlyHeaders {
|
18
|
-
get(name: string): string | null
|
19
|
-
has(name: string): boolean
|
20
|
-
forEach(callbackfn: (value: string, key: string, parent: ReadOnlyHeaders) => void, thisArg?: any): void
|
21
|
-
}
|
22
|
-
|
23
|
-
interface Response {
|
24
|
-
readonly headers: ReadOnlyHeaders
|
25
|
-
readonly ok: boolean
|
26
|
-
readonly redirected: boolean
|
27
|
-
readonly status: number
|
28
|
-
readonly statusText: string
|
29
|
-
readonly type: ResponseType
|
30
|
-
readonly url: string
|
31
|
-
|
32
|
-
json(): Promise<any>
|
33
|
-
text(): Promise<string>
|
34
|
-
}
|
35
|
-
|
36
|
-
declare function fetch(url: string, init?: RequestInit): Promise<Response>
|
37
|
-
|
38
|
-
/// --- WebSocket ---
|
39
|
-
|
40
|
-
interface Event {
|
41
|
-
readonly type: string
|
42
|
-
}
|
43
|
-
|
44
|
-
interface MessageEvent extends Event {
|
45
|
-
/**
|
46
|
-
* Returns the data of the message.
|
47
|
-
*/
|
48
|
-
readonly data: any
|
49
|
-
}
|
50
|
-
|
51
|
-
interface CloseEvent extends Event {
|
52
|
-
readonly code: number
|
53
|
-
readonly reason: string
|
54
|
-
readonly wasClean: boolean
|
55
|
-
}
|
56
|
-
|
57
|
-
interface WebSocket {
|
58
|
-
readonly bufferedAmount: number
|
59
|
-
readonly extensions: string
|
60
|
-
onclose: ((this: WebSocket, ev: CloseEvent) => any) | null
|
61
|
-
onerror: ((this: WebSocket, ev: Event) => any) | null
|
62
|
-
onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null
|
63
|
-
onopen: ((this: WebSocket, ev: Event) => any) | null
|
64
|
-
readonly protocol: string
|
65
|
-
readonly readyState: number
|
66
|
-
readonly url: string
|
67
|
-
close(code?: number, reason?: string): void
|
68
|
-
send(data: string): void
|
69
|
-
readonly CLOSED: number
|
70
|
-
readonly CLOSING: number
|
71
|
-
readonly CONNECTING: number
|
72
|
-
readonly OPEN: number
|
73
|
-
}
|
74
|
-
|
75
|
-
declare var WebSocket: {
|
76
|
-
prototype: WebSocket
|
77
|
-
new (url: string, protocols?: string | string[]): WebSocket
|
78
|
-
readonly CLOSED: number
|
79
|
-
readonly CLOSING: number
|
80
|
-
readonly CONNECTING: number
|
81
|
-
readonly OPEN: number
|
82
|
-
}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
declare module "~system/CommunicationsController" {
|
2
|
-
|
3
|
-
export interface RealSendRequest {
|
4
|
-
message: string;
|
5
|
-
}
|
6
|
-
export interface RealSendResponse {
|
7
|
-
}
|
8
|
-
|
9
|
-
// ########### BLOCK
|
10
|
-
|
11
|
-
// importtype { RealSendRequest, RealSendResponse } from "proto/decentraland/kernel/apis/communications_controller.gen";
|
12
|
-
export function send(body: RealSendRequest): Promise<RealSendResponse>;
|
13
|
-
|
14
|
-
}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
declare module "~system/DevTools" {
|
2
|
-
|
3
|
-
export interface DevToolsBody {
|
4
|
-
type: string;
|
5
|
-
jsonPayload: string;
|
6
|
-
}
|
7
|
-
export interface EventResponse {
|
8
|
-
}
|
9
|
-
|
10
|
-
// ########### BLOCK
|
11
|
-
|
12
|
-
// importtype { DevToolsBody, EventResponse } from "proto/decentraland/kernel/apis/dev_tools.gen";
|
13
|
-
export function event(body: DevToolsBody): Promise<EventResponse>;
|
14
|
-
|
15
|
-
}
|
@@ -1,172 +0,0 @@
|
|
1
|
-
declare module "~system/EngineApi" {
|
2
|
-
|
3
|
-
export enum QueryType {
|
4
|
-
QT_INVALID_QUERY_TYPE = 0,
|
5
|
-
QT_HIT_FIRST = 1,
|
6
|
-
QT_HIT_ALL = 2,
|
7
|
-
QT_HIT_FIRST_AVATAR = 3,
|
8
|
-
QT_HIT_ALL_AVATARS = 4,
|
9
|
-
UNRECOGNIZED = -1
|
10
|
-
}
|
11
|
-
export enum EAType {
|
12
|
-
EAT_INVALID_EA_TYPE = 0,
|
13
|
-
EAT_OPEN_EXTERNAL_URL = 1,
|
14
|
-
EAT_OPEN_NFT_DIALOG = 2,
|
15
|
-
EAT_CREATE_ENTITY = 3,
|
16
|
-
EAT_REMOVE_ENTITY = 4,
|
17
|
-
EAT_UPDATE_ENTITY_COMPONENT = 5,
|
18
|
-
EAT_ATTACH_ENTITY_COMPONENT = 6,
|
19
|
-
EAT_COMPONENT_REMOVED = 7,
|
20
|
-
EAT_SET_ENTITY_PARENT = 8,
|
21
|
-
EAT_QUERY = 9,
|
22
|
-
EAT_COMPONENT_CREATED = 10,
|
23
|
-
EAT_COMPONENT_DISPOSED = 11,
|
24
|
-
EAT_COMPONENT_UPDATED = 12,
|
25
|
-
EAT_INIT_MESSAGES_FINISHED = 13,
|
26
|
-
UNRECOGNIZED = -1
|
27
|
-
}
|
28
|
-
/** Events */
|
29
|
-
export enum EventDataType {
|
30
|
-
EDT_GENERIC = 0,
|
31
|
-
EDT_POSITION_CHANGED = 1,
|
32
|
-
EDT_ROTATION_CHANGED = 2,
|
33
|
-
UNRECOGNIZED = -1
|
34
|
-
}
|
35
|
-
export interface OpenExternalUrlBody {
|
36
|
-
url: string;
|
37
|
-
}
|
38
|
-
export interface OpenNFTDialogBody {
|
39
|
-
assetContractAddress: string;
|
40
|
-
tokenId: string;
|
41
|
-
comment?: string | undefined;
|
42
|
-
}
|
43
|
-
export interface CreateEntityBody {
|
44
|
-
id: string;
|
45
|
-
}
|
46
|
-
export interface RemoveEntityBody {
|
47
|
-
id: string;
|
48
|
-
}
|
49
|
-
export interface UpdateEntityComponentBody {
|
50
|
-
entityId: string;
|
51
|
-
classId: number;
|
52
|
-
name: string;
|
53
|
-
json: string;
|
54
|
-
}
|
55
|
-
export interface AttachEntityComponentBody {
|
56
|
-
entityId: string;
|
57
|
-
name: string;
|
58
|
-
id: string;
|
59
|
-
}
|
60
|
-
export interface ComponentRemovedBody {
|
61
|
-
entityId: string;
|
62
|
-
name: string;
|
63
|
-
}
|
64
|
-
export interface SetEntityParentBody {
|
65
|
-
entityId: string;
|
66
|
-
parentId: string;
|
67
|
-
}
|
68
|
-
export interface QueryBody {
|
69
|
-
queryId: QueryType;
|
70
|
-
payload: string;
|
71
|
-
}
|
72
|
-
export interface ComponentCreatedBody {
|
73
|
-
id: string;
|
74
|
-
classId: number;
|
75
|
-
name: string;
|
76
|
-
}
|
77
|
-
export interface ComponentDisposedBody {
|
78
|
-
id: string;
|
79
|
-
}
|
80
|
-
export interface ComponentUpdatedBody {
|
81
|
-
id: string;
|
82
|
-
json: string;
|
83
|
-
}
|
84
|
-
export interface InitMessagesFinishedBody {
|
85
|
-
}
|
86
|
-
export interface Payload {
|
87
|
-
openExternalUrl?: OpenExternalUrlBody | undefined;
|
88
|
-
openNftDialog?: OpenNFTDialogBody | undefined;
|
89
|
-
createEntity?: CreateEntityBody | undefined;
|
90
|
-
removeEntity?: RemoveEntityBody | undefined;
|
91
|
-
updateEntityComponent?: UpdateEntityComponentBody | undefined;
|
92
|
-
attachEntityComponent?: AttachEntityComponentBody | undefined;
|
93
|
-
componentRemoved?: ComponentRemovedBody | undefined;
|
94
|
-
setEntityParent?: SetEntityParentBody | undefined;
|
95
|
-
query?: QueryBody | undefined;
|
96
|
-
componentCreated?: ComponentCreatedBody | undefined;
|
97
|
-
componentDisposed?: ComponentDisposedBody | undefined;
|
98
|
-
componentUpdated?: ComponentUpdatedBody | undefined;
|
99
|
-
initMessagesFinished?: InitMessagesFinishedBody | undefined;
|
100
|
-
}
|
101
|
-
export interface EntityAction {
|
102
|
-
type: EAType;
|
103
|
-
tag?: string | undefined;
|
104
|
-
payload: Payload | undefined;
|
105
|
-
}
|
106
|
-
export interface ManyEntityAction {
|
107
|
-
actions: EntityAction[];
|
108
|
-
}
|
109
|
-
export interface SendBatchResponse {
|
110
|
-
events: EventData[];
|
111
|
-
}
|
112
|
-
export interface UnsubscribeRequest {
|
113
|
-
eventId: string;
|
114
|
-
}
|
115
|
-
export interface SubscribeRequest {
|
116
|
-
eventId: string;
|
117
|
-
}
|
118
|
-
export interface SubscribeResponse {
|
119
|
-
}
|
120
|
-
export interface UnsubscribeResponse {
|
121
|
-
}
|
122
|
-
export interface GenericPayload {
|
123
|
-
eventId: string;
|
124
|
-
eventData: string;
|
125
|
-
}
|
126
|
-
export interface ReadOnlyVector3 {
|
127
|
-
x: number;
|
128
|
-
y: number;
|
129
|
-
z: number;
|
130
|
-
}
|
131
|
-
export interface ReadOnlyQuaternion {
|
132
|
-
x: number;
|
133
|
-
y: number;
|
134
|
-
z: number;
|
135
|
-
w: number;
|
136
|
-
}
|
137
|
-
export interface PositionChangedPayload {
|
138
|
-
position: ReadOnlyVector3 | undefined;
|
139
|
-
cameraPosition: ReadOnlyVector3 | undefined;
|
140
|
-
playerHeight: number;
|
141
|
-
}
|
142
|
-
export interface RotationChangedPayload {
|
143
|
-
rotation: ReadOnlyVector3 | undefined;
|
144
|
-
quaternion: ReadOnlyQuaternion | undefined;
|
145
|
-
}
|
146
|
-
export interface EventData {
|
147
|
-
type: EventDataType;
|
148
|
-
generic?: GenericPayload | undefined;
|
149
|
-
positionChanged?: PositionChangedPayload | undefined;
|
150
|
-
rotationChanged?: RotationChangedPayload | undefined;
|
151
|
-
}
|
152
|
-
export interface CrdtSendToRendererRequest {
|
153
|
-
data: Uint8Array;
|
154
|
-
}
|
155
|
-
export interface CrdtSendToResponse {
|
156
|
-
}
|
157
|
-
export interface CrdtMessageFromRendererRequest {
|
158
|
-
}
|
159
|
-
export interface CrdtMessageFromRendererResponse {
|
160
|
-
data: Uint8Array[];
|
161
|
-
}
|
162
|
-
|
163
|
-
// ########### BLOCK
|
164
|
-
|
165
|
-
// importtype { ManyEntityAction, SendBatchResponse, SubscribeRequest, SubscribeResponse, UnsubscribeRequest, UnsubscribeResponse, CrdtSendToRendererRequest, CrdtSendToResponse, CrdtMessageFromRendererRequest, CrdtMessageFromRendererResponse } from "proto/decentraland/kernel/apis/engine_api.gen";
|
166
|
-
export function sendBatch(body: ManyEntityAction): Promise<SendBatchResponse>;
|
167
|
-
export function subscribe(body: SubscribeRequest): Promise<SubscribeResponse>;
|
168
|
-
export function unsubscribe(body: UnsubscribeRequest): Promise<UnsubscribeResponse>;
|
169
|
-
export function crdtSendToRenderer(body: CrdtSendToRendererRequest): Promise<CrdtSendToResponse>;
|
170
|
-
export function crdtGetMessageFromRenderer(body: CrdtMessageFromRendererRequest): Promise<CrdtMessageFromRendererResponse>;
|
171
|
-
|
172
|
-
}
|
@@ -1,81 +0,0 @@
|
|
1
|
-
declare module "~system/EnvironmentApi" {
|
2
|
-
|
3
|
-
export const protobufPackage = "decentraland.common";
|
4
|
-
export interface ContentMapping {
|
5
|
-
file: string;
|
6
|
-
hash: string;
|
7
|
-
}
|
8
|
-
|
9
|
-
// ########### BLOCK
|
10
|
-
|
11
|
-
// importtype { ContentMapping } from "proto/decentraland/common/content_mapping.gen";
|
12
|
-
export interface MinimalRunnableEntity {
|
13
|
-
content: ContentMapping[];
|
14
|
-
metadataJson: string;
|
15
|
-
}
|
16
|
-
export interface BootstrapDataResponse {
|
17
|
-
id: string;
|
18
|
-
baseUrl: string;
|
19
|
-
entity: MinimalRunnableEntity | undefined;
|
20
|
-
useFPSThrottling: boolean;
|
21
|
-
}
|
22
|
-
export interface PreviewModeResponse {
|
23
|
-
isPreview: boolean;
|
24
|
-
}
|
25
|
-
export interface AreUnsafeRequestAllowedResponse {
|
26
|
-
status: boolean;
|
27
|
-
}
|
28
|
-
export interface GetPlatformResponse {
|
29
|
-
platform: string;
|
30
|
-
}
|
31
|
-
export interface EnvironmentRealm {
|
32
|
-
domain: string;
|
33
|
-
layer: string;
|
34
|
-
room: string;
|
35
|
-
serverName: string;
|
36
|
-
displayName: string;
|
37
|
-
protocol: string;
|
38
|
-
}
|
39
|
-
export interface GetCurrentRealmResponse {
|
40
|
-
currentRealm?: EnvironmentRealm | undefined;
|
41
|
-
}
|
42
|
-
export interface GetExplorerConfigurationResponse {
|
43
|
-
clientUri: string;
|
44
|
-
configurations: {
|
45
|
-
[key: string]: string;
|
46
|
-
};
|
47
|
-
}
|
48
|
-
export interface GetExplorerConfigurationResponse_ConfigurationsEntry {
|
49
|
-
key: string;
|
50
|
-
value: string;
|
51
|
-
}
|
52
|
-
export interface GetDecentralandTimeResponse {
|
53
|
-
seconds: number;
|
54
|
-
}
|
55
|
-
export interface GetBootstrapDataRequest {
|
56
|
-
}
|
57
|
-
export interface IsPreviewModeRequest {
|
58
|
-
}
|
59
|
-
export interface GetPlatformRequest {
|
60
|
-
}
|
61
|
-
export interface AreUnsafeRequestAllowedRequest {
|
62
|
-
}
|
63
|
-
export interface GetCurrentRealmRequest {
|
64
|
-
}
|
65
|
-
export interface GetExplorerConfigurationRequest {
|
66
|
-
}
|
67
|
-
export interface GetDecentralandTimeRequest {
|
68
|
-
}
|
69
|
-
|
70
|
-
// ########### BLOCK
|
71
|
-
|
72
|
-
// importtype { GetBootstrapDataRequest, BootstrapDataResponse, IsPreviewModeRequest, PreviewModeResponse, GetPlatformRequest, GetPlatformResponse, AreUnsafeRequestAllowedRequest, AreUnsafeRequestAllowedResponse, GetCurrentRealmRequest, GetCurrentRealmResponse, GetExplorerConfigurationRequest, GetExplorerConfigurationResponse, GetDecentralandTimeRequest, GetDecentralandTimeResponse } from "proto/decentraland/kernel/apis/environment_api.gen";
|
73
|
-
export function getBootstrapData(body: GetBootstrapDataRequest): Promise<BootstrapDataResponse>;
|
74
|
-
export function isPreviewMode(body: IsPreviewModeRequest): Promise<PreviewModeResponse>;
|
75
|
-
export function getPlatform(body: GetPlatformRequest): Promise<GetPlatformResponse>;
|
76
|
-
export function areUnsafeRequestAllowed(body: AreUnsafeRequestAllowedRequest): Promise<AreUnsafeRequestAllowedResponse>;
|
77
|
-
export function getCurrentRealm(body: GetCurrentRealmRequest): Promise<GetCurrentRealmResponse>;
|
78
|
-
export function getExplorerConfiguration(body: GetExplorerConfigurationRequest): Promise<GetExplorerConfigurationResponse>;
|
79
|
-
export function getDecentralandTime(body: GetDecentralandTimeRequest): Promise<GetDecentralandTimeResponse>;
|
80
|
-
|
81
|
-
}
|
@@ -1,60 +0,0 @@
|
|
1
|
-
declare module "~system/EthereumController" {
|
2
|
-
|
3
|
-
export interface RequirePaymentRequest {
|
4
|
-
toAddress: string;
|
5
|
-
amount: number;
|
6
|
-
currency: string;
|
7
|
-
}
|
8
|
-
export interface RequirePaymentResponse {
|
9
|
-
jsonAnyResponse: string;
|
10
|
-
}
|
11
|
-
export interface SignMessageRequest {
|
12
|
-
message: {
|
13
|
-
[key: string]: string;
|
14
|
-
};
|
15
|
-
}
|
16
|
-
export interface SignMessageRequest_MessageEntry {
|
17
|
-
key: string;
|
18
|
-
value: string;
|
19
|
-
}
|
20
|
-
export interface SignMessageResponse {
|
21
|
-
message: string;
|
22
|
-
hexEncodedMessage: string;
|
23
|
-
signature: string;
|
24
|
-
}
|
25
|
-
export interface ConvertMessageToObjectRequest {
|
26
|
-
message: string;
|
27
|
-
}
|
28
|
-
export interface ConvertMessageToObjectResponse {
|
29
|
-
dict: {
|
30
|
-
[key: string]: string;
|
31
|
-
};
|
32
|
-
}
|
33
|
-
export interface ConvertMessageToObjectResponse_DictEntry {
|
34
|
-
key: string;
|
35
|
-
value: string;
|
36
|
-
}
|
37
|
-
export interface SendAsyncRequest {
|
38
|
-
id: number;
|
39
|
-
method: string;
|
40
|
-
jsonParams: string;
|
41
|
-
}
|
42
|
-
export interface SendAsyncResponse {
|
43
|
-
jsonAnyResponse: string;
|
44
|
-
}
|
45
|
-
export interface GetUserAccountRequest {
|
46
|
-
}
|
47
|
-
export interface GetUserAccountResponse {
|
48
|
-
address?: string | undefined;
|
49
|
-
}
|
50
|
-
|
51
|
-
// ########### BLOCK
|
52
|
-
|
53
|
-
// importtype { RequirePaymentRequest, RequirePaymentResponse, SignMessageRequest, SignMessageResponse, ConvertMessageToObjectRequest, ConvertMessageToObjectResponse, SendAsyncRequest, SendAsyncResponse, GetUserAccountRequest, GetUserAccountResponse } from "proto/decentraland/kernel/apis/ethereum_controller.gen";
|
54
|
-
export function requirePayment(body: RequirePaymentRequest): Promise<RequirePaymentResponse>;
|
55
|
-
export function signMessage(body: SignMessageRequest): Promise<SignMessageResponse>;
|
56
|
-
export function convertMessageToObject(body: ConvertMessageToObjectRequest): Promise<ConvertMessageToObjectResponse>;
|
57
|
-
export function sendAsync(body: SendAsyncRequest): Promise<SendAsyncResponse>;
|
58
|
-
export function getUserAccount(body: GetUserAccountRequest): Promise<GetUserAccountResponse>;
|
59
|
-
|
60
|
-
}
|
@@ -1,48 +0,0 @@
|
|
1
|
-
declare module "~system/ParcelIdentity" {
|
2
|
-
|
3
|
-
export const protobufPackage = "decentraland.common";
|
4
|
-
export interface ContentMapping {
|
5
|
-
file: string;
|
6
|
-
hash: string;
|
7
|
-
}
|
8
|
-
|
9
|
-
// ########### BLOCK
|
10
|
-
|
11
|
-
// importtype { ContentMapping } from "proto/decentraland/common/content_mapping.gen";
|
12
|
-
export interface MappingsResponse {
|
13
|
-
parcelId: string;
|
14
|
-
rootCid: string;
|
15
|
-
contents: ContentMapping[];
|
16
|
-
}
|
17
|
-
export interface Land {
|
18
|
-
sceneId: string;
|
19
|
-
sceneJsonData: string;
|
20
|
-
baseUrl: string;
|
21
|
-
baseUrlBundles: string;
|
22
|
-
mappingsResponse: MappingsResponse | undefined;
|
23
|
-
}
|
24
|
-
export interface GetParcelRequest {
|
25
|
-
}
|
26
|
-
export interface GetParcelResponse {
|
27
|
-
land: Land | undefined;
|
28
|
-
cid: string;
|
29
|
-
}
|
30
|
-
export interface GetSceneIdRequest {
|
31
|
-
}
|
32
|
-
export interface GetSceneIdResponse {
|
33
|
-
sceneId: string;
|
34
|
-
}
|
35
|
-
export interface GetIsEmptyRequest {
|
36
|
-
}
|
37
|
-
export interface GetIsEmptyResponse {
|
38
|
-
isEmpty: boolean;
|
39
|
-
}
|
40
|
-
|
41
|
-
// ########### BLOCK
|
42
|
-
|
43
|
-
// importtype { GetParcelRequest, GetParcelResponse, GetSceneIdRequest, GetSceneIdResponse, GetIsEmptyRequest, GetIsEmptyResponse } from "proto/decentraland/kernel/apis/parcel_identity.gen";
|
44
|
-
export function getParcel(body: GetParcelRequest): Promise<GetParcelResponse>;
|
45
|
-
export function getSceneId(body: GetSceneIdRequest): Promise<GetSceneIdResponse>;
|
46
|
-
export function getIsEmpty(body: GetIsEmptyRequest): Promise<GetIsEmptyResponse>;
|
47
|
-
|
48
|
-
}
|
@@ -1,30 +0,0 @@
|
|
1
|
-
declare module "~system/Permissions" {
|
2
|
-
|
3
|
-
export enum PermissionItem {
|
4
|
-
PI_ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE = 0,
|
5
|
-
PI_ALLOW_TO_TRIGGER_AVATAR_EMOTE = 1,
|
6
|
-
PI_USE_WEB3_API = 2,
|
7
|
-
PI_USE_WEBSOCKET = 3,
|
8
|
-
PI_USE_FETCH = 4,
|
9
|
-
UNRECOGNIZED = -1
|
10
|
-
}
|
11
|
-
export interface PermissionResponse {
|
12
|
-
hasPermission: boolean;
|
13
|
-
}
|
14
|
-
export interface HasPermissionRequest {
|
15
|
-
permission: PermissionItem;
|
16
|
-
}
|
17
|
-
export interface HasManyPermissionRequest {
|
18
|
-
permissions: PermissionItem[];
|
19
|
-
}
|
20
|
-
export interface HasManyPermissionResponse {
|
21
|
-
hasManyPermission: boolean[];
|
22
|
-
}
|
23
|
-
|
24
|
-
// ########### BLOCK
|
25
|
-
|
26
|
-
// importtype { HasPermissionRequest, PermissionResponse, HasManyPermissionRequest, HasManyPermissionResponse } from "proto/decentraland/kernel/apis/permissions.gen";
|
27
|
-
export function hasPermission(body: HasPermissionRequest): Promise<PermissionResponse>;
|
28
|
-
export function hasManyPermissions(body: HasManyPermissionRequest): Promise<HasManyPermissionResponse>;
|
29
|
-
|
30
|
-
}
|
@@ -1,52 +0,0 @@
|
|
1
|
-
declare module "~system/Players" {
|
2
|
-
|
3
|
-
export const protobufPackage = "decentraland.common.sdk";
|
4
|
-
export interface Snapshots {
|
5
|
-
face256: string;
|
6
|
-
body: string;
|
7
|
-
}
|
8
|
-
export interface AvatarForUserData {
|
9
|
-
bodyShape: string;
|
10
|
-
skinColor: string;
|
11
|
-
hairColor: string;
|
12
|
-
eyeColor: string;
|
13
|
-
wearables: string[];
|
14
|
-
snapshots: Snapshots | undefined;
|
15
|
-
}
|
16
|
-
export interface UserData {
|
17
|
-
displayName: string;
|
18
|
-
publicKey?: string | undefined;
|
19
|
-
hasConnectedWeb3: boolean;
|
20
|
-
userId: string;
|
21
|
-
version: number;
|
22
|
-
avatar: AvatarForUserData | undefined;
|
23
|
-
}
|
24
|
-
|
25
|
-
// ########### BLOCK
|
26
|
-
|
27
|
-
// importtype { UserData } from "proto/decentraland/common/sdk/user_data.gen";
|
28
|
-
export interface Player {
|
29
|
-
userId: string;
|
30
|
-
}
|
31
|
-
export interface PlayersGetUserDataResponse {
|
32
|
-
data?: UserData | undefined;
|
33
|
-
}
|
34
|
-
export interface PlayerListResponse {
|
35
|
-
players: Player[];
|
36
|
-
}
|
37
|
-
export interface GetPlayerDataRequest {
|
38
|
-
userId: string;
|
39
|
-
}
|
40
|
-
export interface GetPlayersInSceneRequest {
|
41
|
-
}
|
42
|
-
export interface GetConnectedPlayersRequest {
|
43
|
-
}
|
44
|
-
|
45
|
-
// ########### BLOCK
|
46
|
-
|
47
|
-
// importtype { GetPlayerDataRequest, PlayersGetUserDataResponse, GetPlayersInSceneRequest, PlayerListResponse, GetConnectedPlayersRequest } from "proto/decentraland/kernel/apis/players.gen";
|
48
|
-
export function getPlayerData(body: GetPlayerDataRequest): Promise<PlayersGetUserDataResponse>;
|
49
|
-
export function getPlayersInScene(body: GetPlayersInSceneRequest): Promise<PlayerListResponse>;
|
50
|
-
export function getConnectedPlayers(body: GetConnectedPlayersRequest): Promise<PlayerListResponse>;
|
51
|
-
|
52
|
-
}
|
@@ -1,38 +0,0 @@
|
|
1
|
-
declare module "~system/PortableExperiences" {
|
2
|
-
|
3
|
-
export interface KillRequest {
|
4
|
-
pid: string;
|
5
|
-
}
|
6
|
-
export interface KillResponse {
|
7
|
-
status: boolean;
|
8
|
-
}
|
9
|
-
export interface SpawnRequest {
|
10
|
-
pid: string;
|
11
|
-
}
|
12
|
-
export interface SpawnResponse {
|
13
|
-
pid: string;
|
14
|
-
parentCid: string;
|
15
|
-
}
|
16
|
-
export interface PxRequest {
|
17
|
-
pid: string;
|
18
|
-
}
|
19
|
-
export interface GetPortableExperiencesLoadedRequest {
|
20
|
-
}
|
21
|
-
export interface GetPortableExperiencesLoadedResponse {
|
22
|
-
loaded: SpawnResponse[];
|
23
|
-
}
|
24
|
-
export interface ExitRequest {
|
25
|
-
}
|
26
|
-
export interface ExitResponse {
|
27
|
-
status: boolean;
|
28
|
-
}
|
29
|
-
|
30
|
-
// ########### BLOCK
|
31
|
-
|
32
|
-
// importtype { SpawnRequest, SpawnResponse, KillRequest, KillResponse, ExitRequest, ExitResponse, GetPortableExperiencesLoadedRequest, GetPortableExperiencesLoadedResponse } from "proto/decentraland/kernel/apis/portable_experiences.gen";
|
33
|
-
export function spawn(body: SpawnRequest): Promise<SpawnResponse>;
|
34
|
-
export function kill(body: KillRequest): Promise<KillResponse>;
|
35
|
-
export function exit(body: ExitRequest): Promise<ExitResponse>;
|
36
|
-
export function getPortableExperiencesLoaded(body: GetPortableExperiencesLoadedRequest): Promise<GetPortableExperiencesLoadedResponse>;
|
37
|
-
|
38
|
-
}
|
@@ -1,26 +0,0 @@
|
|
1
|
-
declare module "~system/RestrictedActions" {
|
2
|
-
|
3
|
-
export interface Vector3 {
|
4
|
-
x: number;
|
5
|
-
y: number;
|
6
|
-
z: number;
|
7
|
-
}
|
8
|
-
export interface MovePlayerToResponse {
|
9
|
-
}
|
10
|
-
export interface MovePlayerToRequest {
|
11
|
-
newRelativePosition: Vector3 | undefined;
|
12
|
-
cameraTarget?: Vector3 | undefined;
|
13
|
-
}
|
14
|
-
export interface TriggerEmoteResponse {
|
15
|
-
}
|
16
|
-
export interface TriggerEmoteRequest {
|
17
|
-
predefinedEmote: string;
|
18
|
-
}
|
19
|
-
|
20
|
-
// ########### BLOCK
|
21
|
-
|
22
|
-
// importtype { MovePlayerToRequest, MovePlayerToResponse, TriggerEmoteRequest, TriggerEmoteResponse } from "proto/decentraland/kernel/apis/restricted_actions.gen";
|
23
|
-
export function movePlayerTo(body: MovePlayerToRequest): Promise<MovePlayerToResponse>;
|
24
|
-
export function triggerEmote(body: TriggerEmoteRequest): Promise<TriggerEmoteResponse>;
|
25
|
-
|
26
|
-
}
|
@@ -1,37 +0,0 @@
|
|
1
|
-
declare module "~system/SignedFetch" {
|
2
|
-
|
3
|
-
export interface FlatFetchInit {
|
4
|
-
method?: string | undefined;
|
5
|
-
body?: string | undefined;
|
6
|
-
headers: {
|
7
|
-
[key: string]: string;
|
8
|
-
};
|
9
|
-
}
|
10
|
-
export interface FlatFetchInit_HeadersEntry {
|
11
|
-
key: string;
|
12
|
-
value: string;
|
13
|
-
}
|
14
|
-
export interface FlatFetchResponse {
|
15
|
-
ok: boolean;
|
16
|
-
status: number;
|
17
|
-
statusText: string;
|
18
|
-
headers: {
|
19
|
-
[key: string]: string;
|
20
|
-
};
|
21
|
-
body: string;
|
22
|
-
}
|
23
|
-
export interface FlatFetchResponse_HeadersEntry {
|
24
|
-
key: string;
|
25
|
-
value: string;
|
26
|
-
}
|
27
|
-
export interface SignedFetchRequest {
|
28
|
-
url: string;
|
29
|
-
init?: FlatFetchInit | undefined;
|
30
|
-
}
|
31
|
-
|
32
|
-
// ########### BLOCK
|
33
|
-
|
34
|
-
// importtype { SignedFetchRequest, FlatFetchResponse } from "proto/decentraland/kernel/apis/signed_fetch.gen";
|
35
|
-
export function signedFetch(body: SignedFetchRequest): Promise<FlatFetchResponse>;
|
36
|
-
|
37
|
-
}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
declare module "~system/SocialController" {
|
2
|
-
|
3
|
-
export interface InitRequest {
|
4
|
-
}
|
5
|
-
export interface SocialEvent {
|
6
|
-
event: string;
|
7
|
-
payload: string;
|
8
|
-
}
|
9
|
-
export interface GetAvatarEventsResponse {
|
10
|
-
events: SocialEvent[];
|
11
|
-
}
|
12
|
-
|
13
|
-
// ########### BLOCK
|
14
|
-
|
15
|
-
// importtype { InitRequest, GetAvatarEventsResponse } from "proto/decentraland/kernel/apis/social_controller.gen";
|
16
|
-
export function pullAvatarEvents(body: InitRequest): Promise<GetAvatarEventsResponse>;
|
17
|
-
|
18
|
-
}
|