@dcl/protocol 1.0.0-3227242807.commit-ad14cba → 1.0.0-3237582415.commit-28fe6ac

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 (133) hide show
  1. package/out-ts/{bff/authentication-service.gen.ts → decentraland/bff/authentication_service.gen.ts} +0 -0
  2. package/out-ts/{bff/comms-director-service.gen.ts → decentraland/bff/comms_director_service.gen.ts} +2 -2
  3. package/out-ts/{bff/comms-service.gen.ts → decentraland/bff/comms_service.gen.ts} +1 -1
  4. package/out-ts/{bff/http-endpoints.gen.ts → decentraland/bff/http_endpoints.gen.ts} +1 -1
  5. package/out-ts/{bff/topics-service.gen.ts → decentraland/bff/topics_service.gen.ts} +0 -0
  6. package/out-ts/{common/ContentMapping.gen.ts → decentraland/common/content_mapping.gen.ts} +0 -0
  7. package/out-ts/{kernel/apis/common-sdk/UserData.gen.ts → decentraland/common/sdk/user_data.gen.ts} +1 -1
  8. package/out-ts/{common/Vectors.gen.ts → decentraland/common/vectors.gen.ts} +0 -0
  9. package/out-ts/{kernel/apis/CommunicationsController.gen.ts → decentraland/kernel/apis/communications_controller.gen.ts} +2 -2
  10. package/out-ts/{kernel/apis/DevTools.gen.ts → decentraland/kernel/apis/dev_tools.gen.ts} +2 -2
  11. package/out-ts/{kernel/apis/EngineAPI.gen.ts → decentraland/kernel/apis/engine_api.gen.ts} +112 -112
  12. package/out-ts/{kernel/apis/EnvironmentAPI.gen.ts → decentraland/kernel/apis/environment_api.gen.ts} +3 -3
  13. package/out-ts/{kernel/apis/EthereumController.gen.ts → decentraland/kernel/apis/ethereum_controller.gen.ts} +2 -2
  14. package/out-ts/{kernel/apis/ExperimentalAPI.gen.ts → decentraland/kernel/apis/experimental_api.gen.ts} +2 -2
  15. package/out-ts/{kernel/apis/ParcelIdentity.gen.ts → decentraland/kernel/apis/parcel_identity.gen.ts} +3 -3
  16. package/out-ts/{kernel/apis/Permissions.gen.ts → decentraland/kernel/apis/permissions.gen.ts} +27 -27
  17. package/out-ts/{kernel/apis/Players.gen.ts → decentraland/kernel/apis/players.gen.ts} +3 -3
  18. package/out-ts/{kernel/apis/PortableExperiences.gen.ts → decentraland/kernel/apis/portable_experiences.gen.ts} +2 -2
  19. package/out-ts/{kernel/apis/RestrictedActions.gen.ts → decentraland/kernel/apis/restricted_actions.gen.ts} +2 -2
  20. package/out-ts/{kernel/apis/SignedFetch.gen.ts → decentraland/kernel/apis/signed_fetch.gen.ts} +2 -2
  21. package/out-ts/{kernel/apis/SocialController.gen.ts → decentraland/kernel/apis/social_controller.gen.ts} +2 -2
  22. package/out-ts/{kernel/apis/UserActionModule.gen.ts → decentraland/kernel/apis/user_action_module.gen.ts} +2 -2
  23. package/out-ts/{kernel/apis/UserIdentity.gen.ts → decentraland/kernel/apis/user_identity.gen.ts} +3 -3
  24. package/package.json +5 -9
  25. package/proto/buf.yaml +45 -0
  26. package/{bff/authentication-service.proto → proto/decentraland/bff/authentication_service.proto} +0 -1
  27. package/{bff/comms-director-service.proto → proto/decentraland/bff/comms_director_service.proto} +1 -1
  28. package/{bff/comms-service.proto → proto/decentraland/bff/comms_service.proto} +2 -2
  29. package/{bff/http-endpoints.proto → proto/decentraland/bff/http_endpoints.proto} +1 -2
  30. package/{bff/topics-service.proto → proto/decentraland/bff/topics_service.proto} +0 -1
  31. package/proto/decentraland/common/colors.proto +15 -0
  32. package/{common/ContentMapping.proto → proto/decentraland/common/content_mapping.proto} +0 -0
  33. package/{common/Entity.proto → proto/decentraland/common/entity.proto} +1 -1
  34. package/{kernel/apis/common-sdk/UserData.proto → proto/decentraland/common/sdk/user_data.proto} +1 -0
  35. package/{common/Vectors.proto → proto/decentraland/common/vectors.proto} +0 -0
  36. package/{kernel/apis/CommunicationsController.proto → proto/decentraland/kernel/apis/communications_controller.proto} +1 -0
  37. package/{kernel/apis/DevTools.proto → proto/decentraland/kernel/apis/dev_tools.proto} +1 -0
  38. package/proto/decentraland/kernel/apis/engine_api.proto +179 -0
  39. package/{kernel/apis/EnvironmentAPI.proto → proto/decentraland/kernel/apis/environment_api.proto} +3 -2
  40. package/{kernel/apis/EthereumController.proto → proto/decentraland/kernel/apis/ethereum_controller.proto} +2 -1
  41. package/{kernel/apis/ExperimentalAPI.proto → proto/decentraland/kernel/apis/experimental_api.proto} +1 -0
  42. package/{kernel/apis/ParcelIdentity.proto → proto/decentraland/kernel/apis/parcel_identity.proto} +2 -1
  43. package/proto/decentraland/kernel/apis/permissions.proto +32 -0
  44. package/{kernel/apis/Players.proto → proto/decentraland/kernel/apis/players.proto} +3 -2
  45. package/{kernel/apis/PortableExperiences.proto → proto/decentraland/kernel/apis/portable_experiences.proto} +1 -0
  46. package/{kernel/apis/RestrictedActions.proto → proto/decentraland/kernel/apis/restricted_actions.proto} +1 -0
  47. package/{kernel/apis/SignedFetch.proto → proto/decentraland/kernel/apis/signed_fetch.proto} +1 -0
  48. package/{kernel/apis/SocialController.proto → proto/decentraland/kernel/apis/social_controller.proto} +1 -0
  49. package/{kernel/apis/UserActionModule.proto → proto/decentraland/kernel/apis/user_action_module.proto} +1 -0
  50. package/{kernel/apis/UserIdentity.proto → proto/decentraland/kernel/apis/user_identity.proto} +3 -2
  51. package/{kernel/comms/comms-rfc-4.proto → proto/decentraland/kernel/comms/rfc4/comms.proto} +2 -2
  52. package/{kernel/comms/ws-comms-rfc-5.proto → proto/decentraland/kernel/comms/rfc5/ws_comms.proto} +1 -1
  53. package/proto/decentraland/kernel/comms/v1/broker.proto +114 -0
  54. package/proto/decentraland/kernel/comms/v1/comms.proto +68 -0
  55. package/proto/decentraland/kernel/comms/v2/comms.proto +61 -0
  56. package/{kernel → proto/decentraland/kernel}/comms/v3/archipelago.proto +7 -7
  57. package/{kernel → proto/decentraland/kernel}/comms/v3/comms.proto +3 -3
  58. package/{renderer-protocol/EngineInterface.proto → proto/decentraland/renderer/engine_interface.proto} +2 -2
  59. package/{renderer-protocol/RendererProtocol.proto → proto/decentraland/renderer/protocol.proto} +2 -0
  60. package/{ecs → proto/decentraland/sdk}/components/README.md +3 -3
  61. package/{ecs → proto/decentraland/sdk}/components/Transform.md +0 -0
  62. package/{ecs/components/Animator.proto → proto/decentraland/sdk/components/animator.proto} +3 -2
  63. package/{ecs/components/AudioSource.proto → proto/decentraland/sdk/components/audio_source.proto} +3 -2
  64. package/{ecs/components/AudioStream.proto → proto/decentraland/sdk/components/audio_stream.proto} +3 -2
  65. package/proto/decentraland/sdk/components/avatar_attach.proto +19 -0
  66. package/proto/decentraland/sdk/components/avatar_modifier_area.proto +19 -0
  67. package/{ecs/components/AvatarShape.proto → proto/decentraland/sdk/components/avatar_shape.proto} +7 -6
  68. package/{ecs/components/Billboard.proto → proto/decentraland/sdk/components/billboard.proto} +3 -2
  69. package/proto/decentraland/sdk/components/camera_mode.proto +10 -0
  70. package/proto/decentraland/sdk/components/camera_mode_area.proto +12 -0
  71. package/proto/decentraland/sdk/components/common/action_button.proto +20 -0
  72. package/proto/decentraland/sdk/components/common/camera_mode_value.proto +8 -0
  73. package/{ecs → proto/decentraland/sdk}/components/common/id.md +0 -0
  74. package/{ecs → proto/decentraland/sdk}/components/common/id.proto +1 -0
  75. package/proto/decentraland/sdk/components/common/texts.proto +14 -0
  76. package/{ecs/components/GltfContainer.proto → proto/decentraland/sdk/components/gltf_container.proto} +3 -2
  77. package/proto/decentraland/sdk/components/material.proto +59 -0
  78. package/proto/decentraland/sdk/components/mesh_collider.proto +35 -0
  79. package/{ecs/components/MeshRenderer.proto → proto/decentraland/sdk/components/mesh_renderer.proto} +3 -2
  80. package/proto/decentraland/sdk/components/nft_shape.proto +40 -0
  81. package/proto/decentraland/sdk/components/pointer_events.proto +29 -0
  82. package/{ecs/components/PointerEventsResult.proto → proto/decentraland/sdk/components/pointer_events_result.proto} +7 -6
  83. package/proto/decentraland/sdk/components/pointer_lock.proto +9 -0
  84. package/proto/decentraland/sdk/components/raycast.proto +21 -0
  85. package/proto/decentraland/sdk/components/raycast_result.proto +25 -0
  86. package/{ecs/components/TextShape.proto → proto/decentraland/sdk/components/text_shape.proto} +11 -10
  87. package/proto/decentraland/sdk/components/ui_background.proto +11 -0
  88. package/proto/decentraland/sdk/components/ui_text.proto +16 -0
  89. package/{ecs/components/UiTransform.proto → proto/decentraland/sdk/components/ui_transform.proto} +50 -49
  90. package/proto/decentraland/sdk/components/visibility_component.proto +9 -0
  91. package/proto/google/LICENSE +27 -0
  92. package/proto/google/README.md +1 -0
  93. package/proto/google/api/annotations.json +83 -0
  94. package/proto/google/api/annotations.proto +11 -0
  95. package/proto/google/api/http.json +86 -0
  96. package/proto/google/api/http.proto +31 -0
  97. package/proto/google/protobuf/api.json +118 -0
  98. package/proto/google/protobuf/api.proto +34 -0
  99. package/proto/google/protobuf/descriptor.json +739 -0
  100. package/proto/google/protobuf/descriptor.proto +286 -0
  101. package/proto/google/protobuf/source_context.json +20 -0
  102. package/proto/google/protobuf/source_context.proto +7 -0
  103. package/proto/google/protobuf/type.json +202 -0
  104. package/proto/google/protobuf/type.proto +89 -0
  105. package/{bff-services.proto → public/bff-services.proto} +5 -5
  106. package/public/sdk-apis.proto +21 -0
  107. package/ecs/components/AvatarAttach.proto +0 -16
  108. package/ecs/components/AvatarModifierArea.proto +0 -16
  109. package/ecs/components/CameraMode.proto +0 -9
  110. package/ecs/components/CameraModeArea.proto +0 -11
  111. package/ecs/components/Material.proto +0 -59
  112. package/ecs/components/MeshCollider.proto +0 -35
  113. package/ecs/components/NFTShape.proto +0 -38
  114. package/ecs/components/PointerEvents.proto +0 -28
  115. package/ecs/components/PointerLock.proto +0 -8
  116. package/ecs/components/Raycast.proto +0 -19
  117. package/ecs/components/RaycastResult.proto +0 -24
  118. package/ecs/components/UiBackground.proto +0 -10
  119. package/ecs/components/UiText.proto +0 -25
  120. package/ecs/components/VisibilityComponent.proto +0 -8
  121. package/ecs/components/common/ActionButton.proto +0 -18
  122. package/ecs/components/common/CameraModeValue.proto +0 -6
  123. package/ecs/components/common/Color3.proto +0 -8
  124. package/ecs/components/common/Color4.proto +0 -8
  125. package/ecs/components/common/Vector3.proto +0 -7
  126. package/kernel/apis/EngineAPI.proto +0 -180
  127. package/kernel/apis/Permissions.proto +0 -30
  128. package/kernel/apis/SceneStateStorageController.proto +0 -114
  129. package/kernel/comms/v1/broker.proto +0 -114
  130. package/kernel/comms/v1/comms.proto +0 -68
  131. package/kernel/comms/v2/comms.proto +0 -61
  132. package/out-ts/kernel/apis/SceneStateStorageController.gen.ts +0 -1331
  133. package/sdk-apis.proto +0 -22
