@dcl/protocol 1.0.0-6721819745.commit-dd7b9dc → 1.0.0-7117237552.commit-82dc93b

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 (93) hide show
  1. package/out-js/decentraland/common/border_rect.gen.js.map +1 -1
  2. package/out-js/decentraland/common/colors.gen.js.map +1 -1
  3. package/out-js/decentraland/common/content_mapping.gen.js.map +1 -1
  4. package/out-js/decentraland/common/sdk/user_data.gen.js.map +1 -1
  5. package/out-js/decentraland/common/texture.gen.js.map +1 -1
  6. package/out-js/decentraland/common/vectors.gen.js.map +1 -1
  7. package/out-js/decentraland/kernel/apis/comms_api.gen.js.map +1 -1
  8. package/out-js/decentraland/kernel/apis/communications_controller.gen.d.ts +30 -0
  9. package/out-js/decentraland/kernel/apis/communications_controller.gen.js +171 -1
  10. package/out-js/decentraland/kernel/apis/communications_controller.gen.js.map +1 -1
  11. package/out-js/decentraland/kernel/apis/dev_tools.gen.js.map +1 -1
  12. package/out-js/decentraland/kernel/apis/engine_api.gen.js.map +1 -1
  13. package/out-js/decentraland/kernel/apis/environment_api.gen.js.map +1 -1
  14. package/out-js/decentraland/kernel/apis/ethereum_controller.gen.js.map +1 -1
  15. package/out-js/decentraland/kernel/apis/parcel_identity.gen.js.map +1 -1
  16. package/out-js/decentraland/kernel/apis/permissions.gen.js.map +1 -1
  17. package/out-js/decentraland/kernel/apis/players.gen.js.map +1 -1
  18. package/out-js/decentraland/kernel/apis/portable_experiences.gen.js.map +1 -1
  19. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -1
  20. package/out-js/decentraland/kernel/apis/runtime.gen.js.map +1 -1
  21. package/out-js/decentraland/kernel/apis/scene.gen.js.map +1 -1
  22. package/out-js/decentraland/kernel/apis/signed_fetch.gen.js.map +1 -1
  23. package/out-js/decentraland/kernel/apis/social_controller.gen.js.map +1 -1
  24. package/out-js/decentraland/kernel/apis/testing.gen.js.map +1 -1
  25. package/out-js/decentraland/kernel/apis/user_action_module.gen.js.map +1 -1
  26. package/out-js/decentraland/kernel/apis/user_identity.gen.js.map +1 -1
  27. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
  28. package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.js.map +1 -1
  29. package/out-js/decentraland/kernel/comms/v3/archipelago.gen.js.map +1 -1
  30. package/out-js/decentraland/quests/definitions.gen.d.ts +541 -0
  31. package/out-js/decentraland/quests/definitions.gen.js +2728 -0
  32. package/out-js/decentraland/quests/definitions.gen.js.map +1 -0
  33. package/out-js/decentraland/realm/about.gen.js.map +1 -1
  34. package/out-js/decentraland/sdk/components/animator.gen.js.map +1 -1
  35. package/out-js/decentraland/sdk/components/audio_source.gen.js.map +1 -1
  36. package/out-js/decentraland/sdk/components/audio_stream.gen.js.map +1 -1
  37. package/out-js/decentraland/sdk/components/avatar_attach.gen.js.map +1 -1
  38. package/out-js/decentraland/sdk/components/avatar_base.gen.js.map +1 -1
  39. package/out-js/decentraland/sdk/components/avatar_emote_command.gen.js.map +1 -1
  40. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js.map +1 -1
  41. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -1
  42. package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -1
  43. package/out-js/decentraland/sdk/components/billboard.gen.js.map +1 -1
  44. package/out-js/decentraland/sdk/components/camera_mode.gen.js.map +1 -1
  45. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -1
  46. package/out-js/decentraland/sdk/components/common/camera_type.gen.js.map +1 -1
  47. package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
  48. package/out-js/decentraland/sdk/components/common/loading_state.gen.js.map +1 -1
  49. package/out-js/decentraland/sdk/components/common/raycast_hit.gen.js.map +1 -1
  50. package/out-js/decentraland/sdk/components/common/texts.gen.js.map +1 -1
  51. package/out-js/decentraland/sdk/components/engine_info.gen.js.map +1 -1
  52. package/out-js/decentraland/sdk/components/gltf_container.gen.js.map +1 -1
  53. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -1
  54. package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
  55. package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
  56. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
  57. package/out-js/decentraland/sdk/components/nft_shape.gen.js.map +1 -1
  58. package/out-js/decentraland/sdk/components/player_identity_data.gen.js.map +1 -1
  59. package/out-js/decentraland/sdk/components/pointer_events.gen.js.map +1 -1
  60. package/out-js/decentraland/sdk/components/pointer_events_result.gen.js.map +1 -1
  61. package/out-js/decentraland/sdk/components/pointer_lock.gen.js.map +1 -1
  62. package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -1
  63. package/out-js/decentraland/sdk/components/raycast_result.gen.js.map +1 -1
  64. package/out-js/decentraland/sdk/components/text_shape.gen.js.map +1 -1
  65. package/out-js/decentraland/sdk/components/tween.gen.js.map +1 -1
  66. package/out-js/decentraland/sdk/components/tween_sequence.gen.js.map +1 -1
  67. package/out-js/decentraland/sdk/components/tween_state.gen.js.map +1 -1
  68. package/out-js/decentraland/sdk/components/ui_background.gen.js.map +1 -1
  69. package/out-js/decentraland/sdk/components/ui_dropdown.gen.js.map +1 -1
  70. package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js.map +1 -1
  71. package/out-js/decentraland/sdk/components/ui_input.gen.js.map +1 -1
  72. package/out-js/decentraland/sdk/components/ui_input_result.gen.js.map +1 -1
  73. package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -1
  74. package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
  75. package/out-js/decentraland/sdk/components/video_player.gen.js.map +1 -1
  76. package/out-js/decentraland/sdk/components/visibility_component.gen.js.map +1 -1
  77. package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.js.map +1 -1
  78. package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.js.map +1 -1
  79. package/out-js/decentraland/social/friendships/friendships.gen.js.map +1 -1
  80. package/out-js/google/protobuf/descriptor.gen.js.map +1 -1
  81. package/out-js/google/protobuf/empty.gen.d.ts +38 -0
  82. package/out-js/google/protobuf/empty.gen.js +54 -0
  83. package/out-js/google/protobuf/empty.gen.js.map +1 -0
  84. package/out-js/quests.gen.d.ts +1 -0
  85. package/out-js/quests.gen.js +6 -0
  86. package/out-js/quests.gen.js.map +1 -0
  87. package/out-ts/decentraland/kernel/apis/communications_controller.gen.ts +180 -0
  88. package/out-ts/decentraland/quests/definitions.gen.ts +3020 -0
  89. package/out-ts/google/protobuf/empty.gen.ts +72 -0
  90. package/out-ts/quests.gen.ts +3 -0
  91. package/package.json +2 -2
  92. package/proto/decentraland/kernel/apis/communications_controller.proto +13 -4
  93. package/public/quests.proto +5 -0
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Empty = exports.protobufPackage = void 0;
7
+ /* eslint-disable */
8
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
9
+ exports.protobufPackage = "google.protobuf";
10
+ function createBaseEmpty() {
11
+ return {};
12
+ }
13
+ var Empty;
14
+ (function (Empty) {
15
+ function encode(_, writer = minimal_1.default.Writer.create()) {
16
+ return writer;
17
+ }
18
+ Empty.encode = encode;
19
+ function decode(input, length) {
20
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
21
+ let end = length === undefined ? reader.len : reader.pos + length;
22
+ const message = createBaseEmpty();
23
+ while (reader.pos < end) {
24
+ const tag = reader.uint32();
25
+ switch (tag >>> 3) {
26
+ }
27
+ if ((tag & 7) === 4 || tag === 0) {
28
+ break;
29
+ }
30
+ reader.skipType(tag & 7);
31
+ }
32
+ return message;
33
+ }
34
+ Empty.decode = decode;
35
+ function fromJSON(_) {
36
+ return {};
37
+ }
38
+ Empty.fromJSON = fromJSON;
39
+ function toJSON(_) {
40
+ const obj = {};
41
+ return obj;
42
+ }
43
+ Empty.toJSON = toJSON;
44
+ function create(base) {
45
+ return Empty.fromPartial(base !== null && base !== void 0 ? base : {});
46
+ }
47
+ Empty.create = create;
48
+ function fromPartial(_) {
49
+ const message = createBaseEmpty();
50
+ return message;
51
+ }
52
+ Empty.fromPartial = fromPartial;
53
+ })(Empty || (exports.Empty = Empty = {}));
54
+ //# sourceMappingURL=empty.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"empty.gen.js","sourceRoot":"","sources":["../../../out-ts/google/protobuf/empty.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AAExB,QAAA,eAAe,GAAG,iBAAiB,CAAC;AAcjD,SAAS,eAAe;IACtB,OAAO,EAAE,CAAC;AACZ,CAAC;AAED,IAAiB,KAAK,CAsCrB;AAtCD,WAAiB,KAAK;IACpB,SAAgB,MAAM,CAAC,CAAQ,EAAE,SAAqB,iBAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QACvE,OAAO,MAAM,CAAC;IAChB,CAAC;IAFe,YAAM,SAErB,CAAA;IAED,SAAgB,MAAM,CAAC,KAA8B,EAAE,MAAe;QACpE,MAAM,MAAM,GAAG,KAAK,YAAY,iBAAG,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,iBAAG,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC9E,IAAI,GAAG,GAAG,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,GAAG,MAAM,CAAC;QAClE,MAAM,OAAO,GAAG,eAAe,EAAE,CAAC;QAClC,OAAO,MAAM,CAAC,GAAG,GAAG,GAAG,EAAE,CAAC;YACxB,MAAM,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;YAC5B,QAAQ,GAAG,KAAK,CAAC,EAAE,CAAC;YACpB,CAAC;YACD,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,EAAE,CAAC;gBACjC,MAAM;YACR,CAAC;YACD,MAAM,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;QAC3B,CAAC;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IAde,YAAM,SAcrB,CAAA;IAED,SAAgB,QAAQ,CAAC,CAAM;QAC7B,OAAO,EAAE,CAAC;IACZ,CAAC;IAFe,cAAQ,WAEvB,CAAA;IAED,SAAgB,MAAM,CAAC,CAAQ;QAC7B,MAAM,GAAG,GAAQ,EAAE,CAAC;QACpB,OAAO,GAAG,CAAC;IACb,CAAC;IAHe,YAAM,SAGrB,CAAA;IAED,SAAgB,MAAM,CAAyC,IAAQ;QACrE,OAAO,KAAK,CAAC,WAAW,CAAC,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,CAAC,CAAC;IACvC,CAAC;IAFe,YAAM,SAErB,CAAA;IAED,SAAgB,WAAW,CAAyC,CAAI;QACtE,MAAM,OAAO,GAAG,eAAe,EAAE,CAAC;QAClC,OAAO,OAAO,CAAC;IACjB,CAAC;IAHe,iBAAW,cAG1B,CAAA;AACH,CAAC,EAtCgB,KAAK,qBAAL,KAAK,QAsCrB"}
@@ -0,0 +1 @@
1
+ export declare const protobufPackage = "decentraland.quests";
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ /* eslint-disable */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.protobufPackage = void 0;
5
+ exports.protobufPackage = "decentraland.quests";
6
+ //# sourceMappingURL=quests.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quests.gen.js","sourceRoot":"","sources":["../out-ts/quests.gen.ts"],"names":[],"mappings":";AAAA,oBAAoB;;;AAEP,QAAA,eAAe,GAAG,qBAAqB,CAAC"}
@@ -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