@dcl/protocol 1.0.0-3175139283.commit-c671437 → 1.0.0-3199325469.commit-c9bc23f
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/README.md +19 -0
- package/bff/authentication-service.proto +3 -0
- package/bff/comms-director-service.proto +33 -0
- package/bff/comms-service.proto +2 -26
- package/bff/http-endpoints.proto +9 -10
- package/bff/topics-service.proto +35 -0
- package/bff-services.proto +16 -0
- package/{kernel/apis/common → common}/ContentMapping.proto +1 -0
- package/common/Entity.proto +13 -0
- package/common/Vectors.proto +19 -0
- package/ecs/components/Animator.proto +1 -1
- package/ecs/components/AudioSource.proto +1 -1
- package/ecs/components/AudioStream.proto +1 -1
- package/ecs/components/AvatarAttach.proto +1 -1
- package/ecs/components/AvatarModifierArea.proto +2 -2
- package/ecs/components/AvatarShape.proto +2 -2
- package/ecs/components/Billboard.proto +1 -1
- package/ecs/components/BoxShape.proto +1 -1
- package/ecs/components/CameraMode.proto +2 -2
- package/ecs/components/CameraModeArea.proto +3 -3
- package/ecs/components/CylinderShape.proto +1 -1
- package/ecs/components/GltfContainer.proto +1 -1
- package/ecs/components/Material.proto +2 -2
- package/ecs/components/MeshCollider.proto +1 -1
- package/ecs/components/MeshRenderer.proto +1 -1
- package/ecs/components/NFTShape.proto +2 -2
- package/ecs/components/OnPointerDown.proto +2 -2
- package/ecs/components/OnPointerDownResult.proto +3 -3
- package/ecs/components/OnPointerUp.proto +2 -2
- package/ecs/components/OnPointerUpResult.proto +3 -3
- package/ecs/components/PlaneShape.proto +1 -1
- package/ecs/components/PointerEvents.proto +2 -2
- package/ecs/components/PointerEventsResult.proto +4 -4
- package/ecs/components/PointerLock.proto +1 -1
- package/ecs/components/README.md +1 -1
- package/ecs/components/Raycast.proto +2 -2
- package/ecs/components/RaycastResult.proto +2 -2
- package/ecs/components/SphereShape.proto +1 -1
- package/ecs/components/TextShape.proto +2 -2
- package/ecs/components/UiStyles.proto +2 -2
- package/ecs/components/UiText.proto +2 -2
- package/ecs/components/UiTransform.proto +1 -1
- package/ecs/components/VisibilityComponent.proto +1 -1
- package/ecs/components/common/ActionButton.proto +1 -1
- package/kernel/apis/EnvironmentAPI.proto +1 -1
- package/kernel/apis/ParcelIdentity.proto +1 -1
- package/kernel/apis/Players.proto +1 -1
- package/kernel/apis/UserIdentity.proto +1 -1
- package/kernel/apis/{common → common-sdk}/UserData.proto +0 -0
- package/kernel/comms/comms-rfc-4.proto +1 -0
- package/kernel/comms/v3/archipelago.proto +0 -4
- package/out-ts/bff/authentication-service.gen.ts +278 -0
- package/out-ts/bff/comms-director-service.gen.ts +225 -0
- package/out-ts/bff/comms-service.gen.ts +193 -0
- package/out-ts/bff/http-endpoints.gen.ts +662 -0
- package/out-ts/bff/topics-service.gen.ts +404 -0
- package/out-ts/bff-services.gen.ts +3 -0
- package/out-ts/common/ContentMapping.gen.ts +79 -0
- package/out-ts/common/Vectors.gen.ts +225 -0
- package/out-ts/google/api/annotations.gen.ts +3 -0
- package/out-ts/google/api/http.gen.ts +286 -0
- package/out-ts/google/protobuf/descriptor.gen.ts +2860 -0
- package/out-ts/google/protobuf/empty.gen.ts +66 -0
- package/out-ts/kernel/apis/CommunicationsController.gen.ts +128 -0
- package/out-ts/kernel/apis/DevTools.gen.ts +140 -0
- package/out-ts/kernel/apis/EngineAPI.gen.ts +2128 -0
- package/out-ts/kernel/apis/EnvironmentAPI.gen.ts +1050 -0
- package/out-ts/kernel/apis/EthereumController.gen.ts +806 -0
- package/out-ts/kernel/apis/ExperimentalAPI.gen.ts +278 -0
- package/out-ts/kernel/apis/ParcelIdentity.gen.ts +516 -0
- package/out-ts/kernel/apis/Permissions.gen.ts +332 -0
- package/out-ts/kernel/apis/Players.gen.ts +344 -0
- package/out-ts/kernel/apis/PortableExperiences.gen.ts +520 -0
- package/out-ts/kernel/apis/RestrictedActions.gen.ts +320 -0
- package/out-ts/kernel/apis/SceneStateStorageController.gen.ts +1331 -0
- package/out-ts/kernel/apis/SignedFetch.gen.ts +428 -0
- package/out-ts/kernel/apis/SocialController.gen.ts +195 -0
- package/out-ts/kernel/apis/UserActionModule.gen.ts +128 -0
- package/out-ts/kernel/apis/UserIdentity.gen.ts +230 -0
- package/out-ts/kernel/apis/common-sdk/UserData.gen.ts +298 -0
- package/out-ts/sdk-apis.gen.ts +3 -0
- package/package.json +16 -5
- package/sdk-apis.proto +22 -0
|
@@ -0,0 +1,1050 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
import { ContentMapping } from "../../common/ContentMapping.gen";
|
|
4
|
+
|
|
5
|
+
export const protobufPackage = "";
|
|
6
|
+
|
|
7
|
+
export interface MinimalRunnableEntity {
|
|
8
|
+
content: ContentMapping[];
|
|
9
|
+
metadataJson: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface BootstrapDataResponse {
|
|
13
|
+
id: string;
|
|
14
|
+
baseUrl: string;
|
|
15
|
+
entity: MinimalRunnableEntity | undefined;
|
|
16
|
+
useFPSThrottling: boolean;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface PreviewModeResponse {
|
|
20
|
+
isPreview: boolean;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface AreUnsafeRequestAllowedResponse {
|
|
24
|
+
status: boolean;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface GetPlatformResponse {
|
|
28
|
+
platform: string;
|
|
29
|
+
}
|
|
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
|
+
|
|
40
|
+
export interface GetCurrentRealmResponse {
|
|
41
|
+
currentRealm?: EnvironmentRealm | undefined;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface GetExplorerConfigurationResponse {
|
|
45
|
+
clientUri: string;
|
|
46
|
+
configurations: { [key: string]: string };
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface GetExplorerConfigurationResponse_ConfigurationsEntry {
|
|
50
|
+
key: string;
|
|
51
|
+
value: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface GetDecentralandTimeResponse {
|
|
55
|
+
seconds: number;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface GetBootstrapDataRequest {
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface IsPreviewModeRequest {
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface GetPlatformRequest {
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export interface AreUnsafeRequestAllowedRequest {
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export interface GetCurrentRealmRequest {
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export interface GetExplorerConfigurationRequest {
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export interface GetDecentralandTimeRequest {
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
function createBaseMinimalRunnableEntity(): MinimalRunnableEntity {
|
|
80
|
+
return { content: [], metadataJson: "" };
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export const MinimalRunnableEntity = {
|
|
84
|
+
encode(message: MinimalRunnableEntity, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
85
|
+
for (const v of message.content) {
|
|
86
|
+
ContentMapping.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
87
|
+
}
|
|
88
|
+
if (message.metadataJson !== "") {
|
|
89
|
+
writer.uint32(18).string(message.metadataJson);
|
|
90
|
+
}
|
|
91
|
+
return writer;
|
|
92
|
+
},
|
|
93
|
+
|
|
94
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MinimalRunnableEntity {
|
|
95
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
96
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
97
|
+
const message = createBaseMinimalRunnableEntity();
|
|
98
|
+
while (reader.pos < end) {
|
|
99
|
+
const tag = reader.uint32();
|
|
100
|
+
switch (tag >>> 3) {
|
|
101
|
+
case 1:
|
|
102
|
+
message.content.push(ContentMapping.decode(reader, reader.uint32()));
|
|
103
|
+
break;
|
|
104
|
+
case 2:
|
|
105
|
+
message.metadataJson = reader.string();
|
|
106
|
+
break;
|
|
107
|
+
default:
|
|
108
|
+
reader.skipType(tag & 7);
|
|
109
|
+
break;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
return message;
|
|
113
|
+
},
|
|
114
|
+
|
|
115
|
+
fromJSON(object: any): MinimalRunnableEntity {
|
|
116
|
+
return {
|
|
117
|
+
content: Array.isArray(object?.content) ? object.content.map((e: any) => ContentMapping.fromJSON(e)) : [],
|
|
118
|
+
metadataJson: isSet(object.metadataJson) ? String(object.metadataJson) : "",
|
|
119
|
+
};
|
|
120
|
+
},
|
|
121
|
+
|
|
122
|
+
toJSON(message: MinimalRunnableEntity): unknown {
|
|
123
|
+
const obj: any = {};
|
|
124
|
+
if (message.content) {
|
|
125
|
+
obj.content = message.content.map((e) => e ? ContentMapping.toJSON(e) : undefined);
|
|
126
|
+
} else {
|
|
127
|
+
obj.content = [];
|
|
128
|
+
}
|
|
129
|
+
message.metadataJson !== undefined && (obj.metadataJson = message.metadataJson);
|
|
130
|
+
return obj;
|
|
131
|
+
},
|
|
132
|
+
|
|
133
|
+
fromPartial<I extends Exact<DeepPartial<MinimalRunnableEntity>, I>>(object: I): MinimalRunnableEntity {
|
|
134
|
+
const message = createBaseMinimalRunnableEntity();
|
|
135
|
+
message.content = object.content?.map((e) => ContentMapping.fromPartial(e)) || [];
|
|
136
|
+
message.metadataJson = object.metadataJson ?? "";
|
|
137
|
+
return message;
|
|
138
|
+
},
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
function createBaseBootstrapDataResponse(): BootstrapDataResponse {
|
|
142
|
+
return { id: "", baseUrl: "", entity: undefined, useFPSThrottling: false };
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export const BootstrapDataResponse = {
|
|
146
|
+
encode(message: BootstrapDataResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
147
|
+
if (message.id !== "") {
|
|
148
|
+
writer.uint32(10).string(message.id);
|
|
149
|
+
}
|
|
150
|
+
if (message.baseUrl !== "") {
|
|
151
|
+
writer.uint32(34).string(message.baseUrl);
|
|
152
|
+
}
|
|
153
|
+
if (message.entity !== undefined) {
|
|
154
|
+
MinimalRunnableEntity.encode(message.entity, writer.uint32(18).fork()).ldelim();
|
|
155
|
+
}
|
|
156
|
+
if (message.useFPSThrottling === true) {
|
|
157
|
+
writer.uint32(40).bool(message.useFPSThrottling);
|
|
158
|
+
}
|
|
159
|
+
return writer;
|
|
160
|
+
},
|
|
161
|
+
|
|
162
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): BootstrapDataResponse {
|
|
163
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
164
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
165
|
+
const message = createBaseBootstrapDataResponse();
|
|
166
|
+
while (reader.pos < end) {
|
|
167
|
+
const tag = reader.uint32();
|
|
168
|
+
switch (tag >>> 3) {
|
|
169
|
+
case 1:
|
|
170
|
+
message.id = reader.string();
|
|
171
|
+
break;
|
|
172
|
+
case 4:
|
|
173
|
+
message.baseUrl = reader.string();
|
|
174
|
+
break;
|
|
175
|
+
case 2:
|
|
176
|
+
message.entity = MinimalRunnableEntity.decode(reader, reader.uint32());
|
|
177
|
+
break;
|
|
178
|
+
case 5:
|
|
179
|
+
message.useFPSThrottling = reader.bool();
|
|
180
|
+
break;
|
|
181
|
+
default:
|
|
182
|
+
reader.skipType(tag & 7);
|
|
183
|
+
break;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
return message;
|
|
187
|
+
},
|
|
188
|
+
|
|
189
|
+
fromJSON(object: any): BootstrapDataResponse {
|
|
190
|
+
return {
|
|
191
|
+
id: isSet(object.id) ? String(object.id) : "",
|
|
192
|
+
baseUrl: isSet(object.baseUrl) ? String(object.baseUrl) : "",
|
|
193
|
+
entity: isSet(object.entity) ? MinimalRunnableEntity.fromJSON(object.entity) : undefined,
|
|
194
|
+
useFPSThrottling: isSet(object.useFPSThrottling) ? Boolean(object.useFPSThrottling) : false,
|
|
195
|
+
};
|
|
196
|
+
},
|
|
197
|
+
|
|
198
|
+
toJSON(message: BootstrapDataResponse): unknown {
|
|
199
|
+
const obj: any = {};
|
|
200
|
+
message.id !== undefined && (obj.id = message.id);
|
|
201
|
+
message.baseUrl !== undefined && (obj.baseUrl = message.baseUrl);
|
|
202
|
+
message.entity !== undefined &&
|
|
203
|
+
(obj.entity = message.entity ? MinimalRunnableEntity.toJSON(message.entity) : undefined);
|
|
204
|
+
message.useFPSThrottling !== undefined && (obj.useFPSThrottling = message.useFPSThrottling);
|
|
205
|
+
return obj;
|
|
206
|
+
},
|
|
207
|
+
|
|
208
|
+
fromPartial<I extends Exact<DeepPartial<BootstrapDataResponse>, I>>(object: I): BootstrapDataResponse {
|
|
209
|
+
const message = createBaseBootstrapDataResponse();
|
|
210
|
+
message.id = object.id ?? "";
|
|
211
|
+
message.baseUrl = object.baseUrl ?? "";
|
|
212
|
+
message.entity = (object.entity !== undefined && object.entity !== null)
|
|
213
|
+
? MinimalRunnableEntity.fromPartial(object.entity)
|
|
214
|
+
: undefined;
|
|
215
|
+
message.useFPSThrottling = object.useFPSThrottling ?? false;
|
|
216
|
+
return message;
|
|
217
|
+
},
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
function createBasePreviewModeResponse(): PreviewModeResponse {
|
|
221
|
+
return { isPreview: false };
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export const PreviewModeResponse = {
|
|
225
|
+
encode(message: PreviewModeResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
226
|
+
if (message.isPreview === true) {
|
|
227
|
+
writer.uint32(8).bool(message.isPreview);
|
|
228
|
+
}
|
|
229
|
+
return writer;
|
|
230
|
+
},
|
|
231
|
+
|
|
232
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PreviewModeResponse {
|
|
233
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
234
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
235
|
+
const message = createBasePreviewModeResponse();
|
|
236
|
+
while (reader.pos < end) {
|
|
237
|
+
const tag = reader.uint32();
|
|
238
|
+
switch (tag >>> 3) {
|
|
239
|
+
case 1:
|
|
240
|
+
message.isPreview = reader.bool();
|
|
241
|
+
break;
|
|
242
|
+
default:
|
|
243
|
+
reader.skipType(tag & 7);
|
|
244
|
+
break;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
return message;
|
|
248
|
+
},
|
|
249
|
+
|
|
250
|
+
fromJSON(object: any): PreviewModeResponse {
|
|
251
|
+
return { isPreview: isSet(object.isPreview) ? Boolean(object.isPreview) : false };
|
|
252
|
+
},
|
|
253
|
+
|
|
254
|
+
toJSON(message: PreviewModeResponse): unknown {
|
|
255
|
+
const obj: any = {};
|
|
256
|
+
message.isPreview !== undefined && (obj.isPreview = message.isPreview);
|
|
257
|
+
return obj;
|
|
258
|
+
},
|
|
259
|
+
|
|
260
|
+
fromPartial<I extends Exact<DeepPartial<PreviewModeResponse>, I>>(object: I): PreviewModeResponse {
|
|
261
|
+
const message = createBasePreviewModeResponse();
|
|
262
|
+
message.isPreview = object.isPreview ?? false;
|
|
263
|
+
return message;
|
|
264
|
+
},
|
|
265
|
+
};
|
|
266
|
+
|
|
267
|
+
function createBaseAreUnsafeRequestAllowedResponse(): AreUnsafeRequestAllowedResponse {
|
|
268
|
+
return { status: false };
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export const AreUnsafeRequestAllowedResponse = {
|
|
272
|
+
encode(message: AreUnsafeRequestAllowedResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
273
|
+
if (message.status === true) {
|
|
274
|
+
writer.uint32(8).bool(message.status);
|
|
275
|
+
}
|
|
276
|
+
return writer;
|
|
277
|
+
},
|
|
278
|
+
|
|
279
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AreUnsafeRequestAllowedResponse {
|
|
280
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
281
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
282
|
+
const message = createBaseAreUnsafeRequestAllowedResponse();
|
|
283
|
+
while (reader.pos < end) {
|
|
284
|
+
const tag = reader.uint32();
|
|
285
|
+
switch (tag >>> 3) {
|
|
286
|
+
case 1:
|
|
287
|
+
message.status = reader.bool();
|
|
288
|
+
break;
|
|
289
|
+
default:
|
|
290
|
+
reader.skipType(tag & 7);
|
|
291
|
+
break;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
return message;
|
|
295
|
+
},
|
|
296
|
+
|
|
297
|
+
fromJSON(object: any): AreUnsafeRequestAllowedResponse {
|
|
298
|
+
return { status: isSet(object.status) ? Boolean(object.status) : false };
|
|
299
|
+
},
|
|
300
|
+
|
|
301
|
+
toJSON(message: AreUnsafeRequestAllowedResponse): unknown {
|
|
302
|
+
const obj: any = {};
|
|
303
|
+
message.status !== undefined && (obj.status = message.status);
|
|
304
|
+
return obj;
|
|
305
|
+
},
|
|
306
|
+
|
|
307
|
+
fromPartial<I extends Exact<DeepPartial<AreUnsafeRequestAllowedResponse>, I>>(
|
|
308
|
+
object: I,
|
|
309
|
+
): AreUnsafeRequestAllowedResponse {
|
|
310
|
+
const message = createBaseAreUnsafeRequestAllowedResponse();
|
|
311
|
+
message.status = object.status ?? false;
|
|
312
|
+
return message;
|
|
313
|
+
},
|
|
314
|
+
};
|
|
315
|
+
|
|
316
|
+
function createBaseGetPlatformResponse(): GetPlatformResponse {
|
|
317
|
+
return { platform: "" };
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
export const GetPlatformResponse = {
|
|
321
|
+
encode(message: GetPlatformResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
322
|
+
if (message.platform !== "") {
|
|
323
|
+
writer.uint32(10).string(message.platform);
|
|
324
|
+
}
|
|
325
|
+
return writer;
|
|
326
|
+
},
|
|
327
|
+
|
|
328
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetPlatformResponse {
|
|
329
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
330
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
331
|
+
const message = createBaseGetPlatformResponse();
|
|
332
|
+
while (reader.pos < end) {
|
|
333
|
+
const tag = reader.uint32();
|
|
334
|
+
switch (tag >>> 3) {
|
|
335
|
+
case 1:
|
|
336
|
+
message.platform = reader.string();
|
|
337
|
+
break;
|
|
338
|
+
default:
|
|
339
|
+
reader.skipType(tag & 7);
|
|
340
|
+
break;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
return message;
|
|
344
|
+
},
|
|
345
|
+
|
|
346
|
+
fromJSON(object: any): GetPlatformResponse {
|
|
347
|
+
return { platform: isSet(object.platform) ? String(object.platform) : "" };
|
|
348
|
+
},
|
|
349
|
+
|
|
350
|
+
toJSON(message: GetPlatformResponse): unknown {
|
|
351
|
+
const obj: any = {};
|
|
352
|
+
message.platform !== undefined && (obj.platform = message.platform);
|
|
353
|
+
return obj;
|
|
354
|
+
},
|
|
355
|
+
|
|
356
|
+
fromPartial<I extends Exact<DeepPartial<GetPlatformResponse>, I>>(object: I): GetPlatformResponse {
|
|
357
|
+
const message = createBaseGetPlatformResponse();
|
|
358
|
+
message.platform = object.platform ?? "";
|
|
359
|
+
return message;
|
|
360
|
+
},
|
|
361
|
+
};
|
|
362
|
+
|
|
363
|
+
function createBaseEnvironmentRealm(): EnvironmentRealm {
|
|
364
|
+
return { domain: "", layer: "", room: "", serverName: "", displayName: "", protocol: "" };
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
export const EnvironmentRealm = {
|
|
368
|
+
encode(message: EnvironmentRealm, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
369
|
+
if (message.domain !== "") {
|
|
370
|
+
writer.uint32(10).string(message.domain);
|
|
371
|
+
}
|
|
372
|
+
if (message.layer !== "") {
|
|
373
|
+
writer.uint32(18).string(message.layer);
|
|
374
|
+
}
|
|
375
|
+
if (message.room !== "") {
|
|
376
|
+
writer.uint32(26).string(message.room);
|
|
377
|
+
}
|
|
378
|
+
if (message.serverName !== "") {
|
|
379
|
+
writer.uint32(34).string(message.serverName);
|
|
380
|
+
}
|
|
381
|
+
if (message.displayName !== "") {
|
|
382
|
+
writer.uint32(42).string(message.displayName);
|
|
383
|
+
}
|
|
384
|
+
if (message.protocol !== "") {
|
|
385
|
+
writer.uint32(50).string(message.protocol);
|
|
386
|
+
}
|
|
387
|
+
return writer;
|
|
388
|
+
},
|
|
389
|
+
|
|
390
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): EnvironmentRealm {
|
|
391
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
392
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
393
|
+
const message = createBaseEnvironmentRealm();
|
|
394
|
+
while (reader.pos < end) {
|
|
395
|
+
const tag = reader.uint32();
|
|
396
|
+
switch (tag >>> 3) {
|
|
397
|
+
case 1:
|
|
398
|
+
message.domain = reader.string();
|
|
399
|
+
break;
|
|
400
|
+
case 2:
|
|
401
|
+
message.layer = reader.string();
|
|
402
|
+
break;
|
|
403
|
+
case 3:
|
|
404
|
+
message.room = reader.string();
|
|
405
|
+
break;
|
|
406
|
+
case 4:
|
|
407
|
+
message.serverName = reader.string();
|
|
408
|
+
break;
|
|
409
|
+
case 5:
|
|
410
|
+
message.displayName = reader.string();
|
|
411
|
+
break;
|
|
412
|
+
case 6:
|
|
413
|
+
message.protocol = reader.string();
|
|
414
|
+
break;
|
|
415
|
+
default:
|
|
416
|
+
reader.skipType(tag & 7);
|
|
417
|
+
break;
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
return message;
|
|
421
|
+
},
|
|
422
|
+
|
|
423
|
+
fromJSON(object: any): EnvironmentRealm {
|
|
424
|
+
return {
|
|
425
|
+
domain: isSet(object.domain) ? String(object.domain) : "",
|
|
426
|
+
layer: isSet(object.layer) ? String(object.layer) : "",
|
|
427
|
+
room: isSet(object.room) ? String(object.room) : "",
|
|
428
|
+
serverName: isSet(object.serverName) ? String(object.serverName) : "",
|
|
429
|
+
displayName: isSet(object.displayName) ? String(object.displayName) : "",
|
|
430
|
+
protocol: isSet(object.protocol) ? String(object.protocol) : "",
|
|
431
|
+
};
|
|
432
|
+
},
|
|
433
|
+
|
|
434
|
+
toJSON(message: EnvironmentRealm): unknown {
|
|
435
|
+
const obj: any = {};
|
|
436
|
+
message.domain !== undefined && (obj.domain = message.domain);
|
|
437
|
+
message.layer !== undefined && (obj.layer = message.layer);
|
|
438
|
+
message.room !== undefined && (obj.room = message.room);
|
|
439
|
+
message.serverName !== undefined && (obj.serverName = message.serverName);
|
|
440
|
+
message.displayName !== undefined && (obj.displayName = message.displayName);
|
|
441
|
+
message.protocol !== undefined && (obj.protocol = message.protocol);
|
|
442
|
+
return obj;
|
|
443
|
+
},
|
|
444
|
+
|
|
445
|
+
fromPartial<I extends Exact<DeepPartial<EnvironmentRealm>, I>>(object: I): EnvironmentRealm {
|
|
446
|
+
const message = createBaseEnvironmentRealm();
|
|
447
|
+
message.domain = object.domain ?? "";
|
|
448
|
+
message.layer = object.layer ?? "";
|
|
449
|
+
message.room = object.room ?? "";
|
|
450
|
+
message.serverName = object.serverName ?? "";
|
|
451
|
+
message.displayName = object.displayName ?? "";
|
|
452
|
+
message.protocol = object.protocol ?? "";
|
|
453
|
+
return message;
|
|
454
|
+
},
|
|
455
|
+
};
|
|
456
|
+
|
|
457
|
+
function createBaseGetCurrentRealmResponse(): GetCurrentRealmResponse {
|
|
458
|
+
return { currentRealm: undefined };
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
export const GetCurrentRealmResponse = {
|
|
462
|
+
encode(message: GetCurrentRealmResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
463
|
+
if (message.currentRealm !== undefined) {
|
|
464
|
+
EnvironmentRealm.encode(message.currentRealm, writer.uint32(10).fork()).ldelim();
|
|
465
|
+
}
|
|
466
|
+
return writer;
|
|
467
|
+
},
|
|
468
|
+
|
|
469
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetCurrentRealmResponse {
|
|
470
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
471
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
472
|
+
const message = createBaseGetCurrentRealmResponse();
|
|
473
|
+
while (reader.pos < end) {
|
|
474
|
+
const tag = reader.uint32();
|
|
475
|
+
switch (tag >>> 3) {
|
|
476
|
+
case 1:
|
|
477
|
+
message.currentRealm = EnvironmentRealm.decode(reader, reader.uint32());
|
|
478
|
+
break;
|
|
479
|
+
default:
|
|
480
|
+
reader.skipType(tag & 7);
|
|
481
|
+
break;
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
return message;
|
|
485
|
+
},
|
|
486
|
+
|
|
487
|
+
fromJSON(object: any): GetCurrentRealmResponse {
|
|
488
|
+
return { currentRealm: isSet(object.currentRealm) ? EnvironmentRealm.fromJSON(object.currentRealm) : undefined };
|
|
489
|
+
},
|
|
490
|
+
|
|
491
|
+
toJSON(message: GetCurrentRealmResponse): unknown {
|
|
492
|
+
const obj: any = {};
|
|
493
|
+
message.currentRealm !== undefined &&
|
|
494
|
+
(obj.currentRealm = message.currentRealm ? EnvironmentRealm.toJSON(message.currentRealm) : undefined);
|
|
495
|
+
return obj;
|
|
496
|
+
},
|
|
497
|
+
|
|
498
|
+
fromPartial<I extends Exact<DeepPartial<GetCurrentRealmResponse>, I>>(object: I): GetCurrentRealmResponse {
|
|
499
|
+
const message = createBaseGetCurrentRealmResponse();
|
|
500
|
+
message.currentRealm = (object.currentRealm !== undefined && object.currentRealm !== null)
|
|
501
|
+
? EnvironmentRealm.fromPartial(object.currentRealm)
|
|
502
|
+
: undefined;
|
|
503
|
+
return message;
|
|
504
|
+
},
|
|
505
|
+
};
|
|
506
|
+
|
|
507
|
+
function createBaseGetExplorerConfigurationResponse(): GetExplorerConfigurationResponse {
|
|
508
|
+
return { clientUri: "", configurations: {} };
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
export const GetExplorerConfigurationResponse = {
|
|
512
|
+
encode(message: GetExplorerConfigurationResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
513
|
+
if (message.clientUri !== "") {
|
|
514
|
+
writer.uint32(10).string(message.clientUri);
|
|
515
|
+
}
|
|
516
|
+
Object.entries(message.configurations).forEach(([key, value]) => {
|
|
517
|
+
GetExplorerConfigurationResponse_ConfigurationsEntry.encode({ key: key as any, value }, writer.uint32(18).fork())
|
|
518
|
+
.ldelim();
|
|
519
|
+
});
|
|
520
|
+
return writer;
|
|
521
|
+
},
|
|
522
|
+
|
|
523
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetExplorerConfigurationResponse {
|
|
524
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
525
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
526
|
+
const message = createBaseGetExplorerConfigurationResponse();
|
|
527
|
+
while (reader.pos < end) {
|
|
528
|
+
const tag = reader.uint32();
|
|
529
|
+
switch (tag >>> 3) {
|
|
530
|
+
case 1:
|
|
531
|
+
message.clientUri = reader.string();
|
|
532
|
+
break;
|
|
533
|
+
case 2:
|
|
534
|
+
const entry2 = GetExplorerConfigurationResponse_ConfigurationsEntry.decode(reader, reader.uint32());
|
|
535
|
+
if (entry2.value !== undefined) {
|
|
536
|
+
message.configurations[entry2.key] = entry2.value;
|
|
537
|
+
}
|
|
538
|
+
break;
|
|
539
|
+
default:
|
|
540
|
+
reader.skipType(tag & 7);
|
|
541
|
+
break;
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
return message;
|
|
545
|
+
},
|
|
546
|
+
|
|
547
|
+
fromJSON(object: any): GetExplorerConfigurationResponse {
|
|
548
|
+
return {
|
|
549
|
+
clientUri: isSet(object.clientUri) ? String(object.clientUri) : "",
|
|
550
|
+
configurations: isObject(object.configurations)
|
|
551
|
+
? Object.entries(object.configurations).reduce<{ [key: string]: string }>((acc, [key, value]) => {
|
|
552
|
+
acc[key] = String(value);
|
|
553
|
+
return acc;
|
|
554
|
+
}, {})
|
|
555
|
+
: {},
|
|
556
|
+
};
|
|
557
|
+
},
|
|
558
|
+
|
|
559
|
+
toJSON(message: GetExplorerConfigurationResponse): unknown {
|
|
560
|
+
const obj: any = {};
|
|
561
|
+
message.clientUri !== undefined && (obj.clientUri = message.clientUri);
|
|
562
|
+
obj.configurations = {};
|
|
563
|
+
if (message.configurations) {
|
|
564
|
+
Object.entries(message.configurations).forEach(([k, v]) => {
|
|
565
|
+
obj.configurations[k] = v;
|
|
566
|
+
});
|
|
567
|
+
}
|
|
568
|
+
return obj;
|
|
569
|
+
},
|
|
570
|
+
|
|
571
|
+
fromPartial<I extends Exact<DeepPartial<GetExplorerConfigurationResponse>, I>>(
|
|
572
|
+
object: I,
|
|
573
|
+
): GetExplorerConfigurationResponse {
|
|
574
|
+
const message = createBaseGetExplorerConfigurationResponse();
|
|
575
|
+
message.clientUri = object.clientUri ?? "";
|
|
576
|
+
message.configurations = Object.entries(object.configurations ?? {}).reduce<{ [key: string]: string }>(
|
|
577
|
+
(acc, [key, value]) => {
|
|
578
|
+
if (value !== undefined) {
|
|
579
|
+
acc[key] = String(value);
|
|
580
|
+
}
|
|
581
|
+
return acc;
|
|
582
|
+
},
|
|
583
|
+
{},
|
|
584
|
+
);
|
|
585
|
+
return message;
|
|
586
|
+
},
|
|
587
|
+
};
|
|
588
|
+
|
|
589
|
+
function createBaseGetExplorerConfigurationResponse_ConfigurationsEntry(): GetExplorerConfigurationResponse_ConfigurationsEntry {
|
|
590
|
+
return { key: "", value: "" };
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
export const GetExplorerConfigurationResponse_ConfigurationsEntry = {
|
|
594
|
+
encode(
|
|
595
|
+
message: GetExplorerConfigurationResponse_ConfigurationsEntry,
|
|
596
|
+
writer: _m0.Writer = _m0.Writer.create(),
|
|
597
|
+
): _m0.Writer {
|
|
598
|
+
if (message.key !== "") {
|
|
599
|
+
writer.uint32(10).string(message.key);
|
|
600
|
+
}
|
|
601
|
+
if (message.value !== "") {
|
|
602
|
+
writer.uint32(18).string(message.value);
|
|
603
|
+
}
|
|
604
|
+
return writer;
|
|
605
|
+
},
|
|
606
|
+
|
|
607
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetExplorerConfigurationResponse_ConfigurationsEntry {
|
|
608
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
609
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
610
|
+
const message = createBaseGetExplorerConfigurationResponse_ConfigurationsEntry();
|
|
611
|
+
while (reader.pos < end) {
|
|
612
|
+
const tag = reader.uint32();
|
|
613
|
+
switch (tag >>> 3) {
|
|
614
|
+
case 1:
|
|
615
|
+
message.key = reader.string();
|
|
616
|
+
break;
|
|
617
|
+
case 2:
|
|
618
|
+
message.value = reader.string();
|
|
619
|
+
break;
|
|
620
|
+
default:
|
|
621
|
+
reader.skipType(tag & 7);
|
|
622
|
+
break;
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
return message;
|
|
626
|
+
},
|
|
627
|
+
|
|
628
|
+
fromJSON(object: any): GetExplorerConfigurationResponse_ConfigurationsEntry {
|
|
629
|
+
return { key: isSet(object.key) ? String(object.key) : "", value: isSet(object.value) ? String(object.value) : "" };
|
|
630
|
+
},
|
|
631
|
+
|
|
632
|
+
toJSON(message: GetExplorerConfigurationResponse_ConfigurationsEntry): unknown {
|
|
633
|
+
const obj: any = {};
|
|
634
|
+
message.key !== undefined && (obj.key = message.key);
|
|
635
|
+
message.value !== undefined && (obj.value = message.value);
|
|
636
|
+
return obj;
|
|
637
|
+
},
|
|
638
|
+
|
|
639
|
+
fromPartial<I extends Exact<DeepPartial<GetExplorerConfigurationResponse_ConfigurationsEntry>, I>>(
|
|
640
|
+
object: I,
|
|
641
|
+
): GetExplorerConfigurationResponse_ConfigurationsEntry {
|
|
642
|
+
const message = createBaseGetExplorerConfigurationResponse_ConfigurationsEntry();
|
|
643
|
+
message.key = object.key ?? "";
|
|
644
|
+
message.value = object.value ?? "";
|
|
645
|
+
return message;
|
|
646
|
+
},
|
|
647
|
+
};
|
|
648
|
+
|
|
649
|
+
function createBaseGetDecentralandTimeResponse(): GetDecentralandTimeResponse {
|
|
650
|
+
return { seconds: 0 };
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
export const GetDecentralandTimeResponse = {
|
|
654
|
+
encode(message: GetDecentralandTimeResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
655
|
+
if (message.seconds !== 0) {
|
|
656
|
+
writer.uint32(8).int32(message.seconds);
|
|
657
|
+
}
|
|
658
|
+
return writer;
|
|
659
|
+
},
|
|
660
|
+
|
|
661
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetDecentralandTimeResponse {
|
|
662
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
663
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
664
|
+
const message = createBaseGetDecentralandTimeResponse();
|
|
665
|
+
while (reader.pos < end) {
|
|
666
|
+
const tag = reader.uint32();
|
|
667
|
+
switch (tag >>> 3) {
|
|
668
|
+
case 1:
|
|
669
|
+
message.seconds = reader.int32();
|
|
670
|
+
break;
|
|
671
|
+
default:
|
|
672
|
+
reader.skipType(tag & 7);
|
|
673
|
+
break;
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
return message;
|
|
677
|
+
},
|
|
678
|
+
|
|
679
|
+
fromJSON(object: any): GetDecentralandTimeResponse {
|
|
680
|
+
return { seconds: isSet(object.seconds) ? Number(object.seconds) : 0 };
|
|
681
|
+
},
|
|
682
|
+
|
|
683
|
+
toJSON(message: GetDecentralandTimeResponse): unknown {
|
|
684
|
+
const obj: any = {};
|
|
685
|
+
message.seconds !== undefined && (obj.seconds = Math.round(message.seconds));
|
|
686
|
+
return obj;
|
|
687
|
+
},
|
|
688
|
+
|
|
689
|
+
fromPartial<I extends Exact<DeepPartial<GetDecentralandTimeResponse>, I>>(object: I): GetDecentralandTimeResponse {
|
|
690
|
+
const message = createBaseGetDecentralandTimeResponse();
|
|
691
|
+
message.seconds = object.seconds ?? 0;
|
|
692
|
+
return message;
|
|
693
|
+
},
|
|
694
|
+
};
|
|
695
|
+
|
|
696
|
+
function createBaseGetBootstrapDataRequest(): GetBootstrapDataRequest {
|
|
697
|
+
return {};
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
export const GetBootstrapDataRequest = {
|
|
701
|
+
encode(_: GetBootstrapDataRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
702
|
+
return writer;
|
|
703
|
+
},
|
|
704
|
+
|
|
705
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetBootstrapDataRequest {
|
|
706
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
707
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
708
|
+
const message = createBaseGetBootstrapDataRequest();
|
|
709
|
+
while (reader.pos < end) {
|
|
710
|
+
const tag = reader.uint32();
|
|
711
|
+
switch (tag >>> 3) {
|
|
712
|
+
default:
|
|
713
|
+
reader.skipType(tag & 7);
|
|
714
|
+
break;
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
return message;
|
|
718
|
+
},
|
|
719
|
+
|
|
720
|
+
fromJSON(_: any): GetBootstrapDataRequest {
|
|
721
|
+
return {};
|
|
722
|
+
},
|
|
723
|
+
|
|
724
|
+
toJSON(_: GetBootstrapDataRequest): unknown {
|
|
725
|
+
const obj: any = {};
|
|
726
|
+
return obj;
|
|
727
|
+
},
|
|
728
|
+
|
|
729
|
+
fromPartial<I extends Exact<DeepPartial<GetBootstrapDataRequest>, I>>(_: I): GetBootstrapDataRequest {
|
|
730
|
+
const message = createBaseGetBootstrapDataRequest();
|
|
731
|
+
return message;
|
|
732
|
+
},
|
|
733
|
+
};
|
|
734
|
+
|
|
735
|
+
function createBaseIsPreviewModeRequest(): IsPreviewModeRequest {
|
|
736
|
+
return {};
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
export const IsPreviewModeRequest = {
|
|
740
|
+
encode(_: IsPreviewModeRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
741
|
+
return writer;
|
|
742
|
+
},
|
|
743
|
+
|
|
744
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): IsPreviewModeRequest {
|
|
745
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
746
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
747
|
+
const message = createBaseIsPreviewModeRequest();
|
|
748
|
+
while (reader.pos < end) {
|
|
749
|
+
const tag = reader.uint32();
|
|
750
|
+
switch (tag >>> 3) {
|
|
751
|
+
default:
|
|
752
|
+
reader.skipType(tag & 7);
|
|
753
|
+
break;
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
return message;
|
|
757
|
+
},
|
|
758
|
+
|
|
759
|
+
fromJSON(_: any): IsPreviewModeRequest {
|
|
760
|
+
return {};
|
|
761
|
+
},
|
|
762
|
+
|
|
763
|
+
toJSON(_: IsPreviewModeRequest): unknown {
|
|
764
|
+
const obj: any = {};
|
|
765
|
+
return obj;
|
|
766
|
+
},
|
|
767
|
+
|
|
768
|
+
fromPartial<I extends Exact<DeepPartial<IsPreviewModeRequest>, I>>(_: I): IsPreviewModeRequest {
|
|
769
|
+
const message = createBaseIsPreviewModeRequest();
|
|
770
|
+
return message;
|
|
771
|
+
},
|
|
772
|
+
};
|
|
773
|
+
|
|
774
|
+
function createBaseGetPlatformRequest(): GetPlatformRequest {
|
|
775
|
+
return {};
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
export const GetPlatformRequest = {
|
|
779
|
+
encode(_: GetPlatformRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
780
|
+
return writer;
|
|
781
|
+
},
|
|
782
|
+
|
|
783
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetPlatformRequest {
|
|
784
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
785
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
786
|
+
const message = createBaseGetPlatformRequest();
|
|
787
|
+
while (reader.pos < end) {
|
|
788
|
+
const tag = reader.uint32();
|
|
789
|
+
switch (tag >>> 3) {
|
|
790
|
+
default:
|
|
791
|
+
reader.skipType(tag & 7);
|
|
792
|
+
break;
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
return message;
|
|
796
|
+
},
|
|
797
|
+
|
|
798
|
+
fromJSON(_: any): GetPlatformRequest {
|
|
799
|
+
return {};
|
|
800
|
+
},
|
|
801
|
+
|
|
802
|
+
toJSON(_: GetPlatformRequest): unknown {
|
|
803
|
+
const obj: any = {};
|
|
804
|
+
return obj;
|
|
805
|
+
},
|
|
806
|
+
|
|
807
|
+
fromPartial<I extends Exact<DeepPartial<GetPlatformRequest>, I>>(_: I): GetPlatformRequest {
|
|
808
|
+
const message = createBaseGetPlatformRequest();
|
|
809
|
+
return message;
|
|
810
|
+
},
|
|
811
|
+
};
|
|
812
|
+
|
|
813
|
+
function createBaseAreUnsafeRequestAllowedRequest(): AreUnsafeRequestAllowedRequest {
|
|
814
|
+
return {};
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
export const AreUnsafeRequestAllowedRequest = {
|
|
818
|
+
encode(_: AreUnsafeRequestAllowedRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
819
|
+
return writer;
|
|
820
|
+
},
|
|
821
|
+
|
|
822
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AreUnsafeRequestAllowedRequest {
|
|
823
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
824
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
825
|
+
const message = createBaseAreUnsafeRequestAllowedRequest();
|
|
826
|
+
while (reader.pos < end) {
|
|
827
|
+
const tag = reader.uint32();
|
|
828
|
+
switch (tag >>> 3) {
|
|
829
|
+
default:
|
|
830
|
+
reader.skipType(tag & 7);
|
|
831
|
+
break;
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
return message;
|
|
835
|
+
},
|
|
836
|
+
|
|
837
|
+
fromJSON(_: any): AreUnsafeRequestAllowedRequest {
|
|
838
|
+
return {};
|
|
839
|
+
},
|
|
840
|
+
|
|
841
|
+
toJSON(_: AreUnsafeRequestAllowedRequest): unknown {
|
|
842
|
+
const obj: any = {};
|
|
843
|
+
return obj;
|
|
844
|
+
},
|
|
845
|
+
|
|
846
|
+
fromPartial<I extends Exact<DeepPartial<AreUnsafeRequestAllowedRequest>, I>>(_: I): AreUnsafeRequestAllowedRequest {
|
|
847
|
+
const message = createBaseAreUnsafeRequestAllowedRequest();
|
|
848
|
+
return message;
|
|
849
|
+
},
|
|
850
|
+
};
|
|
851
|
+
|
|
852
|
+
function createBaseGetCurrentRealmRequest(): GetCurrentRealmRequest {
|
|
853
|
+
return {};
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
export const GetCurrentRealmRequest = {
|
|
857
|
+
encode(_: GetCurrentRealmRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
858
|
+
return writer;
|
|
859
|
+
},
|
|
860
|
+
|
|
861
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetCurrentRealmRequest {
|
|
862
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
863
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
864
|
+
const message = createBaseGetCurrentRealmRequest();
|
|
865
|
+
while (reader.pos < end) {
|
|
866
|
+
const tag = reader.uint32();
|
|
867
|
+
switch (tag >>> 3) {
|
|
868
|
+
default:
|
|
869
|
+
reader.skipType(tag & 7);
|
|
870
|
+
break;
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
return message;
|
|
874
|
+
},
|
|
875
|
+
|
|
876
|
+
fromJSON(_: any): GetCurrentRealmRequest {
|
|
877
|
+
return {};
|
|
878
|
+
},
|
|
879
|
+
|
|
880
|
+
toJSON(_: GetCurrentRealmRequest): unknown {
|
|
881
|
+
const obj: any = {};
|
|
882
|
+
return obj;
|
|
883
|
+
},
|
|
884
|
+
|
|
885
|
+
fromPartial<I extends Exact<DeepPartial<GetCurrentRealmRequest>, I>>(_: I): GetCurrentRealmRequest {
|
|
886
|
+
const message = createBaseGetCurrentRealmRequest();
|
|
887
|
+
return message;
|
|
888
|
+
},
|
|
889
|
+
};
|
|
890
|
+
|
|
891
|
+
function createBaseGetExplorerConfigurationRequest(): GetExplorerConfigurationRequest {
|
|
892
|
+
return {};
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
export const GetExplorerConfigurationRequest = {
|
|
896
|
+
encode(_: GetExplorerConfigurationRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
897
|
+
return writer;
|
|
898
|
+
},
|
|
899
|
+
|
|
900
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetExplorerConfigurationRequest {
|
|
901
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
902
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
903
|
+
const message = createBaseGetExplorerConfigurationRequest();
|
|
904
|
+
while (reader.pos < end) {
|
|
905
|
+
const tag = reader.uint32();
|
|
906
|
+
switch (tag >>> 3) {
|
|
907
|
+
default:
|
|
908
|
+
reader.skipType(tag & 7);
|
|
909
|
+
break;
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
return message;
|
|
913
|
+
},
|
|
914
|
+
|
|
915
|
+
fromJSON(_: any): GetExplorerConfigurationRequest {
|
|
916
|
+
return {};
|
|
917
|
+
},
|
|
918
|
+
|
|
919
|
+
toJSON(_: GetExplorerConfigurationRequest): unknown {
|
|
920
|
+
const obj: any = {};
|
|
921
|
+
return obj;
|
|
922
|
+
},
|
|
923
|
+
|
|
924
|
+
fromPartial<I extends Exact<DeepPartial<GetExplorerConfigurationRequest>, I>>(_: I): GetExplorerConfigurationRequest {
|
|
925
|
+
const message = createBaseGetExplorerConfigurationRequest();
|
|
926
|
+
return message;
|
|
927
|
+
},
|
|
928
|
+
};
|
|
929
|
+
|
|
930
|
+
function createBaseGetDecentralandTimeRequest(): GetDecentralandTimeRequest {
|
|
931
|
+
return {};
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
export const GetDecentralandTimeRequest = {
|
|
935
|
+
encode(_: GetDecentralandTimeRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
936
|
+
return writer;
|
|
937
|
+
},
|
|
938
|
+
|
|
939
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetDecentralandTimeRequest {
|
|
940
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
941
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
942
|
+
const message = createBaseGetDecentralandTimeRequest();
|
|
943
|
+
while (reader.pos < end) {
|
|
944
|
+
const tag = reader.uint32();
|
|
945
|
+
switch (tag >>> 3) {
|
|
946
|
+
default:
|
|
947
|
+
reader.skipType(tag & 7);
|
|
948
|
+
break;
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
return message;
|
|
952
|
+
},
|
|
953
|
+
|
|
954
|
+
fromJSON(_: any): GetDecentralandTimeRequest {
|
|
955
|
+
return {};
|
|
956
|
+
},
|
|
957
|
+
|
|
958
|
+
toJSON(_: GetDecentralandTimeRequest): unknown {
|
|
959
|
+
const obj: any = {};
|
|
960
|
+
return obj;
|
|
961
|
+
},
|
|
962
|
+
|
|
963
|
+
fromPartial<I extends Exact<DeepPartial<GetDecentralandTimeRequest>, I>>(_: I): GetDecentralandTimeRequest {
|
|
964
|
+
const message = createBaseGetDecentralandTimeRequest();
|
|
965
|
+
return message;
|
|
966
|
+
},
|
|
967
|
+
};
|
|
968
|
+
|
|
969
|
+
export type EnvironmentAPIServiceDefinition = typeof EnvironmentAPIServiceDefinition;
|
|
970
|
+
export const EnvironmentAPIServiceDefinition = {
|
|
971
|
+
name: "EnvironmentAPIService",
|
|
972
|
+
fullName: "EnvironmentAPIService",
|
|
973
|
+
methods: {
|
|
974
|
+
getBootstrapData: {
|
|
975
|
+
name: "GetBootstrapData",
|
|
976
|
+
requestType: GetBootstrapDataRequest,
|
|
977
|
+
requestStream: false,
|
|
978
|
+
responseType: BootstrapDataResponse,
|
|
979
|
+
responseStream: false,
|
|
980
|
+
options: {},
|
|
981
|
+
},
|
|
982
|
+
isPreviewMode: {
|
|
983
|
+
name: "IsPreviewMode",
|
|
984
|
+
requestType: IsPreviewModeRequest,
|
|
985
|
+
requestStream: false,
|
|
986
|
+
responseType: PreviewModeResponse,
|
|
987
|
+
responseStream: false,
|
|
988
|
+
options: {},
|
|
989
|
+
},
|
|
990
|
+
getPlatform: {
|
|
991
|
+
name: "GetPlatform",
|
|
992
|
+
requestType: GetPlatformRequest,
|
|
993
|
+
requestStream: false,
|
|
994
|
+
responseType: GetPlatformResponse,
|
|
995
|
+
responseStream: false,
|
|
996
|
+
options: {},
|
|
997
|
+
},
|
|
998
|
+
areUnsafeRequestAllowed: {
|
|
999
|
+
name: "AreUnsafeRequestAllowed",
|
|
1000
|
+
requestType: AreUnsafeRequestAllowedRequest,
|
|
1001
|
+
requestStream: false,
|
|
1002
|
+
responseType: AreUnsafeRequestAllowedResponse,
|
|
1003
|
+
responseStream: false,
|
|
1004
|
+
options: {},
|
|
1005
|
+
},
|
|
1006
|
+
getCurrentRealm: {
|
|
1007
|
+
name: "GetCurrentRealm",
|
|
1008
|
+
requestType: GetCurrentRealmRequest,
|
|
1009
|
+
requestStream: false,
|
|
1010
|
+
responseType: GetCurrentRealmResponse,
|
|
1011
|
+
responseStream: false,
|
|
1012
|
+
options: {},
|
|
1013
|
+
},
|
|
1014
|
+
getExplorerConfiguration: {
|
|
1015
|
+
name: "GetExplorerConfiguration",
|
|
1016
|
+
requestType: GetExplorerConfigurationRequest,
|
|
1017
|
+
requestStream: false,
|
|
1018
|
+
responseType: GetExplorerConfigurationResponse,
|
|
1019
|
+
responseStream: false,
|
|
1020
|
+
options: {},
|
|
1021
|
+
},
|
|
1022
|
+
getDecentralandTime: {
|
|
1023
|
+
name: "GetDecentralandTime",
|
|
1024
|
+
requestType: GetDecentralandTimeRequest,
|
|
1025
|
+
requestStream: false,
|
|
1026
|
+
responseType: GetDecentralandTimeResponse,
|
|
1027
|
+
responseStream: false,
|
|
1028
|
+
options: {},
|
|
1029
|
+
},
|
|
1030
|
+
},
|
|
1031
|
+
} as const;
|
|
1032
|
+
|
|
1033
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
1034
|
+
|
|
1035
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
1036
|
+
: T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
1037
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
1038
|
+
: Partial<T>;
|
|
1039
|
+
|
|
1040
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
1041
|
+
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
1042
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
1043
|
+
|
|
1044
|
+
function isObject(value: any): boolean {
|
|
1045
|
+
return typeof value === "object" && value !== null;
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
function isSet(value: any): boolean {
|
|
1049
|
+
return value !== null && value !== undefined;
|
|
1050
|
+
}
|