@dcl/protocol 1.0.0-4810686946.commit-7c034e3 → 1.0.0-4896874496.commit-2ebeae0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out-js/decentraland/bff/authentication_service.gen.js +12 -12
- package/out-js/decentraland/bff/authentication_service.gen.js.map +1 -1
- package/out-js/decentraland/bff/comms_director_service.gen.js +7 -7
- package/out-js/decentraland/bff/comms_director_service.gen.js.map +1 -1
- package/out-js/decentraland/bff/comms_service.gen.js +4 -4
- package/out-js/decentraland/bff/comms_service.gen.js.map +1 -1
- package/out-js/decentraland/bff/http_endpoints.gen.js +47 -47
- package/out-js/decentraland/bff/http_endpoints.gen.js.map +1 -1
- package/out-js/decentraland/bff/topics_service.gen.js +14 -14
- package/out-js/decentraland/bff/topics_service.gen.js.map +1 -1
- package/out-js/decentraland/common/border_rect.gen.js +10 -10
- package/out-js/decentraland/common/border_rect.gen.js.map +1 -1
- package/out-js/decentraland/common/colors.gen.js +9 -9
- package/out-js/decentraland/common/colors.gen.js.map +1 -1
- package/out-js/decentraland/common/content_mapping.gen.js +3 -3
- package/out-js/decentraland/common/content_mapping.gen.js.map +1 -1
- package/out-js/decentraland/common/sdk/user_data.gen.js +17 -17
- package/out-js/decentraland/common/sdk/user_data.gen.js.map +1 -1
- package/out-js/decentraland/common/texture.gen.js +16 -16
- package/out-js/decentraland/common/texture.gen.js.map +1 -1
- package/out-js/decentraland/common/vectors.gen.js +11 -11
- package/out-js/decentraland/common/vectors.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/communications_controller.gen.js +3 -3
- package/out-js/decentraland/kernel/apis/communications_controller.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/dev_tools.gen.js +4 -4
- package/out-js/decentraland/kernel/apis/dev_tools.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/engine_api.gen.js +101 -101
- package/out-js/decentraland/kernel/apis/engine_api.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/environment_api.gen.js +38 -38
- package/out-js/decentraland/kernel/apis/environment_api.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/ethereum_controller.gen.js +31 -31
- package/out-js/decentraland/kernel/apis/ethereum_controller.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/parcel_identity.gen.js +20 -20
- package/out-js/decentraland/kernel/apis/parcel_identity.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/permissions.gen.js +10 -10
- package/out-js/decentraland/kernel/apis/permissions.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/players.gen.js +10 -10
- package/out-js/decentraland/kernel/apis/players.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/portable_experiences.gen.js +17 -17
- package/out-js/decentraland/kernel/apis/portable_experiences.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +22 -22
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/runtime.gen.js +23 -23
- package/out-js/decentraland/kernel/apis/runtime.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/scene.gen.js +6 -6
- package/out-js/decentraland/kernel/apis/scene.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/signed_fetch.gen.js +19 -19
- package/out-js/decentraland/kernel/apis/signed_fetch.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/social_controller.gen.js +6 -6
- package/out-js/decentraland/kernel/apis/social_controller.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/testing.gen.js +26 -26
- package/out-js/decentraland/kernel/apis/testing.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/user_action_module.gen.js +3 -3
- package/out-js/decentraland/kernel/apis/user_action_module.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/user_identity.gen.js +6 -6
- package/out-js/decentraland/kernel/apis/user_identity.gen.js.map +1 -1
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +35 -35
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
- package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.js +33 -33
- package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.js.map +1 -1
- package/out-js/decentraland/kernel/comms/v3/archipelago.gen.js +47 -47
- package/out-js/decentraland/kernel/comms/v3/archipelago.gen.js.map +1 -1
- package/out-js/decentraland/realm/about.gen.js +47 -47
- package/out-js/decentraland/realm/about.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/animator.gen.js +10 -10
- package/out-js/decentraland/sdk/components/animator.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/audio_source.gen.js +6 -6
- package/out-js/decentraland/sdk/components/audio_source.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/audio_stream.gen.js +4 -4
- package/out-js/decentraland/sdk/components/audio_stream.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_attach.gen.js +3 -3
- package/out-js/decentraland/sdk/components/avatar_attach.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +5 -5
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js +12 -12
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/billboard.gen.js +2 -2
- package/out-js/decentraland/sdk/components/billboard.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/camera_mode.gen.js +2 -2
- package/out-js/decentraland/sdk/components/camera_mode.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +3 -3
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/common/raycast_hit.gen.js +8 -8
- package/out-js/decentraland/sdk/components/common/raycast_hit.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/engine_info.gen.js +4 -4
- package/out-js/decentraland/sdk/components/engine_info.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/gltf_container.gen.js +4 -4
- package/out-js/decentraland/sdk/components/gltf_container.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +2 -2
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/material.gen.js +25 -25
- package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js +12 -12
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +15 -15
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/nft_shape.gen.js +4 -4
- package/out-js/decentraland/sdk/components/nft_shape.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/pointer_events.gen.js +10 -10
- package/out-js/decentraland/sdk/components/pointer_events.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/pointer_events_result.gen.js +7 -7
- package/out-js/decentraland/sdk/components/pointer_events_result.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/pointer_lock.gen.js +2 -2
- package/out-js/decentraland/sdk/components/pointer_lock.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/raycast.gen.js +11 -11
- package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/raycast_result.gen.js +6 -6
- package/out-js/decentraland/sdk/components/raycast_result.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/text_shape.gen.js +22 -22
- package/out-js/decentraland/sdk/components/text_shape.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_background.gen.js +7 -7
- package/out-js/decentraland/sdk/components/ui_background.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_dropdown.gen.js +10 -10
- package/out-js/decentraland/sdk/components/ui_dropdown.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js +2 -2
- package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_input.gen.js +9 -9
- package/out-js/decentraland/sdk/components/ui_input.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_input_result.gen.js +2 -2
- package/out-js/decentraland/sdk/components/ui_input_result.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_text.gen.js +6 -6
- package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_transform.gen.js +52 -52
- package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/video_player.gen.js +7 -7
- package/out-js/decentraland/sdk/components/video_player.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/visibility_component.gen.js +2 -2
- package/out-js/decentraland/sdk/components/visibility_component.gen.js.map +1 -1
- package/out-js/decentraland/social/friendships/friendships.gen.d.ts +11 -10
- package/out-js/decentraland/social/friendships/friendships.gen.js +105 -99
- package/out-js/decentraland/social/friendships/friendships.gen.js.map +1 -1
- package/out-js/google/protobuf/descriptor.gen.js +141 -141
- package/out-js/google/protobuf/descriptor.gen.js.map +1 -1
- package/out-js/google/protobuf/empty.gen.js +1 -1
- package/out-js/google/protobuf/empty.gen.js.map +1 -1
- package/out-ts/decentraland/bff/authentication_service.gen.ts +12 -12
- package/out-ts/decentraland/bff/comms_director_service.gen.ts +7 -7
- package/out-ts/decentraland/bff/comms_service.gen.ts +4 -4
- package/out-ts/decentraland/bff/http_endpoints.gen.ts +47 -47
- package/out-ts/decentraland/bff/topics_service.gen.ts +14 -14
- package/out-ts/decentraland/common/border_rect.gen.ts +10 -10
- package/out-ts/decentraland/common/colors.gen.ts +9 -9
- package/out-ts/decentraland/common/content_mapping.gen.ts +3 -3
- package/out-ts/decentraland/common/sdk/user_data.gen.ts +17 -17
- package/out-ts/decentraland/common/texture.gen.ts +16 -16
- package/out-ts/decentraland/common/vectors.gen.ts +11 -11
- package/out-ts/decentraland/kernel/apis/communications_controller.gen.ts +3 -3
- package/out-ts/decentraland/kernel/apis/dev_tools.gen.ts +4 -4
- package/out-ts/decentraland/kernel/apis/engine_api.gen.ts +101 -101
- package/out-ts/decentraland/kernel/apis/environment_api.gen.ts +38 -38
- package/out-ts/decentraland/kernel/apis/ethereum_controller.gen.ts +31 -31
- package/out-ts/decentraland/kernel/apis/parcel_identity.gen.ts +20 -20
- package/out-ts/decentraland/kernel/apis/permissions.gen.ts +12 -10
- package/out-ts/decentraland/kernel/apis/players.gen.ts +10 -10
- package/out-ts/decentraland/kernel/apis/portable_experiences.gen.ts +17 -17
- package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +22 -22
- package/out-ts/decentraland/kernel/apis/runtime.gen.ts +23 -23
- package/out-ts/decentraland/kernel/apis/scene.gen.ts +6 -6
- package/out-ts/decentraland/kernel/apis/signed_fetch.gen.ts +19 -19
- package/out-ts/decentraland/kernel/apis/social_controller.gen.ts +6 -6
- package/out-ts/decentraland/kernel/apis/testing.gen.ts +26 -26
- package/out-ts/decentraland/kernel/apis/user_action_module.gen.ts +3 -3
- package/out-ts/decentraland/kernel/apis/user_identity.gen.ts +6 -6
- package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +35 -35
- package/out-ts/decentraland/kernel/comms/rfc5/ws_comms.gen.ts +33 -33
- package/out-ts/decentraland/kernel/comms/v3/archipelago.gen.ts +47 -47
- package/out-ts/decentraland/realm/about.gen.ts +47 -47
- package/out-ts/decentraland/sdk/components/animator.gen.ts +10 -10
- package/out-ts/decentraland/sdk/components/audio_source.gen.ts +6 -6
- package/out-ts/decentraland/sdk/components/audio_stream.gen.ts +4 -4
- package/out-ts/decentraland/sdk/components/avatar_attach.gen.ts +3 -3
- package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +6 -5
- package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +12 -12
- package/out-ts/decentraland/sdk/components/billboard.gen.ts +2 -2
- package/out-ts/decentraland/sdk/components/camera_mode.gen.ts +2 -2
- package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +3 -3
- package/out-ts/decentraland/sdk/components/common/raycast_hit.gen.ts +8 -8
- package/out-ts/decentraland/sdk/components/engine_info.gen.ts +4 -4
- package/out-ts/decentraland/sdk/components/gltf_container.gen.ts +4 -4
- package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +2 -2
- package/out-ts/decentraland/sdk/components/material.gen.ts +25 -25
- package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +12 -12
- package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +17 -15
- package/out-ts/decentraland/sdk/components/nft_shape.gen.ts +4 -4
- package/out-ts/decentraland/sdk/components/pointer_events.gen.ts +10 -10
- package/out-ts/decentraland/sdk/components/pointer_events_result.gen.ts +7 -7
- package/out-ts/decentraland/sdk/components/pointer_lock.gen.ts +2 -2
- package/out-ts/decentraland/sdk/components/raycast.gen.ts +11 -11
- package/out-ts/decentraland/sdk/components/raycast_result.gen.ts +6 -6
- package/out-ts/decentraland/sdk/components/text_shape.gen.ts +22 -22
- package/out-ts/decentraland/sdk/components/ui_background.gen.ts +8 -7
- package/out-ts/decentraland/sdk/components/ui_dropdown.gen.ts +10 -10
- package/out-ts/decentraland/sdk/components/ui_dropdown_result.gen.ts +2 -2
- package/out-ts/decentraland/sdk/components/ui_input.gen.ts +9 -9
- package/out-ts/decentraland/sdk/components/ui_input_result.gen.ts +2 -2
- package/out-ts/decentraland/sdk/components/ui_text.gen.ts +6 -6
- package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +52 -52
- package/out-ts/decentraland/sdk/components/video_player.gen.ts +7 -7
- package/out-ts/decentraland/sdk/components/visibility_component.gen.ts +2 -2
- package/out-ts/decentraland/social/friendships/friendships.gen.ts +99 -93
- package/out-ts/google/protobuf/descriptor.gen.ts +146 -141
- package/out-ts/google/protobuf/empty.gen.ts +1 -1
- package/package.json +8 -5
- package/proto/decentraland/sdk/components/video_event.proto +25 -0
- package/proto/decentraland/social/friendships/friendships.proto +9 -8
|
@@ -68,49 +68,49 @@ export const PBVideoPlayer = {
|
|
|
68
68
|
const tag = reader.uint32();
|
|
69
69
|
switch (tag >>> 3) {
|
|
70
70
|
case 1:
|
|
71
|
-
if (tag
|
|
71
|
+
if (tag !== 10) {
|
|
72
72
|
break;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
message.src = reader.string();
|
|
76
76
|
continue;
|
|
77
77
|
case 2:
|
|
78
|
-
if (tag
|
|
78
|
+
if (tag !== 16) {
|
|
79
79
|
break;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
message.playing = reader.bool();
|
|
83
83
|
continue;
|
|
84
84
|
case 3:
|
|
85
|
-
if (tag
|
|
85
|
+
if (tag !== 29) {
|
|
86
86
|
break;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
message.position = reader.float();
|
|
90
90
|
continue;
|
|
91
91
|
case 4:
|
|
92
|
-
if (tag
|
|
92
|
+
if (tag !== 37) {
|
|
93
93
|
break;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
message.volume = reader.float();
|
|
97
97
|
continue;
|
|
98
98
|
case 5:
|
|
99
|
-
if (tag
|
|
99
|
+
if (tag !== 45) {
|
|
100
100
|
break;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
message.playbackRate = reader.float();
|
|
104
104
|
continue;
|
|
105
105
|
case 6:
|
|
106
|
-
if (tag
|
|
106
|
+
if (tag !== 48) {
|
|
107
107
|
break;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
message.loop = reader.bool();
|
|
111
111
|
continue;
|
|
112
112
|
}
|
|
113
|
-
if ((tag & 7)
|
|
113
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
114
114
|
break;
|
|
115
115
|
}
|
|
116
116
|
reader.skipType(tag & 7);
|
|
@@ -28,14 +28,14 @@ export const PBVisibilityComponent = {
|
|
|
28
28
|
const tag = reader.uint32();
|
|
29
29
|
switch (tag >>> 3) {
|
|
30
30
|
case 1:
|
|
31
|
-
if (tag
|
|
31
|
+
if (tag !== 8) {
|
|
32
32
|
break;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
message.visible = reader.bool();
|
|
36
36
|
continue;
|
|
37
37
|
}
|
|
38
|
-
if ((tag & 7)
|
|
38
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
39
39
|
break;
|
|
40
40
|
}
|
|
41
41
|
reader.skipType(tag & 7);
|
|
@@ -4,59 +4,65 @@ import _m0 from "protobufjs/minimal";
|
|
|
4
4
|
|
|
5
5
|
export const protobufPackage = "decentraland.social.friendships";
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
export enum ServiceErrors {
|
|
8
|
+
/** UNKNOWN - proto3 requires that first value in enum have numeric value of 0 */
|
|
9
|
+
UNKNOWN = 0,
|
|
10
|
+
BAD_REQUEST = 400,
|
|
11
|
+
UNAUTHORIZED = 401,
|
|
12
|
+
FORBIDDEN = 403,
|
|
13
|
+
NOT_FOUND = 404,
|
|
14
|
+
TOO_MANY_REQUESTS = 429,
|
|
15
|
+
INTERNAL_SERVER_ERROR = 500,
|
|
15
16
|
UNRECOGNIZED = -1,
|
|
16
17
|
}
|
|
17
18
|
|
|
18
|
-
export function
|
|
19
|
+
export function serviceErrorsFromJSON(object: any): ServiceErrors {
|
|
19
20
|
switch (object) {
|
|
20
21
|
case 0:
|
|
21
|
-
case "TOO_MANY_REQUESTS_SENT":
|
|
22
|
-
return FriendshipErrorCode.TOO_MANY_REQUESTS_SENT;
|
|
23
|
-
case 1:
|
|
24
|
-
case "NOT_ENOUGH_TIME_PASSED":
|
|
25
|
-
return FriendshipErrorCode.NOT_ENOUGH_TIME_PASSED;
|
|
26
|
-
case 2:
|
|
27
|
-
case "BLOCKED_USER":
|
|
28
|
-
return FriendshipErrorCode.BLOCKED_USER;
|
|
29
|
-
case 3:
|
|
30
|
-
case "NON_EXISTING_USER":
|
|
31
|
-
return FriendshipErrorCode.NON_EXISTING_USER;
|
|
32
|
-
case 4:
|
|
33
|
-
case "INVALID_REQUEST":
|
|
34
|
-
return FriendshipErrorCode.INVALID_REQUEST;
|
|
35
|
-
case 5:
|
|
36
22
|
case "UNKNOWN":
|
|
37
|
-
return
|
|
23
|
+
return ServiceErrors.UNKNOWN;
|
|
24
|
+
case 400:
|
|
25
|
+
case "BAD_REQUEST":
|
|
26
|
+
return ServiceErrors.BAD_REQUEST;
|
|
27
|
+
case 401:
|
|
28
|
+
case "UNAUTHORIZED":
|
|
29
|
+
return ServiceErrors.UNAUTHORIZED;
|
|
30
|
+
case 403:
|
|
31
|
+
case "FORBIDDEN":
|
|
32
|
+
return ServiceErrors.FORBIDDEN;
|
|
33
|
+
case 404:
|
|
34
|
+
case "NOT_FOUND":
|
|
35
|
+
return ServiceErrors.NOT_FOUND;
|
|
36
|
+
case 429:
|
|
37
|
+
case "TOO_MANY_REQUESTS":
|
|
38
|
+
return ServiceErrors.TOO_MANY_REQUESTS;
|
|
39
|
+
case 500:
|
|
40
|
+
case "INTERNAL_SERVER_ERROR":
|
|
41
|
+
return ServiceErrors.INTERNAL_SERVER_ERROR;
|
|
38
42
|
case -1:
|
|
39
43
|
case "UNRECOGNIZED":
|
|
40
44
|
default:
|
|
41
|
-
return
|
|
45
|
+
return ServiceErrors.UNRECOGNIZED;
|
|
42
46
|
}
|
|
43
47
|
}
|
|
44
48
|
|
|
45
|
-
export function
|
|
49
|
+
export function serviceErrorsToJSON(object: ServiceErrors): string {
|
|
46
50
|
switch (object) {
|
|
47
|
-
case
|
|
48
|
-
return "TOO_MANY_REQUESTS_SENT";
|
|
49
|
-
case FriendshipErrorCode.NOT_ENOUGH_TIME_PASSED:
|
|
50
|
-
return "NOT_ENOUGH_TIME_PASSED";
|
|
51
|
-
case FriendshipErrorCode.BLOCKED_USER:
|
|
52
|
-
return "BLOCKED_USER";
|
|
53
|
-
case FriendshipErrorCode.NON_EXISTING_USER:
|
|
54
|
-
return "NON_EXISTING_USER";
|
|
55
|
-
case FriendshipErrorCode.INVALID_REQUEST:
|
|
56
|
-
return "INVALID_REQUEST";
|
|
57
|
-
case FriendshipErrorCode.UNKNOWN:
|
|
51
|
+
case ServiceErrors.UNKNOWN:
|
|
58
52
|
return "UNKNOWN";
|
|
59
|
-
case
|
|
53
|
+
case ServiceErrors.BAD_REQUEST:
|
|
54
|
+
return "BAD_REQUEST";
|
|
55
|
+
case ServiceErrors.UNAUTHORIZED:
|
|
56
|
+
return "UNAUTHORIZED";
|
|
57
|
+
case ServiceErrors.FORBIDDEN:
|
|
58
|
+
return "FORBIDDEN";
|
|
59
|
+
case ServiceErrors.NOT_FOUND:
|
|
60
|
+
return "NOT_FOUND";
|
|
61
|
+
case ServiceErrors.TOO_MANY_REQUESTS:
|
|
62
|
+
return "TOO_MANY_REQUESTS";
|
|
63
|
+
case ServiceErrors.INTERNAL_SERVER_ERROR:
|
|
64
|
+
return "INTERNAL_SERVER_ERROR";
|
|
65
|
+
case ServiceErrors.UNRECOGNIZED:
|
|
60
66
|
default:
|
|
61
67
|
return "UNRECOGNIZED";
|
|
62
68
|
}
|
|
@@ -202,42 +208,42 @@ export const FriendshipEventResponse = {
|
|
|
202
208
|
const tag = reader.uint32();
|
|
203
209
|
switch (tag >>> 3) {
|
|
204
210
|
case 1:
|
|
205
|
-
if (tag
|
|
211
|
+
if (tag !== 10) {
|
|
206
212
|
break;
|
|
207
213
|
}
|
|
208
214
|
|
|
209
215
|
message.body = { $case: "request", request: RequestResponse.decode(reader, reader.uint32()) };
|
|
210
216
|
continue;
|
|
211
217
|
case 2:
|
|
212
|
-
if (tag
|
|
218
|
+
if (tag !== 18) {
|
|
213
219
|
break;
|
|
214
220
|
}
|
|
215
221
|
|
|
216
222
|
message.body = { $case: "accept", accept: AcceptResponse.decode(reader, reader.uint32()) };
|
|
217
223
|
continue;
|
|
218
224
|
case 4:
|
|
219
|
-
if (tag
|
|
225
|
+
if (tag !== 34) {
|
|
220
226
|
break;
|
|
221
227
|
}
|
|
222
228
|
|
|
223
229
|
message.body = { $case: "reject", reject: RejectResponse.decode(reader, reader.uint32()) };
|
|
224
230
|
continue;
|
|
225
231
|
case 5:
|
|
226
|
-
if (tag
|
|
232
|
+
if (tag !== 42) {
|
|
227
233
|
break;
|
|
228
234
|
}
|
|
229
235
|
|
|
230
236
|
message.body = { $case: "delete", delete: DeleteResponse.decode(reader, reader.uint32()) };
|
|
231
237
|
continue;
|
|
232
238
|
case 6:
|
|
233
|
-
if (tag
|
|
239
|
+
if (tag !== 50) {
|
|
234
240
|
break;
|
|
235
241
|
}
|
|
236
242
|
|
|
237
243
|
message.body = { $case: "cancel", cancel: CancelResponse.decode(reader, reader.uint32()) };
|
|
238
244
|
continue;
|
|
239
245
|
}
|
|
240
|
-
if ((tag & 7)
|
|
246
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
241
247
|
break;
|
|
242
248
|
}
|
|
243
249
|
reader.skipType(tag & 7);
|
|
@@ -335,42 +341,42 @@ export const FriendshipEventPayload = {
|
|
|
335
341
|
const tag = reader.uint32();
|
|
336
342
|
switch (tag >>> 3) {
|
|
337
343
|
case 1:
|
|
338
|
-
if (tag
|
|
344
|
+
if (tag !== 10) {
|
|
339
345
|
break;
|
|
340
346
|
}
|
|
341
347
|
|
|
342
348
|
message.body = { $case: "request", request: RequestPayload.decode(reader, reader.uint32()) };
|
|
343
349
|
continue;
|
|
344
350
|
case 2:
|
|
345
|
-
if (tag
|
|
351
|
+
if (tag !== 18) {
|
|
346
352
|
break;
|
|
347
353
|
}
|
|
348
354
|
|
|
349
355
|
message.body = { $case: "accept", accept: AcceptPayload.decode(reader, reader.uint32()) };
|
|
350
356
|
continue;
|
|
351
357
|
case 4:
|
|
352
|
-
if (tag
|
|
358
|
+
if (tag !== 34) {
|
|
353
359
|
break;
|
|
354
360
|
}
|
|
355
361
|
|
|
356
362
|
message.body = { $case: "reject", reject: RejectPayload.decode(reader, reader.uint32()) };
|
|
357
363
|
continue;
|
|
358
364
|
case 5:
|
|
359
|
-
if (tag
|
|
365
|
+
if (tag !== 42) {
|
|
360
366
|
break;
|
|
361
367
|
}
|
|
362
368
|
|
|
363
369
|
message.body = { $case: "delete", delete: DeletePayload.decode(reader, reader.uint32()) };
|
|
364
370
|
continue;
|
|
365
371
|
case 6:
|
|
366
|
-
if (tag
|
|
372
|
+
if (tag !== 50) {
|
|
367
373
|
break;
|
|
368
374
|
}
|
|
369
375
|
|
|
370
376
|
message.body = { $case: "cancel", cancel: CancelPayload.decode(reader, reader.uint32()) };
|
|
371
377
|
continue;
|
|
372
378
|
}
|
|
373
|
-
if ((tag & 7)
|
|
379
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
374
380
|
break;
|
|
375
381
|
}
|
|
376
382
|
reader.skipType(tag & 7);
|
|
@@ -454,14 +460,14 @@ export const User = {
|
|
|
454
460
|
const tag = reader.uint32();
|
|
455
461
|
switch (tag >>> 3) {
|
|
456
462
|
case 1:
|
|
457
|
-
if (tag
|
|
463
|
+
if (tag !== 10) {
|
|
458
464
|
break;
|
|
459
465
|
}
|
|
460
466
|
|
|
461
467
|
message.address = reader.string();
|
|
462
468
|
continue;
|
|
463
469
|
}
|
|
464
|
-
if ((tag & 7)
|
|
470
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
465
471
|
break;
|
|
466
472
|
}
|
|
467
473
|
reader.skipType(tag & 7);
|
|
@@ -510,14 +516,14 @@ export const Users = {
|
|
|
510
516
|
const tag = reader.uint32();
|
|
511
517
|
switch (tag >>> 3) {
|
|
512
518
|
case 1:
|
|
513
|
-
if (tag
|
|
519
|
+
if (tag !== 10) {
|
|
514
520
|
break;
|
|
515
521
|
}
|
|
516
522
|
|
|
517
523
|
message.users.push(User.decode(reader, reader.uint32()));
|
|
518
524
|
continue;
|
|
519
525
|
}
|
|
520
|
-
if ((tag & 7)
|
|
526
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
521
527
|
break;
|
|
522
528
|
}
|
|
523
529
|
reader.skipType(tag & 7);
|
|
@@ -576,28 +582,28 @@ export const RequestResponse = {
|
|
|
576
582
|
const tag = reader.uint32();
|
|
577
583
|
switch (tag >>> 3) {
|
|
578
584
|
case 1:
|
|
579
|
-
if (tag
|
|
585
|
+
if (tag !== 10) {
|
|
580
586
|
break;
|
|
581
587
|
}
|
|
582
588
|
|
|
583
589
|
message.user = User.decode(reader, reader.uint32());
|
|
584
590
|
continue;
|
|
585
591
|
case 2:
|
|
586
|
-
if (tag
|
|
592
|
+
if (tag !== 16) {
|
|
587
593
|
break;
|
|
588
594
|
}
|
|
589
595
|
|
|
590
596
|
message.createdAt = longToNumber(reader.int64() as Long);
|
|
591
597
|
continue;
|
|
592
598
|
case 3:
|
|
593
|
-
if (tag
|
|
599
|
+
if (tag !== 26) {
|
|
594
600
|
break;
|
|
595
601
|
}
|
|
596
602
|
|
|
597
603
|
message.message = reader.string();
|
|
598
604
|
continue;
|
|
599
605
|
}
|
|
600
|
-
if ((tag & 7)
|
|
606
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
601
607
|
break;
|
|
602
608
|
}
|
|
603
609
|
reader.skipType(tag & 7);
|
|
@@ -657,21 +663,21 @@ export const RequestPayload = {
|
|
|
657
663
|
const tag = reader.uint32();
|
|
658
664
|
switch (tag >>> 3) {
|
|
659
665
|
case 1:
|
|
660
|
-
if (tag
|
|
666
|
+
if (tag !== 10) {
|
|
661
667
|
break;
|
|
662
668
|
}
|
|
663
669
|
|
|
664
670
|
message.user = User.decode(reader, reader.uint32());
|
|
665
671
|
continue;
|
|
666
672
|
case 3:
|
|
667
|
-
if (tag
|
|
673
|
+
if (tag !== 26) {
|
|
668
674
|
break;
|
|
669
675
|
}
|
|
670
676
|
|
|
671
677
|
message.message = reader.string();
|
|
672
678
|
continue;
|
|
673
679
|
}
|
|
674
|
-
if ((tag & 7)
|
|
680
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
675
681
|
break;
|
|
676
682
|
}
|
|
677
683
|
reader.skipType(tag & 7);
|
|
@@ -728,21 +734,21 @@ export const Requests = {
|
|
|
728
734
|
const tag = reader.uint32();
|
|
729
735
|
switch (tag >>> 3) {
|
|
730
736
|
case 1:
|
|
731
|
-
if (tag
|
|
737
|
+
if (tag !== 8) {
|
|
732
738
|
break;
|
|
733
739
|
}
|
|
734
740
|
|
|
735
741
|
message.total = longToNumber(reader.int64() as Long);
|
|
736
742
|
continue;
|
|
737
743
|
case 2:
|
|
738
|
-
if (tag
|
|
744
|
+
if (tag !== 18) {
|
|
739
745
|
break;
|
|
740
746
|
}
|
|
741
747
|
|
|
742
748
|
message.items.push(RequestResponse.decode(reader, reader.uint32()));
|
|
743
749
|
continue;
|
|
744
750
|
}
|
|
745
|
-
if ((tag & 7)
|
|
751
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
746
752
|
break;
|
|
747
753
|
}
|
|
748
754
|
reader.skipType(tag & 7);
|
|
@@ -803,21 +809,21 @@ export const RequestEvents = {
|
|
|
803
809
|
const tag = reader.uint32();
|
|
804
810
|
switch (tag >>> 3) {
|
|
805
811
|
case 1:
|
|
806
|
-
if (tag
|
|
812
|
+
if (tag !== 10) {
|
|
807
813
|
break;
|
|
808
814
|
}
|
|
809
815
|
|
|
810
816
|
message.outgoing = Requests.decode(reader, reader.uint32());
|
|
811
817
|
continue;
|
|
812
818
|
case 2:
|
|
813
|
-
if (tag
|
|
819
|
+
if (tag !== 18) {
|
|
814
820
|
break;
|
|
815
821
|
}
|
|
816
822
|
|
|
817
823
|
message.incoming = Requests.decode(reader, reader.uint32());
|
|
818
824
|
continue;
|
|
819
825
|
}
|
|
820
|
-
if ((tag & 7)
|
|
826
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
821
827
|
break;
|
|
822
828
|
}
|
|
823
829
|
reader.skipType(tag & 7);
|
|
@@ -875,14 +881,14 @@ export const AcceptResponse = {
|
|
|
875
881
|
const tag = reader.uint32();
|
|
876
882
|
switch (tag >>> 3) {
|
|
877
883
|
case 1:
|
|
878
|
-
if (tag
|
|
884
|
+
if (tag !== 10) {
|
|
879
885
|
break;
|
|
880
886
|
}
|
|
881
887
|
|
|
882
888
|
message.user = User.decode(reader, reader.uint32());
|
|
883
889
|
continue;
|
|
884
890
|
}
|
|
885
|
-
if ((tag & 7)
|
|
891
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
886
892
|
break;
|
|
887
893
|
}
|
|
888
894
|
reader.skipType(tag & 7);
|
|
@@ -931,14 +937,14 @@ export const AcceptPayload = {
|
|
|
931
937
|
const tag = reader.uint32();
|
|
932
938
|
switch (tag >>> 3) {
|
|
933
939
|
case 1:
|
|
934
|
-
if (tag
|
|
940
|
+
if (tag !== 10) {
|
|
935
941
|
break;
|
|
936
942
|
}
|
|
937
943
|
|
|
938
944
|
message.user = User.decode(reader, reader.uint32());
|
|
939
945
|
continue;
|
|
940
946
|
}
|
|
941
|
-
if ((tag & 7)
|
|
947
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
942
948
|
break;
|
|
943
949
|
}
|
|
944
950
|
reader.skipType(tag & 7);
|
|
@@ -987,14 +993,14 @@ export const RejectResponse = {
|
|
|
987
993
|
const tag = reader.uint32();
|
|
988
994
|
switch (tag >>> 3) {
|
|
989
995
|
case 1:
|
|
990
|
-
if (tag
|
|
996
|
+
if (tag !== 10) {
|
|
991
997
|
break;
|
|
992
998
|
}
|
|
993
999
|
|
|
994
1000
|
message.user = User.decode(reader, reader.uint32());
|
|
995
1001
|
continue;
|
|
996
1002
|
}
|
|
997
|
-
if ((tag & 7)
|
|
1003
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
998
1004
|
break;
|
|
999
1005
|
}
|
|
1000
1006
|
reader.skipType(tag & 7);
|
|
@@ -1043,14 +1049,14 @@ export const RejectPayload = {
|
|
|
1043
1049
|
const tag = reader.uint32();
|
|
1044
1050
|
switch (tag >>> 3) {
|
|
1045
1051
|
case 1:
|
|
1046
|
-
if (tag
|
|
1052
|
+
if (tag !== 10) {
|
|
1047
1053
|
break;
|
|
1048
1054
|
}
|
|
1049
1055
|
|
|
1050
1056
|
message.user = User.decode(reader, reader.uint32());
|
|
1051
1057
|
continue;
|
|
1052
1058
|
}
|
|
1053
|
-
if ((tag & 7)
|
|
1059
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1054
1060
|
break;
|
|
1055
1061
|
}
|
|
1056
1062
|
reader.skipType(tag & 7);
|
|
@@ -1099,14 +1105,14 @@ export const DeleteResponse = {
|
|
|
1099
1105
|
const tag = reader.uint32();
|
|
1100
1106
|
switch (tag >>> 3) {
|
|
1101
1107
|
case 1:
|
|
1102
|
-
if (tag
|
|
1108
|
+
if (tag !== 10) {
|
|
1103
1109
|
break;
|
|
1104
1110
|
}
|
|
1105
1111
|
|
|
1106
1112
|
message.user = User.decode(reader, reader.uint32());
|
|
1107
1113
|
continue;
|
|
1108
1114
|
}
|
|
1109
|
-
if ((tag & 7)
|
|
1115
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1110
1116
|
break;
|
|
1111
1117
|
}
|
|
1112
1118
|
reader.skipType(tag & 7);
|
|
@@ -1155,14 +1161,14 @@ export const DeletePayload = {
|
|
|
1155
1161
|
const tag = reader.uint32();
|
|
1156
1162
|
switch (tag >>> 3) {
|
|
1157
1163
|
case 1:
|
|
1158
|
-
if (tag
|
|
1164
|
+
if (tag !== 10) {
|
|
1159
1165
|
break;
|
|
1160
1166
|
}
|
|
1161
1167
|
|
|
1162
1168
|
message.user = User.decode(reader, reader.uint32());
|
|
1163
1169
|
continue;
|
|
1164
1170
|
}
|
|
1165
|
-
if ((tag & 7)
|
|
1171
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1166
1172
|
break;
|
|
1167
1173
|
}
|
|
1168
1174
|
reader.skipType(tag & 7);
|
|
@@ -1211,14 +1217,14 @@ export const CancelResponse = {
|
|
|
1211
1217
|
const tag = reader.uint32();
|
|
1212
1218
|
switch (tag >>> 3) {
|
|
1213
1219
|
case 1:
|
|
1214
|
-
if (tag
|
|
1220
|
+
if (tag !== 10) {
|
|
1215
1221
|
break;
|
|
1216
1222
|
}
|
|
1217
1223
|
|
|
1218
1224
|
message.user = User.decode(reader, reader.uint32());
|
|
1219
1225
|
continue;
|
|
1220
1226
|
}
|
|
1221
|
-
if ((tag & 7)
|
|
1227
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1222
1228
|
break;
|
|
1223
1229
|
}
|
|
1224
1230
|
reader.skipType(tag & 7);
|
|
@@ -1267,14 +1273,14 @@ export const CancelPayload = {
|
|
|
1267
1273
|
const tag = reader.uint32();
|
|
1268
1274
|
switch (tag >>> 3) {
|
|
1269
1275
|
case 1:
|
|
1270
|
-
if (tag
|
|
1276
|
+
if (tag !== 10) {
|
|
1271
1277
|
break;
|
|
1272
1278
|
}
|
|
1273
1279
|
|
|
1274
1280
|
message.user = User.decode(reader, reader.uint32());
|
|
1275
1281
|
continue;
|
|
1276
1282
|
}
|
|
1277
|
-
if ((tag & 7)
|
|
1283
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1278
1284
|
break;
|
|
1279
1285
|
}
|
|
1280
1286
|
reader.skipType(tag & 7);
|
|
@@ -1326,21 +1332,21 @@ export const UpdateFriendshipPayload = {
|
|
|
1326
1332
|
const tag = reader.uint32();
|
|
1327
1333
|
switch (tag >>> 3) {
|
|
1328
1334
|
case 1:
|
|
1329
|
-
if (tag
|
|
1335
|
+
if (tag !== 10) {
|
|
1330
1336
|
break;
|
|
1331
1337
|
}
|
|
1332
1338
|
|
|
1333
1339
|
message.event = FriendshipEventPayload.decode(reader, reader.uint32());
|
|
1334
1340
|
continue;
|
|
1335
1341
|
case 2:
|
|
1336
|
-
if (tag
|
|
1342
|
+
if (tag !== 18) {
|
|
1337
1343
|
break;
|
|
1338
1344
|
}
|
|
1339
1345
|
|
|
1340
1346
|
message.authToken = Payload.decode(reader, reader.uint32());
|
|
1341
1347
|
continue;
|
|
1342
1348
|
}
|
|
1343
|
-
if ((tag & 7)
|
|
1349
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1344
1350
|
break;
|
|
1345
1351
|
}
|
|
1346
1352
|
reader.skipType(tag & 7);
|
|
@@ -1400,14 +1406,14 @@ export const UpdateFriendshipResponse = {
|
|
|
1400
1406
|
const tag = reader.uint32();
|
|
1401
1407
|
switch (tag >>> 3) {
|
|
1402
1408
|
case 1:
|
|
1403
|
-
if (tag
|
|
1409
|
+
if (tag !== 10) {
|
|
1404
1410
|
break;
|
|
1405
1411
|
}
|
|
1406
1412
|
|
|
1407
1413
|
message.event = FriendshipEventResponse.decode(reader, reader.uint32());
|
|
1408
1414
|
continue;
|
|
1409
1415
|
}
|
|
1410
|
-
if ((tag & 7)
|
|
1416
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1411
1417
|
break;
|
|
1412
1418
|
}
|
|
1413
1419
|
reader.skipType(tag & 7);
|
|
@@ -1459,14 +1465,14 @@ export const SubscribeFriendshipEventsUpdatesResponse = {
|
|
|
1459
1465
|
const tag = reader.uint32();
|
|
1460
1466
|
switch (tag >>> 3) {
|
|
1461
1467
|
case 1:
|
|
1462
|
-
if (tag
|
|
1468
|
+
if (tag !== 10) {
|
|
1463
1469
|
break;
|
|
1464
1470
|
}
|
|
1465
1471
|
|
|
1466
1472
|
message.events.push(FriendshipEventResponse.decode(reader, reader.uint32()));
|
|
1467
1473
|
continue;
|
|
1468
1474
|
}
|
|
1469
|
-
if ((tag & 7)
|
|
1475
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1470
1476
|
break;
|
|
1471
1477
|
}
|
|
1472
1478
|
reader.skipType(tag & 7);
|
|
@@ -1525,14 +1531,14 @@ export const Payload = {
|
|
|
1525
1531
|
const tag = reader.uint32();
|
|
1526
1532
|
switch (tag >>> 3) {
|
|
1527
1533
|
case 1:
|
|
1528
|
-
if (tag
|
|
1534
|
+
if (tag !== 10) {
|
|
1529
1535
|
break;
|
|
1530
1536
|
}
|
|
1531
1537
|
|
|
1532
1538
|
message.synapseToken = reader.string();
|
|
1533
1539
|
continue;
|
|
1534
1540
|
}
|
|
1535
|
-
if ((tag & 7)
|
|
1541
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1536
1542
|
break;
|
|
1537
1543
|
}
|
|
1538
1544
|
reader.skipType(tag & 7);
|