@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.
Files changed (205) hide show
  1. package/out-js/decentraland/bff/authentication_service.gen.js +12 -12
  2. package/out-js/decentraland/bff/authentication_service.gen.js.map +1 -1
  3. package/out-js/decentraland/bff/comms_director_service.gen.js +7 -7
  4. package/out-js/decentraland/bff/comms_director_service.gen.js.map +1 -1
  5. package/out-js/decentraland/bff/comms_service.gen.js +4 -4
  6. package/out-js/decentraland/bff/comms_service.gen.js.map +1 -1
  7. package/out-js/decentraland/bff/http_endpoints.gen.js +47 -47
  8. package/out-js/decentraland/bff/http_endpoints.gen.js.map +1 -1
  9. package/out-js/decentraland/bff/topics_service.gen.js +14 -14
  10. package/out-js/decentraland/bff/topics_service.gen.js.map +1 -1
  11. package/out-js/decentraland/common/border_rect.gen.js +10 -10
  12. package/out-js/decentraland/common/border_rect.gen.js.map +1 -1
  13. package/out-js/decentraland/common/colors.gen.js +9 -9
  14. package/out-js/decentraland/common/colors.gen.js.map +1 -1
  15. package/out-js/decentraland/common/content_mapping.gen.js +3 -3
  16. package/out-js/decentraland/common/content_mapping.gen.js.map +1 -1
  17. package/out-js/decentraland/common/sdk/user_data.gen.js +17 -17
  18. package/out-js/decentraland/common/sdk/user_data.gen.js.map +1 -1
  19. package/out-js/decentraland/common/texture.gen.js +16 -16
  20. package/out-js/decentraland/common/texture.gen.js.map +1 -1
  21. package/out-js/decentraland/common/vectors.gen.js +11 -11
  22. package/out-js/decentraland/common/vectors.gen.js.map +1 -1
  23. package/out-js/decentraland/kernel/apis/communications_controller.gen.js +3 -3
  24. package/out-js/decentraland/kernel/apis/communications_controller.gen.js.map +1 -1
  25. package/out-js/decentraland/kernel/apis/dev_tools.gen.js +4 -4
  26. package/out-js/decentraland/kernel/apis/dev_tools.gen.js.map +1 -1
  27. package/out-js/decentraland/kernel/apis/engine_api.gen.js +101 -101
  28. package/out-js/decentraland/kernel/apis/engine_api.gen.js.map +1 -1
  29. package/out-js/decentraland/kernel/apis/environment_api.gen.js +38 -38
  30. package/out-js/decentraland/kernel/apis/environment_api.gen.js.map +1 -1
  31. package/out-js/decentraland/kernel/apis/ethereum_controller.gen.js +31 -31
  32. package/out-js/decentraland/kernel/apis/ethereum_controller.gen.js.map +1 -1
  33. package/out-js/decentraland/kernel/apis/parcel_identity.gen.js +20 -20
  34. package/out-js/decentraland/kernel/apis/parcel_identity.gen.js.map +1 -1
  35. package/out-js/decentraland/kernel/apis/permissions.gen.js +10 -10
  36. package/out-js/decentraland/kernel/apis/permissions.gen.js.map +1 -1
  37. package/out-js/decentraland/kernel/apis/players.gen.js +10 -10
  38. package/out-js/decentraland/kernel/apis/players.gen.js.map +1 -1
  39. package/out-js/decentraland/kernel/apis/portable_experiences.gen.js +17 -17
  40. package/out-js/decentraland/kernel/apis/portable_experiences.gen.js.map +1 -1
  41. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +22 -22
  42. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -1
  43. package/out-js/decentraland/kernel/apis/runtime.gen.js +23 -23
  44. package/out-js/decentraland/kernel/apis/runtime.gen.js.map +1 -1
  45. package/out-js/decentraland/kernel/apis/scene.gen.js +6 -6
  46. package/out-js/decentraland/kernel/apis/scene.gen.js.map +1 -1
  47. package/out-js/decentraland/kernel/apis/signed_fetch.gen.js +19 -19
  48. package/out-js/decentraland/kernel/apis/signed_fetch.gen.js.map +1 -1
  49. package/out-js/decentraland/kernel/apis/social_controller.gen.js +6 -6
  50. package/out-js/decentraland/kernel/apis/social_controller.gen.js.map +1 -1
  51. package/out-js/decentraland/kernel/apis/testing.gen.js +26 -26
  52. package/out-js/decentraland/kernel/apis/testing.gen.js.map +1 -1
  53. package/out-js/decentraland/kernel/apis/user_action_module.gen.js +3 -3
  54. package/out-js/decentraland/kernel/apis/user_action_module.gen.js.map +1 -1
  55. package/out-js/decentraland/kernel/apis/user_identity.gen.js +6 -6
  56. package/out-js/decentraland/kernel/apis/user_identity.gen.js.map +1 -1
  57. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +35 -35
  58. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
  59. package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.js +33 -33
  60. package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.js.map +1 -1
  61. package/out-js/decentraland/kernel/comms/v3/archipelago.gen.js +47 -47
  62. package/out-js/decentraland/kernel/comms/v3/archipelago.gen.js.map +1 -1
  63. package/out-js/decentraland/realm/about.gen.js +47 -47
  64. package/out-js/decentraland/realm/about.gen.js.map +1 -1
  65. package/out-js/decentraland/sdk/components/animator.gen.js +10 -10
  66. package/out-js/decentraland/sdk/components/animator.gen.js.map +1 -1
  67. package/out-js/decentraland/sdk/components/audio_source.gen.js +6 -6
  68. package/out-js/decentraland/sdk/components/audio_source.gen.js.map +1 -1
  69. package/out-js/decentraland/sdk/components/audio_stream.gen.js +4 -4
  70. package/out-js/decentraland/sdk/components/audio_stream.gen.js.map +1 -1
  71. package/out-js/decentraland/sdk/components/avatar_attach.gen.js +3 -3
  72. package/out-js/decentraland/sdk/components/avatar_attach.gen.js.map +1 -1
  73. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +5 -5
  74. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -1
  75. package/out-js/decentraland/sdk/components/avatar_shape.gen.js +12 -12
  76. package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -1
  77. package/out-js/decentraland/sdk/components/billboard.gen.js +2 -2
  78. package/out-js/decentraland/sdk/components/billboard.gen.js.map +1 -1
  79. package/out-js/decentraland/sdk/components/camera_mode.gen.js +2 -2
  80. package/out-js/decentraland/sdk/components/camera_mode.gen.js.map +1 -1
  81. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +3 -3
  82. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -1
  83. package/out-js/decentraland/sdk/components/common/raycast_hit.gen.js +8 -8
  84. package/out-js/decentraland/sdk/components/common/raycast_hit.gen.js.map +1 -1
  85. package/out-js/decentraland/sdk/components/engine_info.gen.js +4 -4
  86. package/out-js/decentraland/sdk/components/engine_info.gen.js.map +1 -1
  87. package/out-js/decentraland/sdk/components/gltf_container.gen.js +4 -4
  88. package/out-js/decentraland/sdk/components/gltf_container.gen.js.map +1 -1
  89. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +2 -2
  90. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -1
  91. package/out-js/decentraland/sdk/components/material.gen.js +25 -25
  92. package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
  93. package/out-js/decentraland/sdk/components/mesh_collider.gen.js +12 -12
  94. package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
  95. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +15 -15
  96. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
  97. package/out-js/decentraland/sdk/components/nft_shape.gen.js +4 -4
  98. package/out-js/decentraland/sdk/components/nft_shape.gen.js.map +1 -1
  99. package/out-js/decentraland/sdk/components/pointer_events.gen.js +10 -10
  100. package/out-js/decentraland/sdk/components/pointer_events.gen.js.map +1 -1
  101. package/out-js/decentraland/sdk/components/pointer_events_result.gen.js +7 -7
  102. package/out-js/decentraland/sdk/components/pointer_events_result.gen.js.map +1 -1
  103. package/out-js/decentraland/sdk/components/pointer_lock.gen.js +2 -2
  104. package/out-js/decentraland/sdk/components/pointer_lock.gen.js.map +1 -1
  105. package/out-js/decentraland/sdk/components/raycast.gen.js +11 -11
  106. package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -1
  107. package/out-js/decentraland/sdk/components/raycast_result.gen.js +6 -6
  108. package/out-js/decentraland/sdk/components/raycast_result.gen.js.map +1 -1
  109. package/out-js/decentraland/sdk/components/text_shape.gen.js +22 -22
  110. package/out-js/decentraland/sdk/components/text_shape.gen.js.map +1 -1
  111. package/out-js/decentraland/sdk/components/ui_background.gen.js +7 -7
  112. package/out-js/decentraland/sdk/components/ui_background.gen.js.map +1 -1
  113. package/out-js/decentraland/sdk/components/ui_dropdown.gen.js +10 -10
  114. package/out-js/decentraland/sdk/components/ui_dropdown.gen.js.map +1 -1
  115. package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js +2 -2
  116. package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js.map +1 -1
  117. package/out-js/decentraland/sdk/components/ui_input.gen.js +9 -9
  118. package/out-js/decentraland/sdk/components/ui_input.gen.js.map +1 -1
  119. package/out-js/decentraland/sdk/components/ui_input_result.gen.js +2 -2
  120. package/out-js/decentraland/sdk/components/ui_input_result.gen.js.map +1 -1
  121. package/out-js/decentraland/sdk/components/ui_text.gen.js +6 -6
  122. package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -1
  123. package/out-js/decentraland/sdk/components/ui_transform.gen.js +52 -52
  124. package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
  125. package/out-js/decentraland/sdk/components/video_player.gen.js +7 -7
  126. package/out-js/decentraland/sdk/components/video_player.gen.js.map +1 -1
  127. package/out-js/decentraland/sdk/components/visibility_component.gen.js +2 -2
  128. package/out-js/decentraland/sdk/components/visibility_component.gen.js.map +1 -1
  129. package/out-js/decentraland/social/friendships/friendships.gen.d.ts +11 -10
  130. package/out-js/decentraland/social/friendships/friendships.gen.js +105 -99
  131. package/out-js/decentraland/social/friendships/friendships.gen.js.map +1 -1
  132. package/out-js/google/protobuf/descriptor.gen.js +141 -141
  133. package/out-js/google/protobuf/descriptor.gen.js.map +1 -1
  134. package/out-js/google/protobuf/empty.gen.js +1 -1
  135. package/out-js/google/protobuf/empty.gen.js.map +1 -1
  136. package/out-ts/decentraland/bff/authentication_service.gen.ts +12 -12
  137. package/out-ts/decentraland/bff/comms_director_service.gen.ts +7 -7
  138. package/out-ts/decentraland/bff/comms_service.gen.ts +4 -4
  139. package/out-ts/decentraland/bff/http_endpoints.gen.ts +47 -47
  140. package/out-ts/decentraland/bff/topics_service.gen.ts +14 -14
  141. package/out-ts/decentraland/common/border_rect.gen.ts +10 -10
  142. package/out-ts/decentraland/common/colors.gen.ts +9 -9
  143. package/out-ts/decentraland/common/content_mapping.gen.ts +3 -3
  144. package/out-ts/decentraland/common/sdk/user_data.gen.ts +17 -17
  145. package/out-ts/decentraland/common/texture.gen.ts +16 -16
  146. package/out-ts/decentraland/common/vectors.gen.ts +11 -11
  147. package/out-ts/decentraland/kernel/apis/communications_controller.gen.ts +3 -3
  148. package/out-ts/decentraland/kernel/apis/dev_tools.gen.ts +4 -4
  149. package/out-ts/decentraland/kernel/apis/engine_api.gen.ts +101 -101
  150. package/out-ts/decentraland/kernel/apis/environment_api.gen.ts +38 -38
  151. package/out-ts/decentraland/kernel/apis/ethereum_controller.gen.ts +31 -31
  152. package/out-ts/decentraland/kernel/apis/parcel_identity.gen.ts +20 -20
  153. package/out-ts/decentraland/kernel/apis/permissions.gen.ts +12 -10
  154. package/out-ts/decentraland/kernel/apis/players.gen.ts +10 -10
  155. package/out-ts/decentraland/kernel/apis/portable_experiences.gen.ts +17 -17
  156. package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +22 -22
  157. package/out-ts/decentraland/kernel/apis/runtime.gen.ts +23 -23
  158. package/out-ts/decentraland/kernel/apis/scene.gen.ts +6 -6
  159. package/out-ts/decentraland/kernel/apis/signed_fetch.gen.ts +19 -19
  160. package/out-ts/decentraland/kernel/apis/social_controller.gen.ts +6 -6
  161. package/out-ts/decentraland/kernel/apis/testing.gen.ts +26 -26
  162. package/out-ts/decentraland/kernel/apis/user_action_module.gen.ts +3 -3
  163. package/out-ts/decentraland/kernel/apis/user_identity.gen.ts +6 -6
  164. package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +35 -35
  165. package/out-ts/decentraland/kernel/comms/rfc5/ws_comms.gen.ts +33 -33
  166. package/out-ts/decentraland/kernel/comms/v3/archipelago.gen.ts +47 -47
  167. package/out-ts/decentraland/realm/about.gen.ts +47 -47
  168. package/out-ts/decentraland/sdk/components/animator.gen.ts +10 -10
  169. package/out-ts/decentraland/sdk/components/audio_source.gen.ts +6 -6
  170. package/out-ts/decentraland/sdk/components/audio_stream.gen.ts +4 -4
  171. package/out-ts/decentraland/sdk/components/avatar_attach.gen.ts +3 -3
  172. package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +6 -5
  173. package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +12 -12
  174. package/out-ts/decentraland/sdk/components/billboard.gen.ts +2 -2
  175. package/out-ts/decentraland/sdk/components/camera_mode.gen.ts +2 -2
  176. package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +3 -3
  177. package/out-ts/decentraland/sdk/components/common/raycast_hit.gen.ts +8 -8
  178. package/out-ts/decentraland/sdk/components/engine_info.gen.ts +4 -4
  179. package/out-ts/decentraland/sdk/components/gltf_container.gen.ts +4 -4
  180. package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +2 -2
  181. package/out-ts/decentraland/sdk/components/material.gen.ts +25 -25
  182. package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +12 -12
  183. package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +17 -15
  184. package/out-ts/decentraland/sdk/components/nft_shape.gen.ts +4 -4
  185. package/out-ts/decentraland/sdk/components/pointer_events.gen.ts +10 -10
  186. package/out-ts/decentraland/sdk/components/pointer_events_result.gen.ts +7 -7
  187. package/out-ts/decentraland/sdk/components/pointer_lock.gen.ts +2 -2
  188. package/out-ts/decentraland/sdk/components/raycast.gen.ts +11 -11
  189. package/out-ts/decentraland/sdk/components/raycast_result.gen.ts +6 -6
  190. package/out-ts/decentraland/sdk/components/text_shape.gen.ts +22 -22
  191. package/out-ts/decentraland/sdk/components/ui_background.gen.ts +8 -7
  192. package/out-ts/decentraland/sdk/components/ui_dropdown.gen.ts +10 -10
  193. package/out-ts/decentraland/sdk/components/ui_dropdown_result.gen.ts +2 -2
  194. package/out-ts/decentraland/sdk/components/ui_input.gen.ts +9 -9
  195. package/out-ts/decentraland/sdk/components/ui_input_result.gen.ts +2 -2
  196. package/out-ts/decentraland/sdk/components/ui_text.gen.ts +6 -6
  197. package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +52 -52
  198. package/out-ts/decentraland/sdk/components/video_player.gen.ts +7 -7
  199. package/out-ts/decentraland/sdk/components/visibility_component.gen.ts +2 -2
  200. package/out-ts/decentraland/social/friendships/friendships.gen.ts +99 -93
  201. package/out-ts/google/protobuf/descriptor.gen.ts +146 -141
  202. package/out-ts/google/protobuf/empty.gen.ts +1 -1
  203. package/package.json +8 -5
  204. package/proto/decentraland/sdk/components/video_event.proto +25 -0
  205. 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 != 10) {
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 != 16) {
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 != 29) {
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 != 37) {
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 != 45) {
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 != 48) {
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) == 4 || tag == 0) {
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 != 8) {
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) == 4 || tag == 0) {
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
- /** Validation and anti-spam errors */
8
- export enum FriendshipErrorCode {
9
- TOO_MANY_REQUESTS_SENT = 0,
10
- NOT_ENOUGH_TIME_PASSED = 1,
11
- BLOCKED_USER = 2,
12
- NON_EXISTING_USER = 3,
13
- INVALID_REQUEST = 4,
14
- UNKNOWN = 5,
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 friendshipErrorCodeFromJSON(object: any): FriendshipErrorCode {
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 FriendshipErrorCode.UNKNOWN;
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 FriendshipErrorCode.UNRECOGNIZED;
45
+ return ServiceErrors.UNRECOGNIZED;
42
46
  }
43
47
  }
44
48
 
45
- export function friendshipErrorCodeToJSON(object: FriendshipErrorCode): string {
49
+ export function serviceErrorsToJSON(object: ServiceErrors): string {
46
50
  switch (object) {
47
- case FriendshipErrorCode.TOO_MANY_REQUESTS_SENT:
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 FriendshipErrorCode.UNRECOGNIZED:
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 != 10) {
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 != 18) {
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 != 34) {
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 != 42) {
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 != 50) {
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) == 4 || tag == 0) {
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 != 10) {
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 != 18) {
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 != 34) {
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 != 42) {
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 != 50) {
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) == 4 || tag == 0) {
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 != 10) {
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) == 4 || tag == 0) {
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 != 10) {
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) == 4 || tag == 0) {
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 != 10) {
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 != 16) {
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 != 26) {
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) == 4 || tag == 0) {
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 != 10) {
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 != 26) {
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) == 4 || tag == 0) {
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 != 8) {
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 != 18) {
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) == 4 || tag == 0) {
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 != 10) {
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 != 18) {
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) == 4 || tag == 0) {
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 != 10) {
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) == 4 || tag == 0) {
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 != 10) {
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) == 4 || tag == 0) {
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 != 10) {
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) == 4 || tag == 0) {
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 != 10) {
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) == 4 || tag == 0) {
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 != 10) {
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) == 4 || tag == 0) {
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 != 10) {
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) == 4 || tag == 0) {
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 != 10) {
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) == 4 || tag == 0) {
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 != 10) {
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) == 4 || tag == 0) {
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 != 10) {
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 != 18) {
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) == 4 || tag == 0) {
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 != 10) {
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) == 4 || tag == 0) {
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 != 10) {
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) == 4 || tag == 0) {
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 != 10) {
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) == 4 || tag == 0) {
1541
+ if ((tag & 7) === 4 || tag === 0) {
1536
1542
  break;
1537
1543
  }
1538
1544
  reader.skipType(tag & 7);