@hyperlane-xyz/cli 16.2.0 → 18.0.0

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 (190) hide show
  1. package/cli-bundle/index.js +39174 -1835
  2. package/examples/submit/transactions/{alfajores-transactions.json → sepolia-transactions.json} +1 -1
  3. package/package.json +5 -5
  4. package/cli-bundle/798.index.js +0 -169715
  5. package/cli-bundle/proto/channelz.proto +0 -564
  6. package/cli-bundle/protos/compute_operations.d.ts +0 -7304
  7. package/cli-bundle/protos/compute_operations.js +0 -1
  8. package/cli-bundle/protos/compute_operations.json +0 -1
  9. package/cli-bundle/protos/google/api/annotations.proto +0 -31
  10. package/cli-bundle/protos/google/api/apikeys/v2/apikeys.proto +0 -288
  11. package/cli-bundle/protos/google/api/apikeys/v2/resources.proto +0 -175
  12. package/cli-bundle/protos/google/api/auth.proto +0 -237
  13. package/cli-bundle/protos/google/api/backend.proto +0 -185
  14. package/cli-bundle/protos/google/api/billing.proto +0 -77
  15. package/cli-bundle/protos/google/api/client.proto +0 -427
  16. package/cli-bundle/protos/google/api/cloudquotas/v1/cloudquotas.proto +0 -322
  17. package/cli-bundle/protos/google/api/cloudquotas/v1/resources.proto +0 -311
  18. package/cli-bundle/protos/google/api/config_change.proto +0 -84
  19. package/cli-bundle/protos/google/api/consumer.proto +0 -82
  20. package/cli-bundle/protos/google/api/context.proto +0 -90
  21. package/cli-bundle/protos/google/api/control.proto +0 -41
  22. package/cli-bundle/protos/google/api/distribution.proto +0 -213
  23. package/cli-bundle/protos/google/api/documentation.proto +0 -168
  24. package/cli-bundle/protos/google/api/endpoint.proto +0 -73
  25. package/cli-bundle/protos/google/api/error_reason.proto +0 -589
  26. package/cli-bundle/protos/google/api/expr/conformance/v1alpha1/conformance_service.proto +0 -183
  27. package/cli-bundle/protos/google/api/expr/v1alpha1/checked.proto +0 -343
  28. package/cli-bundle/protos/google/api/expr/v1alpha1/eval.proto +0 -118
  29. package/cli-bundle/protos/google/api/expr/v1alpha1/explain.proto +0 -53
  30. package/cli-bundle/protos/google/api/expr/v1alpha1/syntax.proto +0 -400
  31. package/cli-bundle/protos/google/api/expr/v1alpha1/value.proto +0 -115
  32. package/cli-bundle/protos/google/api/expr/v1beta1/decl.proto +0 -84
  33. package/cli-bundle/protos/google/api/expr/v1beta1/eval.proto +0 -125
  34. package/cli-bundle/protos/google/api/expr/v1beta1/expr.proto +0 -265
  35. package/cli-bundle/protos/google/api/expr/v1beta1/source.proto +0 -62
  36. package/cli-bundle/protos/google/api/expr/v1beta1/value.proto +0 -114
  37. package/cli-bundle/protos/google/api/field_behavior.proto +0 -104
  38. package/cli-bundle/protos/google/api/field_info.proto +0 -79
  39. package/cli-bundle/protos/google/api/http.proto +0 -379
  40. package/cli-bundle/protos/google/api/httpbody.proto +0 -81
  41. package/cli-bundle/protos/google/api/label.proto +0 -48
  42. package/cli-bundle/protos/google/api/launch_stage.proto +0 -72
  43. package/cli-bundle/protos/google/api/log.proto +0 -54
  44. package/cli-bundle/protos/google/api/logging.proto +0 -81
  45. package/cli-bundle/protos/google/api/metric.proto +0 -268
  46. package/cli-bundle/protos/google/api/monitored_resource.proto +0 -130
  47. package/cli-bundle/protos/google/api/monitoring.proto +0 -107
  48. package/cli-bundle/protos/google/api/policy.proto +0 -85
  49. package/cli-bundle/protos/google/api/quota.proto +0 -184
  50. package/cli-bundle/protos/google/api/resource.proto +0 -238
  51. package/cli-bundle/protos/google/api/routing.proto +0 -461
  52. package/cli-bundle/protos/google/api/service.proto +0 -191
  53. package/cli-bundle/protos/google/api/servicecontrol/v1/check_error.proto +0 -124
  54. package/cli-bundle/protos/google/api/servicecontrol/v1/distribution.proto +0 -166
  55. package/cli-bundle/protos/google/api/servicecontrol/v1/http_request.proto +0 -93
  56. package/cli-bundle/protos/google/api/servicecontrol/v1/log_entry.proto +0 -126
  57. package/cli-bundle/protos/google/api/servicecontrol/v1/metric_value.proto +0 -81
  58. package/cli-bundle/protos/google/api/servicecontrol/v1/operation.proto +0 -123
  59. package/cli-bundle/protos/google/api/servicecontrol/v1/quota_controller.proto +0 -245
  60. package/cli-bundle/protos/google/api/servicecontrol/v1/service_controller.proto +0 -260
  61. package/cli-bundle/protos/google/api/servicecontrol/v2/service_controller.proto +0 -196
  62. package/cli-bundle/protos/google/api/servicemanagement/v1/resources.proto +0 -295
  63. package/cli-bundle/protos/google/api/servicemanagement/v1/servicemanager.proto +0 -508
  64. package/cli-bundle/protos/google/api/serviceusage/v1/resources.proto +0 -130
  65. package/cli-bundle/protos/google/api/serviceusage/v1/serviceusage.proto +0 -305
  66. package/cli-bundle/protos/google/api/serviceusage/v1beta1/resources.proto +0 -458
  67. package/cli-bundle/protos/google/api/serviceusage/v1beta1/serviceusage.proto +0 -793
  68. package/cli-bundle/protos/google/api/source_info.proto +0 -31
  69. package/cli-bundle/protos/google/api/system_parameter.proto +0 -96
  70. package/cli-bundle/protos/google/api/usage.proto +0 -96
  71. package/cli-bundle/protos/google/api/visibility.proto +0 -113
  72. package/cli-bundle/protos/google/cloud/location/locations.proto +0 -108
  73. package/cli-bundle/protos/google/iam/v1/iam_policy.proto +0 -155
  74. package/cli-bundle/protos/google/iam/v1/logging/audit_data.proto +0 -33
  75. package/cli-bundle/protos/google/iam/v1/options.proto +0 -48
  76. package/cli-bundle/protos/google/iam/v1/policy.proto +0 -410
  77. package/cli-bundle/protos/google/logging/type/http_request.proto +0 -95
  78. package/cli-bundle/protos/google/logging/type/log_severity.proto +0 -71
  79. package/cli-bundle/protos/google/longrunning/operations.proto +0 -247
  80. package/cli-bundle/protos/google/monitoring/v3/alert.proto +0 -669
  81. package/cli-bundle/protos/google/monitoring/v3/alert_service.proto +0 -256
  82. package/cli-bundle/protos/google/monitoring/v3/common.proto +0 -488
  83. package/cli-bundle/protos/google/monitoring/v3/dropped_labels.proto +0 -46
  84. package/cli-bundle/protos/google/monitoring/v3/group.proto +0 -90
  85. package/cli-bundle/protos/google/monitoring/v3/group_service.proto +0 -290
  86. package/cli-bundle/protos/google/monitoring/v3/metric.proto +0 -239
  87. package/cli-bundle/protos/google/monitoring/v3/metric_service.proto +0 -522
  88. package/cli-bundle/protos/google/monitoring/v3/mutation_record.proto +0 -36
  89. package/cli-bundle/protos/google/monitoring/v3/notification.proto +0 -195
  90. package/cli-bundle/protos/google/monitoring/v3/notification_service.proto +0 -448
  91. package/cli-bundle/protos/google/monitoring/v3/query_service.proto +0 -48
  92. package/cli-bundle/protos/google/monitoring/v3/service.proto +0 -457
  93. package/cli-bundle/protos/google/monitoring/v3/service_service.proto +0 -352
  94. package/cli-bundle/protos/google/monitoring/v3/snooze.proto +0 -78
  95. package/cli-bundle/protos/google/monitoring/v3/snooze_service.proto +0 -210
  96. package/cli-bundle/protos/google/monitoring/v3/span_context.proto +0 -45
  97. package/cli-bundle/protos/google/monitoring/v3/uptime.proto +0 -564
  98. package/cli-bundle/protos/google/monitoring/v3/uptime_service.proto +0 -259
  99. package/cli-bundle/protos/google/protobuf/any.proto +0 -162
  100. package/cli-bundle/protos/google/protobuf/api.proto +0 -207
  101. package/cli-bundle/protos/google/protobuf/bridge/message_set.proto +0 -76
  102. package/cli-bundle/protos/google/protobuf/compiler/plugin.proto +0 -180
  103. package/cli-bundle/protos/google/protobuf/compiler/ruby/ruby_generated_code.proto +0 -77
  104. package/cli-bundle/protos/google/protobuf/compiler/ruby/ruby_generated_code_proto2.proto +0 -78
  105. package/cli-bundle/protos/google/protobuf/compiler/ruby/ruby_generated_code_proto2_import.proto +0 -12
  106. package/cli-bundle/protos/google/protobuf/compiler/ruby/ruby_generated_pkg_explicit.proto +0 -16
  107. package/cli-bundle/protos/google/protobuf/compiler/ruby/ruby_generated_pkg_explicit_legacy.proto +0 -16
  108. package/cli-bundle/protos/google/protobuf/compiler/ruby/ruby_generated_pkg_implicit.proto +0 -14
  109. package/cli-bundle/protos/google/protobuf/cpp_features.proto +0 -45
  110. package/cli-bundle/protos/google/protobuf/descriptor.proto +0 -1225
  111. package/cli-bundle/protos/google/protobuf/duration.proto +0 -115
  112. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_enum.proto +0 -26
  113. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_group.proto +0 -18
  114. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_import.proto +0 -16
  115. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_inline_comments.proto +0 -33
  116. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_multiline_comments.proto +0 -33
  117. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_optional.proto +0 -65
  118. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_packed.proto +0 -14
  119. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_proto3_enum.proto +0 -18
  120. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_required.proto +0 -47
  121. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_unpacked.proto +0 -19
  122. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_utf8_disabled.proto +0 -16
  123. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_utf8_lite.proto +0 -17
  124. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_utf8_verify.proto +0 -14
  125. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto3_enum.proto +0 -26
  126. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto3_implicit.proto +0 -65
  127. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto3_import.proto +0 -16
  128. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto3_optional.proto +0 -47
  129. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto3_packed.proto +0 -20
  130. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto3_unpacked.proto +0 -19
  131. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto3_utf8_strict.proto +0 -15
  132. package/cli-bundle/protos/google/protobuf/editions/golden/editions_transform_proto2.proto +0 -129
  133. package/cli-bundle/protos/google/protobuf/editions/golden/editions_transform_proto2_lite.proto +0 -19
  134. package/cli-bundle/protos/google/protobuf/editions/golden/editions_transform_proto2_utf8_disabled.proto +0 -18
  135. package/cli-bundle/protos/google/protobuf/editions/golden/editions_transform_proto3.proto +0 -32
  136. package/cli-bundle/protos/google/protobuf/editions/golden/editions_transform_proto3_utf8_disabled.proto +0 -18
  137. package/cli-bundle/protos/google/protobuf/editions/golden/simple_proto2.proto +0 -14
  138. package/cli-bundle/protos/google/protobuf/editions/golden/simple_proto2_import.proto +0 -16
  139. package/cli-bundle/protos/google/protobuf/editions/golden/simple_proto3.proto +0 -14
  140. package/cli-bundle/protos/google/protobuf/editions/proto/editions_transform_proto2.proto +0 -91
  141. package/cli-bundle/protos/google/protobuf/editions/proto/editions_transform_proto2_lite.proto +0 -20
  142. package/cli-bundle/protos/google/protobuf/editions/proto/editions_transform_proto2_utf8_disabled.proto +0 -19
  143. package/cli-bundle/protos/google/protobuf/editions/proto/editions_transform_proto3.proto +0 -25
  144. package/cli-bundle/protos/google/protobuf/editions/proto/editions_transform_proto3_utf8_disabled.proto +0 -19
  145. package/cli-bundle/protos/google/protobuf/empty.proto +0 -51
  146. package/cli-bundle/protos/google/protobuf/field_mask.proto +0 -245
  147. package/cli-bundle/protos/google/protobuf/sample_messages_edition.proto +0 -427
  148. package/cli-bundle/protos/google/protobuf/source_context.proto +0 -48
  149. package/cli-bundle/protos/google/protobuf/struct.proto +0 -95
  150. package/cli-bundle/protos/google/protobuf/timestamp.proto +0 -144
  151. package/cli-bundle/protos/google/protobuf/type.proto +0 -193
  152. package/cli-bundle/protos/google/protobuf/util/json_format.proto +0 -116
  153. package/cli-bundle/protos/google/protobuf/util/json_format_proto3.proto +0 -301
  154. package/cli-bundle/protos/google/protobuf/wrappers.proto +0 -123
  155. package/cli-bundle/protos/google/rpc/code.proto +0 -186
  156. package/cli-bundle/protos/google/rpc/context/attribute_context.proto +0 -344
  157. package/cli-bundle/protos/google/rpc/context/audit_context.proto +0 -49
  158. package/cli-bundle/protos/google/rpc/error_details.proto +0 -285
  159. package/cli-bundle/protos/google/rpc/http.proto +0 -64
  160. package/cli-bundle/protos/google/rpc/status.proto +0 -49
  161. package/cli-bundle/protos/google/type/calendar_period.proto +0 -56
  162. package/cli-bundle/protos/google/type/color.proto +0 -174
  163. package/cli-bundle/protos/google/type/date.proto +0 -52
  164. package/cli-bundle/protos/google/type/datetime.proto +0 -104
  165. package/cli-bundle/protos/google/type/dayofweek.proto +0 -50
  166. package/cli-bundle/protos/google/type/decimal.proto +0 -95
  167. package/cli-bundle/protos/google/type/expr.proto +0 -73
  168. package/cli-bundle/protos/google/type/fraction.proto +0 -33
  169. package/cli-bundle/protos/google/type/interval.proto +0 -46
  170. package/cli-bundle/protos/google/type/latlng.proto +0 -37
  171. package/cli-bundle/protos/google/type/localized_text.proto +0 -36
  172. package/cli-bundle/protos/google/type/money.proto +0 -42
  173. package/cli-bundle/protos/google/type/month.proto +0 -65
  174. package/cli-bundle/protos/google/type/phone_number.proto +0 -113
  175. package/cli-bundle/protos/google/type/postal_address.proto +0 -134
  176. package/cli-bundle/protos/google/type/quaternion.proto +0 -94
  177. package/cli-bundle/protos/google/type/timeofday.proto +0 -44
  178. package/cli-bundle/protos/http.d.ts +0 -347
  179. package/cli-bundle/protos/http.js +0 -1
  180. package/cli-bundle/protos/iam_service.d.ts +0 -5035
  181. package/cli-bundle/protos/iam_service.js +0 -1
  182. package/cli-bundle/protos/iam_service.json +0 -1
  183. package/cli-bundle/protos/locations.d.ts +0 -4060
  184. package/cli-bundle/protos/locations.js +0 -1
  185. package/cli-bundle/protos/locations.json +0 -1
  186. package/cli-bundle/protos/operations.d.ts +0 -4783
  187. package/cli-bundle/protos/operations.js +0 -1
  188. package/cli-bundle/protos/operations.json +0 -1
  189. package/cli-bundle/protos/status.json +0 -1
  190. package/cli-bundle/worker2.js +0 -174
