@dcl/protocol 1.0.0-6725457366.commit-d6b2b77 → 1.0.0-7290900808.commit-5536cee
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/common/border_rect.gen.js.map +1 -1
- package/out-js/decentraland/common/colors.gen.js.map +1 -1
- package/out-js/decentraland/common/content_mapping.gen.js.map +1 -1
- package/out-js/decentraland/common/sdk/user_data.gen.js.map +1 -1
- package/out-js/decentraland/common/texture.gen.js.map +1 -1
- package/out-js/decentraland/common/vectors.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/comms_api.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/communications_controller.gen.d.ts +30 -0
- package/out-js/decentraland/kernel/apis/communications_controller.gen.js +171 -1
- package/out-js/decentraland/kernel/apis/communications_controller.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/dev_tools.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/engine_api.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/environment_api.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/ethereum_controller.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/parcel_identity.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/permissions.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/players.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/portable_experiences.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/runtime.gen.d.ts +49 -0
- package/out-js/decentraland/kernel/apis/runtime.gen.js +225 -1
- package/out-js/decentraland/kernel/apis/runtime.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/scene.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/signed_fetch.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/social_controller.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/testing.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/user_action_module.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/user_identity.gen.js.map +1 -1
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
- package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.js.map +1 -1
- package/out-js/decentraland/kernel/comms/v3/archipelago.gen.js.map +1 -1
- package/out-js/decentraland/quests/definitions.gen.js.map +1 -1
- package/out-js/decentraland/realm/about.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/animator.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/audio_source.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/audio_stream.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_attach.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_base.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_emote_command.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/billboard.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/camera_mode.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/common/camera_type.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/common/loading_state.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/common/raycast_hit.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/common/texts.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/engine_info.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/gltf_container.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/nft_shape.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/player_identity_data.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/pointer_events.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/pointer_events_result.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/pointer_lock.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/raycast_result.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/text_shape.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/tween.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/tween_sequence.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/tween_state.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_background.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_dropdown.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_input.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_input_result.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/video_player.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/visibility_component.gen.js.map +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.js.map +1 -1
- package/out-js/decentraland/social/friendships/friendships.gen.js.map +1 -1
- package/out-js/google/protobuf/descriptor.gen.js.map +1 -1
- package/out-js/google/protobuf/empty.gen.js.map +1 -1
- package/out-ts/decentraland/kernel/apis/communications_controller.gen.ts +180 -0
- package/out-ts/decentraland/kernel/apis/runtime.gen.ts +269 -0
- package/package.json +2 -2
- package/proto/decentraland/kernel/apis/communications_controller.proto +13 -4
- package/proto/decentraland/kernel/apis/runtime.proto +13 -0
|
@@ -10,6 +10,14 @@ export interface RealSendRequest {
|
|
|
10
10
|
export interface RealSendResponse {
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
export interface SendBinaryRequest {
|
|
14
|
+
data: Uint8Array[];
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface SendBinaryResponse {
|
|
18
|
+
data: Uint8Array[];
|
|
19
|
+
}
|
|
20
|
+
|
|
13
21
|
function createBaseRealSendRequest(): RealSendRequest {
|
|
14
22
|
return { message: "" };
|
|
15
23
|
}
|
|
@@ -110,6 +118,126 @@ export namespace RealSendResponse {
|
|
|
110
118
|
}
|
|
111
119
|
}
|
|
112
120
|
|
|
121
|
+
function createBaseSendBinaryRequest(): SendBinaryRequest {
|
|
122
|
+
return { data: [] };
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export namespace SendBinaryRequest {
|
|
126
|
+
export function encode(message: SendBinaryRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
127
|
+
for (const v of message.data) {
|
|
128
|
+
writer.uint32(10).bytes(v!);
|
|
129
|
+
}
|
|
130
|
+
return writer;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): SendBinaryRequest {
|
|
134
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
135
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
136
|
+
const message = createBaseSendBinaryRequest();
|
|
137
|
+
while (reader.pos < end) {
|
|
138
|
+
const tag = reader.uint32();
|
|
139
|
+
switch (tag >>> 3) {
|
|
140
|
+
case 1:
|
|
141
|
+
if (tag !== 10) {
|
|
142
|
+
break;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
message.data.push(reader.bytes());
|
|
146
|
+
continue;
|
|
147
|
+
}
|
|
148
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
149
|
+
break;
|
|
150
|
+
}
|
|
151
|
+
reader.skipType(tag & 7);
|
|
152
|
+
}
|
|
153
|
+
return message;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export function fromJSON(object: any): SendBinaryRequest {
|
|
157
|
+
return { data: Array.isArray(object?.data) ? object.data.map((e: any) => bytesFromBase64(e)) : [] };
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export function toJSON(message: SendBinaryRequest): unknown {
|
|
161
|
+
const obj: any = {};
|
|
162
|
+
if (message.data) {
|
|
163
|
+
obj.data = message.data.map((e) => base64FromBytes(e !== undefined ? e : new Uint8Array(0)));
|
|
164
|
+
} else {
|
|
165
|
+
obj.data = [];
|
|
166
|
+
}
|
|
167
|
+
return obj;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export function create<I extends Exact<DeepPartial<SendBinaryRequest>, I>>(base?: I): SendBinaryRequest {
|
|
171
|
+
return SendBinaryRequest.fromPartial(base ?? {});
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export function fromPartial<I extends Exact<DeepPartial<SendBinaryRequest>, I>>(object: I): SendBinaryRequest {
|
|
175
|
+
const message = createBaseSendBinaryRequest();
|
|
176
|
+
message.data = object.data?.map((e) => e) || [];
|
|
177
|
+
return message;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
function createBaseSendBinaryResponse(): SendBinaryResponse {
|
|
182
|
+
return { data: [] };
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export namespace SendBinaryResponse {
|
|
186
|
+
export function encode(message: SendBinaryResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
187
|
+
for (const v of message.data) {
|
|
188
|
+
writer.uint32(10).bytes(v!);
|
|
189
|
+
}
|
|
190
|
+
return writer;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): SendBinaryResponse {
|
|
194
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
195
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
196
|
+
const message = createBaseSendBinaryResponse();
|
|
197
|
+
while (reader.pos < end) {
|
|
198
|
+
const tag = reader.uint32();
|
|
199
|
+
switch (tag >>> 3) {
|
|
200
|
+
case 1:
|
|
201
|
+
if (tag !== 10) {
|
|
202
|
+
break;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
message.data.push(reader.bytes());
|
|
206
|
+
continue;
|
|
207
|
+
}
|
|
208
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
209
|
+
break;
|
|
210
|
+
}
|
|
211
|
+
reader.skipType(tag & 7);
|
|
212
|
+
}
|
|
213
|
+
return message;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export function fromJSON(object: any): SendBinaryResponse {
|
|
217
|
+
return { data: Array.isArray(object?.data) ? object.data.map((e: any) => bytesFromBase64(e)) : [] };
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export function toJSON(message: SendBinaryResponse): unknown {
|
|
221
|
+
const obj: any = {};
|
|
222
|
+
if (message.data) {
|
|
223
|
+
obj.data = message.data.map((e) => base64FromBytes(e !== undefined ? e : new Uint8Array(0)));
|
|
224
|
+
} else {
|
|
225
|
+
obj.data = [];
|
|
226
|
+
}
|
|
227
|
+
return obj;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
export function create<I extends Exact<DeepPartial<SendBinaryResponse>, I>>(base?: I): SendBinaryResponse {
|
|
231
|
+
return SendBinaryResponse.fromPartial(base ?? {});
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export function fromPartial<I extends Exact<DeepPartial<SendBinaryResponse>, I>>(object: I): SendBinaryResponse {
|
|
235
|
+
const message = createBaseSendBinaryResponse();
|
|
236
|
+
message.data = object.data?.map((e) => e) || [];
|
|
237
|
+
return message;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
113
241
|
export type CommunicationsControllerServiceDefinition = typeof CommunicationsControllerServiceDefinition;
|
|
114
242
|
export const CommunicationsControllerServiceDefinition = {
|
|
115
243
|
name: "CommunicationsControllerService",
|
|
@@ -127,9 +255,61 @@ export const CommunicationsControllerServiceDefinition = {
|
|
|
127
255
|
responseStream: false,
|
|
128
256
|
options: {},
|
|
129
257
|
},
|
|
258
|
+
sendBinary: {
|
|
259
|
+
name: "SendBinary",
|
|
260
|
+
requestType: SendBinaryRequest,
|
|
261
|
+
requestStream: false,
|
|
262
|
+
responseType: SendBinaryResponse,
|
|
263
|
+
responseStream: false,
|
|
264
|
+
options: {},
|
|
265
|
+
},
|
|
130
266
|
},
|
|
131
267
|
} as const;
|
|
132
268
|
|
|
269
|
+
declare const self: any | undefined;
|
|
270
|
+
declare const window: any | undefined;
|
|
271
|
+
declare const global: any | undefined;
|
|
272
|
+
const tsProtoGlobalThis: any = (() => {
|
|
273
|
+
if (typeof globalThis !== "undefined") {
|
|
274
|
+
return globalThis;
|
|
275
|
+
}
|
|
276
|
+
if (typeof self !== "undefined") {
|
|
277
|
+
return self;
|
|
278
|
+
}
|
|
279
|
+
if (typeof window !== "undefined") {
|
|
280
|
+
return window;
|
|
281
|
+
}
|
|
282
|
+
if (typeof global !== "undefined") {
|
|
283
|
+
return global;
|
|
284
|
+
}
|
|
285
|
+
throw "Unable to locate global object";
|
|
286
|
+
})();
|
|
287
|
+
|
|
288
|
+
function bytesFromBase64(b64: string): Uint8Array {
|
|
289
|
+
if (tsProtoGlobalThis.Buffer) {
|
|
290
|
+
return Uint8Array.from(tsProtoGlobalThis.Buffer.from(b64, "base64"));
|
|
291
|
+
} else {
|
|
292
|
+
const bin = tsProtoGlobalThis.atob(b64);
|
|
293
|
+
const arr = new Uint8Array(bin.length);
|
|
294
|
+
for (let i = 0; i < bin.length; ++i) {
|
|
295
|
+
arr[i] = bin.charCodeAt(i);
|
|
296
|
+
}
|
|
297
|
+
return arr;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
function base64FromBytes(arr: Uint8Array): string {
|
|
302
|
+
if (tsProtoGlobalThis.Buffer) {
|
|
303
|
+
return tsProtoGlobalThis.Buffer.from(arr).toString("base64");
|
|
304
|
+
} else {
|
|
305
|
+
const bin: string[] = [];
|
|
306
|
+
arr.forEach((byte) => {
|
|
307
|
+
bin.push(String.fromCharCode(byte));
|
|
308
|
+
});
|
|
309
|
+
return tsProtoGlobalThis.btoa(bin.join(""));
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
133
313
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
134
314
|
|
|
135
315
|
export type DeepPartial<T> = T extends Builtin ? T
|
|
@@ -52,6 +52,23 @@ export interface CurrentSceneEntityResponse {
|
|
|
52
52
|
baseUrl: string;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
export interface GetExplorerInformationRequest {
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface GetExplorerInformationResponse {
|
|
59
|
+
/** the agent that current explorer is identified as */
|
|
60
|
+
agent: string;
|
|
61
|
+
/** options: "desktop", "mobile", "vr", "web" */
|
|
62
|
+
platform: string;
|
|
63
|
+
/** custom configurations set in the explorer */
|
|
64
|
+
configurations: { [key: string]: string };
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export interface GetExplorerInformationResponse_ConfigurationsEntry {
|
|
68
|
+
key: string;
|
|
69
|
+
value: string;
|
|
70
|
+
}
|
|
71
|
+
|
|
55
72
|
function createBaseRealmInfo(): RealmInfo {
|
|
56
73
|
return { baseUrl: "", realmName: "", networkId: 0, commsAdapter: "", isPreview: false };
|
|
57
74
|
}
|
|
@@ -646,6 +663,245 @@ export namespace CurrentSceneEntityResponse {
|
|
|
646
663
|
}
|
|
647
664
|
}
|
|
648
665
|
|
|
666
|
+
function createBaseGetExplorerInformationRequest(): GetExplorerInformationRequest {
|
|
667
|
+
return {};
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
export namespace GetExplorerInformationRequest {
|
|
671
|
+
export function encode(_: GetExplorerInformationRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
672
|
+
return writer;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): GetExplorerInformationRequest {
|
|
676
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
677
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
678
|
+
const message = createBaseGetExplorerInformationRequest();
|
|
679
|
+
while (reader.pos < end) {
|
|
680
|
+
const tag = reader.uint32();
|
|
681
|
+
switch (tag >>> 3) {
|
|
682
|
+
}
|
|
683
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
684
|
+
break;
|
|
685
|
+
}
|
|
686
|
+
reader.skipType(tag & 7);
|
|
687
|
+
}
|
|
688
|
+
return message;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
export function fromJSON(_: any): GetExplorerInformationRequest {
|
|
692
|
+
return {};
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
export function toJSON(_: GetExplorerInformationRequest): unknown {
|
|
696
|
+
const obj: any = {};
|
|
697
|
+
return obj;
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
export function create<I extends Exact<DeepPartial<GetExplorerInformationRequest>, I>>(
|
|
701
|
+
base?: I,
|
|
702
|
+
): GetExplorerInformationRequest {
|
|
703
|
+
return GetExplorerInformationRequest.fromPartial(base ?? {});
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
export function fromPartial<I extends Exact<DeepPartial<GetExplorerInformationRequest>, I>>(
|
|
707
|
+
_: I,
|
|
708
|
+
): GetExplorerInformationRequest {
|
|
709
|
+
const message = createBaseGetExplorerInformationRequest();
|
|
710
|
+
return message;
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
function createBaseGetExplorerInformationResponse(): GetExplorerInformationResponse {
|
|
715
|
+
return { agent: "", platform: "", configurations: {} };
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
export namespace GetExplorerInformationResponse {
|
|
719
|
+
export function encode(
|
|
720
|
+
message: GetExplorerInformationResponse,
|
|
721
|
+
writer: _m0.Writer = _m0.Writer.create(),
|
|
722
|
+
): _m0.Writer {
|
|
723
|
+
if (message.agent !== "") {
|
|
724
|
+
writer.uint32(10).string(message.agent);
|
|
725
|
+
}
|
|
726
|
+
if (message.platform !== "") {
|
|
727
|
+
writer.uint32(18).string(message.platform);
|
|
728
|
+
}
|
|
729
|
+
Object.entries(message.configurations).forEach(([key, value]) => {
|
|
730
|
+
GetExplorerInformationResponse_ConfigurationsEntry.encode({ key: key as any, value }, writer.uint32(26).fork())
|
|
731
|
+
.ldelim();
|
|
732
|
+
});
|
|
733
|
+
return writer;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): GetExplorerInformationResponse {
|
|
737
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
738
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
739
|
+
const message = createBaseGetExplorerInformationResponse();
|
|
740
|
+
while (reader.pos < end) {
|
|
741
|
+
const tag = reader.uint32();
|
|
742
|
+
switch (tag >>> 3) {
|
|
743
|
+
case 1:
|
|
744
|
+
if (tag !== 10) {
|
|
745
|
+
break;
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
message.agent = reader.string();
|
|
749
|
+
continue;
|
|
750
|
+
case 2:
|
|
751
|
+
if (tag !== 18) {
|
|
752
|
+
break;
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
message.platform = reader.string();
|
|
756
|
+
continue;
|
|
757
|
+
case 3:
|
|
758
|
+
if (tag !== 26) {
|
|
759
|
+
break;
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
const entry3 = GetExplorerInformationResponse_ConfigurationsEntry.decode(reader, reader.uint32());
|
|
763
|
+
if (entry3.value !== undefined) {
|
|
764
|
+
message.configurations[entry3.key] = entry3.value;
|
|
765
|
+
}
|
|
766
|
+
continue;
|
|
767
|
+
}
|
|
768
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
769
|
+
break;
|
|
770
|
+
}
|
|
771
|
+
reader.skipType(tag & 7);
|
|
772
|
+
}
|
|
773
|
+
return message;
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
export function fromJSON(object: any): GetExplorerInformationResponse {
|
|
777
|
+
return {
|
|
778
|
+
agent: isSet(object.agent) ? String(object.agent) : "",
|
|
779
|
+
platform: isSet(object.platform) ? String(object.platform) : "",
|
|
780
|
+
configurations: isObject(object.configurations)
|
|
781
|
+
? Object.entries(object.configurations).reduce<{ [key: string]: string }>((acc, [key, value]) => {
|
|
782
|
+
acc[key] = String(value);
|
|
783
|
+
return acc;
|
|
784
|
+
}, {})
|
|
785
|
+
: {},
|
|
786
|
+
};
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
export function toJSON(message: GetExplorerInformationResponse): unknown {
|
|
790
|
+
const obj: any = {};
|
|
791
|
+
message.agent !== undefined && (obj.agent = message.agent);
|
|
792
|
+
message.platform !== undefined && (obj.platform = message.platform);
|
|
793
|
+
obj.configurations = {};
|
|
794
|
+
if (message.configurations) {
|
|
795
|
+
Object.entries(message.configurations).forEach(([k, v]) => {
|
|
796
|
+
obj.configurations[k] = v;
|
|
797
|
+
});
|
|
798
|
+
}
|
|
799
|
+
return obj;
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
export function create<I extends Exact<DeepPartial<GetExplorerInformationResponse>, I>>(
|
|
803
|
+
base?: I,
|
|
804
|
+
): GetExplorerInformationResponse {
|
|
805
|
+
return GetExplorerInformationResponse.fromPartial(base ?? {});
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
export function fromPartial<I extends Exact<DeepPartial<GetExplorerInformationResponse>, I>>(
|
|
809
|
+
object: I,
|
|
810
|
+
): GetExplorerInformationResponse {
|
|
811
|
+
const message = createBaseGetExplorerInformationResponse();
|
|
812
|
+
message.agent = object.agent ?? "";
|
|
813
|
+
message.platform = object.platform ?? "";
|
|
814
|
+
message.configurations = Object.entries(object.configurations ?? {}).reduce<{ [key: string]: string }>(
|
|
815
|
+
(acc, [key, value]) => {
|
|
816
|
+
if (value !== undefined) {
|
|
817
|
+
acc[key] = String(value);
|
|
818
|
+
}
|
|
819
|
+
return acc;
|
|
820
|
+
},
|
|
821
|
+
{},
|
|
822
|
+
);
|
|
823
|
+
return message;
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
function createBaseGetExplorerInformationResponse_ConfigurationsEntry(): GetExplorerInformationResponse_ConfigurationsEntry {
|
|
828
|
+
return { key: "", value: "" };
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
export namespace GetExplorerInformationResponse_ConfigurationsEntry {
|
|
832
|
+
export function encode(
|
|
833
|
+
message: GetExplorerInformationResponse_ConfigurationsEntry,
|
|
834
|
+
writer: _m0.Writer = _m0.Writer.create(),
|
|
835
|
+
): _m0.Writer {
|
|
836
|
+
if (message.key !== "") {
|
|
837
|
+
writer.uint32(10).string(message.key);
|
|
838
|
+
}
|
|
839
|
+
if (message.value !== "") {
|
|
840
|
+
writer.uint32(18).string(message.value);
|
|
841
|
+
}
|
|
842
|
+
return writer;
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
export function decode(
|
|
846
|
+
input: _m0.Reader | Uint8Array,
|
|
847
|
+
length?: number,
|
|
848
|
+
): GetExplorerInformationResponse_ConfigurationsEntry {
|
|
849
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
850
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
851
|
+
const message = createBaseGetExplorerInformationResponse_ConfigurationsEntry();
|
|
852
|
+
while (reader.pos < end) {
|
|
853
|
+
const tag = reader.uint32();
|
|
854
|
+
switch (tag >>> 3) {
|
|
855
|
+
case 1:
|
|
856
|
+
if (tag !== 10) {
|
|
857
|
+
break;
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
message.key = reader.string();
|
|
861
|
+
continue;
|
|
862
|
+
case 2:
|
|
863
|
+
if (tag !== 18) {
|
|
864
|
+
break;
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
message.value = reader.string();
|
|
868
|
+
continue;
|
|
869
|
+
}
|
|
870
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
871
|
+
break;
|
|
872
|
+
}
|
|
873
|
+
reader.skipType(tag & 7);
|
|
874
|
+
}
|
|
875
|
+
return message;
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
export function fromJSON(object: any): GetExplorerInformationResponse_ConfigurationsEntry {
|
|
879
|
+
return { key: isSet(object.key) ? String(object.key) : "", value: isSet(object.value) ? String(object.value) : "" };
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
export function toJSON(message: GetExplorerInformationResponse_ConfigurationsEntry): unknown {
|
|
883
|
+
const obj: any = {};
|
|
884
|
+
message.key !== undefined && (obj.key = message.key);
|
|
885
|
+
message.value !== undefined && (obj.value = message.value);
|
|
886
|
+
return obj;
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
export function create<I extends Exact<DeepPartial<GetExplorerInformationResponse_ConfigurationsEntry>, I>>(
|
|
890
|
+
base?: I,
|
|
891
|
+
): GetExplorerInformationResponse_ConfigurationsEntry {
|
|
892
|
+
return GetExplorerInformationResponse_ConfigurationsEntry.fromPartial(base ?? {});
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
export function fromPartial<I extends Exact<DeepPartial<GetExplorerInformationResponse_ConfigurationsEntry>, I>>(
|
|
896
|
+
object: I,
|
|
897
|
+
): GetExplorerInformationResponse_ConfigurationsEntry {
|
|
898
|
+
const message = createBaseGetExplorerInformationResponse_ConfigurationsEntry();
|
|
899
|
+
message.key = object.key ?? "";
|
|
900
|
+
message.value = object.value ?? "";
|
|
901
|
+
return message;
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
|
|
649
905
|
export type RuntimeServiceDefinition = typeof RuntimeServiceDefinition;
|
|
650
906
|
export const RuntimeServiceDefinition = {
|
|
651
907
|
name: "RuntimeService",
|
|
@@ -695,6 +951,15 @@ export const RuntimeServiceDefinition = {
|
|
|
695
951
|
responseStream: false,
|
|
696
952
|
options: {},
|
|
697
953
|
},
|
|
954
|
+
/** Provides information about the explorer */
|
|
955
|
+
getExplorerInformation: {
|
|
956
|
+
name: "GetExplorerInformation",
|
|
957
|
+
requestType: GetExplorerInformationRequest,
|
|
958
|
+
requestStream: false,
|
|
959
|
+
responseType: GetExplorerInformationResponse,
|
|
960
|
+
responseStream: false,
|
|
961
|
+
options: {},
|
|
962
|
+
},
|
|
698
963
|
},
|
|
699
964
|
} as const;
|
|
700
965
|
|
|
@@ -754,6 +1019,10 @@ type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
|
754
1019
|
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
755
1020
|
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
756
1021
|
|
|
1022
|
+
function isObject(value: any): boolean {
|
|
1023
|
+
return typeof value === "object" && value !== null;
|
|
1024
|
+
}
|
|
1025
|
+
|
|
757
1026
|
function isSet(value: any): boolean {
|
|
758
1027
|
return value !== null && value !== undefined;
|
|
759
1028
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/protocol",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-7290900808.commit-5536cee",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": "decentraland/protocol.git",
|
|
6
6
|
"homepage": "https://github.com/decentraland/protocol#readme",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"out-js",
|
|
30
30
|
"public"
|
|
31
31
|
],
|
|
32
|
-
"commit": "
|
|
32
|
+
"commit": "5536cee3332abd763d76cf4daae249464fbd0199"
|
|
33
33
|
}
|
|
@@ -2,13 +2,22 @@ syntax = "proto3";
|
|
|
2
2
|
package decentraland.kernel.apis;
|
|
3
3
|
|
|
4
4
|
message RealSendRequest {
|
|
5
|
-
|
|
5
|
+
string message = 1;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
message RealSendResponse {}
|
|
9
9
|
|
|
10
|
+
message SendBinaryRequest {
|
|
11
|
+
repeated bytes data = 1;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
message SendBinaryResponse {
|
|
15
|
+
repeated bytes data = 1;
|
|
16
|
+
}
|
|
17
|
+
|
|
10
18
|
service CommunicationsControllerService {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
19
|
+
// @deprecated - This API should use a bidirectional binary stream in sdk7
|
|
20
|
+
// https://github.com/decentraland/sdk/issues/582
|
|
21
|
+
rpc Send(RealSendRequest) returns (RealSendResponse) {}
|
|
22
|
+
rpc SendBinary(SendBinaryRequest) returns (SendBinaryResponse) {}
|
|
14
23
|
}
|
|
@@ -49,6 +49,16 @@ message CurrentSceneEntityResponse {
|
|
|
49
49
|
string base_url = 4;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
message GetExplorerInformationRequest {}
|
|
53
|
+
message GetExplorerInformationResponse {
|
|
54
|
+
// the agent that current explorer is identified as
|
|
55
|
+
string agent = 1;
|
|
56
|
+
// options: "desktop", "mobile", "vr", "web"
|
|
57
|
+
string platform = 2;
|
|
58
|
+
// custom configurations set in the explorer
|
|
59
|
+
map<string, string> configurations = 3;
|
|
60
|
+
}
|
|
61
|
+
|
|
52
62
|
service RuntimeService {
|
|
53
63
|
// Provides information about the current realm
|
|
54
64
|
rpc GetRealm(GetRealmRequest) returns (GetRealmResponse) {}
|
|
@@ -62,4 +72,7 @@ service RuntimeService {
|
|
|
62
72
|
rpc ReadFile(ReadFileRequest) returns (ReadFileResponse) {}
|
|
63
73
|
// Returns information about the current scene. This is the replacement of GetBootstrapData
|
|
64
74
|
rpc GetSceneInformation(CurrentSceneEntityRequest) returns (CurrentSceneEntityResponse) {}
|
|
75
|
+
|
|
76
|
+
// Provides information about the explorer
|
|
77
|
+
rpc GetExplorerInformation(GetExplorerInformationRequest) returns (GetExplorerInformationResponse) {}
|
|
65
78
|
}
|