@dcl/protocol 1.0.0-4810686946.commit-7c034e3 → 1.0.0-4863715547.commit-286ee57

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 (204) 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/social/friendships/friendships.proto +9 -8
@@ -3,69 +3,75 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.FriendshipsServiceDefinition = exports.Payload = exports.SubscribeFriendshipEventsUpdatesResponse = exports.UpdateFriendshipResponse = exports.UpdateFriendshipPayload = exports.CancelPayload = exports.CancelResponse = exports.DeletePayload = exports.DeleteResponse = exports.RejectPayload = exports.RejectResponse = exports.AcceptPayload = exports.AcceptResponse = exports.RequestEvents = exports.Requests = exports.RequestPayload = exports.RequestResponse = exports.Users = exports.User = exports.FriendshipEventPayload = exports.FriendshipEventResponse = exports.friendshipErrorCodeToJSON = exports.friendshipErrorCodeFromJSON = exports.FriendshipErrorCode = exports.protobufPackage = void 0;
6
+ exports.FriendshipsServiceDefinition = exports.Payload = exports.SubscribeFriendshipEventsUpdatesResponse = exports.UpdateFriendshipResponse = exports.UpdateFriendshipPayload = exports.CancelPayload = exports.CancelResponse = exports.DeletePayload = exports.DeleteResponse = exports.RejectPayload = exports.RejectResponse = exports.AcceptPayload = exports.AcceptResponse = exports.RequestEvents = exports.Requests = exports.RequestPayload = exports.RequestResponse = exports.Users = exports.User = exports.FriendshipEventPayload = exports.FriendshipEventResponse = exports.serviceErrorsToJSON = exports.serviceErrorsFromJSON = exports.ServiceErrors = exports.protobufPackage = void 0;
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
10
  exports.protobufPackage = "decentraland.social.friendships";