@@ -0,0 +1,21 @@
1
+ syntax = "proto3";
2
+
3
+ package decentraland.sdk.components;
4
+
5
+ import "decentraland/common/vectors.proto";
6
+ import "decentraland/sdk/components/common/id.proto";
7
+
8
+ option (common.ecs_component_id) = 1067;
9
+
10
+ enum RaycastQueryType {
11
+ RQT_HIT_FIRST = 0;
12
+ RQT_QUERY_ALL = 1;
13
+ }
14
+
15
+ message PBRaycast {
16
+ int32 timestamp = 1;
17
+ decentraland.common.Vector3 origin = 2;
18
+ decentraland.common.Vector3 direction = 3;
19
+ float max_distance = 4;
20
+ RaycastQueryType query_type = 5;
21
+ }
@@ -0,0 +1,25 @@
1
+ syntax = "proto3";
2
+ package decentraland.sdk.components;
3
+
4
+ import "decentraland/sdk/components/common/id.proto";
5
+ import "decentraland/common/vectors.proto";
6
+
7
+ option (common.ecs_component_id) = 1068;
8
+
9
+ message PBRaycastResult {
10
+ int32 timestamp = 1;
11
+ decentraland.common.Vector3 origin = 2;
12
+ decentraland.common.Vector3 direction = 3;
13
+ repeated RaycastHit hits = 4;
14
+ }
15
+
16
+ // Position will be relative to the scene
17
+ message RaycastHit {
18
+ decentraland.common.Vector3 position = 1;
19
+ decentraland.common.Vector3 origin = 2;
20
+ decentraland.common.Vector3 direction = 3;
21
+ decentraland.common.Vector3 normal_hit = 4;
22
+ float length = 5;
23
+ optional string mesh_name = 6;
24
+ optional int64 entity_id = 7;
25
+ }
@@ -1,9 +1,10 @@
1
1
  syntax = "proto3";
