@dcl/protocol 1.0.0-4493564897.commit-c858f8a → 1.0.0-4596906552.commit-18a5668

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.
Files changed (100) hide show
  1. package/out-js/decentraland/bff/authentication_service.gen.d.ts +2 -6
  2. package/out-js/decentraland/bff/authentication_service.gen.js +2 -2
  3. package/out-js/decentraland/bff/authentication_service.gen.js.map +1 -1
  4. package/out-js/decentraland/bff/comms_director_service.gen.d.ts +2 -6
  5. package/out-js/decentraland/bff/comms_director_service.gen.js +2 -2
  6. package/out-js/decentraland/bff/comms_director_service.gen.js.map +1 -1
  7. package/out-js/decentraland/bff/comms_service.gen.d.ts +7 -21
  8. package/out-js/decentraland/bff/comms_service.gen.js +7 -7
  9. package/out-js/decentraland/bff/comms_service.gen.js.map +1 -1
  10. package/out-js/decentraland/bff/http_endpoints.gen.d.ts +1 -3
  11. package/out-js/decentraland/bff/http_endpoints.gen.js +1 -1
  12. package/out-js/decentraland/bff/http_endpoints.gen.js.map +1 -1
  13. package/out-js/decentraland/bff/topics_service.gen.d.ts +3 -9
  14. package/out-js/decentraland/bff/topics_service.gen.js +3 -3
  15. package/out-js/decentraland/bff/topics_service.gen.js.map +1 -1
  16. package/out-js/decentraland/kernel/apis/communications_controller.gen.d.ts +1 -3
  17. package/out-js/decentraland/kernel/apis/communications_controller.gen.js +1 -1
  18. package/out-js/decentraland/kernel/apis/communications_controller.gen.js.map +1 -1
  19. package/out-js/decentraland/kernel/apis/dev_tools.gen.d.ts +1 -3
  20. package/out-js/decentraland/kernel/apis/dev_tools.gen.js +1 -1
  21. package/out-js/decentraland/kernel/apis/dev_tools.gen.js.map +1 -1
  22. package/out-js/decentraland/kernel/apis/engine_api.gen.d.ts +6 -18
  23. package/out-js/decentraland/kernel/apis/engine_api.gen.js +6 -6
  24. package/out-js/decentraland/kernel/apis/engine_api.gen.js.map +1 -1
  25. package/out-js/decentraland/kernel/apis/environment_api.gen.d.ts +7 -21
  26. package/out-js/decentraland/kernel/apis/environment_api.gen.js +7 -7
  27. package/out-js/decentraland/kernel/apis/environment_api.gen.js.map +1 -1
  28. package/out-js/decentraland/kernel/apis/ethereum_controller.gen.d.ts +5 -15
  29. package/out-js/decentraland/kernel/apis/ethereum_controller.gen.js +5 -5
  30. package/out-js/decentraland/kernel/apis/ethereum_controller.gen.js.map +1 -1
  31. package/out-js/decentraland/kernel/apis/parcel_identity.gen.d.ts +3 -9
  32. package/out-js/decentraland/kernel/apis/parcel_identity.gen.js +3 -3
  33. package/out-js/decentraland/kernel/apis/parcel_identity.gen.js.map +1 -1
  34. package/out-js/decentraland/kernel/apis/permissions.gen.d.ts +2 -6
  35. package/out-js/decentraland/kernel/apis/permissions.gen.js +2 -2
  36. package/out-js/decentraland/kernel/apis/permissions.gen.js.map +1 -1
  37. package/out-js/decentraland/kernel/apis/players.gen.d.ts +3 -9
  38. package/out-js/decentraland/kernel/apis/players.gen.js +3 -3
  39. package/out-js/decentraland/kernel/apis/players.gen.js.map +1 -1
  40. package/out-js/decentraland/kernel/apis/portable_experiences.gen.d.ts +4 -12
  41. package/out-js/decentraland/kernel/apis/portable_experiences.gen.js +4 -4
  42. package/out-js/decentraland/kernel/apis/portable_experiences.gen.js.map +1 -1
  43. package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +7 -21
  44. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +7 -7
  45. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -1
  46. package/out-js/decentraland/kernel/apis/runtime.gen.d.ts +2 -6
  47. package/out-js/decentraland/kernel/apis/runtime.gen.js +2 -2
  48. package/out-js/decentraland/kernel/apis/runtime.gen.js.map +1 -1
  49. package/out-js/decentraland/kernel/apis/scene.gen.d.ts +1 -3
  50. package/out-js/decentraland/kernel/apis/scene.gen.js +1 -1
  51. package/out-js/decentraland/kernel/apis/scene.gen.js.map +1 -1
  52. package/out-js/decentraland/kernel/apis/signed_fetch.gen.d.ts +1 -3
  53. package/out-js/decentraland/kernel/apis/signed_fetch.gen.js +1 -1
  54. package/out-js/decentraland/kernel/apis/signed_fetch.gen.js.map +1 -1
  55. package/out-js/decentraland/kernel/apis/social_controller.gen.d.ts +1 -3
  56. package/out-js/decentraland/kernel/apis/social_controller.gen.js +1 -1
  57. package/out-js/decentraland/kernel/apis/social_controller.gen.js.map +1 -1
  58. package/out-js/decentraland/kernel/apis/testing.gen.d.ts +426 -0
  59. package/out-js/decentraland/kernel/apis/testing.gen.js +603 -0
  60. package/out-js/decentraland/kernel/apis/testing.gen.js.map +1 -0
  61. package/out-js/decentraland/kernel/apis/user_action_module.gen.d.ts +1 -3
  62. package/out-js/decentraland/kernel/apis/user_action_module.gen.js +1 -1
  63. package/out-js/decentraland/kernel/apis/user_action_module.gen.js.map +1 -1
  64. package/out-js/decentraland/kernel/apis/user_identity.gen.d.ts +2 -6
  65. package/out-js/decentraland/kernel/apis/user_identity.gen.js +2 -2
  66. package/out-js/decentraland/kernel/apis/user_identity.gen.js.map +1 -1
  67. package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +1 -2
  68. package/out-js/decentraland/sdk/components/mesh_collider.gen.js +5 -6
  69. package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
  70. package/out-js/decentraland/social/friendships/friendships.gen.d.ts +4 -12
  71. package/out-js/decentraland/social/friendships/friendships.gen.js +4 -4
  72. package/out-js/decentraland/social/friendships/friendships.gen.js.map +1 -1
  73. package/out-ts/decentraland/bff/authentication_service.gen.ts +2 -2
  74. package/out-ts/decentraland/bff/comms_director_service.gen.ts +2 -2
  75. package/out-ts/decentraland/bff/comms_service.gen.ts +7 -7
  76. package/out-ts/decentraland/bff/http_endpoints.gen.ts +1 -1
  77. package/out-ts/decentraland/bff/topics_service.gen.ts +3 -3
  78. package/out-ts/decentraland/kernel/apis/communications_controller.gen.ts +1 -1
  79. package/out-ts/decentraland/kernel/apis/dev_tools.gen.ts +1 -1
  80. package/out-ts/decentraland/kernel/apis/engine_api.gen.ts +6 -6
  81. package/out-ts/decentraland/kernel/apis/environment_api.gen.ts +7 -7
  82. package/out-ts/decentraland/kernel/apis/ethereum_controller.gen.ts +5 -5
  83. package/out-ts/decentraland/kernel/apis/parcel_identity.gen.ts +3 -3
  84. package/out-ts/decentraland/kernel/apis/permissions.gen.ts +2 -2
  85. package/out-ts/decentraland/kernel/apis/players.gen.ts +3 -3
  86. package/out-ts/decentraland/kernel/apis/portable_experiences.gen.ts +4 -4
  87. package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +7 -7
  88. package/out-ts/decentraland/kernel/apis/runtime.gen.ts +2 -2
  89. package/out-ts/decentraland/kernel/apis/scene.gen.ts +1 -1
  90. package/out-ts/decentraland/kernel/apis/signed_fetch.gen.ts +1 -1
  91. package/out-ts/decentraland/kernel/apis/social_controller.gen.ts +1 -1
  92. package/out-ts/decentraland/kernel/apis/testing.gen.ts +746 -0
  93. package/out-ts/decentraland/kernel/apis/user_action_module.gen.ts +1 -1
  94. package/out-ts/decentraland/kernel/apis/user_identity.gen.ts +2 -2
  95. package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +5 -6
  96. package/out-ts/decentraland/social/friendships/friendships.gen.ts +4 -4
  97. package/package.json +2 -2
  98. package/proto/decentraland/kernel/apis/testing.proto +55 -0
  99. package/proto/decentraland/sdk/components/mesh_collider.proto +1 -1
  100. package/public/sdk-apis.proto +1 -0
