@dcl/protocol 1.0.0-2569677750.commit-6ce832a → 1.0.0-2611857113.commit-45ed75b
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/ecs/components/Animator.proto +18 -0
- package/ecs/components/AudioSource.proto +13 -0
- package/ecs/components/AudioStream.proto +10 -0
- package/ecs/components/AvatarModifierArea.proto +15 -0
- package/ecs/components/BoxShape.proto +11 -0
- package/ecs/components/CameraModeArea.proto +14 -0
- package/ecs/components/CylinderShape.proto +12 -0
- package/ecs/components/GLTFShape.proto +11 -0
- package/ecs/components/NFTShape.proto +16 -0
- package/ecs/components/OnPointerDown.proto +11 -0
- package/ecs/components/OnPointerDownResult.proto +16 -0
- package/ecs/components/OnPointerUp.proto +11 -0
- package/ecs/components/OnPointerUpResult.proto +16 -0
- package/ecs/components/PlaneShape.proto +11 -0
- package/ecs/components/README.md +32 -0
- package/ecs/components/SphereShape.proto +10 -0
- package/ecs/components/TextShape.proto +33 -0
- package/ecs/components/Transform.md +25 -0
- package/ecs/components/UiTransform.proto +159 -0
- package/ecs/components/common/Color3.proto +8 -0
- package/ecs/components/common/Vector3.proto +7 -0
- package/ecs/components/common/id.md +2 -0
- package/ecs/components/common/id.proto +7 -0
- package/kernel/apis/CommunicationsController.proto +11 -0
- package/kernel/apis/DevTools.proto +12 -0
- package/kernel/apis/EngineAPI.proto +184 -0
- package/kernel/apis/EnvironmentAPI.proto +68 -0
- package/kernel/apis/EthereumController.proto +53 -0
- package/kernel/apis/ExperimentalAPI.proto +16 -0
- package/kernel/apis/ParcelIdentity.proto +42 -0
- package/kernel/apis/Permissions.proto +30 -0
- package/kernel/apis/Players.proto +28 -0
- package/kernel/apis/PortableExperiences.proto +40 -0
- package/kernel/apis/RestrictedActions.proto +25 -0
- package/kernel/apis/SceneStateStorageController.proto +114 -0
- package/kernel/apis/SignedFetch.proto +24 -0
- package/kernel/apis/SocialController.proto +15 -0
- package/kernel/apis/UserActionModule.proto +11 -0
- package/kernel/apis/UserIdentity.proto +41 -0
- package/kernel/comms/v1/broker.proto +114 -0
- package/kernel/comms/v1/comms.proto +68 -0
- package/kernel/comms/v2/comms.proto +59 -0
- package/package.json +4 -4
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
message OpenExternalUrlBody {
|
|
4
|
+
string url = 1;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
message OpenNFTDialogBody {
|
|
8
|
+
string asset_contract_address = 1;
|
|
9
|
+
string token_id = 2;
|
|
10
|
+
optional string comment = 3;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
message CreateEntityBody {
|
|
14
|
+
string id = 1;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
message RemoveEntityBody {
|
|
18
|
+
string id = 1;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
message UpdateEntityComponentBody {
|
|
22
|
+
string entity_id = 1;
|
|
23
|
+
int32 class_id = 2;
|
|
24
|
+
string name = 3;
|
|
25
|
+
string json = 4;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
message AttachEntityComponentBody {
|
|
29
|
+
string entity_id = 1;
|
|
30
|
+
string name = 2;
|
|
31
|
+
string id = 3;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
message ComponentRemovedBody {
|
|
35
|
+
string entity_id = 1;
|
|
36
|
+
string name = 2;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
message SetEntityParentBody {
|
|
40
|
+
string entity_id = 1;
|
|
41
|
+
string parent_id = 2;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
enum QueryType {
|
|
45
|
+
InvalidQueryType = 0;
|
|
46
|
+
HitFirst = 1;
|
|
47
|
+
HitAll = 2;
|
|
48
|
+
HitFirstAvatar = 3;
|
|
49
|
+
HitAllAvatars = 4;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
message QueryBody {
|
|
53
|
+
QueryType query_id = 1;
|
|
54
|
+
string payload = 2;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
message ComponentCreatedBody {
|
|
58
|
+
string id = 1;
|
|
59
|
+
int32 class_id = 2;
|
|
60
|
+
string name = 3;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
message ComponentDisposedBody {
|
|
64
|
+
string id = 1;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
message ComponentUpdatedBody {
|
|
68
|
+
string id = 1;
|
|
69
|
+
string json = 2;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
message InitMessagesFinishedBody {
|
|
73
|
+
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
message Payload {
|
|
77
|
+
optional OpenExternalUrlBody open_external_url = 1;
|
|
78
|
+
optional OpenNFTDialogBody open_nft_dialog = 2;
|
|
79
|
+
optional CreateEntityBody create_entity = 3;
|
|
80
|
+
optional RemoveEntityBody remove_entity = 4;
|
|
81
|
+
optional UpdateEntityComponentBody update_entity_component = 5;
|
|
82
|
+
optional AttachEntityComponentBody attach_entity_component = 6;
|
|
83
|
+
optional ComponentRemovedBody component_removed = 7;
|
|
84
|
+
optional SetEntityParentBody set_entity_parent = 8;
|
|
85
|
+
optional QueryBody query = 9;
|
|
86
|
+
optional ComponentCreatedBody component_created = 10;
|
|
87
|
+
optional ComponentDisposedBody component_disposed = 11;
|
|
88
|
+
optional ComponentUpdatedBody component_updated = 12;
|
|
89
|
+
optional InitMessagesFinishedBody init_messages_finished = 13;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
enum EAType {
|
|
93
|
+
InvalidEAType = 0;
|
|
94
|
+
OpenExternalUrl = 1;
|
|
95
|
+
OpenNFTDialog = 2;
|
|
96
|
+
CreateEntity = 3;
|
|
97
|
+
RemoveEntity = 4;
|
|
98
|
+
UpdateEntityComponent = 5;
|
|
99
|
+
AttachEntityComponent = 6;
|
|
100
|
+
ComponentRemoved = 7;
|
|
101
|
+
SetEntityParent = 8;
|
|
102
|
+
Query = 9;
|
|
103
|
+
ComponentCreated = 10;
|
|
104
|
+
ComponentDisposed = 11;
|
|
105
|
+
ComponentUpdated = 12;
|
|
106
|
+
InitMessagesFinished = 13;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
message EntityAction {
|
|
110
|
+
EAType type = 1;
|
|
111
|
+
optional string tag = 2;
|
|
112
|
+
Payload payload = 3;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
message ManyEntityAction {
|
|
116
|
+
repeated EntityAction actions = 1;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
message SendBatchResponse {}
|
|
120
|
+
|
|
121
|
+
message UnsubscribeRequest {
|
|
122
|
+
string event_id = 1;
|
|
123
|
+
}
|
|
124
|
+
message SubscribeRequest {
|
|
125
|
+
string event_id = 1;
|
|
126
|
+
}
|
|
127
|
+
message SubscribeResponse {}
|
|
128
|
+
message UnsubscribeResponse {}
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
// Events
|
|
132
|
+
enum EventDataType {
|
|
133
|
+
Generic = 0;
|
|
134
|
+
PositionChanged = 1;
|
|
135
|
+
RotationChanged = 2;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
message GenericPayload {
|
|
139
|
+
string event_id = 3;
|
|
140
|
+
string event_data = 4;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
message ReadOnlyVector3 {
|
|
144
|
+
float x = 1;
|
|
145
|
+
float y = 2;
|
|
146
|
+
float z = 3;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
message ReadOnlyQuaternion {
|
|
150
|
+
float x = 1;
|
|
151
|
+
float y = 2;
|
|
152
|
+
float z = 3;
|
|
153
|
+
float w = 4;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
message PositionChangedPayload {
|
|
157
|
+
ReadOnlyVector3 position = 1;
|
|
158
|
+
ReadOnlyVector3 camera_position = 2;
|
|
159
|
+
float player_height = 3;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
message RotationChangedPayload {
|
|
163
|
+
ReadOnlyVector3 rotation = 1;
|
|
164
|
+
ReadOnlyQuaternion quaternion = 2;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
message EventData {
|
|
168
|
+
EventDataType type = 1;
|
|
169
|
+
optional GenericPayload generic = 2;
|
|
170
|
+
optional PositionChangedPayload position_changed = 3;
|
|
171
|
+
optional RotationChangedPayload rotation_changed = 4;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
message PullEventsRequest {}
|
|
175
|
+
message PullEventsResponse {
|
|
176
|
+
repeated EventData events = 1;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
service EngineAPIService {
|
|
180
|
+
rpc SendBatch(ManyEntityAction) returns (SendBatchResponse) {}
|
|
181
|
+
rpc Subscribe(SubscribeRequest) returns (SubscribeResponse) {}
|
|
182
|
+
rpc Unsubscribe(UnsubscribeRequest) returns (UnsubscribeResponse) {}
|
|
183
|
+
rpc PullEvents(PullEventsRequest) returns (PullEventsResponse) {}
|
|
184
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
message ContentMapping {
|
|
4
|
+
string file = 1;
|
|
5
|
+
string hash = 2;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
message BootstrapDataResponse {
|
|
9
|
+
string scene_id = 1;
|
|
10
|
+
string name = 2;
|
|
11
|
+
string main = 3;
|
|
12
|
+
string base_url = 4;
|
|
13
|
+
bool use_f_p_s_throttling = 5;
|
|
14
|
+
repeated ContentMapping mappings = 6;
|
|
15
|
+
string json_payload = 7;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
message PreviewModeResponse {
|
|
19
|
+
bool is_preview = 1;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
message AreUnsafeRequestAllowedResponse {
|
|
23
|
+
bool status = 1;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
message GetPlatformResponse {
|
|
27
|
+
string platform = 1;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
message EnvironmentRealm {
|
|
31
|
+
string domain = 1;
|
|
32
|
+
string layer = 2;
|
|
33
|
+
string room = 3;
|
|
34
|
+
string server_name = 4;
|
|
35
|
+
string display_name = 5;
|
|
36
|
+
string protocol = 6;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
message GetCurrentRealmResponse {
|
|
40
|
+
optional EnvironmentRealm current_realm = 1;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
message GetExplorerConfigurationResponse {
|
|
44
|
+
string clientUri = 1;
|
|
45
|
+
map<string, string> configurations = 2;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
message GetDecentralandTimeResponse {
|
|
49
|
+
int32 seconds = 1;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
message GetBootstrapDataRequest {}
|
|
53
|
+
message IsPreviewModeRequest {}
|
|
54
|
+
message GetPlatformRequest {}
|
|
55
|
+
message AreUnsafeRequestAllowedRequest {}
|
|
56
|
+
message GetCurrentRealmRequest {}
|
|
57
|
+
message GetExplorerConfigurationRequest {}
|
|
58
|
+
message GetDecentralandTimeRequest {}
|
|
59
|
+
|
|
60
|
+
service EnvironmentAPIService {
|
|
61
|
+
rpc GetBootstrapData(GetBootstrapDataRequest) returns (BootstrapDataResponse) {}
|
|
62
|
+
rpc IsPreviewMode(IsPreviewModeRequest) returns (PreviewModeResponse) {}
|
|
63
|
+
rpc GetPlatform(GetPlatformRequest) returns (GetPlatformResponse) {}
|
|
64
|
+
rpc AreUnsafeRequestAllowed(AreUnsafeRequestAllowedRequest) returns (AreUnsafeRequestAllowedResponse) {}
|
|
65
|
+
rpc GetCurrentRealm(GetCurrentRealmRequest) returns (GetCurrentRealmResponse) {}
|
|
66
|
+
rpc GetExplorerConfiguration(GetExplorerConfigurationRequest) returns (GetExplorerConfigurationResponse) {}
|
|
67
|
+
rpc GetDecentralandTime(GetDecentralandTimeRequest) returns (GetDecentralandTimeResponse) {}
|
|
68
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
message RequirePaymentRequest {
|
|
4
|
+
string to_address = 1;
|
|
5
|
+
float amount = 2;
|
|
6
|
+
string currency = 3;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
message RequirePaymentResponse {
|
|
10
|
+
string json_any_response = 1;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
message SignMessageRequest {
|
|
14
|
+
map<string, string> message = 1;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
message SignMessageResponse {
|
|
18
|
+
string message = 1;
|
|
19
|
+
string hexEncodedMessage = 2;
|
|
20
|
+
string signature = 3;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
message ConvertMessageToObjectRequest {
|
|
24
|
+
string message = 1;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
message ConvertMessageToObjectResponse {
|
|
28
|
+
map<string, string> dict = 1;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
message SendAsyncRequest {
|
|
32
|
+
int32 id = 1;
|
|
33
|
+
string method = 2;
|
|
34
|
+
string json_params = 3;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
message SendAsyncResponse {
|
|
38
|
+
string json_any_response = 1;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
message GetUserAccountRequest {}
|
|
42
|
+
|
|
43
|
+
message GetUserAccountResponse {
|
|
44
|
+
optional string address = 1;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
service EthereumControllerService {
|
|
48
|
+
rpc RequirePayment(RequirePaymentRequest) returns (RequirePaymentResponse) {}
|
|
49
|
+
rpc SignMessage(SignMessageRequest) returns (SignMessageResponse) {}
|
|
50
|
+
rpc ConvertMessageToObject(ConvertMessageToObjectRequest) returns (ConvertMessageToObjectResponse) {}
|
|
51
|
+
rpc SendAsync(SendAsyncRequest) returns (SendAsyncResponse) {}
|
|
52
|
+
rpc GetUserAccount(GetUserAccountRequest) returns (GetUserAccountResponse) {}
|
|
53
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
message SendToRendererRequest {
|
|
4
|
+
bytes data = 1;
|
|
5
|
+
}
|
|
6
|
+
message SendToResponse {}
|
|
7
|
+
|
|
8
|
+
message MessageFromRendererRequest {}
|
|
9
|
+
message MessageFromRendererResponse {
|
|
10
|
+
bytes data = 1;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
service ExperimentalAPIService {
|
|
14
|
+
rpc SendToRenderer(SendToRendererRequest) returns (SendToResponse) {}
|
|
15
|
+
rpc MessageFromRenderer(MessageFromRendererRequest) returns (stream MessageFromRendererResponse) {}
|
|
16
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
message ContentMapping {
|
|
4
|
+
string file = 1;
|
|
5
|
+
string hash = 2;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
message MappingsResponse {
|
|
9
|
+
string parcel_id = 1;
|
|
10
|
+
string root_cid = 2;
|
|
11
|
+
repeated ContentMapping contents = 3;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
message Land {
|
|
15
|
+
string scene_id = 1;
|
|
16
|
+
string scene_json_data = 2;
|
|
17
|
+
string base_url = 3;
|
|
18
|
+
string base_url_bundles = 4;
|
|
19
|
+
MappingsResponse mappings_response = 5;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
message GetParcelRequest {}
|
|
23
|
+
message GetParcelResponse {
|
|
24
|
+
Land land = 1;
|
|
25
|
+
string cid = 2;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
message GetSceneIdRequest {}
|
|
29
|
+
message GetSceneIdResponse {
|
|
30
|
+
string scene_id = 1;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
message GetIsEmptyRequest {}
|
|
34
|
+
message GetIsEmptyResponse {
|
|
35
|
+
bool is_empty = 1;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
service ParcelIdentityService {
|
|
39
|
+
rpc GetParcel(GetParcelRequest) returns (GetParcelResponse) {}
|
|
40
|
+
rpc GetSceneId(GetSceneIdRequest) returns (GetSceneIdResponse) {}
|
|
41
|
+
rpc GetIsEmpty(GetIsEmptyRequest) returns (GetIsEmptyResponse) {}
|
|
42
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
enum PermissionItem {
|
|
4
|
+
ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE = 0;
|
|
5
|
+
ALLOW_TO_TRIGGER_AVATAR_EMOTE = 1;
|
|
6
|
+
USE_WEB3_API = 2;
|
|
7
|
+
USE_WEBSOCKET = 3;
|
|
8
|
+
USE_FETCH = 4;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
message PermissionResponse {
|
|
12
|
+
bool has_permission = 1;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
message HasPermissionRequest {
|
|
16
|
+
PermissionItem permission = 1;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
message HasManyPermissionRequest {
|
|
20
|
+
repeated PermissionItem permissions = 1;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
message HasManyPermissionResponse {
|
|
24
|
+
repeated bool has_many_permission = 1;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
service PermissionsService {
|
|
28
|
+
rpc HasPermission(HasPermissionRequest) returns (PermissionResponse) {}
|
|
29
|
+
rpc HasManyPermissions(HasManyPermissionRequest) returns (HasManyPermissionResponse) {}
|
|
30
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
import "UserIdentity.proto";
|
|
4
|
+
|
|
5
|
+
message Player {
|
|
6
|
+
string user_id = 1;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
message PlayersGetUserDataResponse {
|
|
10
|
+
optional UserData data = 1;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
message PlayerListResponse {
|
|
14
|
+
repeated Player players = 1;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
message GetPlayerDataRequest {
|
|
18
|
+
string user_id = 1;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
message GetPlayersInSceneRequest {}
|
|
22
|
+
message GetConnectedPlayersRequest {}
|
|
23
|
+
|
|
24
|
+
service PlayersService {
|
|
25
|
+
rpc GetPlayerData(GetPlayerDataRequest) returns (PlayersGetUserDataResponse) {}
|
|
26
|
+
rpc GetPlayersInScene(GetPlayersInSceneRequest) returns (PlayerListResponse) {}
|
|
27
|
+
rpc GetConnectedPlayers(GetConnectedPlayersRequest) returns (PlayerListResponse) {}
|
|
28
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
message KillRequest {
|
|
4
|
+
string pid = 1;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
message KillResponse {
|
|
8
|
+
bool status = 1;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
message SpawnRequest {
|
|
12
|
+
string pid = 1;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
message SpawnResponse {
|
|
16
|
+
string pid = 1;
|
|
17
|
+
string parent_cid = 2;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
message PxRequest {
|
|
21
|
+
string pid = 1;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
message GetPortableExperiencesLoadedRequest {}
|
|
25
|
+
|
|
26
|
+
message GetPortableExperiencesLoadedResponse {
|
|
27
|
+
repeated SpawnResponse loaded = 1;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
message ExitRequest {}
|
|
31
|
+
message ExitResponse {
|
|
32
|
+
bool status = 1;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
service PortableExperiencesService {
|
|
36
|
+
rpc Spawn(SpawnRequest) returns (SpawnResponse) {}
|
|
37
|
+
rpc Kill(KillRequest) returns (KillResponse) {}
|
|
38
|
+
rpc Exit(ExitRequest) returns (ExitResponse) {}
|
|
39
|
+
rpc GetPortableExperiencesLoaded(GetPortableExperiencesLoadedRequest) returns (GetPortableExperiencesLoadedResponse) {}
|
|
40
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
message Vector3 {
|
|
4
|
+
float x = 1;
|
|
5
|
+
float y = 2;
|
|
6
|
+
float z = 3;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
message MovePlayerToResponse { }
|
|
10
|
+
|
|
11
|
+
message MovePlayerToRequest {
|
|
12
|
+
Vector3 new_relative_position = 1;
|
|
13
|
+
optional Vector3 camera_target = 2;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
message TriggerEmoteResponse { }
|
|
17
|
+
|
|
18
|
+
message TriggerEmoteRequest {
|
|
19
|
+
string predefined_emote = 1;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
service RestrictedActionsService {
|
|
23
|
+
rpc MovePlayerTo(MovePlayerToRequest) returns (MovePlayerToResponse) {}
|
|
24
|
+
rpc TriggerEmote(TriggerEmoteRequest) returns (TriggerEmoteResponse) {}
|
|
25
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
// Auxiliary types
|
|
4
|
+
|
|
5
|
+
message SerializedSceneState {
|
|
6
|
+
repeated SerializedEntity entities = 1;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
message SerializedComponent {
|
|
10
|
+
int32 type = 1;
|
|
11
|
+
string value_json = 2;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
message SerializedEntity {
|
|
15
|
+
string id = 1;
|
|
16
|
+
repeated SerializedComponent components = 2;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// RPC Request and Response Messages
|
|
20
|
+
|
|
21
|
+
message GetProjectManifestRequest {
|
|
22
|
+
string project_id = 1;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
message GetProjectManifestResponse {
|
|
26
|
+
optional SerializedSceneState state = 1;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
message GetProjectManifestByCoordinatesRequest {
|
|
30
|
+
string land = 1;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
message GetProjectManifestByCoordinatesResponse {
|
|
34
|
+
optional SerializedSceneState state = 1;
|
|
35
|
+
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
message CreateProjectWithCoordsRequest {
|
|
39
|
+
string coordinates = 1;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
message CreateProjectWithCoordsResponse {
|
|
43
|
+
bool ok = 1;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
message SaveSceneStateRequest {
|
|
47
|
+
SerializedSceneState serialized_scene_state = 1;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
message SaveSceneStateResponse {
|
|
51
|
+
bool ok = 1;
|
|
52
|
+
optional string error = 2;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
message SaveProjectInfoRequest {
|
|
56
|
+
SerializedSceneState scene_state = 1;
|
|
57
|
+
string project_name = 2;
|
|
58
|
+
string project_description = 3;
|
|
59
|
+
string project_screenshot = 4;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
message SaveProjectInfoResponse {
|
|
63
|
+
bool ok = 1;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
message PublishSceneStateRequest {
|
|
67
|
+
string scene_id = 1;
|
|
68
|
+
string scene_name = 2;
|
|
69
|
+
string scene_description = 3;
|
|
70
|
+
string scene_screenshot = 4;
|
|
71
|
+
SerializedSceneState scene_state = 5;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
message PublishSceneStateResponse {
|
|
75
|
+
bool ok = 1;
|
|
76
|
+
optional string error = 2;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
message GetStoredStateRequest {
|
|
80
|
+
string scene_id = 1;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
message GetStoredStateResponse {
|
|
84
|
+
optional SerializedSceneState state = 1;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
message CreateProjectFromStateDefinitionRequest {}
|
|
89
|
+
|
|
90
|
+
message CreateProjectFromStateDefinitionResponse {
|
|
91
|
+
optional SerializedSceneState state = 1;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
message SendAssetsToRendererRequest {
|
|
96
|
+
SerializedSceneState state = 1;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
message SendAssetsToRendererResponse {
|
|
100
|
+
string state = 1;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
service SceneStateStorageControllerService {
|
|
105
|
+
rpc GetProjectManifest(GetProjectManifestRequest) returns (GetProjectManifestResponse) {}
|
|
106
|
+
rpc GetProjectManifestByCoordinates(GetProjectManifestByCoordinatesRequest) returns (GetProjectManifestByCoordinatesResponse) {}
|
|
107
|
+
rpc CreateProjectWithCoords(CreateProjectWithCoordsRequest) returns (CreateProjectWithCoordsResponse) {}
|
|
108
|
+
rpc SaveSceneState(SaveSceneStateRequest) returns (SaveSceneStateResponse) {}
|
|
109
|
+
rpc SaveProjectInfo(SaveProjectInfoRequest) returns (SaveProjectInfoResponse) {}
|
|
110
|
+
rpc PublishSceneState(PublishSceneStateRequest) returns (PublishSceneStateResponse) {}
|
|
111
|
+
rpc GetStoredState(GetStoredStateRequest) returns (GetStoredStateResponse) {}
|
|
112
|
+
rpc CreateProjectFromStateDefinition(CreateProjectFromStateDefinitionRequest) returns (CreateProjectFromStateDefinitionResponse) {}
|
|
113
|
+
rpc SendAssetsToRenderer(SendAssetsToRendererRequest) returns (SendAssetsToRendererResponse) {}
|
|
114
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
message FlatFetchInit {
|
|
4
|
+
optional string method = 1;
|
|
5
|
+
optional string body = 2;
|
|
6
|
+
map<string, string> headers = 3;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
message FlatFetchResponse {
|
|
10
|
+
bool ok = 1;
|
|
11
|
+
int32 status = 2;
|
|
12
|
+
string status_text = 3;
|
|
13
|
+
map<string, string> headers = 4;
|
|
14
|
+
string body = 5;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
message SignedFetchRequest {
|
|
18
|
+
string url = 1;
|
|
19
|
+
optional FlatFetchInit init = 2;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
service SignedFetchService {
|
|
23
|
+
rpc SignedFetch(SignedFetchRequest) returns (FlatFetchResponse) {}
|
|
24
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
message InitRequest {}
|
|
4
|
+
message SocialEvent {
|
|
5
|
+
string event = 1;
|
|
6
|
+
string payload = 2;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
message GetAvatarEventsResponse {
|
|
10
|
+
repeated SocialEvent events = 1;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
service SocialControllerService {
|
|
14
|
+
rpc PullAvatarEvents(InitRequest) returns (GetAvatarEventsResponse) {}
|
|
15
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
message Snapshots {
|
|
4
|
+
string face256 = 1;
|
|
5
|
+
string body = 2;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
message AvatarForUserData {
|
|
9
|
+
string body_shape = 1;
|
|
10
|
+
string skin_color = 2;
|
|
11
|
+
string hair_color = 3;
|
|
12
|
+
string eye_color = 4;
|
|
13
|
+
repeated string wearables = 5;
|
|
14
|
+
Snapshots snapshots = 6;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
message UserData {
|
|
18
|
+
string display_name = 1;
|
|
19
|
+
optional string public_key = 2;
|
|
20
|
+
bool has_connected_web3 = 3;
|
|
21
|
+
string user_id = 4;
|
|
22
|
+
int32 version = 5;
|
|
23
|
+
AvatarForUserData avatar = 6;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
message GetUserDataRequest {}
|
|
27
|
+
|
|
28
|
+
message GetUserDataResponse {
|
|
29
|
+
optional UserData data = 1;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
message GetUserPublicKeyRequest {}
|
|
33
|
+
|
|
34
|
+
message GetUserPublicKeyResponse {
|
|
35
|
+
optional string address = 1;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
service UserIdentityService {
|
|
39
|
+
rpc GetUserPublicKey(GetUserPublicKeyRequest) returns (GetUserPublicKeyResponse) {}
|
|
40
|
+
rpc GetUserData(GetUserDataRequest) returns (GetUserDataResponse) {}
|
|
41
|
+
}
|