@rsdk/builtin-contract 3.5.0-next.4 → 4.0.0-next.10

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 (83) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +14 -7
  3. package/dist/descriptor.d.ts +2 -0
  4. package/dist/descriptor.js +5 -0
  5. package/dist/descriptor.js.map +1 -0
  6. package/dist/google/protobuf/struct.d.ts +24 -271
  7. package/dist/google/protobuf/struct.js +49 -43
  8. package/dist/google/protobuf/struct.js.map +1 -1
  9. package/dist/grpc/error/v1/error.d.ts +14 -34
  10. package/dist/grpc/error/v1/error.js +16 -7
  11. package/dist/grpc/error/v1/error.js.map +1 -1
  12. package/dist/grpc/health/v1/health.d.ts +31 -61
  13. package/dist/grpc/health/v1/health.js +12 -21
  14. package/dist/grpc/health/v1/health.js.map +1 -1
  15. package/dist/grpc/metrics/v1/metrics.d.ts +25 -25
  16. package/dist/grpc/metrics/v1/metrics.js +6 -2
  17. package/dist/grpc/metrics/v1/metrics.js.map +1 -1
  18. package/dist/grpc/reflection/v1/reflection.d.ts +277 -0
  19. package/dist/grpc/reflection/v1/reflection.js +818 -0
  20. package/dist/grpc/reflection/v1/reflection.js.map +1 -0
  21. package/dist/grpc/reflection/v1alpha/reflection.d.ts +277 -0
  22. package/dist/grpc/reflection/v1alpha/reflection.js +818 -0
  23. package/dist/grpc/reflection/v1alpha/reflection.js.map +1 -0
  24. package/dist/grpc.error.v1.js +2 -2
  25. package/dist/grpc.health.v1.d.ts +23 -34
  26. package/dist/grpc.health.v1.js +4 -2
  27. package/dist/grpc.health.v1.js.map +1 -1
  28. package/dist/grpc.metrics.v1.d.ts +10 -11
  29. package/dist/grpc.metrics.v1.js +4 -2
  30. package/dist/grpc.metrics.v1.js.map +1 -1
  31. package/dist/grpc.reflection.v1.d.ts +273 -0
  32. package/dist/grpc.reflection.v1.js +75 -0
  33. package/dist/grpc.reflection.v1.js.map +1 -0
  34. package/dist/grpc.reflection.v1alpha.d.ts +273 -0
  35. package/dist/grpc.reflection.v1alpha.js +75 -0
  36. package/dist/grpc.reflection.v1alpha.js.map +1 -0
  37. package/dist/index.d.ts +2 -0
  38. package/dist/index.google.d.ts +1 -0
  39. package/dist/index.google.js +29 -0
  40. package/dist/index.google.js.map +1 -0
  41. package/dist/index.google.protobuf.d.ts +1 -0
  42. package/dist/index.google.protobuf.js +19 -0
  43. package/dist/index.google.protobuf.js.map +1 -0
  44. package/dist/index.grpc.d.ts +4 -0
  45. package/dist/index.grpc.error.d.ts +1 -0
  46. package/dist/index.grpc.error.js +29 -0
  47. package/dist/index.grpc.error.js.map +1 -0
  48. package/dist/index.grpc.error.v1.d.ts +1 -0
  49. package/dist/index.grpc.error.v1.js +18 -0
  50. package/dist/index.grpc.error.v1.js.map +1 -0
  51. package/dist/index.grpc.health.d.ts +1 -0
  52. package/dist/index.grpc.health.js +29 -0
  53. package/dist/index.grpc.health.js.map +1 -0
  54. package/dist/index.grpc.health.v1.d.ts +1 -0
  55. package/dist/index.grpc.health.v1.js +18 -0
  56. package/dist/index.grpc.health.v1.js.map +1 -0
  57. package/dist/index.grpc.js +32 -0
  58. package/dist/index.grpc.js.map +1 -0
  59. package/dist/index.grpc.metrics.d.ts +1 -0
  60. package/dist/index.grpc.metrics.js +29 -0
  61. package/dist/index.grpc.metrics.js.map +1 -0
  62. package/dist/index.grpc.metrics.v1.d.ts +1 -0
  63. package/dist/index.grpc.metrics.v1.js +18 -0
  64. package/dist/index.grpc.metrics.v1.js.map +1 -0
  65. package/dist/index.grpc.reflection.d.ts +2 -0
  66. package/dist/index.grpc.reflection.js +30 -0
  67. package/dist/index.grpc.reflection.js.map +1 -0
  68. package/dist/index.grpc.reflection.v1.d.ts +1 -0
  69. package/dist/index.grpc.reflection.v1.js +18 -0
  70. package/dist/index.grpc.reflection.v1.js.map +1 -0
  71. package/dist/index.grpc.reflection.v1alpha.d.ts +1 -0
  72. package/dist/index.grpc.reflection.v1alpha.js +18 -0
  73. package/dist/index.grpc.reflection.v1alpha.js.map +1 -0
  74. package/dist/index.js +30 -0
  75. package/dist/index.js.map +1 -0
  76. package/docs/README.md +391 -0
  77. package/docs/schemas/ServerReflection.dot +26 -0
  78. package/docs/schemas/ServerReflection.png +0 -0
  79. package/docs/schemas/ServerReflection.svg +305 -0
  80. package/package.json +5 -4
  81. package/ppm.json +1 -1
  82. package/proto/grpc/reflection/v1/reflection.proto +155 -0
  83. package/proto/grpc/reflection/v1alpha/reflection.proto +145 -0