@@ -0,0 +1,746 @@
1
+ /* eslint-disable */
2
+ import _m0 from "protobufjs/minimal";
3
+
4
+ export const protobufPackage = "decentraland.kernel.apis";
5
+
6
+ export interface TestResult {
7
+ name: string;
8
+ ok: boolean;
9
+ error?: string | undefined;
10
+ stack?:
11
+ | string
12
+ | undefined;
13
+ /** how many ADR-148 ticks were spent running this test */
14
+ totalFrames: number;
15
+ /** total time in seconds spent running this test */
16
+ totalTime: number;
17
+ }
18
+
19
+ export interface TestResultResponse {
20
+ }
21
+
22
+ export interface TestPlan {
23
+ tests: TestPlan_TestPlanEntry[];
24
+ }
25
+
26
+ export interface TestPlan_TestPlanEntry {
27
+ name: string;
28
+ }
29
+
30
+ export interface TestPlanResponse {
31
+ }
32
+
33
+ export interface SetCameraPositionTestCommand {
34
+ position: SetCameraPositionTestCommand_Vector3 | undefined;
35
+ rotation: SetCameraPositionTestCommand_Quaternion | undefined;
36
+ }
37
+
38
+ export interface SetCameraPositionTestCommand_Vector3 {
39
+ x: number;
40
+ y: number;
41
+ z: number;
42
+ }
43
+
44
+ export interface SetCameraPositionTestCommand_Quaternion {
45
+ x: number;
46
+ y: number;
47
+ z: number;
48
+ w: number;
49
+ }
50
+
51
+ export interface SetCameraTransformTestCommandResponse {
52
+ }
53
+
54
+ function createBaseTestResult(): TestResult {
55
+ return { name: "", ok: false, error: undefined, stack: undefined, totalFrames: 0, totalTime: 0 };
56
+ }
57
+
58
+ export const TestResult = {
59
+ encode(message: TestResult, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
60
+ if (message.name !== "") {
61
+ writer.uint32(10).string(message.name);
62
+ }
63
+ if (message.ok === true) {
64
+ writer.uint32(16).bool(message.ok);
65
+ }
66
+ if (message.error !== undefined) {
67
+ writer.uint32(26).string(message.error);
68
+ }
69
+ if (message.stack !== undefined) {
70
+ writer.uint32(34).string(message.stack);
71
+ }
72
+ if (message.totalFrames !== 0) {
73
+ writer.uint32(40).uint32(message.totalFrames);
74
+ }
75
+ if (message.totalTime !== 0) {
76
+ writer.uint32(53).float(message.totalTime);
77
+ }
78
+ return writer;
79
+ },
80
+
81
+ decode(input: _m0.Reader | Uint8Array, length?: number): TestResult {
82
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
83
+ let end = length === undefined ? reader.len : reader.pos + length;
84
+ const message = createBaseTestResult();
85
+ while (reader.pos < end) {
86
+ const tag = reader.uint32();
87
+ switch (tag >>> 3) {
88
+ case 1:
89
+ if (tag != 10) {
90
+ break;
91
+ }
92
+
93
+ message.name = reader.string();
94
+ continue;
95
+ case 2:
96
+ if (tag != 16) {
97
+ break;
98
+ }
99
+
100
+ message.ok = reader.bool();
101
+ continue;
102
+ case 3:
103
+ if (tag != 26) {
104
+ break;
105
+ }
106
+
107
+ message.error = reader.string();
108
+ continue;
109
+ case 4:
110
+ if (tag != 34) {
111
+ break;
112
+ }
113
+
114
+ message.stack = reader.string();
115
+ continue;
116
+ case 5:
117
+ if (tag != 40) {
118
+ break;
119
+ }
120
+
121
+ message.totalFrames = reader.uint32();
122
+ continue;
123
+ case 6:
124
+ if (tag != 53) {
125
+ break;
126
+ }
127
+
128
+ message.totalTime = reader.float();
129
+ continue;
130
+ }
131
+ if ((tag & 7) == 4 || tag == 0) {
132
+ break;
133
+ }
134
+ reader.skipType(tag & 7);
135
+ }
136
+ return message;
137
+ },
138
+
139
+ fromJSON(object: any): TestResult {
140
+ return {
141
+ name: isSet(object.name) ? String(object.name) : "",
142
+ ok: isSet(object.ok) ? Boolean(object.ok) : false,
143
+ error: isSet(object.error) ? String(object.error) : undefined,
144
+ stack: isSet(object.stack) ? String(object.stack) : undefined,
145
+ totalFrames: isSet(object.totalFrames) ? Number(object.totalFrames) : 0,
146
+ totalTime: isSet(object.totalTime) ? Number(object.totalTime) : 0,
147
+ };
148
+ },
149
+
150
+ toJSON(message: TestResult): unknown {
151
+ const obj: any = {};
152
+ message.name !== undefined && (obj.name = message.name);
153
+ message.ok !== undefined && (obj.ok = message.ok);
154
+ message.error !== undefined && (obj.error = message.error);
155
+ message.stack !== undefined && (obj.stack = message.stack);
156
+ message.totalFrames !== undefined && (obj.totalFrames = Math.round(message.totalFrames));
157
+ message.totalTime !== undefined && (obj.totalTime = message.totalTime);
158
+ return obj;
159
+ },
160
+
161
+ create<I extends Exact<DeepPartial<TestResult>, I>>(base?: I): TestResult {
162
+ return TestResult.fromPartial(base ?? {});
163
+ },
164
+
165
+ fromPartial<I extends Exact<DeepPartial<TestResult>, I>>(object: I): TestResult {
166
+ const message = createBaseTestResult();
167
+ message.name = object.name ?? "";
168
+ message.ok = object.ok ?? false;
169
+ message.error = object.error ?? undefined;
170
+ message.stack = object.stack ?? undefined;
171
+ message.totalFrames = object.totalFrames ?? 0;
172
+ message.totalTime = object.totalTime ?? 0;
173
+ return message;
174
+ },
175
+ };
176
+
177
+ function createBaseTestResultResponse(): TestResultResponse {
178
+ return {};
179
+ }
180
+
181
+ export const TestResultResponse = {
182
+ encode(_: TestResultResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
183
+ return writer;
184
+ },
185
+
186
+ decode(input: _m0.Reader | Uint8Array, length?: number): TestResultResponse {
187
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
188
+ let end = length === undefined ? reader.len : reader.pos + length;
189
+ const message = createBaseTestResultResponse();
190
+ while (reader.pos < end) {
191
+ const tag = reader.uint32();
192
+ switch (tag >>> 3) {
193
+ }
194
+ if ((tag & 7) == 4 || tag == 0) {
195
+ break;
196
+ }
197
+ reader.skipType(tag & 7);
198
+ }
199
+ return message;
200
+ },
201
+
202
+ fromJSON(_: any): TestResultResponse {
203
+ return {};
204
+ },
205
+
206
+ toJSON(_: TestResultResponse): unknown {
207
+ const obj: any = {};
208
+ return obj;
209
+ },
210
+
211
+ create<I extends Exact<DeepPartial<TestResultResponse>, I>>(base?: I): TestResultResponse {
212
+ return TestResultResponse.fromPartial(base ?? {});
213
+ },
214
+
215
+ fromPartial<I extends Exact<DeepPartial<TestResultResponse>, I>>(_: I): TestResultResponse {
216
+ const message = createBaseTestResultResponse();
217
+ return message;
218
+ },
219
+ };
220
+
221
+ function createBaseTestPlan(): TestPlan {
222
+ return { tests: [] };
223
+ }
224
+
225
+ export const TestPlan = {
226
+ encode(message: TestPlan, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
227
+ for (const v of message.tests) {
228
+ TestPlan_TestPlanEntry.encode(v!, writer.uint32(10).fork()).ldelim();
229
+ }
230
+ return writer;
231
+ },
232
+
233
+ decode(input: _m0.Reader | Uint8Array, length?: number): TestPlan {
234
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
235
+ let end = length === undefined ? reader.len : reader.pos + length;
236
+ const message = createBaseTestPlan();
237
+ while (reader.pos < end) {
238
+ const tag = reader.uint32();
239
+ switch (tag >>> 3) {
240
+ case 1:
241
+ if (tag != 10) {
242
+ break;
243
+ }
244
+
245
+ message.tests.push(TestPlan_TestPlanEntry.decode(reader, reader.uint32()));
246
+ continue;
247
+ }
248
+ if ((tag & 7) == 4 || tag == 0) {
249
+ break;
250
+ }
251
+ reader.skipType(tag & 7);
252
+ }
253
+ return message;
254
+ },
255
+
256
+ fromJSON(object: any): TestPlan {
257
+ return {
258
+ tests: Array.isArray(object?.tests) ? object.tests.map((e: any) => TestPlan_TestPlanEntry.fromJSON(e)) : [],
259
+ };
260
+ },
261
+
262
+ toJSON(message: TestPlan): unknown {
263
+ const obj: any = {};
264
+ if (message.tests) {
265
+ obj.tests = message.tests.map((e) => e ? TestPlan_TestPlanEntry.toJSON(e) : undefined);
266
+ } else {
267
+ obj.tests = [];
268
+ }
269
+ return obj;
270
+ },
271
+
272
+ create<I extends Exact<DeepPartial<TestPlan>, I>>(base?: I): TestPlan {
273
+ return TestPlan.fromPartial(base ?? {});
274
+ },
275
+
276
+ fromPartial<I extends Exact<DeepPartial<TestPlan>, I>>(object: I): TestPlan {
277
+ const message = createBaseTestPlan();
278
+ message.tests = object.tests?.map((e) => TestPlan_TestPlanEntry.fromPartial(e)) || [];
279
+ return message;
280
+ },
281
+ };
282
+
283
+ function createBaseTestPlan_TestPlanEntry(): TestPlan_TestPlanEntry {
284
+ return { name: "" };
285
+ }
286
+
287
+ export const TestPlan_TestPlanEntry = {
288
+ encode(message: TestPlan_TestPlanEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
289
+ if (message.name !== "") {
290
+ writer.uint32(10).string(message.name);
291
+ }
292
+ return writer;
293
+ },
294
+
295
+ decode(input: _m0.Reader | Uint8Array, length?: number): TestPlan_TestPlanEntry {
296
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
297
+ let end = length === undefined ? reader.len : reader.pos + length;
298
+ const message = createBaseTestPlan_TestPlanEntry();
299
+ while (reader.pos < end) {
300
+ const tag = reader.uint32();
301
+ switch (tag >>> 3) {
302
+ case 1:
303
+ if (tag != 10) {
304
+ break;
305
+ }
306
+
307
+ message.name = reader.string();
308
+ continue;
309
+ }
310
+ if ((tag & 7) == 4 || tag == 0) {
311
+ break;
312
+ }
313
+ reader.skipType(tag & 7);
314
+ }
315
+ return message;
316
+ },
317
+
318
+ fromJSON(object: any): TestPlan_TestPlanEntry {
319
+ return { name: isSet(object.name) ? String(object.name) : "" };
320
+ },
321
+
322
+ toJSON(message: TestPlan_TestPlanEntry): unknown {
323
+ const obj: any = {};
324
+ message.name !== undefined && (obj.name = message.name);
325
+ return obj;
326
+ },
327
+
328
+ create<I extends Exact<DeepPartial<TestPlan_TestPlanEntry>, I>>(base?: I): TestPlan_TestPlanEntry {
329
+ return TestPlan_TestPlanEntry.fromPartial(base ?? {});
330
+ },
331
+
332
+ fromPartial<I extends Exact<DeepPartial<TestPlan_TestPlanEntry>, I>>(object: I): TestPlan_TestPlanEntry {
333
+ const message = createBaseTestPlan_TestPlanEntry();
334
+ message.name = object.name ?? "";
335
+ return message;
336
+ },
337
+ };
338
+
339
+ function createBaseTestPlanResponse(): TestPlanResponse {
340
+ return {};
341
+ }
342
+
343
+ export const TestPlanResponse = {
344
+ encode(_: TestPlanResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
345
+ return writer;
346
+ },
347
+
348
+ decode(input: _m0.Reader | Uint8Array, length?: number): TestPlanResponse {
349
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
350
+ let end = length === undefined ? reader.len : reader.pos + length;
351
+ const message = createBaseTestPlanResponse();
352
+ while (reader.pos < end) {
353
+ const tag = reader.uint32();
354
+ switch (tag >>> 3) {
355
+ }
356
+ if ((tag & 7) == 4 || tag == 0) {
357
+ break;
358
+ }
359
+ reader.skipType(tag & 7);
360
+ }
361
+ return message;
362
+ },
363
+
364
+ fromJSON(_: any): TestPlanResponse {
365
+ return {};
366
+ },
367
+
368
+ toJSON(_: TestPlanResponse): unknown {
369
+ const obj: any = {};
370
+ return obj;
371
+ },
372
+
373
+ create<I extends Exact<DeepPartial<TestPlanResponse>, I>>(base?: I): TestPlanResponse {
374
+ return TestPlanResponse.fromPartial(base ?? {});
375
+ },
376
+
377
+ fromPartial<I extends Exact<DeepPartial<TestPlanResponse>, I>>(_: I): TestPlanResponse {
378
+ const message = createBaseTestPlanResponse();
379
+ return message;
380
+ },
381
+ };
382
+
383
+ function createBaseSetCameraPositionTestCommand(): SetCameraPositionTestCommand {
384
+ return { position: undefined, rotation: undefined };
385
+ }
386
+
387
+ export const SetCameraPositionTestCommand = {
388
+ encode(message: SetCameraPositionTestCommand, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
389
+ if (message.position !== undefined) {
390
+ SetCameraPositionTestCommand_Vector3.encode(message.position, writer.uint32(10).fork()).ldelim();
391
+ }
392
+ if (message.rotation !== undefined) {
393
+ SetCameraPositionTestCommand_Quaternion.encode(message.rotation, writer.uint32(18).fork()).ldelim();
394
+ }
395
+ return writer;
396
+ },
397
+
398
+ decode(input: _m0.Reader | Uint8Array, length?: number): SetCameraPositionTestCommand {
399
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
400
+ let end = length === undefined ? reader.len : reader.pos + length;
401
+ const message = createBaseSetCameraPositionTestCommand();
402
+ while (reader.pos < end) {
403
+ const tag = reader.uint32();
404
+ switch (tag >>> 3) {
405
+ case 1:
406
+ if (tag != 10) {
407
+ break;
408
+ }
409
+
410
+ message.position = SetCameraPositionTestCommand_Vector3.decode(reader, reader.uint32());
411
+ continue;
412
+ case 2:
413
+ if (tag != 18) {
414
+ break;
415
+ }
416
+
417
+ message.rotation = SetCameraPositionTestCommand_Quaternion.decode(reader, reader.uint32());
418
+ continue;
419
+ }
420
+ if ((tag & 7) == 4 || tag == 0) {
421
+ break;
422
+ }
423
+ reader.skipType(tag & 7);
424
+ }
425
+ return message;
426
+ },
427
+
428
+ fromJSON(object: any): SetCameraPositionTestCommand {
429
+ return {
430
+ position: isSet(object.position) ? SetCameraPositionTestCommand_Vector3.fromJSON(object.position) : undefined,
431
+ rotation: isSet(object.rotation) ? SetCameraPositionTestCommand_Quaternion.fromJSON(object.rotation) : undefined,
432
+ };
433
+ },
434
+
435
+ toJSON(message: SetCameraPositionTestCommand): unknown {
436
+ const obj: any = {};
437
+ message.position !== undefined &&
438
+ (obj.position = message.position ? SetCameraPositionTestCommand_Vector3.toJSON(message.position) : undefined);
439
+ message.rotation !== undefined &&
440
+ (obj.rotation = message.rotation ? SetCameraPositionTestCommand_Quaternion.toJSON(message.rotation) : undefined);
441
+ return obj;
442
+ },
443
+
444
+ create<I extends Exact<DeepPartial<SetCameraPositionTestCommand>, I>>(base?: I): SetCameraPositionTestCommand {
445
+ return SetCameraPositionTestCommand.fromPartial(base ?? {});
446
+ },
447
+
448
+ fromPartial<I extends Exact<DeepPartial<SetCameraPositionTestCommand>, I>>(object: I): SetCameraPositionTestCommand {
449
+ const message = createBaseSetCameraPositionTestCommand();
450
+ message.position = (object.position !== undefined && object.position !== null)
451
+ ? SetCameraPositionTestCommand_Vector3.fromPartial(object.position)
452
+ : undefined;
453
+ message.rotation = (object.rotation !== undefined && object.rotation !== null)
454
+ ? SetCameraPositionTestCommand_Quaternion.fromPartial(object.rotation)
455
+ : undefined;
456
+ return message;
457
+ },
458
+ };
459
+
460
+ function createBaseSetCameraPositionTestCommand_Vector3(): SetCameraPositionTestCommand_Vector3 {
461
+ return { x: 0, y: 0, z: 0 };
462
+ }
463
+
464
+ export const SetCameraPositionTestCommand_Vector3 = {
465
+ encode(message: SetCameraPositionTestCommand_Vector3, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
466
+ if (message.x !== 0) {
467
+ writer.uint32(13).float(message.x);
468
+ }
469
+ if (message.y !== 0) {
470
+ writer.uint32(21).float(message.y);
471
+ }
472
+ if (message.z !== 0) {
473
+ writer.uint32(29).float(message.z);
474
+ }
475
+ return writer;
476
+ },
477
+
478
+ decode(input: _m0.Reader | Uint8Array, length?: number): SetCameraPositionTestCommand_Vector3 {
479
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
480
+ let end = length === undefined ? reader.len : reader.pos + length;
481
+ const message = createBaseSetCameraPositionTestCommand_Vector3();
482
+ while (reader.pos < end) {
483
+ const tag = reader.uint32();
484
+ switch (tag >>> 3) {
485
+ case 1:
486
+ if (tag != 13) {
487
+ break;
488
+ }
489
+
490
+ message.x = reader.float();
491
+ continue;
492
+ case 2:
493
+ if (tag != 21) {
494
+ break;
495
+ }
496
+
497
+ message.y = reader.float();
498
+ continue;
499
+ case 3:
500
+ if (tag != 29) {
501
+ break;
502
+ }
503
+
504
+ message.z = reader.float();
505
+ continue;
506
+ }
507
+ if ((tag & 7) == 4 || tag == 0) {
508
+ break;
509
+ }
510
+ reader.skipType(tag & 7);
511
+ }
512
+ return message;
513
+ },
514
+
515
+ fromJSON(object: any): SetCameraPositionTestCommand_Vector3 {
516
+ return {
517
+ x: isSet(object.x) ? Number(object.x) : 0,
518
+ y: isSet(object.y) ? Number(object.y) : 0,
519
+ z: isSet(object.z) ? Number(object.z) : 0,
520
+ };
521
+ },
522
+
523
+ toJSON(message: SetCameraPositionTestCommand_Vector3): unknown {
524
+ const obj: any = {};
525
+ message.x !== undefined && (obj.x = message.x);
526
+ message.y !== undefined && (obj.y = message.y);
527
+ message.z !== undefined && (obj.z = message.z);
528
+ return obj;
529
+ },
530
+
531
+ create<I extends Exact<DeepPartial<SetCameraPositionTestCommand_Vector3>, I>>(
532
+ base?: I,
533
+ ): SetCameraPositionTestCommand_Vector3 {
534
+ return SetCameraPositionTestCommand_Vector3.fromPartial(base ?? {});
535
+ },
536
+
537
+ fromPartial<I extends Exact<DeepPartial<SetCameraPositionTestCommand_Vector3>, I>>(
538
+ object: I,
539
+ ): SetCameraPositionTestCommand_Vector3 {
540
+ const message = createBaseSetCameraPositionTestCommand_Vector3();
541
+ message.x = object.x ?? 0;
542
+ message.y = object.y ?? 0;
543
+ message.z = object.z ?? 0;
544
+ return message;
545
+ },
546
+ };
547
+
548
+ function createBaseSetCameraPositionTestCommand_Quaternion(): SetCameraPositionTestCommand_Quaternion {
549
+ return { x: 0, y: 0, z: 0, w: 0 };
550
+ }
551
+
552
+ export const SetCameraPositionTestCommand_Quaternion = {
553
+ encode(message: SetCameraPositionTestCommand_Quaternion, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
554
+ if (message.x !== 0) {
555
+ writer.uint32(13).float(message.x);
556
+ }
557
+ if (message.y !== 0) {
558
+ writer.uint32(21).float(message.y);
559
+ }
560
+ if (message.z !== 0) {
561
+ writer.uint32(29).float(message.z);
562
+ }
563
+ if (message.w !== 0) {
564
+ writer.uint32(37).float(message.w);
565
+ }
566
+ return writer;
567
+ },
568
+
569
+ decode(input: _m0.Reader | Uint8Array, length?: number): SetCameraPositionTestCommand_Quaternion {
570
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
571
+ let end = length === undefined ? reader.len : reader.pos + length;
572
+ const message = createBaseSetCameraPositionTestCommand_Quaternion();
573
+ while (reader.pos < end) {
574
+ const tag = reader.uint32();
575
+ switch (tag >>> 3) {
576
+ case 1:
577
+ if (tag != 13) {
578
+ break;
579
+ }
580
+
581
+ message.x = reader.float();
582
+ continue;
583
+ case 2:
584
+ if (tag != 21) {
585
+ break;
586
+ }
587
+
588
+ message.y = reader.float();
589
+ continue;
590
+ case 3:
591
+ if (tag != 29) {
592
+ break;
593
+ }
594
+
595
+ message.z = reader.float();
596
+ continue;
597
+ case 4:
598
+ if (tag != 37) {
599
+ break;
600
+ }
601
+
602
+ message.w = reader.float();
603
+ continue;
604
+ }
605
+ if ((tag & 7) == 4 || tag == 0) {
606
+ break;
607
+ }
608
+ reader.skipType(tag & 7);
609
+ }
610
+ return message;
611
+ },
612
+
613
+ fromJSON(object: any): SetCameraPositionTestCommand_Quaternion {
614
+ return {
615
+ x: isSet(object.x) ? Number(object.x) : 0,
616
+ y: isSet(object.y) ? Number(object.y) : 0,
617
+ z: isSet(object.z) ? Number(object.z) : 0,
618
+ w: isSet(object.w) ? Number(object.w) : 0,
619
+ };
620
+ },
621
+
622
+ toJSON(message: SetCameraPositionTestCommand_Quaternion): unknown {
623
+ const obj: any = {};
624
+ message.x !== undefined && (obj.x = message.x);
625
+ message.y !== undefined && (obj.y = message.y);
626
+ message.z !== undefined && (obj.z = message.z);
627
+ message.w !== undefined && (obj.w = message.w);
628
+ return obj;
629
+ },
630
+
631
+ create<I extends Exact<DeepPartial<SetCameraPositionTestCommand_Quaternion>, I>>(
632
+ base?: I,
633
+ ): SetCameraPositionTestCommand_Quaternion {
634
+ return SetCameraPositionTestCommand_Quaternion.fromPartial(base ?? {});
635
+ },
636
+
637
+ fromPartial<I extends Exact<DeepPartial<SetCameraPositionTestCommand_Quaternion>, I>>(
638
+ object: I,
639
+ ): SetCameraPositionTestCommand_Quaternion {
640
+ const message = createBaseSetCameraPositionTestCommand_Quaternion();
641
+ message.x = object.x ?? 0;
642
+ message.y = object.y ?? 0;
643
+ message.z = object.z ?? 0;
644
+ message.w = object.w ?? 0;
645
+ return message;
646
+ },
647
+ };
648
+
649
+ function createBaseSetCameraTransformTestCommandResponse(): SetCameraTransformTestCommandResponse {
650
+ return {};
651
+ }
652
+
653
+ export const SetCameraTransformTestCommandResponse = {
654
+ encode(_: SetCameraTransformTestCommandResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
655
+ return writer;
656
+ },
657
+
658
+ decode(input: _m0.Reader | Uint8Array, length?: number): SetCameraTransformTestCommandResponse {
659
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
660
+ let end = length === undefined ? reader.len : reader.pos + length;
661
+ const message = createBaseSetCameraTransformTestCommandResponse();
662
+ while (reader.pos < end) {
663
+ const tag = reader.uint32();
664
+ switch (tag >>> 3) {
665
+ }
666
+ if ((tag & 7) == 4 || tag == 0) {
667
+ break;
668
+ }
669
+ reader.skipType(tag & 7);
670
+ }
671
+ return message;
672
+ },
673
+
674
+ fromJSON(_: any): SetCameraTransformTestCommandResponse {
675
+ return {};
676
+ },
677
+
678
+ toJSON(_: SetCameraTransformTestCommandResponse): unknown {
679
+ const obj: any = {};
680
+ return obj;
681
+ },
682
+
683
+ create<I extends Exact<DeepPartial<SetCameraTransformTestCommandResponse>, I>>(
684
+ base?: I,
685
+ ): SetCameraTransformTestCommandResponse {
686
+ return SetCameraTransformTestCommandResponse.fromPartial(base ?? {});
687
+ },
688
+
689
+ fromPartial<I extends Exact<DeepPartial<SetCameraTransformTestCommandResponse>, I>>(
690
+ _: I,
691
+ ): SetCameraTransformTestCommandResponse {
692
+ const message = createBaseSetCameraTransformTestCommandResponse();
693
+ return message;
694
+ },
695
+ };
696
+
697
+ export type TestingServiceDefinition = typeof TestingServiceDefinition;
698
+ export const TestingServiceDefinition = {
699
+ name: "TestingService",
700
+ fullName: "decentraland.kernel.apis.TestingService",
701
+ methods: {
702
+ /** sends a test result to the test runner */
703
+ logTestResult: {
704
+ name: "LogTestResult",
705
+ requestType: TestResult,
706
+ requestStream: false,
707
+ responseType: TestResultResponse,
708
+ responseStream: false,
709
+ options: {},
710
+ },
711
+ /** send a list of all planned tests to the test runner */
712
+ plan: {
713
+ name: "Plan",
714
+ requestType: TestPlan,
715
+ requestStream: false,
716
+ responseType: TestPlanResponse,
717
+ responseStream: false,
718
+ options: {},
719
+ },
720
+ /** sets the camera position and rotation in the engine */
721
+ setCameraTransform: {
722
+ name: "SetCameraTransform",
723
+ requestType: SetCameraTransformTestCommandResponse,
724
+ requestStream: false,
725
+ responseType: SetCameraTransformTestCommandResponse,
726
+ responseStream: false,
727
+ options: {},
728
+ },
729
+ },
730
+ } as const;
731
+
732
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
733
+
734
+ export type DeepPartial<T> = T extends Builtin ? T
735
+ : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
736
+ : T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
737
+ : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
738
+ : Partial<T>;
739
+
740
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
741
+ export type Exact<P, I extends P> = P extends Builtin ? P
742
+ : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
743
+
744
+ function isSet(value: any): boolean {
745
+ return value !== null && value !== undefined;
746
+ }