@@ -1,400 +0,0 @@
1
- // Copyright 2023 Google LLC
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
- syntax = "proto3";
16
-
17
- package google.api.expr.v1alpha1;
18
-
19
- import "google/protobuf/duration.proto";
20
- import "google/protobuf/struct.proto";
21
- import "google/protobuf/timestamp.proto";
22
-
23
- option cc_enable_arenas = true;
24
- option go_package = "google.golang.org/genproto/googleapis/api/expr/v1alpha1;expr";
25
- option java_multiple_files = true;
26
- option java_outer_classname = "SyntaxProto";
27
- option java_package = "com.google.api.expr.v1alpha1";
28
-
29
- // A representation of the abstract syntax of the Common Expression Language.
30
-
31
- // An expression together with source information as returned by the parser.
32
- message ParsedExpr {
33
- // The parsed expression.
34
- Expr expr = 2;
35
-
36
- // The source info derived from input that generated the parsed `expr`.
37
- SourceInfo source_info = 3;
38
- }
39
-
40
- // An abstract representation of a common expression.
41
- //
42
- // Expressions are abstractly represented as a collection of identifiers,
43
- // select statements, function calls, literals, and comprehensions. All
44
- // operators with the exception of the '.' operator are modelled as function
45
- // calls. This makes it easy to represent new operators into the existing AST.
46
- //
47
- // All references within expressions must resolve to a
48
- // [Decl][google.api.expr.v1alpha1.Decl] provided at type-check for an
49
- // expression to be valid. A reference may either be a bare identifier `name` or
50
- // a qualified identifier `google.api.name`. References may either refer to a
51
- // value or a function declaration.
52
- //
53
- // For example, the expression `google.api.name.startsWith('expr')` references
54
- // the declaration `google.api.name` within a
55
- // [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression, and the
56
- // function declaration `startsWith`.
57
- message Expr {
58
- // An identifier expression. e.g. `request`.
59
- message Ident {
60
- // Required. Holds a single, unqualified identifier, possibly preceded by a
61
- // '.'.
62
- //
63
- // Qualified names are represented by the
64
- // [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression.
65
- string name = 1;
66
- }
67
-
68
- // A field selection expression. e.g. `request.auth`.
69
- message Select {
70
- // Required. The target of the selection expression.
71
- //
72
- // For example, in the select expression `request.auth`, the `request`
73
- // portion of the expression is the `operand`.
74
- Expr operand = 1;
75
-
76
- // Required. The name of the field to select.
77
- //
78
- // For example, in the select expression `request.auth`, the `auth` portion
79
- // of the expression would be the `field`.
80
- string field = 2;
81
-
82
- // Whether the select is to be interpreted as a field presence test.
83
- //
84
- // This results from the macro `has(request.auth)`.
85
- bool test_only = 3;
86
- }
87
-
88
- // A call expression, including calls to predefined functions and operators.
89
- //
90
- // For example, `value == 10`, `size(map_value)`.
91
- message Call {
92
- // The target of an method call-style expression. For example, `x` in
93
- // `x.f()`.
94
- Expr target = 1;
95
-
96
- // Required. The name of the function or method being called.
97
- string function = 2;
98
-
99
- // The arguments.
100
- repeated Expr args = 3;
101
- }
102
-
103
- // A list creation expression.
104
- //
105
- // Lists may either be homogenous, e.g. `[1, 2, 3]`, or heterogeneous, e.g.
106
- // `dyn([1, 'hello', 2.0])`
107
- message CreateList {
108
- // The elements part of the list.
109
- repeated Expr elements = 1;
110
-
111
- // The indices within the elements list which are marked as optional
112
- // elements.
113
- //
114
- // When an optional-typed value is present, the value it contains
115
- // is included in the list. If the optional-typed value is absent, the list
116
- // element is omitted from the CreateList result.
117
- repeated int32 optional_indices = 2;
118
- }
119
-
120
- // A map or message creation expression.
121
- //
122
- // Maps are constructed as `{'key_name': 'value'}`. Message construction is
123
- // similar, but prefixed with a type name and composed of field ids:
124
- // `types.MyType{field_id: 'value'}`.
125
- message CreateStruct {
126
- // Represents an entry.
127
- message Entry {
128
- // Required. An id assigned to this node by the parser which is unique
129
- // in a given expression tree. This is used to associate type
130
- // information and other attributes to the node.
131
- int64 id = 1;
132
-
133
- // The `Entry` key kinds.
134
- oneof key_kind {
135
- // The field key for a message creator statement.
136
- string field_key = 2;
137
-
138
- // The key expression for a map creation statement.
139
- Expr map_key = 3;
140
- }
141
-
142
- // Required. The value assigned to the key.
143
- //
144
- // If the optional_entry field is true, the expression must resolve to an
145
- // optional-typed value. If the optional value is present, the key will be
146
- // set; however, if the optional value is absent, the key will be unset.
147
- Expr value = 4;
148
-
149
- // Whether the key-value pair is optional.
150
- bool optional_entry = 5;
151
- }
152
-
153
- // The type name of the message to be created, empty when creating map
154
- // literals.
155
- string message_name = 1;
156
-
157
- // The entries in the creation expression.
158
- repeated Entry entries = 2;
159
- }
160
-
161
- // A comprehension expression applied to a list or map.
162
- //
163
- // Comprehensions are not part of the core syntax, but enabled with macros.
164
- // A macro matches a specific call signature within a parsed AST and replaces
165
- // the call with an alternate AST block. Macro expansion happens at parse
166
- // time.
167
- //
168
- // The following macros are supported within CEL:
169
- //
170
- // Aggregate type macros may be applied to all elements in a list or all keys
171
- // in a map:
172
- //
173
- // * `all`, `exists`, `exists_one` - test a predicate expression against
174
- // the inputs and return `true` if the predicate is satisfied for all,
175
- // any, or only one value `list.all(x, x < 10)`.
176
- // * `filter` - test a predicate expression against the inputs and return
177
- // the subset of elements which satisfy the predicate:
178
- // `payments.filter(p, p > 1000)`.
179
- // * `map` - apply an expression to all elements in the input and return the
180
- // output aggregate type: `[1, 2, 3].map(i, i * i)`.
181
- //
182
- // The `has(m.x)` macro tests whether the property `x` is present in struct
183
- // `m`. The semantics of this macro depend on the type of `m`. For proto2
184
- // messages `has(m.x)` is defined as 'defined, but not set`. For proto3, the
185
- // macro tests whether the property is set to its default. For map and struct
186
- // types, the macro tests whether the property `x` is defined on `m`.
187
- message Comprehension {
188
- // The name of the iteration variable.
189
- string iter_var = 1;
190
-
191
- // The range over which var iterates.
192
- Expr iter_range = 2;
193
-
194
- // The name of the variable used for accumulation of the result.
195
- string accu_var = 3;
196
-
197
- // The initial value of the accumulator.
198
- Expr accu_init = 4;
199
-
200
- // An expression which can contain iter_var and accu_var.
201
- //
202
- // Returns false when the result has been computed and may be used as
203
- // a hint to short-circuit the remainder of the comprehension.
204
- Expr loop_condition = 5;
205
-
206
- // An expression which can contain iter_var and accu_var.
207
- //
208
- // Computes the next value of accu_var.
209
- Expr loop_step = 6;
210
-
211
- // An expression which can contain accu_var.
212
- //
213
- // Computes the result.
214
- Expr result = 7;
215
- }
216
-
217
- // Required. An id assigned to this node by the parser which is unique in a
218
- // given expression tree. This is used to associate type information and other
219
- // attributes to a node in the parse tree.
220
- int64 id = 2;
221
-
222
- // Required. Variants of expressions.
223
- oneof expr_kind {
224
- // A literal expression.
225
- Constant const_expr = 3;
226
-
227
- // An identifier expression.
228
- Ident ident_expr = 4;
229
-
230
- // A field selection expression, e.g. `request.auth`.
231
- Select select_expr = 5;
232
-
233
- // A call expression, including calls to predefined functions and operators.
234
- Call call_expr = 6;
235
-
236
- // A list creation expression.
237
- CreateList list_expr = 7;
238
-
239
- // A map or message creation expression.
240
- CreateStruct struct_expr = 8;
241
-
242
- // A comprehension expression.
243
- Comprehension comprehension_expr = 9;
244
- }
245
- }
246
-
247
- // Represents a primitive literal.
248
- //
249
- // Named 'Constant' here for backwards compatibility.
250
- //
251
- // This is similar as the primitives supported in the well-known type
252
- // `google.protobuf.Value`, but richer so it can represent CEL's full range of
253
- // primitives.
254
- //
255
- // Lists and structs are not included as constants as these aggregate types may
256
- // contain [Expr][google.api.expr.v1alpha1.Expr] elements which require
257
- // evaluation and are thus not constant.
258
- //
259
- // Examples of literals include: `"hello"`, `b'bytes'`, `1u`, `4.2`, `-2`,
260
- // `true`, `null`.
261
- message Constant {
262
- // Required. The valid constant kinds.
263
- oneof constant_kind {
264
- // null value.
265
- google.protobuf.NullValue null_value = 1;
266
-
267
- // boolean value.
268
- bool bool_value = 2;
269
-
270
- // int64 value.
271
- int64 int64_value = 3;
272
-
273
- // uint64 value.
274
- uint64 uint64_value = 4;
275
-
276
- // double value.
277
- double double_value = 5;
278
-
279
- // string value.
280
- string string_value = 6;
281
-
282
- // bytes value.
283
- bytes bytes_value = 7;
284
-
285
- // protobuf.Duration value.
286
- //
287
- // Deprecated: duration is no longer considered a builtin cel type.
288
- google.protobuf.Duration duration_value = 8 [deprecated = true];
289
-
290
- // protobuf.Timestamp value.
291
- //
292
- // Deprecated: timestamp is no longer considered a builtin cel type.
293
- google.protobuf.Timestamp timestamp_value = 9 [deprecated = true];
294
- }
295
- }
296
-
297
- // Source information collected at parse time.
298
- message SourceInfo {
299
- // An extension that was requested for the source expression.
300
- message Extension {
301
- // Version
302
- message Version {
303
- // Major version changes indicate different required support level from
304
- // the required components.
305
- int64 major = 1;
306
-
307
- // Minor version changes must not change the observed behavior from
308
- // existing implementations, but may be provided informationally.
309
- int64 minor = 2;
310
- }
311
-
312
- // CEL component specifier.
313
- enum Component {
314
- // Unspecified, default.
315
- COMPONENT_UNSPECIFIED = 0;
316
-
317
- // Parser. Converts a CEL string to an AST.
318
- COMPONENT_PARSER = 1;
319
-
320
- // Type checker. Checks that references in an AST are defined and types
321
- // agree.
322
- COMPONENT_TYPE_CHECKER = 2;
323
-
324
- // Runtime. Evaluates a parsed and optionally checked CEL AST against a
325
- // context.
326
- COMPONENT_RUNTIME = 3;
327
- }
328
-
329
- // Identifier for the extension. Example: constant_folding
330
- string id = 1;
331
-
332
- // If set, the listed components must understand the extension for the
333
- // expression to evaluate correctly.
334
- //
335
- // This field has set semantics, repeated values should be deduplicated.
336
- repeated Component affected_components = 2;
337
-
338
- // Version info. May be skipped if it isn't meaningful for the extension.
339
- // (for example constant_folding might always be v0.0).
340
- Version version = 3;
341
- }
342
-
343
- // The syntax version of the source, e.g. `cel1`.
344
- string syntax_version = 1;
345
-
346
- // The location name. All position information attached to an expression is
347
- // relative to this location.
348
- //
349
- // The location could be a file, UI element, or similar. For example,
350
- // `acme/app/AnvilPolicy.cel`.
351
- string location = 2;
352
-
353
- // Monotonically increasing list of code point offsets where newlines
354
- // `\n` appear.
355
- //
356
- // The line number of a given position is the index `i` where for a given
357
- // `id` the `line_offsets[i] < id_positions[id] < line_offsets[i+1]`. The
358
- // column may be derivd from `id_positions[id] - line_offsets[i]`.
359
- repeated int32 line_offsets = 3;
360
-
361
- // A map from the parse node id (e.g. `Expr.id`) to the code point offset
362
- // within the source.
363
- map<int64, int32> positions = 4;
364
-
365
- // A map from the parse node id where a macro replacement was made to the
366
- // call `Expr` that resulted in a macro expansion.
367
- //
368
- // For example, `has(value.field)` is a function call that is replaced by a
369
- // `test_only` field selection in the AST. Likewise, the call
370
- // `list.exists(e, e > 10)` translates to a comprehension expression. The key
371
- // in the map corresponds to the expression id of the expanded macro, and the
372
- // value is the call `Expr` that was replaced.
373
- map<int64, Expr> macro_calls = 5;
374
-
375
- // A list of tags for extensions that were used while parsing or type checking
376
- // the source expression. For example, optimizations that require special
377
- // runtime support may be specified.
378
- //
379
- // These are used to check feature support between components in separate
380
- // implementations. This can be used to either skip redundant work or
381
- // report an error if the extension is unsupported.
382
- repeated Extension extensions = 6;
383
- }
384
-
385
- // A specific position in source.
386
- message SourcePosition {
387
- // The soucre location name (e.g. file name).
388
- string location = 1;
389
-
390
- // The UTF-8 code unit offset.
391
- int32 offset = 2;
392
-
393
- // The 1-based index of the starting line in the source text
394
- // where the issue occurs, or 0 if unknown.
395
- int32 line = 3;
396
-
397
- // The 0-based index of the starting position within the line of source text
398
- // where the issue occurs. Only meaningful if line is nonzero.
399
- int32 column = 4;
400
- }
@@ -1,115 +0,0 @@
1
- // Copyright 2023 Google LLC
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
- syntax = "proto3";
16
-
17
- package google.api.expr.v1alpha1;
18
-
19
- import "google/protobuf/any.proto";
20
- import "google/protobuf/struct.proto";
21
-
22
- option cc_enable_arenas = true;
23
- option go_package = "google.golang.org/genproto/googleapis/api/expr/v1alpha1;expr";
24
- option java_multiple_files = true;
25
- option java_outer_classname = "ValueProto";
26
- option java_package = "com.google.api.expr.v1alpha1";
27
-
28
- // Contains representations for CEL runtime values.
29
-
30
- // Represents a CEL value.
31
- //
32
- // This is similar to `google.protobuf.Value`, but can represent CEL's full
33
- // range of values.
34
- message Value {
35
- // Required. The valid kinds of values.
36
- oneof kind {
37
- // Null value.
38
- google.protobuf.NullValue null_value = 1;
39
-
40
- // Boolean value.
41
- bool bool_value = 2;
42
-
43
- // Signed integer value.
44
- int64 int64_value = 3;
45
-
46
- // Unsigned integer value.
47
- uint64 uint64_value = 4;
48
-
49
- // Floating point value.
50
- double double_value = 5;
51
-
52
- // UTF-8 string value.
53
- string string_value = 6;
54
-
55
- // Byte string value.
56
- bytes bytes_value = 7;
57
-
58
- // An enum value.
59
- EnumValue enum_value = 9;
60
-
61
- // The proto message backing an object value.
62
- google.protobuf.Any object_value = 10;
63
-
64
- // Map value.
65
- MapValue map_value = 11;
66
-
67
- // List value.
68
- ListValue list_value = 12;
69
-
70
- // Type value.
71
- string type_value = 15;
72
- }
73
- }
74
-
75
- // An enum value.
76
- message EnumValue {
77
- // The fully qualified name of the enum type.
78
- string type = 1;
79
-
80
- // The value of the enum.
81
- int32 value = 2;
82
- }
83
-
84
- // A list.
85
- //
86
- // Wrapped in a message so 'not set' and empty can be differentiated, which is
87
- // required for use in a 'oneof'.
88
- message ListValue {
89
- // The ordered values in the list.
90
- repeated Value values = 1;
91
- }
92
-
93
- // A map.
94
- //
95
- // Wrapped in a message so 'not set' and empty can be differentiated, which is
96
- // required for use in a 'oneof'.
97
- message MapValue {
98
- // An entry in the map.
99
- message Entry {
100
- // The key.
101
- //
102
- // Must be unique with in the map.
103
- // Currently only boolean, int, uint, and string values can be keys.
104
- Value key = 1;
105
-
106
- // The value.
107
- Value value = 2;
108
- }
109
-
110
- // The set of map entries.
111
- //
112
- // CEL has fewer restrictions on keys, so a protobuf map represenation
113
- // cannot be used.
114
- repeated Entry entries = 1;
115
- }
@@ -1,84 +0,0 @@
1
- // Copyright 2019 Google LLC.
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
-
16
- syntax = "proto3";
17
-
18
- package google.api.expr.v1beta1;
19
-
20
- import "google/api/expr/v1beta1/expr.proto";
21
-
22
- option cc_enable_arenas = true;
23
- option go_package = "google.golang.org/genproto/googleapis/api/expr/v1beta1;expr";
24
- option java_multiple_files = true;
25
- option java_outer_classname = "DeclProto";
26
- option java_package = "com.google.api.expr.v1beta1";
27
-
28
- // A declaration.
29
- message Decl {
30
- // The id of the declaration.
31
- int32 id = 1;
32
-
33
- // The name of the declaration.
34
- string name = 2;
35
-
36
- // The documentation string for the declaration.
37
- string doc = 3;
38
-
39
- // The kind of declaration.
40
- oneof kind {
41
- // An identifier declaration.
42
- IdentDecl ident = 4;
43
-
44
- // A function declaration.
45
- FunctionDecl function = 5;
46
- }
47
- }
48
-
49
- // The declared type of a variable.
50
- //
51
- // Extends runtime type values with extra information used for type checking
52
- // and dispatching.
53
- message DeclType {
54
- // The expression id of the declared type, if applicable.
55
- int32 id = 1;
56
-
57
- // The type name, e.g. 'int', 'my.type.Type' or 'T'
58
- string type = 2;
59
-
60
- // An ordered list of type parameters, e.g. `<string, int>`.
61
- // Only applies to a subset of types, e.g. `map`, `list`.
62
- repeated DeclType type_params = 4;
63
- }
64
-
65
- // An identifier declaration.
66
- message IdentDecl {
67
- // Optional type of the identifier.
68
- DeclType type = 3;
69
-
70
- // Optional value of the identifier.
71
- Expr value = 4;
72
- }
73
-
74
- // A function declaration.
75
- message FunctionDecl {
76
- // The function arguments.
77
- repeated IdentDecl args = 1;
78
-
79
- // Optional declared return type.
80
- DeclType return_type = 2;
81
-
82
- // If the first argument of the function is the receiver.
83
- bool receiver_function = 3;
84
- }