@dcl/protocol 1.0.0-5555280113.commit-ccad4ad → 1.0.0-5557204664.commit-964ab88
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/out-js/decentraland/bff/comms_director_service.gen.d.ts +1 -1
- package/out-js/decentraland/bff/topics_service.gen.js +13 -13
- package/out-js/decentraland/bff/topics_service.gen.js.map +1 -1
- package/out-js/decentraland/common/texture.gen.d.ts +1 -1
- package/out-js/decentraland/kernel/apis/engine_api.gen.js +8 -8
- package/out-js/decentraland/kernel/apis/engine_api.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/runtime.gen.js +5 -5
- package/out-js/decentraland/kernel/apis/runtime.gen.js.map +1 -1
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.d.ts +1 -1
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +9 -9
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
- package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.d.ts +1 -1
- package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.js +5 -5
- package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.js.map +1 -1
- package/out-js/decentraland/kernel/comms/v3/archipelago.gen.d.ts +2 -2
- package/out-js/decentraland/kernel/comms/v3/archipelago.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js +1 -1
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/material.gen.d.ts +1 -1
- package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +1 -1
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +1 -1
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/raycast.gen.d.ts +1 -1
- package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -1
- package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.js +1 -1
- package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.js.map +1 -1
- package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.d.ts +2 -2
- package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.js.map +1 -1
- package/out-js/decentraland/social/friendships/friendships.gen.d.ts +31 -6
- package/out-js/decentraland/social/friendships/friendships.gen.js +112 -5
- package/out-js/decentraland/social/friendships/friendships.gen.js.map +1 -1
- package/out-js/google/protobuf/descriptor.gen.js +5 -5
- package/out-js/google/protobuf/descriptor.gen.js.map +1 -1
- package/out-ts/decentraland/bff/comms_director_service.gen.ts +1 -1
- package/out-ts/decentraland/bff/topics_service.gen.ts +16 -16
- package/out-ts/decentraland/common/texture.gen.ts +1 -1
- package/out-ts/decentraland/kernel/apis/engine_api.gen.ts +11 -11
- package/out-ts/decentraland/kernel/apis/runtime.gen.ts +8 -8
- package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +14 -13
- package/out-ts/decentraland/kernel/comms/rfc5/ws_comms.gen.ts +10 -9
- package/out-ts/decentraland/kernel/comms/v3/archipelago.gen.ts +7 -5
- package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +4 -4
- package/out-ts/decentraland/sdk/components/material.gen.ts +4 -1
- package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +6 -4
- package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +6 -4
- package/out-ts/decentraland/sdk/components/raycast.gen.ts +2 -1
- package/out-ts/decentraland/sdk/ecs6/components_ecs6.gen.ts +4 -4
- package/out-ts/decentraland/sdk/ecs6/engine_interface_ecs6.gen.ts +4 -2
- package/out-ts/decentraland/social/friendships/friendships.gen.ts +137 -10
- package/out-ts/google/protobuf/descriptor.gen.ts +8 -8
- package/package.json +3 -3
- package/proto/decentraland/social/friendships/friendships.proto +10 -0
|
@@ -84,7 +84,7 @@ export namespace SubscriptionRequest {
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
function createBasePeerTopicSubscriptionResultElem(): PeerTopicSubscriptionResultElem {
|
|
87
|
-
return { payload: new Uint8Array(), topic: "", sender: "" };
|
|
87
|
+
return { payload: new Uint8Array(0), topic: "", sender: "" };
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
export namespace PeerTopicSubscriptionResultElem {
|
|
@@ -143,7 +143,7 @@ export namespace PeerTopicSubscriptionResultElem {
|
|
|
143
143
|
|
|
144
144
|
export function fromJSON(object: any): PeerTopicSubscriptionResultElem {
|
|
145
145
|
return {
|
|
146
|
-
payload: isSet(object.payload) ? bytesFromBase64(object.payload) : new Uint8Array(),
|
|
146
|
+
payload: isSet(object.payload) ? bytesFromBase64(object.payload) : new Uint8Array(0),
|
|
147
147
|
topic: isSet(object.topic) ? String(object.topic) : "",
|
|
148
148
|
sender: isSet(object.sender) ? String(object.sender) : "",
|
|
149
149
|
};
|
|
@@ -152,7 +152,7 @@ export namespace PeerTopicSubscriptionResultElem {
|
|
|
152
152
|
export function toJSON(message: PeerTopicSubscriptionResultElem): unknown {
|
|
153
153
|
const obj: any = {};
|
|
154
154
|
message.payload !== undefined &&
|
|
155
|
-
(obj.payload = base64FromBytes(message.payload !== undefined ? message.payload : new Uint8Array()));
|
|
155
|
+
(obj.payload = base64FromBytes(message.payload !== undefined ? message.payload : new Uint8Array(0)));
|
|
156
156
|
message.topic !== undefined && (obj.topic = message.topic);
|
|
157
157
|
message.sender !== undefined && (obj.sender = message.sender);
|
|
158
158
|
return obj;
|
|
@@ -168,7 +168,7 @@ export namespace PeerTopicSubscriptionResultElem {
|
|
|
168
168
|
object: I,
|
|
169
169
|
): PeerTopicSubscriptionResultElem {
|
|
170
170
|
const message = createBasePeerTopicSubscriptionResultElem();
|
|
171
|
-
message.payload = object.payload ?? new Uint8Array();
|
|
171
|
+
message.payload = object.payload ?? new Uint8Array(0);
|
|
172
172
|
message.topic = object.topic ?? "";
|
|
173
173
|
message.sender = object.sender ?? "";
|
|
174
174
|
return message;
|
|
@@ -176,7 +176,7 @@ export namespace PeerTopicSubscriptionResultElem {
|
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
function createBaseSystemTopicSubscriptionResultElem(): SystemTopicSubscriptionResultElem {
|
|
179
|
-
return { payload: new Uint8Array(), topic: "" };
|
|
179
|
+
return { payload: new Uint8Array(0), topic: "" };
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
export namespace SystemTopicSubscriptionResultElem {
|
|
@@ -225,7 +225,7 @@ export namespace SystemTopicSubscriptionResultElem {
|
|
|
225
225
|
|
|
226
226
|
export function fromJSON(object: any): SystemTopicSubscriptionResultElem {
|
|
227
227
|
return {
|
|
228
|
-
payload: isSet(object.payload) ? bytesFromBase64(object.payload) : new Uint8Array(),
|
|
228
|
+
payload: isSet(object.payload) ? bytesFromBase64(object.payload) : new Uint8Array(0),
|
|
229
229
|
topic: isSet(object.topic) ? String(object.topic) : "",
|
|
230
230
|
};
|
|
231
231
|
}
|
|
@@ -233,7 +233,7 @@ export namespace SystemTopicSubscriptionResultElem {
|
|
|
233
233
|
export function toJSON(message: SystemTopicSubscriptionResultElem): unknown {
|
|
234
234
|
const obj: any = {};
|
|
235
235
|
message.payload !== undefined &&
|
|
236
|
-
(obj.payload = base64FromBytes(message.payload !== undefined ? message.payload : new Uint8Array()));
|
|
236
|
+
(obj.payload = base64FromBytes(message.payload !== undefined ? message.payload : new Uint8Array(0)));
|
|
237
237
|
message.topic !== undefined && (obj.topic = message.topic);
|
|
238
238
|
return obj;
|
|
239
239
|
}
|
|
@@ -248,14 +248,14 @@ export namespace SystemTopicSubscriptionResultElem {
|
|
|
248
248
|
object: I,
|
|
249
249
|
): SystemTopicSubscriptionResultElem {
|
|
250
250
|
const message = createBaseSystemTopicSubscriptionResultElem();
|
|
251
|
-
message.payload = object.payload ?? new Uint8Array();
|
|
251
|
+
message.payload = object.payload ?? new Uint8Array(0);
|
|
252
252
|
message.topic = object.topic ?? "";
|
|
253
253
|
return message;
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
256
|
|
|
257
257
|
function createBasePublishToTopicRequest(): PublishToTopicRequest {
|
|
258
|
-
return { topic: "", payload: new Uint8Array() };
|
|
258
|
+
return { topic: "", payload: new Uint8Array(0) };
|
|
259
259
|
}
|
|
260
260
|
|
|
261
261
|
export namespace PublishToTopicRequest {
|
|
@@ -302,7 +302,7 @@ export namespace PublishToTopicRequest {
|
|
|
302
302
|
export function fromJSON(object: any): PublishToTopicRequest {
|
|
303
303
|
return {
|
|
304
304
|
topic: isSet(object.topic) ? String(object.topic) : "",
|
|
305
|
-
payload: isSet(object.payload) ? bytesFromBase64(object.payload) : new Uint8Array(),
|
|
305
|
+
payload: isSet(object.payload) ? bytesFromBase64(object.payload) : new Uint8Array(0),
|
|
306
306
|
};
|
|
307
307
|
}
|
|
308
308
|
|
|
@@ -310,7 +310,7 @@ export namespace PublishToTopicRequest {
|
|
|
310
310
|
const obj: any = {};
|
|
311
311
|
message.topic !== undefined && (obj.topic = message.topic);
|
|
312
312
|
message.payload !== undefined &&
|
|
313
|
-
(obj.payload = base64FromBytes(message.payload !== undefined ? message.payload : new Uint8Array()));
|
|
313
|
+
(obj.payload = base64FromBytes(message.payload !== undefined ? message.payload : new Uint8Array(0)));
|
|
314
314
|
return obj;
|
|
315
315
|
}
|
|
316
316
|
|
|
@@ -323,7 +323,7 @@ export namespace PublishToTopicRequest {
|
|
|
323
323
|
): PublishToTopicRequest {
|
|
324
324
|
const message = createBasePublishToTopicRequest();
|
|
325
325
|
message.topic = object.topic ?? "";
|
|
326
|
-
message.payload = object.payload ?? new Uint8Array();
|
|
326
|
+
message.payload = object.payload ?? new Uint8Array(0);
|
|
327
327
|
return message;
|
|
328
328
|
}
|
|
329
329
|
}
|
|
@@ -417,10 +417,10 @@ export const TopicsServiceDefinition = {
|
|
|
417
417
|
},
|
|
418
418
|
} as const;
|
|
419
419
|
|
|
420
|
-
declare
|
|
421
|
-
declare
|
|
422
|
-
declare
|
|
423
|
-
|
|
420
|
+
declare const self: any | undefined;
|
|
421
|
+
declare const window: any | undefined;
|
|
422
|
+
declare const global: any | undefined;
|
|
423
|
+
const tsProtoGlobalThis: any = (() => {
|
|
424
424
|
if (typeof globalThis !== "undefined") {
|
|
425
425
|
return globalThis;
|
|
426
426
|
}
|
|
@@ -115,7 +115,7 @@ export interface TextureUnion {
|
|
|
115
115
|
tex?: { $case: "texture"; texture: Texture } | { $case: "avatarTexture"; avatarTexture: AvatarTexture } | {
|
|
116
116
|
$case: "videoTexture";
|
|
117
117
|
videoTexture: VideoTexture;
|
|
118
|
-
};
|
|
118
|
+
} | undefined;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
function createBaseTexture(): Texture {
|
|
@@ -988,7 +988,7 @@ export namespace EventData {
|
|
|
988
988
|
}
|
|
989
989
|
|
|
990
990
|
function createBaseCrdtSendToRendererRequest(): CrdtSendToRendererRequest {
|
|
991
|
-
return { data: new Uint8Array() };
|
|
991
|
+
return { data: new Uint8Array(0) };
|
|
992
992
|
}
|
|
993
993
|
|
|
994
994
|
export namespace CrdtSendToRendererRequest {
|
|
@@ -1023,13 +1023,13 @@ export namespace CrdtSendToRendererRequest {
|
|
|
1023
1023
|
}
|
|
1024
1024
|
|
|
1025
1025
|
export function fromJSON(object: any): CrdtSendToRendererRequest {
|
|
1026
|
-
return { data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array() };
|
|
1026
|
+
return { data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array(0) };
|
|
1027
1027
|
}
|
|
1028
1028
|
|
|
1029
1029
|
export function toJSON(message: CrdtSendToRendererRequest): unknown {
|
|
1030
1030
|
const obj: any = {};
|
|
1031
1031
|
message.data !== undefined &&
|
|
1032
|
-
(obj.data = base64FromBytes(message.data !== undefined ? message.data : new Uint8Array()));
|
|
1032
|
+
(obj.data = base64FromBytes(message.data !== undefined ? message.data : new Uint8Array(0)));
|
|
1033
1033
|
return obj;
|
|
1034
1034
|
}
|
|
1035
1035
|
|
|
@@ -1043,7 +1043,7 @@ export namespace CrdtSendToRendererRequest {
|
|
|
1043
1043
|
object: I,
|
|
1044
1044
|
): CrdtSendToRendererRequest {
|
|
1045
1045
|
const message = createBaseCrdtSendToRendererRequest();
|
|
1046
|
-
message.data = object.data ?? new Uint8Array();
|
|
1046
|
+
message.data = object.data ?? new Uint8Array(0);
|
|
1047
1047
|
return message;
|
|
1048
1048
|
}
|
|
1049
1049
|
}
|
|
@@ -1090,7 +1090,7 @@ export namespace CrdtSendToResponse {
|
|
|
1090
1090
|
export function toJSON(message: CrdtSendToResponse): unknown {
|
|
1091
1091
|
const obj: any = {};
|
|
1092
1092
|
if (message.data) {
|
|
1093
|
-
obj.data = message.data.map((e) => base64FromBytes(e !== undefined ? e : new Uint8Array()));
|
|
1093
|
+
obj.data = message.data.map((e) => base64FromBytes(e !== undefined ? e : new Uint8Array(0)));
|
|
1094
1094
|
} else {
|
|
1095
1095
|
obj.data = [];
|
|
1096
1096
|
}
|
|
@@ -1208,7 +1208,7 @@ export namespace CrdtGetStateResponse {
|
|
|
1208
1208
|
const obj: any = {};
|
|
1209
1209
|
message.hasEntities !== undefined && (obj.hasEntities = message.hasEntities);
|
|
1210
1210
|
if (message.data) {
|
|
1211
|
-
obj.data = message.data.map((e) => base64FromBytes(e !== undefined ? e : new Uint8Array()));
|
|
1211
|
+
obj.data = message.data.map((e) => base64FromBytes(e !== undefined ? e : new Uint8Array(0)));
|
|
1212
1212
|
} else {
|
|
1213
1213
|
obj.data = [];
|
|
1214
1214
|
}
|
|
@@ -1320,7 +1320,7 @@ export namespace CrdtMessageFromRendererResponse {
|
|
|
1320
1320
|
export function toJSON(message: CrdtMessageFromRendererResponse): unknown {
|
|
1321
1321
|
const obj: any = {};
|
|
1322
1322
|
if (message.data) {
|
|
1323
|
-
obj.data = message.data.map((e) => base64FromBytes(e !== undefined ? e : new Uint8Array()));
|
|
1323
|
+
obj.data = message.data.map((e) => base64FromBytes(e !== undefined ? e : new Uint8Array(0)));
|
|
1324
1324
|
} else {
|
|
1325
1325
|
obj.data = [];
|
|
1326
1326
|
}
|
|
@@ -1411,10 +1411,10 @@ export const EngineApiServiceDefinition = {
|
|
|
1411
1411
|
},
|
|
1412
1412
|
} as const;
|
|
1413
1413
|
|
|
1414
|
-
declare
|
|
1415
|
-
declare
|
|
1416
|
-
declare
|
|
1417
|
-
|
|
1414
|
+
declare const self: any | undefined;
|
|
1415
|
+
declare const window: any | undefined;
|
|
1416
|
+
declare const global: any | undefined;
|
|
1417
|
+
const tsProtoGlobalThis: any = (() => {
|
|
1418
1418
|
if (typeof globalThis !== "undefined") {
|
|
1419
1419
|
return globalThis;
|
|
1420
1420
|
}
|
|
@@ -422,7 +422,7 @@ export namespace ReadFileRequest {
|
|
|
422
422
|
}
|
|
423
423
|
|
|
424
424
|
function createBaseReadFileResponse(): ReadFileResponse {
|
|
425
|
-
return { content: new Uint8Array(), hash: "" };
|
|
425
|
+
return { content: new Uint8Array(0), hash: "" };
|
|
426
426
|
}
|
|
427
427
|
|
|
428
428
|
export namespace ReadFileResponse {
|
|
@@ -468,7 +468,7 @@ export namespace ReadFileResponse {
|
|
|
468
468
|
|
|
469
469
|
export function fromJSON(object: any): ReadFileResponse {
|
|
470
470
|
return {
|
|
471
|
-
content: isSet(object.content) ? bytesFromBase64(object.content) : new Uint8Array(),
|
|
471
|
+
content: isSet(object.content) ? bytesFromBase64(object.content) : new Uint8Array(0),
|
|
472
472
|
hash: isSet(object.hash) ? String(object.hash) : "",
|
|
473
473
|
};
|
|
474
474
|
}
|
|
@@ -476,7 +476,7 @@ export namespace ReadFileResponse {
|
|
|
476
476
|
export function toJSON(message: ReadFileResponse): unknown {
|
|
477
477
|
const obj: any = {};
|
|
478
478
|
message.content !== undefined &&
|
|
479
|
-
(obj.content = base64FromBytes(message.content !== undefined ? message.content : new Uint8Array()));
|
|
479
|
+
(obj.content = base64FromBytes(message.content !== undefined ? message.content : new Uint8Array(0)));
|
|
480
480
|
message.hash !== undefined && (obj.hash = message.hash);
|
|
481
481
|
return obj;
|
|
482
482
|
}
|
|
@@ -487,7 +487,7 @@ export namespace ReadFileResponse {
|
|
|
487
487
|
|
|
488
488
|
export function fromPartial<I extends Exact<DeepPartial<ReadFileResponse>, I>>(object: I): ReadFileResponse {
|
|
489
489
|
const message = createBaseReadFileResponse();
|
|
490
|
-
message.content = object.content ?? new Uint8Array();
|
|
490
|
+
message.content = object.content ?? new Uint8Array(0);
|
|
491
491
|
message.hash = object.hash ?? "";
|
|
492
492
|
return message;
|
|
493
493
|
}
|
|
@@ -698,10 +698,10 @@ export const RuntimeServiceDefinition = {
|
|
|
698
698
|
},
|
|
699
699
|
} as const;
|
|
700
700
|
|
|
701
|
-
declare
|
|
702
|
-
declare
|
|
703
|
-
declare
|
|
704
|
-
|
|
701
|
+
declare const self: any | undefined;
|
|
702
|
+
declare const window: any | undefined;
|
|
703
|
+
declare const global: any | undefined;
|
|
704
|
+
const tsProtoGlobalThis: any = (() => {
|
|
705
705
|
if (typeof globalThis !== "undefined") {
|
|
706
706
|
return globalThis;
|
|
707
707
|
}
|
|
@@ -11,7 +11,8 @@ export interface Packet {
|
|
|
11
11
|
| { $case: "profileResponse"; profileResponse: ProfileResponse }
|
|
12
12
|
| { $case: "chat"; chat: Chat }
|
|
13
13
|
| { $case: "scene"; scene: Scene }
|
|
14
|
-
| { $case: "voice"; voice: Voice }
|
|
14
|
+
| { $case: "voice"; voice: Voice }
|
|
15
|
+
| undefined;
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
export interface Position {
|
|
@@ -710,7 +711,7 @@ export namespace Chat {
|
|
|
710
711
|
}
|
|
711
712
|
|
|
712
713
|
function createBaseScene(): Scene {
|
|
713
|
-
return { sceneId: "", data: new Uint8Array() };
|
|
714
|
+
return { sceneId: "", data: new Uint8Array(0) };
|
|
714
715
|
}
|
|
715
716
|
|
|
716
717
|
export namespace Scene {
|
|
@@ -757,7 +758,7 @@ export namespace Scene {
|
|
|
757
758
|
export function fromJSON(object: any): Scene {
|
|
758
759
|
return {
|
|
759
760
|
sceneId: isSet(object.sceneId) ? String(object.sceneId) : "",
|
|
760
|
-
data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array(),
|
|
761
|
+
data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array(0),
|
|
761
762
|
};
|
|
762
763
|
}
|
|
763
764
|
|
|
@@ -765,7 +766,7 @@ export namespace Scene {
|
|
|
765
766
|
const obj: any = {};
|
|
766
767
|
message.sceneId !== undefined && (obj.sceneId = message.sceneId);
|
|
767
768
|
message.data !== undefined &&
|
|
768
|
-
(obj.data = base64FromBytes(message.data !== undefined ? message.data : new Uint8Array()));
|
|
769
|
+
(obj.data = base64FromBytes(message.data !== undefined ? message.data : new Uint8Array(0)));
|
|
769
770
|
return obj;
|
|
770
771
|
}
|
|
771
772
|
|
|
@@ -776,13 +777,13 @@ export namespace Scene {
|
|
|
776
777
|
export function fromPartial<I extends Exact<DeepPartial<Scene>, I>>(object: I): Scene {
|
|
777
778
|
const message = createBaseScene();
|
|
778
779
|
message.sceneId = object.sceneId ?? "";
|
|
779
|
-
message.data = object.data ?? new Uint8Array();
|
|
780
|
+
message.data = object.data ?? new Uint8Array(0);
|
|
780
781
|
return message;
|
|
781
782
|
}
|
|
782
783
|
}
|
|
783
784
|
|
|
784
785
|
function createBaseVoice(): Voice {
|
|
785
|
-
return { encodedSamples: new Uint8Array(), index: 0, codec: 0 };
|
|
786
|
+
return { encodedSamples: new Uint8Array(0), index: 0, codec: 0 };
|
|
786
787
|
}
|
|
787
788
|
|
|
788
789
|
export namespace Voice {
|
|
@@ -838,7 +839,7 @@ export namespace Voice {
|
|
|
838
839
|
|
|
839
840
|
export function fromJSON(object: any): Voice {
|
|
840
841
|
return {
|
|
841
|
-
encodedSamples: isSet(object.encodedSamples) ? bytesFromBase64(object.encodedSamples) : new Uint8Array(),
|
|
842
|
+
encodedSamples: isSet(object.encodedSamples) ? bytesFromBase64(object.encodedSamples) : new Uint8Array(0),
|
|
842
843
|
index: isSet(object.index) ? Number(object.index) : 0,
|
|
843
844
|
codec: isSet(object.codec) ? voice_VoiceCodecFromJSON(object.codec) : 0,
|
|
844
845
|
};
|
|
@@ -848,7 +849,7 @@ export namespace Voice {
|
|
|
848
849
|
const obj: any = {};
|
|
849
850
|
message.encodedSamples !== undefined &&
|
|
850
851
|
(obj.encodedSamples = base64FromBytes(
|
|
851
|
-
message.encodedSamples !== undefined ? message.encodedSamples : new Uint8Array(),
|
|
852
|
+
message.encodedSamples !== undefined ? message.encodedSamples : new Uint8Array(0),
|
|
852
853
|
));
|
|
853
854
|
message.index !== undefined && (obj.index = Math.round(message.index));
|
|
854
855
|
message.codec !== undefined && (obj.codec = voice_VoiceCodecToJSON(message.codec));
|
|
@@ -861,17 +862,17 @@ export namespace Voice {
|
|
|
861
862
|
|
|
862
863
|
export function fromPartial<I extends Exact<DeepPartial<Voice>, I>>(object: I): Voice {
|
|
863
864
|
const message = createBaseVoice();
|
|
864
|
-
message.encodedSamples = object.encodedSamples ?? new Uint8Array();
|
|
865
|
+
message.encodedSamples = object.encodedSamples ?? new Uint8Array(0);
|
|
865
866
|
message.index = object.index ?? 0;
|
|
866
867
|
message.codec = object.codec ?? 0;
|
|
867
868
|
return message;
|
|
868
869
|
}
|
|
869
870
|
}
|
|
870
871
|
|
|
871
|
-
declare
|
|
872
|
-
declare
|
|
873
|
-
declare
|
|
874
|
-
|
|
872
|
+
declare const self: any | undefined;
|
|
873
|
+
declare const window: any | undefined;
|
|
874
|
+
declare const global: any | undefined;
|
|
875
|
+
const tsProtoGlobalThis: any = (() => {
|
|
875
876
|
if (typeof globalThis !== "undefined") {
|
|
876
877
|
return globalThis;
|
|
877
878
|
}
|
|
@@ -76,7 +76,8 @@ export interface WsPacket {
|
|
|
76
76
|
| { $case: "signedChallengeForServer"; signedChallengeForServer: WsSignedChallenge }
|
|
77
77
|
| { $case: "peerLeaveMessage"; peerLeaveMessage: WsPeerLeave }
|
|
78
78
|
| { $case: "peerIdentification"; peerIdentification: WsIdentification }
|
|
79
|
-
| { $case: "peerKicked"; peerKicked: WsKicked }
|
|
79
|
+
| { $case: "peerKicked"; peerKicked: WsKicked }
|
|
80
|
+
| undefined;
|
|
80
81
|
}
|
|
81
82
|
|
|
82
83
|
function createBaseWsWelcome(): WsWelcome {
|
|
@@ -371,7 +372,7 @@ export namespace WsPeerLeave {
|
|
|
371
372
|
}
|
|
372
373
|
|
|
373
374
|
function createBaseWsPeerUpdate(): WsPeerUpdate {
|
|
374
|
-
return { fromAlias: 0, body: new Uint8Array(), unreliable: false };
|
|
375
|
+
return { fromAlias: 0, body: new Uint8Array(0), unreliable: false };
|
|
375
376
|
}
|
|
376
377
|
|
|
377
378
|
export namespace WsPeerUpdate {
|
|
@@ -428,7 +429,7 @@ export namespace WsPeerUpdate {
|
|
|
428
429
|
export function fromJSON(object: any): WsPeerUpdate {
|
|
429
430
|
return {
|
|
430
431
|
fromAlias: isSet(object.fromAlias) ? Number(object.fromAlias) : 0,
|
|
431
|
-
body: isSet(object.body) ? bytesFromBase64(object.body) : new Uint8Array(),
|
|
432
|
+
body: isSet(object.body) ? bytesFromBase64(object.body) : new Uint8Array(0),
|
|
432
433
|
unreliable: isSet(object.unreliable) ? Boolean(object.unreliable) : false,
|
|
433
434
|
};
|
|
434
435
|
}
|
|
@@ -437,7 +438,7 @@ export namespace WsPeerUpdate {
|
|
|
437
438
|
const obj: any = {};
|
|
438
439
|
message.fromAlias !== undefined && (obj.fromAlias = Math.round(message.fromAlias));
|
|
439
440
|
message.body !== undefined &&
|
|
440
|
-
(obj.body = base64FromBytes(message.body !== undefined ? message.body : new Uint8Array()));
|
|
441
|
+
(obj.body = base64FromBytes(message.body !== undefined ? message.body : new Uint8Array(0)));
|
|
441
442
|
message.unreliable !== undefined && (obj.unreliable = message.unreliable);
|
|
442
443
|
return obj;
|
|
443
444
|
}
|
|
@@ -449,7 +450,7 @@ export namespace WsPeerUpdate {
|
|
|
449
450
|
export function fromPartial<I extends Exact<DeepPartial<WsPeerUpdate>, I>>(object: I): WsPeerUpdate {
|
|
450
451
|
const message = createBaseWsPeerUpdate();
|
|
451
452
|
message.fromAlias = object.fromAlias ?? 0;
|
|
452
|
-
message.body = object.body ?? new Uint8Array();
|
|
453
|
+
message.body = object.body ?? new Uint8Array(0);
|
|
453
454
|
message.unreliable = object.unreliable ?? false;
|
|
454
455
|
return message;
|
|
455
456
|
}
|
|
@@ -963,10 +964,10 @@ export namespace WsPacket {
|
|
|
963
964
|
}
|
|
964
965
|
}
|
|
965
966
|
|
|
966
|
-
declare
|
|
967
|
-
declare
|
|
968
|
-
declare
|
|
969
|
-
|
|
967
|
+
declare const self: any | undefined;
|
|
968
|
+
declare const window: any | undefined;
|
|
969
|
+
declare const global: any | undefined;
|
|
970
|
+
const tsProtoGlobalThis: any = (() => {
|
|
970
971
|
if (typeof globalThis !== "undefined") {
|
|
971
972
|
return globalThis;
|
|
972
973
|
}
|
|
@@ -74,7 +74,8 @@ export interface ServerPacket {
|
|
|
74
74
|
| { $case: "islandChanged"; islandChanged: IslandChangedMessage }
|
|
75
75
|
| { $case: "leftIsland"; leftIsland: LeftIslandMessage }
|
|
76
76
|
| { $case: "joinIsland"; joinIsland: JoinIslandMessage }
|
|
77
|
-
| { $case: "kicked"; kicked: KickedMessage }
|
|
77
|
+
| { $case: "kicked"; kicked: KickedMessage }
|
|
78
|
+
| undefined;
|
|
78
79
|
}
|
|
79
80
|
|
|
80
81
|
/** Client->Server messsages */
|
|
@@ -92,10 +93,11 @@ export interface Heartbeat {
|
|
|
92
93
|
}
|
|
93
94
|
|
|
94
95
|
export interface ClientPacket {
|
|
95
|
-
message?:
|
|
96
|
-
$case: "
|
|
97
|
-
signedChallenge: SignedChallengeMessage
|
|
98
|
-
|
|
96
|
+
message?:
|
|
97
|
+
| { $case: "challengeRequest"; challengeRequest: ChallengeRequestMessage }
|
|
98
|
+
| { $case: "signedChallenge"; signedChallenge: SignedChallengeMessage }
|
|
99
|
+
| { $case: "heartbeat"; heartbeat: Heartbeat }
|
|
100
|
+
| undefined;
|
|
99
101
|
}
|
|
100
102
|
|
|
101
103
|
/** Others */
|
|
@@ -285,10 +285,10 @@ export namespace PBAvatarShape {
|
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
287
|
|
|
288
|
-
declare
|
|
289
|
-
declare
|
|
290
|
-
declare
|
|
291
|
-
|
|
288
|
+
declare const self: any | undefined;
|
|
289
|
+
declare const window: any | undefined;
|
|
290
|
+
declare const global: any | undefined;
|
|
291
|
+
const tsProtoGlobalThis: any = (() => {
|
|
292
292
|
if (typeof globalThis !== "undefined") {
|
|
293
293
|
return globalThis;
|
|
294
294
|
}
|
|
@@ -57,7 +57,10 @@ export function materialTransparencyModeToJSON(object: MaterialTransparencyMode)
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
export interface PBMaterial {
|
|
60
|
-
material?:
|
|
60
|
+
material?:
|
|
61
|
+
| { $case: "unlit"; unlit: PBMaterial_UnlitMaterial }
|
|
62
|
+
| { $case: "pbr"; pbr: PBMaterial_PbrMaterial }
|
|
63
|
+
| undefined;
|
|
61
64
|
}
|
|
62
65
|
|
|
63
66
|
export interface PBMaterial_UnlitMaterial {
|
|
@@ -143,10 +143,12 @@ export function colliderLayerToJSON(object: ColliderLayer): string {
|
|
|
143
143
|
export interface PBMeshCollider {
|
|
144
144
|
/** enabled ColliderLayers (default CL_POINTER | CL_PHYSICS) */
|
|
145
145
|
collisionMask?: number | undefined;
|
|
146
|
-
mesh?:
|
|
147
|
-
$case: "
|
|
148
|
-
|
|
149
|
-
|
|
146
|
+
mesh?:
|
|
147
|
+
| { $case: "box"; box: PBMeshCollider_BoxMesh }
|
|
148
|
+
| { $case: "sphere"; sphere: PBMeshCollider_SphereMesh }
|
|
149
|
+
| { $case: "cylinder"; cylinder: PBMeshCollider_CylinderMesh }
|
|
150
|
+
| { $case: "plane"; plane: PBMeshCollider_PlaneMesh }
|
|
151
|
+
| undefined;
|
|
150
152
|
}
|
|
151
153
|
|
|
152
154
|
/** BoxMesh is a prism shape that contains the Entity. */
|
|
@@ -14,10 +14,12 @@ export const protobufPackage = "decentraland.sdk.components";
|
|
|
14
14
|
* More complex shapes require the use of a `GltfContainer` component.
|
|
15
15
|
*/
|
|
16
16
|
export interface PBMeshRenderer {
|
|
17
|
-
mesh?:
|
|
18
|
-
$case: "
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
mesh?:
|
|
18
|
+
| { $case: "box"; box: PBMeshRenderer_BoxMesh }
|
|
19
|
+
| { $case: "sphere"; sphere: PBMeshRenderer_SphereMesh }
|
|
20
|
+
| { $case: "cylinder"; cylinder: PBMeshRenderer_CylinderMesh }
|
|
21
|
+
| { $case: "plane"; plane: PBMeshRenderer_PlaneMesh }
|
|
22
|
+
| undefined;
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
/** BoxMesh renders a prism shape. */
|
|
@@ -67,7 +67,8 @@ export interface PBRaycast {
|
|
|
67
67
|
| { $case: "localDirection"; localDirection: Vector3 }
|
|
68
68
|
| { $case: "globalDirection"; globalDirection: Vector3 }
|
|
69
69
|
| { $case: "globalTarget"; globalTarget: Vector3 }
|
|
70
|
-
| { $case: "targetEntity"; targetEntity: number }
|
|
70
|
+
| { $case: "targetEntity"; targetEntity: number }
|
|
71
|
+
| undefined;
|
|
71
72
|
/** Maximum length of the ray in virtual meters (global space) */
|
|
72
73
|
maxDistance: number;
|
|
73
74
|
/** the RaycastQueryType behavior */
|
|
@@ -8909,10 +8909,10 @@ export namespace ECS6ComponentUiFullScreenShape {
|
|
|
8909
8909
|
}
|
|
8910
8910
|
}
|
|
8911
8911
|
|
|
8912
|
-
declare
|
|
8913
|
-
declare
|
|
8914
|
-
declare
|
|
8915
|
-
|
|
8912
|
+
declare const self: any | undefined;
|
|
8913
|
+
declare const window: any | undefined;
|
|
8914
|
+
declare const global: any | undefined;
|
|
8915
|
+
const tsProtoGlobalThis: any = (() => {
|
|
8916
8916
|
if (typeof globalThis !== "undefined") {
|
|
8917
8917
|
return globalThis;
|
|
8918
8918
|
}
|
|
@@ -99,7 +99,8 @@ export interface ComponentBodyPayload {
|
|
|
99
99
|
| { $case: "uiScrollRect"; uiScrollRect: ECS6ComponentUiScrollRect }
|
|
100
100
|
| { $case: "uiWorldSpaceShape"; uiWorldSpaceShape: ECS6ComponentUiWorldSpaceShape }
|
|
101
101
|
| { $case: "uiScreenSpaceShape"; uiScreenSpaceShape: ECS6ComponentUiScreenSpaceShape }
|
|
102
|
-
| { $case: "uiFullScreenShape"; uiFullScreenShape: ECS6ComponentUiFullScreenShape }
|
|
102
|
+
| { $case: "uiFullScreenShape"; uiFullScreenShape: ECS6ComponentUiFullScreenShape }
|
|
103
|
+
| undefined;
|
|
103
104
|
}
|
|
104
105
|
|
|
105
106
|
export interface CreateEntityBody {
|
|
@@ -182,7 +183,8 @@ export interface EntityActionPayload {
|
|
|
182
183
|
| { $case: "componentCreated"; componentCreated: ComponentCreatedBody }
|
|
183
184
|
| { $case: "componentDisposed"; componentDisposed: ComponentDisposedBody }
|
|
184
185
|
| { $case: "componentUpdated"; componentUpdated: ComponentUpdatedBody }
|
|
185
|
-
| { $case: "initMessagesFinished"; initMessagesFinished: InitMessagesFinishedBody }
|
|
186
|
+
| { $case: "initMessagesFinished"; initMessagesFinished: InitMessagesFinishedBody }
|
|
187
|
+
| undefined;
|
|
186
188
|
}
|
|
187
189
|
|
|
188
190
|
export interface EntityAction {
|