11
- /** Validation and anti-spam errors */
12
- var FriendshipErrorCode;
13
- (function (FriendshipErrorCode) {
14
- FriendshipErrorCode[FriendshipErrorCode["TOO_MANY_REQUESTS_SENT"] = 0] = "TOO_MANY_REQUESTS_SENT";
15
- FriendshipErrorCode[FriendshipErrorCode["NOT_ENOUGH_TIME_PASSED"] = 1] = "NOT_ENOUGH_TIME_PASSED";
16
- FriendshipErrorCode[FriendshipErrorCode["BLOCKED_USER"] = 2] = "BLOCKED_USER";
17
- FriendshipErrorCode[FriendshipErrorCode["NON_EXISTING_USER"] = 3] = "NON_EXISTING_USER";
18
- FriendshipErrorCode[FriendshipErrorCode["INVALID_REQUEST"] = 4] = "INVALID_REQUEST";
19
- FriendshipErrorCode[FriendshipErrorCode["UNKNOWN"] = 5] = "UNKNOWN";
20
- FriendshipErrorCode[FriendshipErrorCode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
21
- })(FriendshipErrorCode = exports.FriendshipErrorCode || (exports.FriendshipErrorCode = {}));
22
- function friendshipErrorCodeFromJSON(object) {
11
+ var ServiceErrors;
12
+ (function (ServiceErrors) {
13
+ /** UNKNOWN - proto3 requires that first value in enum have numeric value of 0 */
14
+ ServiceErrors[ServiceErrors["UNKNOWN"] = 0] = "UNKNOWN";
15
+ ServiceErrors[ServiceErrors["BAD_REQUEST"] = 400] = "BAD_REQUEST";
16
+ ServiceErrors[ServiceErrors["UNAUTHORIZED"] = 401] = "UNAUTHORIZED";
17
+ ServiceErrors[ServiceErrors["FORBIDDEN"] = 403] = "FORBIDDEN";
18
+ ServiceErrors[ServiceErrors["NOT_FOUND"] = 404] = "NOT_FOUND";
19
+ ServiceErrors[ServiceErrors["TOO_MANY_REQUESTS"] = 429] = "TOO_MANY_REQUESTS";
20
+ ServiceErrors[ServiceErrors["INTERNAL_SERVER_ERROR"] = 500] = "INTERNAL_SERVER_ERROR";
21
+ ServiceErrors[ServiceErrors["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
22
+ })(ServiceErrors = exports.ServiceErrors || (exports.ServiceErrors = {}));
23
+ function serviceErrorsFromJSON(object) {
23
24
  switch (object) {
24
25
  case 0:
25
- case "TOO_MANY_REQUESTS_SENT":
26
- return FriendshipErrorCode.TOO_MANY_REQUESTS_SENT;
27
- case 1:
28
- case "NOT_ENOUGH_TIME_PASSED":
29
- return FriendshipErrorCode.NOT_ENOUGH_TIME_PASSED;
30
- case 2:
31
- case "BLOCKED_USER":
32
- return FriendshipErrorCode.BLOCKED_USER;
33
- case 3:
34
- case "NON_EXISTING_USER":
35
- return FriendshipErrorCode.NON_EXISTING_USER;
36
- case 4:
37
- case "INVALID_REQUEST":
38
- return FriendshipErrorCode.INVALID_REQUEST;
39
- case 5:
40
26
  case "UNKNOWN":
41
- return FriendshipErrorCode.UNKNOWN;
27
+ return ServiceErrors.UNKNOWN;
28
+ case 400:
29
+ case "BAD_REQUEST":
30
+ return ServiceErrors.BAD_REQUEST;
31
+ case 401:
32
+ case "UNAUTHORIZED":
33
+ return ServiceErrors.UNAUTHORIZED;
34
+ case 403:
35
+ case "FORBIDDEN":
36
+ return ServiceErrors.FORBIDDEN;
37
+ case 404:
38
+ case "NOT_FOUND":
39
+ return ServiceErrors.NOT_FOUND;
40
+ case 429:
41
+ case "TOO_MANY_REQUESTS":
42
+ return ServiceErrors.TOO_MANY_REQUESTS;
43
+ case 500:
44
+ case "INTERNAL_SERVER_ERROR":
45
+ return ServiceErrors.INTERNAL_SERVER_ERROR;
42
46
  case -1:
43
47
  case "UNRECOGNIZED":
44
48
  default:
45
- return FriendshipErrorCode.UNRECOGNIZED;
49
+ return ServiceErrors.UNRECOGNIZED;
46
50
  }
47
51
  }
48
- exports.friendshipErrorCodeFromJSON = friendshipErrorCodeFromJSON;
49
- function friendshipErrorCodeToJSON(object) {
52
+ exports.serviceErrorsFromJSON = serviceErrorsFromJSON;
53
+ function serviceErrorsToJSON(object) {
50
54
  switch (object) {
51
- case FriendshipErrorCode.TOO_MANY_REQUESTS_SENT:
52
- return "TOO_MANY_REQUESTS_SENT";
53
- case FriendshipErrorCode.NOT_ENOUGH_TIME_PASSED:
54
- return "NOT_ENOUGH_TIME_PASSED";
55
- case FriendshipErrorCode.BLOCKED_USER:
56
- return "BLOCKED_USER";
57
- case FriendshipErrorCode.NON_EXISTING_USER:
58
- return "NON_EXISTING_USER";
59
- case FriendshipErrorCode.INVALID_REQUEST:
60
- return "INVALID_REQUEST";
61
- case FriendshipErrorCode.UNKNOWN:
55
+ case ServiceErrors.UNKNOWN:
62
56
  return "UNKNOWN";
63
- case FriendshipErrorCode.UNRECOGNIZED:
57
+ case ServiceErrors.BAD_REQUEST:
58
+ return "BAD_REQUEST";
59
+ case ServiceErrors.UNAUTHORIZED:
60
+ return "UNAUTHORIZED";
61
+ case ServiceErrors.FORBIDDEN:
62
+ return "FORBIDDEN";
63
+ case ServiceErrors.NOT_FOUND:
64
+ return "NOT_FOUND";
65
+ case ServiceErrors.TOO_MANY_REQUESTS:
66
+ return "TOO_MANY_REQUESTS";
67
+ case ServiceErrors.INTERNAL_SERVER_ERROR:
68
+ return "INTERNAL_SERVER_ERROR";
69
+ case ServiceErrors.UNRECOGNIZED:
64
70
  default:
65
71
  return "UNRECOGNIZED";
66
72
  }
67
73
  }
68
- exports.friendshipErrorCodeToJSON = friendshipErrorCodeToJSON;
74
+ exports.serviceErrorsToJSON = serviceErrorsToJSON;
69
75
  function createBaseFriendshipEventResponse() {
70
76
  return { body: undefined };
71
77
  }
@@ -99,37 +105,37 @@ exports.FriendshipEventResponse = {
99
105
  const tag = reader.uint32();
100
106
  switch (tag >>> 3) {
101
107
  case 1:
102
- if (tag != 10) {
108
+ if (tag !== 10) {
103
109
  break;
104
110
  }
105
111
  message.body = { $case: "request", request: exports.RequestResponse.decode(reader, reader.uint32()) };
106
112
  continue;
107
113
  case 2:
108
- if (tag != 18) {
114
+ if (tag !== 18) {
109
115
  break;
110
116
  }
111
117
  message.body = { $case: "accept", accept: exports.AcceptResponse.decode(reader, reader.uint32()) };
112
118
  continue;
113
119
  case 4:
114
- if (tag != 34) {
120
+ if (tag !== 34) {
115
121
  break;
116
122
  }
117
123
  message.body = { $case: "reject", reject: exports.RejectResponse.decode(reader, reader.uint32()) };
118
124
  continue;
119
125
  case 5:
120
- if (tag != 42) {
126
+ if (tag !== 42) {
121
127
  break;
122
128
  }
123
129
  message.body = { $case: "delete", delete: exports.DeleteResponse.decode(reader, reader.uint32()) };
124
130
  continue;
125
131
  case 6:
126
- if (tag != 50) {
132
+ if (tag !== 50) {
127
133
  break;
128
134
  }
129
135
  message.body = { $case: "cancel", cancel: exports.CancelResponse.decode(reader, reader.uint32()) };
130
136
  continue;
131
137
  }
132
- if ((tag & 7) == 4 || tag == 0) {
138
+ if ((tag & 7) === 4 || tag === 0) {
133
139
  break;
134
140
  }
135
141
  reader.skipType(tag & 7);
@@ -223,37 +229,37 @@ exports.FriendshipEventPayload = {
223
229
  const tag = reader.uint32();
224
230
  switch (tag >>> 3) {
225
231
  case 1:
226
- if (tag != 10) {
232
+ if (tag !== 10) {
227
233
  break;
228
234
  }
229
235
  message.body = { $case: "request", request: exports.RequestPayload.decode(reader, reader.uint32()) };
230
236
  continue;
231
237
  case 2:
232
- if (tag != 18) {
238
+ if (tag !== 18) {
233
239
  break;
234
240
  }
235
241
  message.body = { $case: "accept", accept: exports.AcceptPayload.decode(reader, reader.uint32()) };
236
242
  continue;
237
243
  case 4:
238
- if (tag != 34) {
244
+ if (tag !== 34) {
239
245
  break;
240
246
  }
241
247
  message.body = { $case: "reject", reject: exports.RejectPayload.decode(reader, reader.uint32()) };
242
248
  continue;
243
249
  case 5:
244
- if (tag != 42) {
250
+ if (tag !== 42) {
245
251
  break;
246
252
  }
247
253
  message.body = { $case: "delete", delete: exports.DeletePayload.decode(reader, reader.uint32()) };
248
254
  continue;
249
255
  case 6:
250
- if (tag != 50) {
256
+ if (tag !== 50) {
251
257
  break;
252
258
  }
253
259
  message.body = { $case: "cancel", cancel: exports.CancelPayload.decode(reader, reader.uint32()) };
254
260
  continue;
255
261
  }
256
- if ((tag & 7) == 4 || tag == 0) {
262
+ if ((tag & 7) === 4 || tag === 0) {
257
263
  break;
258
264
  }
259
265
  reader.skipType(tag & 7);
@@ -332,13 +338,13 @@ exports.User = {
332
338
  const tag = reader.uint32();
333
339
  switch (tag >>> 3) {
334
340
  case 1:
335
- if (tag != 10) {
341
+ if (tag !== 10) {
336
342
  break;
337
343
  }
338
344
  message.address = reader.string();
339
345
  continue;
340
346
  }
341
- if ((tag & 7) == 4 || tag == 0) {
347
+ if ((tag & 7) === 4 || tag === 0) {
342
348
  break;
343
349
  }
344
350
  reader.skipType(tag & 7);
@@ -381,13 +387,13 @@ exports.Users = {
381
387
  const tag = reader.uint32();
382
388
  switch (tag >>> 3) {
383
389
  case 1:
384
- if (tag != 10) {
390
+ if (tag !== 10) {
385
391
  break;
386
392
  }
387
393
  message.users.push(exports.User.decode(reader, reader.uint32()));
388
394
  continue;
389
395
  }
390
- if ((tag & 7) == 4 || tag == 0) {
396
+ if ((tag & 7) === 4 || tag === 0) {
391
397
  break;
392
398
  }
393
399
  reader.skipType(tag & 7);
@@ -441,25 +447,25 @@ exports.RequestResponse = {
441
447
  const tag = reader.uint32();
442
448
  switch (tag >>> 3) {
443
449
  case 1:
444
- if (tag != 10) {
450
+ if (tag !== 10) {
445
451
  break;
446
452
  }
447
453
  message.user = exports.User.decode(reader, reader.uint32());
448
454
  continue;
449
455
  case 2:
450
- if (tag != 16) {
456
+ if (tag !== 16) {
451
457
  break;
452
458
  }
453
459
  message.createdAt = longToNumber(reader.int64());
454
460
  continue;
455
461
  case 3:
456
- if (tag != 26) {
462
+ if (tag !== 26) {
457
463
  break;
458
464
  }
459
465
  message.message = reader.string();
460
466
  continue;
461
467
  }
462
- if ((tag & 7) == 4 || tag == 0) {
468
+ if ((tag & 7) === 4 || tag === 0) {
463
469
  break;
464
470
  }
465
471
  reader.skipType(tag & 7);
@@ -513,19 +519,19 @@ exports.RequestPayload = {
513
519
  const tag = reader.uint32();
514
520
  switch (tag >>> 3) {
515
521
  case 1:
516
- if (tag != 10) {
522
+ if (tag !== 10) {
517
523
  break;
518
524
  }
519
525
  message.user = exports.User.decode(reader, reader.uint32());
520
526
  continue;
521
527
  case 3:
522
- if (tag != 26) {
528
+ if (tag !== 26) {
523
529
  break;
524
530
  }
525
531
  message.message = reader.string();
526
532
  continue;
527
533
  }
528
- if ((tag & 7) == 4 || tag == 0) {
534
+ if ((tag & 7) === 4 || tag === 0) {
529
535
  break;
530
536
  }
531
537
  reader.skipType(tag & 7);
@@ -576,19 +582,19 @@ exports.Requests = {
576
582
  const tag = reader.uint32();
577
583
  switch (tag >>> 3) {
578
584
  case 1:
579
- if (tag != 8) {
585
+ if (tag !== 8) {
580
586
  break;
581
587
  }
582
588
  message.total = longToNumber(reader.int64());
583
589
  continue;
584
590
  case 2:
585
- if (tag != 18) {
591
+ if (tag !== 18) {
586
592
  break;
587
593
  }
588
594
  message.items.push(exports.RequestResponse.decode(reader, reader.uint32()));
589
595
  continue;
590
596
  }
591
- if ((tag & 7) == 4 || tag == 0) {
597
+ if ((tag & 7) === 4 || tag === 0) {
592
598
  break;
593
599
  }
594
600
  reader.skipType(tag & 7);
@@ -644,19 +650,19 @@ exports.RequestEvents = {
644
650
  const tag = reader.uint32();
645
651
  switch (tag >>> 3) {
646
652
  case 1:
647
- if (tag != 10) {
653
+ if (tag !== 10) {
648
654
  break;
649
655
  }
650
656
  message.outgoing = exports.Requests.decode(reader, reader.uint32());
651
657
  continue;
652
658
  case 2:
653
- if (tag != 18) {
659
+ if (tag !== 18) {
654
660
  break;
655
661
  }
656
662
  message.incoming = exports.Requests.decode(reader, reader.uint32());
657
663
  continue;
658
664
  }
659
- if ((tag & 7) == 4 || tag == 0) {
665
+ if ((tag & 7) === 4 || tag === 0) {
660
666
  break;
661
667
  }
662
668
  reader.skipType(tag & 7);
@@ -707,13 +713,13 @@ exports.AcceptResponse = {
707
713
  const tag = reader.uint32();
708
714
  switch (tag >>> 3) {
709
715
  case 1:
710
- if (tag != 10) {
716
+ if (tag !== 10) {
711
717
  break;
712
718
  }
713
719
  message.user = exports.User.decode(reader, reader.uint32());
714
720
  continue;
715
721
  }
716
- if ((tag & 7) == 4 || tag == 0) {
722
+ if ((tag & 7) === 4 || tag === 0) {
717
723
  break;
718
724
  }
719
725
  reader.skipType(tag & 7);
@@ -755,13 +761,13 @@ exports.AcceptPayload = {
755
761
  const tag = reader.uint32();
756
762
  switch (tag >>> 3) {
757
763
  case 1:
758
- if (tag != 10) {
764
+ if (tag !== 10) {
759
765
  break;
760
766
  }
761
767
  message.user = exports.User.decode(reader, reader.uint32());
762
768
  continue;
763
769
  }
764
- if ((tag & 7) == 4 || tag == 0) {
770
+ if ((tag & 7) === 4 || tag === 0) {
765
771
  break;
766
772
  }
767
773
  reader.skipType(tag & 7);
@@ -803,13 +809,13 @@ exports.RejectResponse = {
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
  message.user = exports.User.decode(reader, reader.uint32());
810
816
  continue;
811
817
  }
812
- if ((tag & 7) == 4 || tag == 0) {
818
+ if ((tag & 7) === 4 || tag === 0) {
813
819
  break;
814
820
  }
815
821
  reader.skipType(tag & 7);
@@ -851,13 +857,13 @@ exports.RejectPayload = {
851
857
  const tag = reader.uint32();
852
858
  switch (tag >>> 3) {
853
859
  case 1:
854
- if (tag != 10) {
860
+ if (tag !== 10) {
855
861
  break;
856
862
  }
857
863
  message.user = exports.User.decode(reader, reader.uint32());
858
864
  continue;
859
865
  }
860
- if ((tag & 7) == 4 || tag == 0) {
866
+ if ((tag & 7) === 4 || tag === 0) {
861
867
  break;
862
868
  }
863
869
  reader.skipType(tag & 7);
@@ -899,13 +905,13 @@ exports.DeleteResponse = {
899
905
  const tag = reader.uint32();
900
906
  switch (tag >>> 3) {
901
907
  case 1:
902
- if (tag != 10) {
908
+ if (tag !== 10) {
903
909
  break;
904
910
  }
905
911
  message.user = exports.User.decode(reader, reader.uint32());
906
912
  continue;
907
913
  }
908
- if ((tag & 7) == 4 || tag == 0) {
914
+ if ((tag & 7) === 4 || tag === 0) {
909
915
  break;
910
916
  }
911
917
  reader.skipType(tag & 7);
@@ -947,13 +953,13 @@ exports.DeletePayload = {
947
953
  const tag = reader.uint32();
948
954
  switch (tag >>> 3) {
949
955
  case 1:
950
- if (tag != 10) {
956
+ if (tag !== 10) {
951
957
  break;
952
958
  }
953
959
  message.user = exports.User.decode(reader, reader.uint32());
954
960
  continue;
955
961
  }
956
- if ((tag & 7) == 4 || tag == 0) {
962
+ if ((tag & 7) === 4 || tag === 0) {
957
963
  break;
958
964
  }
959
965
  reader.skipType(tag & 7);
@@ -995,13 +1001,13 @@ exports.CancelResponse = {
995
1001
  const tag = reader.uint32();
996
1002
  switch (tag >>> 3) {
997
1003
  case 1:
998
- if (tag != 10) {
1004
+ if (tag !== 10) {
999
1005
  break;
1000
1006
  }
1001
1007
  message.user = exports.User.decode(reader, reader.uint32());
1002
1008
  continue;
1003
1009
  }
1004
- if ((tag & 7) == 4 || tag == 0) {
1010
+ if ((tag & 7) === 4 || tag === 0) {
1005
1011
  break;
1006
1012
  }
1007
1013
  reader.skipType(tag & 7);
@@ -1043,13 +1049,13 @@ exports.CancelPayload = {
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
  message.user = exports.User.decode(reader, reader.uint32());
1050
1056
  continue;
1051
1057
  }
1052
- if ((tag & 7) == 4 || tag == 0) {
1058
+ if ((tag & 7) === 4 || tag === 0) {
1053
1059
  break;
1054
1060
  }
1055
1061
  reader.skipType(tag & 7);
@@ -1094,19 +1100,19 @@ exports.UpdateFriendshipPayload = {
1094
1100
  const tag = reader.uint32();
1095
1101
  switch (tag >>> 3) {
1096
1102
  case 1:
1097
- if (tag != 10) {
1103
+ if (tag !== 10) {
1098
1104
  break;
1099
1105
  }
1100
1106
  message.event = exports.FriendshipEventPayload.decode(reader, reader.uint32());
1101
1107
  continue;
1102
1108
  case 2:
1103
- if (tag != 18) {
1109
+ if (tag !== 18) {
1104
1110
  break;
1105
1111
  }
1106
1112
  message.authToken = exports.Payload.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);
@@ -1159,13 +1165,13 @@ exports.UpdateFriendshipResponse = {
1159
1165
  const tag = reader.uint32();
1160
1166
  switch (tag >>> 3) {
1161
1167
  case 1:
1162
- if (tag != 10) {
1168
+ if (tag !== 10) {
1163
1169
  break;
1164
1170
  }
1165
1171
  message.event = exports.FriendshipEventResponse.decode(reader, reader.uint32());
1166
1172
  continue;
1167
1173
  }
1168
- if ((tag & 7) == 4 || tag == 0) {
1174
+ if ((tag & 7) === 4 || tag === 0) {
1169
1175
  break;
1170
1176
  }
1171
1177
  reader.skipType(tag & 7);
@@ -1210,13 +1216,13 @@ exports.SubscribeFriendshipEventsUpdatesResponse = {
1210
1216
  const tag = reader.uint32();
1211
1217
  switch (tag >>> 3) {
1212
1218
  case 1:
1213
- if (tag != 10) {
1219
+ if (tag !== 10) {
1214
1220
  break;
1215
1221
  }
1216
1222
  message.events.push(exports.FriendshipEventResponse.decode(reader, reader.uint32()));
1217
1223
  continue;
1218
1224
  }
1219
- if ((tag & 7) == 4 || tag == 0) {
1225
+ if ((tag & 7) === 4 || tag === 0) {
1220
1226
  break;
1221
1227
  }
1222
1228
  reader.skipType(tag & 7);
@@ -1266,13 +1272,13 @@ exports.Payload = {
1266
1272
  const tag = reader.uint32();
1267
1273
  switch (tag >>> 3) {
1268
1274
  case 1:
1269
- if (tag != 10) {
1275
+ if (tag !== 10) {
1270
1276
  break;
1271
1277
  }
1272
1278
  message.synapseToken = reader.string();
1273
1279
  continue;
1274
1280
  }
1275
- if ((tag & 7) == 4 || tag == 0) {
1281
+ if ((tag & 7) === 4 || tag === 0) {
1276
1282
  break;
1277
1283
  }
1278
1284
  reader.skipType(tag & 7);