@dcl/protocol 1.0.0-20440758478.commit-91726de → 1.0.0-20755528534.commit-d6cccca

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 (31) hide show
  1. package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +12 -5
  2. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +37 -8
  3. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -1
  4. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.d.ts +0 -50
  5. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +12 -353
  6. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
  7. package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +0 -1
  8. package/out-js/decentraland/sdk/components/common/input_action.gen.js +0 -6
  9. package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
  10. package/out-js/decentraland/social_service/v2/social_service_v2.gen.d.ts +32 -1368
  11. package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +148 -7057
  12. package/out-js/decentraland/social_service/v2/social_service_v2.gen.js.map +1 -1
  13. package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +43 -9
  14. package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +3 -420
  15. package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +0 -6
  16. package/out-ts/decentraland/social_service/v2/social_service_v2.gen.ts +984 -8945
  17. package/package.json +3 -3
  18. package/proto/decentraland/kernel/apis/restricted_actions.proto +7 -2
  19. package/proto/decentraland/kernel/comms/rfc4/comms.proto +2 -33
  20. package/proto/decentraland/sdk/components/common/input_action.proto +0 -1
  21. package/proto/decentraland/sdk/components/light_source.proto +1 -1
  22. package/proto/decentraland/sdk/components/virtual_camera.proto +0 -2
  23. package/proto/decentraland/social_service/v2/social_service_v2.proto +11 -563
  24. package/out-js/decentraland/social_service/errors.gen.d.ts +0 -96
  25. package/out-js/decentraland/social_service/errors.gen.js +0 -405
  26. package/out-js/decentraland/social_service/errors.gen.js.map +0 -1
  27. package/out-ts/decentraland/social_service/errors.gen.ts +0 -442
  28. package/proto/decentraland/sdk/components/audio_analysis.proto +0 -44
  29. package/proto/decentraland/sdk/components/avatar_locomotion_settings.proto +0 -18
  30. package/proto/decentraland/social_service/errors.proto +0 -30
  31. package/proto/decentraland/social_service/v3/social_service_v3.proto +0 -51