2
+ package decentraland.sdk.components;
2
3
 
3
- import "ecs/components/common/id.proto";
4
- option (ecs_component_id) = 1030;
4
+ import "decentraland/sdk/components/common/id.proto";
5
+ option (common.ecs_component_id) = 1030;
5
6
 
6
- import "ecs/components/common/Color3.proto";
7
+ import "decentraland/common/colors.proto";
7
8
 
8
9
  message PBTextShape {
9
10
  string text = 1;
@@ -11,8 +12,8 @@ message PBTextShape {
11
12
  optional bool visible = 2; // default=true
12
13
  optional string font = 3;
13
14
  optional float opacity = 4; // default=1.0f
14
- optional float font_Size = 5; // default=10
15
- optional bool font_autoSize = 6;
15
+ optional float font_size = 5; // default=10
16
+ optional bool font_auto_size = 6;
16
17
  optional string h_text_align = 7; // default='center'
17
18
  optional string v_text_align = 8; // default='center'
18
19
  optional float width = 9; // default=1
@@ -25,10 +26,10 @@ message PBTextShape {
25
26
  optional int32 line_count = 16;
26
27
  optional bool text_wrapping = 17;
27
28
  optional float shadow_blur = 18;
28
- optional float shadow_offsetX = 19;
29
- optional float shadow_offsetY = 20;
29
+ optional float shadow_offset_x = 19;
30
+ optional float shadow_offset_y = 20;
30
31
  optional float outline_width = 21;
31
- optional Color3 shadow_color = 22; // default=(1.0,1.0,1.0)
32
- optional Color3 outline_color = 23; // default=(1.0,1.0,1.0)
33
- optional Color3 text_color = 24; // default=(1.0,1.0,1.0)
32
+ optional decentraland.common.Color3 shadow_color = 22; // default=(1.0,1.0,1.0)
33
+ optional decentraland.common.Color3 outline_color = 23; // default=(1.0,1.0,1.0)
34
+ optional decentraland.common.Color3 text_color = 24; // default=(1.0,1.0,1.0)
34
35
  }
@@ -0,0 +1,11 @@
1
+ syntax = "proto3";
2
+ package decentraland.sdk.components;
3
+
4
+ import "decentraland/sdk/components/common/id.proto";
5
+ option (common.ecs_component_id) = 1053;
6
+
7
+ import "decentraland/common/colors.proto";
8
+
9
+ message PBUiBackground {
10
+ optional decentraland.common.Color4 background_color = 1; // default=(0.0, 0.0, 0.0, 0.0)
11
+ }
@@ -0,0 +1,16 @@
1
+ syntax = "proto3";
2
+ package decentraland.sdk.components;
3
+
4
+ import "decentraland/sdk/components/common/id.proto";
5
+ option (common.ecs_component_id) = 1052;
6
+
7
+ import "decentraland/sdk/components/common/texts.proto";
8
+ import "decentraland/common/colors.proto";
9
+
10
+ message PBUiText {
11
+ string value = 1;
12
+ optional decentraland.common.Color3 color = 2; // default=(1.0,1.0,1.0)
13
+ optional common.TextAlign text_align = 3; // default='center'
14
+ optional common.Font font = 4; // default=0
15
+ optional int32 font_size = 5; // default=10
16
+ }
@@ -1,81 +1,84 @@
1
1
  syntax = "proto3";
2
2
 
3
- import "ecs/components/common/id.proto";
4
- option (ecs_component_id) = 1050;
3
+ package decentraland.sdk.components;
4
+
5
+ import "decentraland/sdk/components/common/id.proto";
6
+
7
+ option (common.ecs_component_id) = 1050;
5
8
 
6
9
  enum YGPositionType {
7
- YGPositionTypeStatic = 0;
8
- YGPositionTypeRelative = 1;
9
- YGPositionTypeAbsolute = 2;
10
+ YGP_STATIC = 0;
11
+ YGP_RELATIVE = 1;
12
+ YGP_ABSOLUTE = 2;
10
13
  }
11
14
 
12
15
  enum YGAlign {
13
- YGAlignAuto = 0;
14
- YGAlignFlexStart = 1;
15
- YGAlignCenter = 2;
16
- YGAlignFlexEnd = 3;
17
- YGAlignStretch = 4;
18
- YGAlignBaseline = 5;
19
- YGAlignSpaceBetween = 6;
20
- YGAlignSpaceAround = 7;
16
+ YGA_AUTO = 0;
17
+ YGA_FLEX_START = 1;
18
+ YGA_CENTER = 2;
19
+ YGA_FLEX_END = 3;
20
+ YGA_STRETCH = 4;
21
+ YGA_BASELINE = 5;
22
+ YGA_SPACE_BETWEEN = 6;
23
+ YGA_SPACE_AROUND = 7;
21
24
  }
22
25
 
23
26
  enum YGUnit {
24
- YGUnitUndefined = 0;
25
- YGUnitPoint = 1;
26
- YGUnitPercent = 2;
27
- YGUnitAuto = 3;
27
+ YGU_UNDEFINED = 0;
28
+ YGU_POINT = 1;
29
+ YGU_PERCENT = 2;
30
+ YGU_AUTO = 3;
28
31
  }
29
32
 
30
33
  enum YGDirection {
31
- YGDirectionInherit = 0;
32
- YGDirectionLTR = 1;
33
- YGDirectionRTL = 2;
34
+ YGD_INHERIT = 0;
35
+ YGD_LTR = 1;
36
+ YGD_RTL = 2;
34
37
  }
35
38
 
36
39
  enum YGFlexDirection {
37
- YGFlexDirectionColumn = 0;
38
- YGFlexDirectionColumnReverse = 1;
39
- YGFlexDirectionRow = 2;
40
- YGFlexDirectionRowReverse = 3;
40
+ YGFD_COLUMN = 0;
41
+ YGFD_COLUMN_REVERSE = 1;
42
+ YGFD_ROW = 2;
43
+ YGFD_ROW_REVERSE = 3;
41
44
  }
42
45
 
43
46
  enum YGWrap {
44
- YGWrapNoWrap = 0;
45
- YGWrapWrap = 1;
46
- YGWrapWrapReverse = 2;
47
+ YGW_NO_WRAP = 0;
48
+ YGW_WRAP = 1;
49
+ YGW_WRAP_REVERSE = 2;
47
50
  }
48
51
 
49
52
  enum YGJustify {
50
- YGJustifyFlexStart = 0;
51
- YGJustifyCenter = 1;
52
- YGJustifyFlexEnd = 2;
53
- YGJustifySpaceBetween = 3;
54
- YGJustifySpaceAround = 4;
55
- YGJustifySpaceEvenly = 5;
53
+ YGJ_FLEX_START = 0;
54
+ YGJ_CENTER = 1;
55
+ YGJ_FLEX_END = 2;
56
+ YGJ_SPACE_BETWEEN = 3;
57
+ YGJ_SPACE_AROUND = 4;
58
+ YGJ_SPACE_EVENLY = 5;
56
59
  }
57
60
 
58
61
  enum YGOverflow {
59
- YGOverflowVisible = 0;
60
- YGOverflowHidden = 1;
61
- YGOverflowScroll = 2;
62
+ YGO_VISIBLE = 0;
63
+ YGO_HIDDEN = 1;
64
+ YGO_SCROLL = 2;
62
65
  }
63
66
 
64
67
  enum YGDisplay {
65
- YGDisplayFlex = 0;
66
- YGDisplayNone = 1;
68
+ YGD_FLEX = 0;
69
+ YGD_NONE = 1;
67
70
  }
68
71
 
69
72
  enum YGEdge {
70
- YGEdgeLeft = 0;
71
- YGEdgeTop = 1;
72
- YGEdgeRight = 2;
73
- YGEdgeBottom = 3;
74
- YGEdgeStart = 4;
75
- YGEdgeEnd = 5;
76
- YGEdgeHorizontal = 6;
77
- YGEdgeVertical = 7;
78
- YGEdgeAll = 8;
73
+ YGE_LEFT = 0;
74
+ YGE_TOP = 1;
75
+ YGE_RIGHT = 2;
76
+ YGE_BOTTOM = 3;
77
+ YGE_START = 4;
78
+ YGE_END = 5;
79
+ YGE_HORIZONTAL = 6;
80
+ YGE_VERTICAL = 7;
81
+ YGE_ALL = 8;
79
82
  }
80
83
 
81
84
  message PBUiTransform {
@@ -158,5 +161,3 @@ message PBUiTransform {
158
161
  reserved 77; // YGUnit border_bottom_unit = 77;
159
162
  float border_bottom = 78;
160
163
  }
161
-
162
-
@@ -0,0 +1,9 @@
1
+ syntax = "proto3";
2
+ package decentraland.sdk.components;
3
+
4
+ import "decentraland/sdk/components/common/id.proto";
5
+ option (common.ecs_component_id) = 1081;
6
+
7
+ message PBVisibilityComponent {
8
+ optional bool visible = 1; // default=true
9
+ }
@@ -0,0 +1,27 @@
1
+ Copyright 2014, Google Inc. All rights reserved.
2
+
3
+ Redistribution and use in source and binary forms, with or without
4
+ modification, are permitted provided that the following conditions are
5
+ met:
6
+
7
+ * Redistributions of source code must retain the above copyright
8
+ notice, this list of conditions and the following disclaimer.
9
+ * Redistributions in binary form must reproduce the above
10
+ copyright notice, this list of conditions and the following disclaimer
11
+ in the documentation and/or other materials provided with the
12
+ distribution.
13
+ * Neither the name of Google Inc. nor the names of its
14
+ contributors may be used to endorse or promote products derived from
15
+ this software without specific prior written permission.
16
+
17
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1 @@
1
+ This folder contains stripped and pre-parsed definitions of common Google types. These files are not used by protobuf.js directly but are here so you can use or include them where required.
@@ -0,0 +1,83 @@
1
+ {
2
+ "nested": {
3
+ "google": {
4
+ "nested": {
5
+ "api": {
6
+ "nested": {
7
+ "http": {
8
+ "type": "HttpRule",
9
+ "id": 72295728,
10
+ "extend": "google.protobuf.MethodOptions"
11
+ },
12
+ "HttpRule": {
13
+ "oneofs": {
14
+ "pattern": {
15
+ "oneof": [
16
+ "get",
17
+ "put",
18
+ "post",
19
+ "delete",
20
+ "patch",
21
+ "custom"
22
+ ]
23
+ }
24
+ },
25
+ "fields": {
26
+ "get": {
27
+ "type": "string",
28
+ "id": 2
29
+ },
30
+ "put": {
31
+ "type": "string",
32
+ "id": 3
33
+ },
34
+ "post": {
35
+ "type": "string",
36
+ "id": 4
37
+ },
38
+ "delete": {
39
+ "type": "string",
40
+ "id": 5
41
+ },
42
+ "patch": {
43
+ "type": "string",
44
+ "id": 6
45
+ },
46
+ "custom": {
47
+ "type": "CustomHttpPattern",
48
+ "id": 8
49
+ },
50
+ "selector": {
51
+ "type": "string",
52
+ "id": 1
53
+ },
54
+ "body": {
55
+ "type": "string",
56
+ "id": 7
57
+ },
58
+ "additionalBindings": {
59
+ "rule": "repeated",
60
+ "type": "HttpRule",
61
+ "id": 11
62
+ }
63
+ }
64
+ }
65
+ }
66
+ },
67
+ "protobuf": {
68
+ "nested": {
69
+ "MethodOptions": {
70
+ "fields": {},
71
+ "extensions": [
72
+ [
73
+ 1000,
74
+ 536870911
75
+ ]
76
+ ]
77
+ }
78
+ }
79
+ }
80
+ }
81
+ }
82
+ }
83
+ }
@@ -0,0 +1,11 @@
1
+ syntax = "proto3";
2
+
3
+ package google.api;
4
+
5
+ import "google/api/http.proto";
6
+ import "google/protobuf/descriptor.proto";
7
+
8
+ extend google.protobuf.MethodOptions {
9
+
10
+ HttpRule http = 72295728;
11
+ }
@@ -0,0 +1,86 @@
1
+ {
2
+ "nested": {
3
+ "google": {
4
+ "nested": {
5
+ "api": {
6
+ "nested": {
7
+ "Http": {
8
+ "fields": {
9
+ "rules": {
10
+ "rule": "repeated",
11
+ "type": "HttpRule",
12
+ "id": 1
13
+ }
14
+ }
15
+ },
16
+ "HttpRule": {
17
+ "oneofs": {
18
+ "pattern": {
19
+ "oneof": [
20
+ "get",
21
+ "put",
22
+ "post",
23
+ "delete",
24
+ "patch",
25
+ "custom"
26
+ ]
27
+ }
28
+ },
29
+ "fields": {
30
+ "get": {
31
+ "type": "string",
32
+ "id": 2
33
+ },
34
+ "put": {
35
+ "type": "string",
36
+ "id": 3
37
+ },
38
+ "post": {
39
+ "type": "string",
40
+ "id": 4
41
+ },
42
+ "delete": {
43
+ "type": "string",
44
+ "id": 5
45
+ },
46
+ "patch": {
47
+ "type": "string",
48
+ "id": 6
49
+ },
50
+ "custom": {
51
+ "type": "CustomHttpPattern",
52
+ "id": 8
53
+ },
54
+ "selector": {
55
+ "type": "string",
56
+ "id": 1
57
+ },
58
+ "body": {
59
+ "type": "string",
60
+ "id": 7
61
+ },
62
+ "additionalBindings": {
63
+ "rule": "repeated",
64
+ "type": "HttpRule",
65
+ "id": 11
66
+ }
67
+ }
68
+ },
69
+ "CustomHttpPattern": {
70
+ "fields": {
71
+ "kind": {
72
+ "type": "string",
73
+ "id": 1
74
+ },
75
+ "path": {
76
+ "type": "string",
77
+ "id": 2
78
+ }
79
+ }
80
+ }
81
+ }
82
+ }
83
+ }
84
+ }
85
+ }
86
+ }
@@ -0,0 +1,31 @@
1
+ syntax = "proto3";
2
+
3
+ package google.api;
4
+
5
+ message Http {
6
+
7
+ repeated HttpRule rules = 1;
8
+ }
9
+
10
+ message HttpRule {
11
+
12
+ oneof pattern {
13
+
14
+ string get = 2;
15
+ string put = 3;
16
+ string post = 4;
17
+ string delete = 5;
18
+ string patch = 6;
19
+ CustomHttpPattern custom = 8;
20
+ }
21
+
22
+ string selector = 1;
23
+ string body = 7;
24
+ repeated HttpRule additional_bindings = 11;
25
+ }
26
+
27
+ message CustomHttpPattern {
28
+
29
+ string kind = 1;
30
+ string path = 2;
31
+ }
@@ -0,0 +1,118 @@
1
+ {
2
+ "nested": {
3
+ "google": {
4
+ "nested": {
5
+ "protobuf": {
6
+ "nested": {
7
+ "Api": {
8
+ "fields": {
9
+ "name": {
10
+ "type": "string",
11
+ "id": 1
12
+ },
13
+ "methods": {
14
+ "rule": "repeated",
15
+ "type": "Method",
16
+ "id": 2
17
+ },
18
+ "options": {
19
+ "rule": "repeated",
20
+ "type": "Option",
21
+ "id": 3
22
+ },
23
+ "version": {
24
+ "type": "string",
25
+ "id": 4
26
+ },
27
+ "sourceContext": {
28
+ "type": "SourceContext",
29
+ "id": 5
30
+ },
31
+ "mixins": {
32
+ "rule": "repeated",
33
+ "type": "Mixin",
34
+ "id": 6
35
+ },
36
+ "syntax": {
37
+ "type": "Syntax",
38
+ "id": 7
39
+ }
40
+ }
41
+ },
42
+ "Method": {
43
+ "fields": {
44
+ "name": {
45
+ "type": "string",
46
+ "id": 1
47
+ },
48
+ "requestTypeUrl": {
49
+ "type": "string",
50
+ "id": 2
51
+ },
52
+ "requestStreaming": {
53
+ "type": "bool",
54
+ "id": 3
55
+ },
56
+ "responseTypeUrl": {
57
+ "type": "string",
58
+ "id": 4
59
+ },
60
+ "responseStreaming": {
61
+ "type": "bool",
62
+ "id": 5
63
+ },
64
+ "options": {
65
+ "rule": "repeated",
66
+ "type": "Option",
67
+ "id": 6
68
+ },
69
+ "syntax": {
70
+ "type": "Syntax",
71
+ "id": 7
72
+ }
73
+ }
74
+ },
75
+ "Mixin": {
76
+ "fields": {
77
+ "name": {
78
+ "type": "string",
79
+ "id": 1
80
+ },
81
+ "root": {
82
+ "type": "string",
83
+ "id": 2
84
+ }
85
+ }
86
+ },
87
+ "SourceContext": {
88
+ "fields": {
89
+ "fileName": {
90
+ "type": "string",
91
+ "id": 1
92
+ }
93
+ }
94
+ },
95
+ "Option": {
96
+ "fields": {
97
+ "name": {
98
+ "type": "string",
99
+ "id": 1
100
+ },
101
+ "value": {
102
+ "type": "Any",
103
+ "id": 2
104
+ }
105
+ }
106
+ },
107
+ "Syntax": {
108
+ "values": {
109
+ "SYNTAX_PROTO2": 0,
110
+ "SYNTAX_PROTO3": 1
111
+ }
112
+ }
113
+ }
114
+ }
115
+ }
116
+ }
117
+ }
118
+ }
@@ -0,0 +1,34 @@
1
+ syntax = "proto3";
2
+
3
+ package google.protobuf;
4
+
5
+ import "google/protobuf/source_context.proto";
6
+ import "google/protobuf/type.proto";
7
+
8
+ message Api {
9
+
10
+ string name = 1;
11
+ repeated Method methods = 2;
12
+ repeated Option options = 3;
13
+ string version = 4;
14
+ SourceContext source_context = 5;
15
+ repeated Mixin mixins = 6;
16
+ Syntax syntax = 7;
17
+ }
18
+
19
+ message Method {
20
+
21
+ string name = 1;
22
+ string request_type_url = 2;
23
+ bool request_streaming = 3;
24
+ string response_type_url = 4;
25
+ bool response_streaming = 5;
26
+ repeated Option options = 6;
27
+ Syntax syntax = 7;
28
+ }
29
+
30
+ message Mixin {
31
+
32
+ string name = 1;
33
+ string root = 2;
34
+ }