@@ -0,0 +1,145 @@
1
+ // Copyright 2016 gRPC authors.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ // Service exported by server reflection
16
+
17
+ syntax = "proto3";
18
+
19
+ package grpc.reflection.v1alpha;
20
+
21
+ // ServerReflection
22
+ // buf:lint:ignore SERVICE_SUFFIX
23
+ service ServerReflection {
24
+ // The reflection service is structured as a bidirectional stream, ensuring
25
+ // all related requests go to a single server.
26
+ // buf:lint:ignore RPC_REQUEST_STANDARD_NAME
27
+ // buf:lint:ignore RPC_RESPONSE_STANDARD_NAME
28
+ rpc ServerReflectionInfo(stream ServerReflectionRequest) returns (stream ServerReflectionResponse);
29
+ }
30
+
31
+ // The message sent by the client when calling ServerReflectionInfo method.
32
+ message ServerReflectionRequest {
33
+ // host
34
+ string host = 1;
35
+ // To use reflection service, the client should set one of the following
36
+ // fields in message_request. The server distinguishes requests by their
37
+ // defined field and then handles them using corresponding methods.
38
+ oneof message_request {
39
+ // Find a proto file by the file name.
40
+ string file_by_filename = 3;
41
+
42
+ // Find the proto file that declares the given fully-qualified symbol name.
43
+ // This field should be a fully-qualified symbol name
44
+ // (e.g. <package>.<service>[.<method>] or <package>.<type>).
45
+ string file_containing_symbol = 4;
46
+
47
+ // Find the proto file which defines an extension extending the given
48
+ // message type with the given field number.
49
+ ExtensionRequest file_containing_extension = 5;
50
+
51
+ // Finds the tag numbers used by all known extensions of the given message
52
+ // type, and appends them to ExtensionNumberResponse in an undefined order.
53
+ // Its corresponding method is best-effort: it's not guaranteed that the
54
+ // reflection service will implement this method, and it's not guaranteed
55
+ // that this method will provide all extensions. Returns
56
+ // StatusCode::UNIMPLEMENTED if it's not implemented.
57
+ // This field should be a fully-qualified type name. The format is
58
+ // <package>.<type>
59
+ string all_extension_numbers_of_type = 6;
60
+
61
+ // List the full names of registered services. The content will not be
62
+ // checked.
63
+ string list_services = 7;
64
+ }
65
+ }
66
+
67
+ // The type name and extension number sent by the client when requesting
68
+ // file_containing_extension.
69
+ message ExtensionRequest {
70
+ // Fully-qualified type name. The format should be <package>.<type>
71
+ string containing_type = 1;
72
+ // extension_number
73
+ int32 extension_number = 2;
74
+ }
75
+
76
+ // The message sent by the server to answer ServerReflectionInfo method.
77
+ message ServerReflectionResponse {
78
+ // valid_host
79
+ string valid_host = 1;
80
+ // original_request
81
+ ServerReflectionRequest original_request = 2;
82
+ // The server set one of the following fields accroding to the message_request
83
+ // in the request.
84
+ oneof message_response {
85
+ // This message is used to answer file_by_filename, file_containing_symbol,
86
+ // file_containing_extension requests with transitive dependencies. As
87
+ // the repeated label is not allowed in oneof fields, we use a
88
+ // FileDescriptorResponse message to encapsulate the repeated fields.
89
+ // The reflection service is allowed to avoid sending FileDescriptorProtos
90
+ // that were previously sent in response to earlier requests in the stream.
91
+ FileDescriptorResponse file_descriptor_response = 4;
92
+
93
+ // This message is used to answer all_extension_numbers_of_type requst.
94
+ ExtensionNumberResponse all_extension_numbers_response = 5;
95
+
96
+ // This message is used to answer list_services request.
97
+ ListServiceResponse list_services_response = 6;
98
+
99
+ // This message is used when an error occurs.
100
+ ErrorResponse error_response = 7;
101
+ }
102
+ }
103
+
104
+ // Serialized FileDescriptorProto messages sent by the server answering
105
+ // a file_by_filename, file_containing_symbol, or file_containing_extension
106
+ // request.
107
+ message FileDescriptorResponse {
108
+ // Serialized FileDescriptorProto messages. We avoid taking a dependency on
109
+ // descriptor.proto, which uses proto2 only features, by making them opaque
110
+ // bytes instead.
111
+ repeated bytes file_descriptor_proto = 1;
112
+ }
113
+
114
+ // A list of extension numbers sent by the server answering
115
+ // all_extension_numbers_of_type request.
116
+ message ExtensionNumberResponse {
117
+ // Full name of the base type, including the package name. The format
118
+ // is <package>.<type>
119
+ string base_type_name = 1;
120
+ // extension_number
121
+ repeated int32 extension_number = 2;
122
+ }
123
+
124
+ // A list of ServiceResponse sent by the server answering list_services request.
125
+ message ListServiceResponse {
126
+ // The information of each service may be expanded in the future, so we use
127
+ // ServiceResponse message to encapsulate it.
128
+ repeated ServiceResponse service = 1;
129
+ }
130
+
131
+ // The information of a single service used by ListServiceResponse to answer
132
+ // list_services request.
133
+ message ServiceResponse {
134
+ // Full name of a registered service, including its package name. The format
135
+ // is <package>.<service>
136
+ string name = 1;
137
+ }
138
+
139
+ // The error code and error message sent by the server when an error occurs.
140
+ message ErrorResponse {
141
+ // This field uses the error codes defined in grpc::StatusCode.
142
+ int32 error_code = 1;
143
+ // error_message
144
+ string error_message = 2;
145
+ }