@@ -1,442 +0,0 @@
1
- /* eslint-disable */
2
- import _m0 from "protobufjs/minimal";
3
-
4
- export const protobufPackage = "decentraland.social_service";
5
-
6
- export interface InvalidFriendshipAction {
7
- message?: string | undefined;
8
- }
9
-
10
- export interface InternalServerError {
11
- message?: string | undefined;
12
- }
13
-
14
- export interface InvalidRequest {
15
- message?: string | undefined;
16
- }
17
-
18
- export interface ProfileNotFound {
19
- message?: string | undefined;
20
- }
21
-
22
- export interface ConflictingError {
23
- message?: string | undefined;
24
- }
25
-
26
- export interface ForbiddenError {
27
- message?: string | undefined;
28
- }
29
-
30
- export interface NotFoundError {
31
- message?: string | undefined;
32
- }
33
-
34
- function createBaseInvalidFriendshipAction(): InvalidFriendshipAction {
35
- return { message: undefined };
36
- }
37
-
38
- export namespace InvalidFriendshipAction {
39
- export function encode(message: InvalidFriendshipAction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
40
- if (message.message !== undefined) {
41
- writer.uint32(10).string(message.message);
42
- }
43
- return writer;
44
- }
45
-
46
- export function decode(input: _m0.Reader | Uint8Array, length?: number): InvalidFriendshipAction {
47
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
48
- let end = length === undefined ? reader.len : reader.pos + length;
49
- const message = createBaseInvalidFriendshipAction();
50
- while (reader.pos < end) {
51
- const tag = reader.uint32();
52
- switch (tag >>> 3) {
53
- case 1:
54
- if (tag !== 10) {
55
- break;
56
- }
57
-
58
- message.message = reader.string();
59
- continue;
60
- }
61
- if ((tag & 7) === 4 || tag === 0) {
62
- break;
63
- }
64
- reader.skipType(tag & 7);
65
- }
66
- return message;
67
- }
68
-
69
- export function fromJSON(object: any): InvalidFriendshipAction {
70
- return { message: isSet(object.message) ? String(object.message) : undefined };
71
- }
72
-
73
- export function toJSON(message: InvalidFriendshipAction): unknown {
74
- const obj: any = {};
75
- message.message !== undefined && (obj.message = message.message);
76
- return obj;
77
- }
78
-
79
- export function create<I extends Exact<DeepPartial<InvalidFriendshipAction>, I>>(base?: I): InvalidFriendshipAction {
80
- return InvalidFriendshipAction.fromPartial(base ?? {});
81
- }
82
-
83
- export function fromPartial<I extends Exact<DeepPartial<InvalidFriendshipAction>, I>>(
84
- object: I,
85
- ): InvalidFriendshipAction {
86
- const message = createBaseInvalidFriendshipAction();
87
- message.message = object.message ?? undefined;
88
- return message;
89
- }
90
- }
91
-
92
- function createBaseInternalServerError(): InternalServerError {
93
- return { message: undefined };
94
- }
95
-
96
- export namespace InternalServerError {
97
- export function encode(message: InternalServerError, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
98
- if (message.message !== undefined) {
99
- writer.uint32(10).string(message.message);
100
- }
101
- return writer;
102
- }
103
-
104
- export function decode(input: _m0.Reader | Uint8Array, length?: number): InternalServerError {
105
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
106
- let end = length === undefined ? reader.len : reader.pos + length;
107
- const message = createBaseInternalServerError();
108
- while (reader.pos < end) {
109
- const tag = reader.uint32();
110
- switch (tag >>> 3) {
111
- case 1:
112
- if (tag !== 10) {
113
- break;
114
- }
115
-
116
- message.message = reader.string();
117
- continue;
118
- }
119
- if ((tag & 7) === 4 || tag === 0) {
120
- break;
121
- }
122
- reader.skipType(tag & 7);
123
- }
124
- return message;
125
- }
126
-
127
- export function fromJSON(object: any): InternalServerError {
128
- return { message: isSet(object.message) ? String(object.message) : undefined };
129
- }
130
-
131
- export function toJSON(message: InternalServerError): unknown {
132
- const obj: any = {};
133
- message.message !== undefined && (obj.message = message.message);
134
- return obj;
135
- }
136
-
137
- export function create<I extends Exact<DeepPartial<InternalServerError>, I>>(base?: I): InternalServerError {
138
- return InternalServerError.fromPartial(base ?? {});
139
- }
140
-
141
- export function fromPartial<I extends Exact<DeepPartial<InternalServerError>, I>>(object: I): InternalServerError {
142
- const message = createBaseInternalServerError();
143
- message.message = object.message ?? undefined;
144
- return message;
145
- }
146
- }
147
-
148
- function createBaseInvalidRequest(): InvalidRequest {
149
- return { message: undefined };
150
- }
151
-
152
- export namespace InvalidRequest {
153
- export function encode(message: InvalidRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
154
- if (message.message !== undefined) {
155
- writer.uint32(10).string(message.message);
156
- }
157
- return writer;
158
- }
159
-
160
- export function decode(input: _m0.Reader | Uint8Array, length?: number): InvalidRequest {
161
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
162
- let end = length === undefined ? reader.len : reader.pos + length;
163
- const message = createBaseInvalidRequest();
164
- while (reader.pos < end) {
165
- const tag = reader.uint32();
166
- switch (tag >>> 3) {
167
- case 1:
168
- if (tag !== 10) {
169
- break;
170
- }
171
-
172
- message.message = reader.string();
173
- continue;
174
- }
175
- if ((tag & 7) === 4 || tag === 0) {
176
- break;
177
- }
178
- reader.skipType(tag & 7);
179
- }
180
- return message;
181
- }
182
-
183
- export function fromJSON(object: any): InvalidRequest {
184
- return { message: isSet(object.message) ? String(object.message) : undefined };
185
- }
186
-
187
- export function toJSON(message: InvalidRequest): unknown {
188
- const obj: any = {};
189
- message.message !== undefined && (obj.message = message.message);
190
- return obj;
191
- }
192
-
193
- export function create<I extends Exact<DeepPartial<InvalidRequest>, I>>(base?: I): InvalidRequest {
194
- return InvalidRequest.fromPartial(base ?? {});
195
- }
196
-
197
- export function fromPartial<I extends Exact<DeepPartial<InvalidRequest>, I>>(object: I): InvalidRequest {
198
- const message = createBaseInvalidRequest();
199
- message.message = object.message ?? undefined;
200
- return message;
201
- }
202
- }
203
-
204
- function createBaseProfileNotFound(): ProfileNotFound {
205
- return { message: undefined };
206
- }
207
-
208
- export namespace ProfileNotFound {
209
- export function encode(message: ProfileNotFound, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
210
- if (message.message !== undefined) {
211
- writer.uint32(10).string(message.message);
212
- }
213
- return writer;
214
- }
215
-
216
- export function decode(input: _m0.Reader | Uint8Array, length?: number): ProfileNotFound {
217
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
218
- let end = length === undefined ? reader.len : reader.pos + length;
219
- const message = createBaseProfileNotFound();
220
- while (reader.pos < end) {
221
- const tag = reader.uint32();
222
- switch (tag >>> 3) {
223
- case 1:
224
- if (tag !== 10) {
225
- break;
226
- }
227
-
228
- message.message = reader.string();
229
- continue;
230
- }
231
- if ((tag & 7) === 4 || tag === 0) {
232
- break;
233
- }
234
- reader.skipType(tag & 7);
235
- }
236
- return message;
237
- }
238
-
239
- export function fromJSON(object: any): ProfileNotFound {
240
- return { message: isSet(object.message) ? String(object.message) : undefined };
241
- }
242
-
243
- export function toJSON(message: ProfileNotFound): unknown {
244
- const obj: any = {};
245
- message.message !== undefined && (obj.message = message.message);
246
- return obj;
247
- }
248
-
249
- export function create<I extends Exact<DeepPartial<ProfileNotFound>, I>>(base?: I): ProfileNotFound {
250
- return ProfileNotFound.fromPartial(base ?? {});
251
- }
252
-
253
- export function fromPartial<I extends Exact<DeepPartial<ProfileNotFound>, I>>(object: I): ProfileNotFound {
254
- const message = createBaseProfileNotFound();
255
- message.message = object.message ?? undefined;
256
- return message;
257
- }
258
- }
259
-
260
- function createBaseConflictingError(): ConflictingError {
261
- return { message: undefined };
262
- }
263
-
264
- export namespace ConflictingError {
265
- export function encode(message: ConflictingError, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
266
- if (message.message !== undefined) {
267
- writer.uint32(10).string(message.message);
268
- }
269
- return writer;
270
- }
271
-
272
- export function decode(input: _m0.Reader | Uint8Array, length?: number): ConflictingError {
273
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
274
- let end = length === undefined ? reader.len : reader.pos + length;
275
- const message = createBaseConflictingError();
276
- while (reader.pos < end) {
277
- const tag = reader.uint32();
278
- switch (tag >>> 3) {
279
- case 1:
280
- if (tag !== 10) {
281
- break;
282
- }
283
-
284
- message.message = reader.string();
285
- continue;
286
- }
287
- if ((tag & 7) === 4 || tag === 0) {
288
- break;
289
- }
290
- reader.skipType(tag & 7);
291
- }
292
- return message;
293
- }
294
-
295
- export function fromJSON(object: any): ConflictingError {
296
- return { message: isSet(object.message) ? String(object.message) : undefined };
297
- }
298
-
299
- export function toJSON(message: ConflictingError): unknown {
300
- const obj: any = {};
301
- message.message !== undefined && (obj.message = message.message);
302
- return obj;
303
- }
304
-
305
- export function create<I extends Exact<DeepPartial<ConflictingError>, I>>(base?: I): ConflictingError {
306
- return ConflictingError.fromPartial(base ?? {});
307
- }
308
-
309
- export function fromPartial<I extends Exact<DeepPartial<ConflictingError>, I>>(object: I): ConflictingError {
310
- const message = createBaseConflictingError();
311
- message.message = object.message ?? undefined;
312
- return message;
313
- }
314
- }
315
-
316
- function createBaseForbiddenError(): ForbiddenError {
317
- return { message: undefined };
318
- }
319
-
320
- export namespace ForbiddenError {
321
- export function encode(message: ForbiddenError, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
322
- if (message.message !== undefined) {
323
- writer.uint32(10).string(message.message);
324
- }
325
- return writer;
326
- }
327
-
328
- export function decode(input: _m0.Reader | Uint8Array, length?: number): ForbiddenError {
329
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
330
- let end = length === undefined ? reader.len : reader.pos + length;
331
- const message = createBaseForbiddenError();
332
- while (reader.pos < end) {
333
- const tag = reader.uint32();
334
- switch (tag >>> 3) {
335
- case 1:
336
- if (tag !== 10) {
337
- break;
338
- }
339
-
340
- message.message = reader.string();
341
- continue;
342
- }
343
- if ((tag & 7) === 4 || tag === 0) {
344
- break;
345
- }
346
- reader.skipType(tag & 7);
347
- }
348
- return message;
349
- }
350
-
351
- export function fromJSON(object: any): ForbiddenError {
352
- return { message: isSet(object.message) ? String(object.message) : undefined };
353
- }
354
-
355
- export function toJSON(message: ForbiddenError): unknown {
356
- const obj: any = {};
357
- message.message !== undefined && (obj.message = message.message);
358
- return obj;
359
- }
360
-
361
- export function create<I extends Exact<DeepPartial<ForbiddenError>, I>>(base?: I): ForbiddenError {
362
- return ForbiddenError.fromPartial(base ?? {});
363
- }
364
-
365
- export function fromPartial<I extends Exact<DeepPartial<ForbiddenError>, I>>(object: I): ForbiddenError {
366
- const message = createBaseForbiddenError();
367
- message.message = object.message ?? undefined;
368
- return message;
369
- }
370
- }
371
-
372
- function createBaseNotFoundError(): NotFoundError {
373
- return { message: undefined };
374
- }
375
-
376
- export namespace NotFoundError {
377
- export function encode(message: NotFoundError, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
378
- if (message.message !== undefined) {
379
- writer.uint32(10).string(message.message);
380
- }
381
- return writer;
382
- }
383
-
384
- export function decode(input: _m0.Reader | Uint8Array, length?: number): NotFoundError {
385
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
386
- let end = length === undefined ? reader.len : reader.pos + length;
387
- const message = createBaseNotFoundError();
388
- while (reader.pos < end) {
389
- const tag = reader.uint32();
390
- switch (tag >>> 3) {
391
- case 1:
392
- if (tag !== 10) {
393
- break;
394
- }
395
-
396
- message.message = reader.string();
397
- continue;
398
- }
399
- if ((tag & 7) === 4 || tag === 0) {
400
- break;
401
- }
402
- reader.skipType(tag & 7);
403
- }
404
- return message;
405
- }
406
-
407
- export function fromJSON(object: any): NotFoundError {
408
- return { message: isSet(object.message) ? String(object.message) : undefined };
409
- }
410
-
411
- export function toJSON(message: NotFoundError): unknown {
412
- const obj: any = {};
413
- message.message !== undefined && (obj.message = message.message);
414
- return obj;
415
- }
416
-
417
- export function create<I extends Exact<DeepPartial<NotFoundError>, I>>(base?: I): NotFoundError {
418
- return NotFoundError.fromPartial(base ?? {});
419
- }
420
-
421
- export function fromPartial<I extends Exact<DeepPartial<NotFoundError>, I>>(object: I): NotFoundError {
422
- const message = createBaseNotFoundError();
423
- message.message = object.message ?? undefined;
424
- return message;
425
- }
426
- }
427
-
428
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
429
-
430
- export type DeepPartial<T> = T extends Builtin ? T
431
- : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
432
- : T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
433
- : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
434
- : Partial<T>;
435
-
436
- type KeysOfUnion<T> = T extends T ? keyof T : never;
437
- export type Exact<P, I extends P> = P extends Builtin ? P
438
- : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
439
-
440
- function isSet(value: any): boolean {
441
- return value !== null && value !== undefined;
442
- }
@@ -1,44 +0,0 @@
1
- syntax = "proto3";
2
- package decentraland.sdk.components;
3
-
4
- import "decentraland/sdk/components/common/id.proto";
5
- option (common.ecs_component_id) = 1212;
6
-
7
- enum PBAudioAnalysisMode {
8
- MODE_RAW = 0;
9
- MODE_LOGARITHMIC = 1;
10
- }
11
-
12
- message PBAudioAnalysis {
13
-
14
- // Parameters section
15
- PBAudioAnalysisMode mode = 1;
16
-
17
- // Used only when mode == MODE_LOGARITHMIC
18
- optional float amplitude_gain = 100;
19
- optional float bands_gain = 101;
20
- // End when mode == MODE_LOGARITHMIC
21
-
22
- // End Parameters section
23
-
24
- // Result section
25
- float amplitude = 200;
26
-
27
- // Protobuf doesn't support fixed arrays -> 8 band fields
28
- float band_0 = 201;
29
- float band_1 = 202;
30
- float band_2 = 203;
31
- float band_3 = 204;
32
- float band_4 = 205;
33
- float band_5 = 206;
34
- float band_6 = 207;
35
- float band_7 = 208;
36
-
37
- // End Result section
38
-
39
- // Future fields
40
- // float spectral_centroid = 13;
41
- // float spectral_flux = 14;
42
- // bool onset = 15;
43
- // float bpm = 16;
44
- }
@@ -1,18 +0,0 @@
1
- syntax = "proto3";
2
-
3
- package decentraland.sdk.components;
4
-
5
- import "decentraland/sdk/components/common/id.proto";
6
-
7
- option (common.ecs_component_id) = 1211;
8
-
9
- // The PBAvatarLocomotionSettings component allows scenes to modify locomotion settings defining things such
10
- // as the avatar movement speed, jump height etc.
11
- message PBAvatarLocomotionSettings {
12
- optional float walk_speed = 1; // Maximum speed when walking (in meters per second)
13
- optional float jog_speed = 2; // Maximum speed when jogging (in meters per second)
14
- optional float run_speed = 3; // Maximum speed when running (in meters per second)
15
- optional float jump_height = 4; // Height of a regular jump (in meters)
16
- optional float run_jump_height = 5; // Height of a jump while running (in meters)
17
- optional float hard_landing_cooldown = 6; // Cooldown time after a hard landing before the avatar can move again (in seconds)
18
- }
@@ -1,30 +0,0 @@
1
- syntax = "proto3";
2
- package decentraland.social_service;
3
-
4
- message InvalidFriendshipAction {
5
- optional string message = 1;
6
- }
7
-
8
- message InternalServerError {
9
- optional string message = 1;
10
- }
11
-
12
- message InvalidRequest {
13
- optional string message = 1;
14
- }
15
-
16
- message ProfileNotFound {
17
- optional string message = 1;
18
- }
19
-
20
- message ConflictingError {
21
- optional string message = 1;
22
- }
23
-
24
- message ForbiddenError {
25
- optional string message = 1;
26
- }
27
-
28
- message NotFoundError {
29
- optional string message = 1;
30
- }
@@ -1,51 +0,0 @@
1
- syntax = "proto3";
2
- package decentraland.social_service.v3;
3
-
4
- import "decentraland/social_service/errors.proto";
5
-
6
- // Common types
7
- message User { string address = 1; }
8
-
9
- message Profile {
10
- string name = 1;
11
- bool has_claimed_name = 2;
12
- string profile_picture_url = 3;
13
- }
14
-
15
- message Friend {
16
- string address = 1;
17
- optional Profile profile = 2;
18
- }
19
-
20
- message Pagination {
21
- int32 limit = 1;
22
- int32 offset = 2;
23
- }
24
-
25
- message PaginatedResponse {
26
- int32 total = 1;
27
- int32 page = 2;
28
- }
29
-
30
- // Get mutual friends
31
- message GetMutualFriendsPayload {
32
- User user = 1;
33
- optional Pagination pagination = 2;
34
- }
35
-
36
- message GetMutualFriendsResponse {
37
- message Ok {
38
- repeated Friend friends = 1;
39
- PaginatedResponse pagination_data = 2;
40
- }
41
-
42
- oneof response {
43
- Ok ok = 1;
44
- InternalServerError internal_server_error = 2;
45
- InvalidRequest invalid_request = 3;
46
- }
47
- }
48
-
49
- service SocialService {
50
- rpc GetMutualFriends(GetMutualFriendsPayload) returns (GetMutualFriendsResponse) {}
51
- }