diff --git a/CHANGELOG.md b/CHANGELOG.md index 63b2700e8b..c1974e7146 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,128 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). -## Unreleased +## 0.47.0 + +This release contains a mix of bugfixes, optimizations, and new features. + +### New Built-in Function: `object.keys` + +It is now possible to conveniently retrieve an object's keys via a built-in function. + +Before, you had to resort to constructs like + +```rego +import future.keywords.in + +keys[k] { + _ = input[k] +} + +allow if "my_key" in keys +``` + +Now, you can simply do + +```rego +import future.keywords.in + +allow if "my_key" in object.keys(input) +``` + +See [the documentation](https://www.openpolicyagent.org/docs/v0.47.0/policy-reference/#builtin-object-objectkeys) +for all details. + +Implemented by @kevinswiber. + +### New Built-in Function: AWS Signature v4 Request Signing + +It is now possible to use a built-in function to prepare a request with a signature, so that +it can be used with AWS endpoints that use request signing for authentication. + +See this example: + +```rego +req := {"method": "get", "url": "https://examplebucket.s3.amazonaws.com/data"} +aws_config := { + "aws_access_key": "MYAWSACCESSKEYGOESHERE", + "aws_secret_access_key": "MYAWSSECRETACCESSKEYGOESHERE", + "aws_service": "s3", + "aws_region": "us-east-1", +} +example_verify_resource { + resp := http.send(providers.aws.sign_req(req, aws_config, time.now_ns())) + # process response from AWS ... +} +``` + +See [the documentation on the new built-in](https://www.openpolicyagent.org/docs/v0.47.0/policy-reference/#providers.aws) +for all details. + +Reported by @jicowan and implemented by @philipaconrad. + +### Performance improvements for `object.get` and `in` operator + +Before, using `object.get` and `in` had come with a performance penalty that wasn't +to be expected just from the look of the calls: Since they have been implemented using +built-in functions (obvious for `object.get`, not obvious for `"admin" in input.user.roles`), +all of their operands had to be read from the store (if applicable) and converted into +AST types. + +Now, we use shallow references ("lazy objects") for store reads in the evaluator. +In these two cases, this can bring huge performance improvements, when the object +argument of these two calls is a ref into the base documenent (like `data.users`): + +```rego +object.get(data.roles, input.role, []) +{ "id": 12 } in data.users +``` + +### Tooling, SDK, and Runtime + +- `opa eval`: Added `--strict` to enable strict code checking in evaluation ([#5182](https://github.com/open-policy-agent/opa/issues/5182)) authored by @Parsifal-M +- `opa fmt`: Remove `{ true }` block following `else` head +- `opa fmt`: Generate new wildcards for else and chained function heads in the parser ([#5347](https://github.com/open-policy-agent/opa/issues/5347)). This fixes superfluous + introductions of `_1` instead of `_` in when formatting functions that use wildcard arguments, like `f(_) := true`. +- `opa fmt`: Fix assignment rewrite in else formatting ([#5348](https://github.com/open-policy-agent/opa/issues/5348)) +- OCI Download: Set auth credentials only if needed ([#5212](https://github.com/open-policy-agent/opa/issues/5212)) authored by @carabasdaniel +- Server: Differentiate between "missing" and "undefined doc" in default decision ([#5344](https://github.com/open-policy-agent/opa/issues/5344)) + +### Topdown and Rego + +- `http.send`: Fix interquery cache size calculation with concurrent requests ([#5359](https://github.com/open-policy-agent/opa/issues/5359)) reported and authored by @asleire +- `http.send`: Remove socket query param for unix sockets ([#5313](https://github.com/open-policy-agent/opa/issues/5313)) reported and authored by @michivi +- Annotations: Add type coercion guards to avoid panics ([#5368](https://github.com/open-policy-agent/opa/issues/5368)) +- Compiler: Provide more accurate error locations for `some` with unused vars ([#4238](https://github.com/open-policy-agent/opa/issues/4238)) +- Optimization: Read lazy objects from the store ([#5325](https://github.com/open-policy-agent/opa/issues/5325)). This improves the performance of `x in data.foo` and `object.get(data.bar, ...)` calls significantly. +- Partial Evaluation: Skip comprehensions when checking eqs in copy propagation ([#5367](https://github.com/open-policy-agent/opa/issues/5367)). This fixes a bug when optimization on bundles would change the outcome of the subsequent evaluation. +- Parser: Fix else error handling with ref heads -- errors had occurred at a later stage then desired, because an edge case slipped through the earlier check. +- Planner/IR: Fix ref heads processing -- the CallDynamic optimization wasn't planned properly; a bug introduced with ref heads. + +### Documentation + +- Builtins: Mention base64 URL encoding specifically ([#5406](https://github.com/open-policy-agent/opa/issues/5406)) reported by @phi1010 +- Builtins: Include behavior with sets in `json.patch` ([#5328](https://github.com/open-policy-agent/opa/issues/5328)) +- Comparison: small fix to table to match sample code and other tables (authored by @anlandu) +- Builtins: Document reference timestamp behavior for `time.parse_ns` +- Typo fixes, authored by @deining +- Golang integration: update example code, move SDK above low-level packages + +### Website + Ecosystem + +- Ecosystem: + - Add Easegress (authored by @localvar) + - Add Terraform Cloud +- Website: Updated Footer Color ([#5254](https://github.com/open-policy-agent/opa/issues/5254)), reported and authored by @UtkarshMishra12 +- Website: Add "canonical" link to latest to help with SEO and ancient pages being returned by search engines. +- Website: Add experimental "OPA version" badge. (Still needs to be tested more thorougly before advertisting it.) + +### Miscellaneous + +- Dependency bumps: Notably, we're now using wasmtime-go v3 +- CI fixes: + - Move performance tests to nightly tests + - CLI: add simple bundle build tests + - Nightly: Revamp how we're doing fuzz testing ## 0.46.1 diff --git a/builtin_metadata.json b/builtin_metadata.json index b5a20505c6..f10017798f 100644 --- a/builtin_metadata.json +++ b/builtin_metadata.json @@ -311,6 +311,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns the number without its sign.", @@ -398,6 +399,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "deprecated": true, @@ -488,6 +490,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns the intersection of two sets.", @@ -576,6 +579,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "deprecated": true, @@ -666,6 +670,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Concatenates two arrays.", @@ -705,6 +710,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns the reverse of a given array.", @@ -804,6 +810,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns a slice of a given array. If `start` is greater or equal than `stop`, `slice` is `[]`.", @@ -894,6 +901,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "infix": ":=", @@ -980,6 +988,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Deserializes the base64 encoded input string.", @@ -1068,6 +1077,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Serializes the input string into base64 encoding.", @@ -1135,6 +1145,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Verifies the input string is base64 encoded.", @@ -1223,6 +1234,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Deserializes the base64url encoded input string.", @@ -1311,6 +1323,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Serializes the input string into base64url encoding.", @@ -1376,6 +1389,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Serializes the input string into base64url encoding without padding.", @@ -1464,6 +1478,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns the bitwise \"AND\" of two integers.", @@ -1551,6 +1566,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns a new integer with its bits shifted `s` bits to the left.", @@ -1634,6 +1650,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns the bitwise negation (flip) of an integer.", @@ -1721,6 +1738,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns the bitwise \"OR\" of two integers.", @@ -1808,6 +1826,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns a new integer with its bits shifted `s` bits to the right.", @@ -1895,6 +1914,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns the bitwise \"XOR\" (exclusive-or) of two integers.", @@ -1981,6 +2001,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "deprecated": true, @@ -2066,6 +2087,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "deprecated": true, @@ -2151,6 +2173,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "deprecated": true, @@ -2236,6 +2259,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "deprecated": true, @@ -2321,6 +2345,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "deprecated": true, @@ -2406,6 +2431,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "deprecated": true, @@ -2464,6 +2490,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Rounds the number _up_ to the nearest integer.", @@ -2557,6 +2584,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Joins a set or array of strings with a delimiter.", @@ -2650,6 +2678,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns `true` if the search string is included in the base string", @@ -2739,6 +2768,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": " Count takes a collection or string and returns the number of elements (or characters) in it.", @@ -2783,6 +2813,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns a string representing the MD5 HMAC of the input message using the input key.", @@ -2827,6 +2858,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns a string representing the SHA1 HMAC of the input message using the input key.", @@ -2871,6 +2903,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns a string representing the SHA256 HMAC of the input message using the input key.", @@ -2915,6 +2948,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns a string representing the SHA512 HMAC of the input message using the input key.", @@ -3003,6 +3037,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns a string representing the input string hashed with the MD5 function", @@ -3091,6 +3126,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns a string representing the input string hashed with the SHA1 function", @@ -3179,6 +3215,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns a string representing the input string hashed with the SHA256 function", @@ -3227,6 +3264,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns one or more certificates from the given string containing PEM\nor base64 encoded DER certificates after verifying the supplied certificates form a complete\ncertificate chain back to a trusted root.\n\nThe first certificate is treated as the root and the last is treated as the leaf,\nwith all others being treated as intermediates.", @@ -3301,6 +3339,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns a PKCS #10 certificate signing request from the given PEM-encoded PKCS#10 certificate signing request.", @@ -3390,6 +3429,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns one or more certificates from the given base64 encoded string containing DER encoded certificates that have been concatenated.", @@ -3435,6 +3475,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns a JWK for signing a JWT from the given PEM-encoded RSA private key.", @@ -3529,6 +3570,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Divides the first number by the second number.", @@ -3624,6 +3666,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns true if the search string ends with the base string.", @@ -3714,6 +3757,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "infix": "=", @@ -3804,6 +3848,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "infix": "==", @@ -3864,6 +3909,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Rounds the number _down_ to the nearest integer.", @@ -3958,6 +4004,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns the string representation of the number in the given base after rounding it down to an integer value.", @@ -4055,6 +4102,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Parses and matches strings against the glob notation. Not to be confused with `regex.globs_match`.", @@ -4143,6 +4191,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns a string which represents a version of the pattern where all asterisks have been escaped.", @@ -4228,6 +4277,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Computes the set of reachable nodes in the graph from a set of starting nodes.", @@ -4270,6 +4320,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Computes the set of reachable paths in the graph from a set of starting nodes.", @@ -4303,6 +4354,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Checks that a GraphQL query is valid against a given schema. The query and/or schema can be either GraphQL strings or AST objects from the other GraphQL builtin functions.", @@ -4336,6 +4388,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns AST objects for a given GraphQL query and schema after validating the query against the schema. Returns undefined if errors were encountered during parsing or validation. The query and/or schema can be either GraphQL strings or AST objects from the other GraphQL builtin functions.", @@ -4369,6 +4422,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns a boolean indicating success or failure alongside the parsed ASTs for a given GraphQL query and schema after validating the query against the schema. The query and/or schema can be either GraphQL strings or AST objects from the other GraphQL builtin functions.", @@ -4398,6 +4452,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns an AST object for a GraphQL query.", @@ -4427,6 +4482,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns an AST object for a GraphQL schema.", @@ -4448,6 +4504,7 @@ "available": [ "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Checks that the input is a valid GraphQL schema. The schema can be either a GraphQL string or an AST object from the other GraphQL builtin functions.", @@ -4540,6 +4597,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "infix": "\u003e", @@ -4632,6 +4690,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "infix": "\u003e=", @@ -4698,6 +4757,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Deserializes the hex-encoded input string.", @@ -4763,6 +4823,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Serializes the input string using hex-encoding.", @@ -4851,6 +4912,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns a HTTP response to the given HTTP request.", @@ -4944,6 +5006,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns the index of a substring contained inside a string.", @@ -4986,6 +5049,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns a list of all the indexes of a substring contained inside a string.", @@ -5030,6 +5094,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "infix": "in", @@ -5075,6 +5140,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "infix": "in", @@ -5114,6 +5180,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "introduced": "v0.34.0", @@ -5198,6 +5265,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns the intersection of the given input sets.", @@ -5287,6 +5355,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Decodes a JSON Web Token and outputs it as an object.", @@ -5381,6 +5450,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Verifies a JWT signature under parameterized constraints and decodes the claims if it is valid.\nSupports the following algorithms: HS256, HS384, HS512, RS256, RS384, RS512, ES256, ES384, ES512, PS256, PS384 and PS512.", @@ -5480,6 +5550,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Encodes and optionally signs a JSON Web Token. Inputs are taken as objects, not encoded strings (see `io.jwt.encode_sign_raw`).", @@ -5579,6 +5650,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Encodes and optionally signs a JSON Web Token.", @@ -5673,6 +5745,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Verifies if a ES256 JWT signature is valid.", @@ -5758,6 +5831,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Verifies if a ES384 JWT signature is valid.", @@ -5843,6 +5917,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Verifies if a ES512 JWT signature is valid.", @@ -5937,6 +6012,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Verifies if a HS256 (secret) JWT signature is valid.", @@ -6022,6 +6098,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Verifies if a HS384 (secret) JWT signature is valid.", @@ -6107,6 +6184,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Verifies if a HS512 (secret) JWT signature is valid.", @@ -6201,6 +6279,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Verifies if a PS256 JWT signature is valid.", @@ -6286,6 +6365,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Verifies if a PS384 JWT signature is valid.", @@ -6371,6 +6451,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Verifies if a PS512 JWT signature is valid.", @@ -6465,6 +6546,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Verifies if a RS256 JWT signature is valid.", @@ -6550,6 +6632,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Verifies if a RS384 JWT signature is valid.", @@ -6635,6 +6718,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Verifies if a RS512 JWT signature is valid.", @@ -6723,6 +6807,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns `true` if the input value is an array.", @@ -6811,6 +6896,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns `true` if the input value is a boolean.", @@ -6899,6 +6985,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns `true` if the input value is null.", @@ -6987,6 +7074,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns `true` if the input value is a number.", @@ -7075,6 +7163,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns true if the input value is an object", @@ -7163,6 +7252,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns `true` if the input value is a set.", @@ -7251,6 +7341,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns `true` if the input value is a string.", @@ -7344,6 +7435,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Filters the object. For example: `json.filter({\"a\": {\"b\": \"x\", \"c\": \"y\"}}, [\"a/b\"])` will result in `{\"a\": {\"b\": \"x\"}}`). Paths are not filtered in-order and are deduplicated before being evaluated.", @@ -7411,6 +7503,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Verifies the input string is a valid JSON document.", @@ -7500,6 +7593,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Serializes the input term to JSON.", @@ -7566,6 +7660,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Patches an object according to RFC6902. For example: `json.patch({\"a\": {\"foo\": 1}}, [{\"op\": \"add\", \"path\": \"/a/bar\", \"value\": 2}])` results in `{\"a\": {\"foo\": 1, \"bar\": 2}`. The patches are applied atomically: if any of them fails, the result will be undefined. Additionally works on sets, where a value contained in the set is considered to be its path.", @@ -7655,6 +7750,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Removes paths from an object. For example: `json.remove({\"a\": {\"b\": \"x\", \"c\": \"y\"}}, [\"a/b\"])` will result in `{\"a\": {\"c\": \"y\"}}`. Paths are not removed in-order and are deduplicated before being evaluated.", @@ -7744,6 +7840,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Deserializes the input string.", @@ -7833,6 +7930,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns the input string but with all characters in lower-case.", @@ -7925,6 +8023,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "infix": "\u003c", @@ -8017,6 +8116,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "infix": "\u003c=", @@ -8105,6 +8205,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns the maximum value in a collection.", @@ -8193,6 +8294,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns the minimum value in a collection.", @@ -8285,6 +8387,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Minus subtracts the second number from the first number or computes the difference between two sets.", @@ -8378,6 +8481,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Multiplies two numbers.", @@ -8471,6 +8575,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "infix": "!=", @@ -8563,6 +8668,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Checks if a CIDR or IP is contained within another CIDR. `output` is `true` if `cidr_or_ip` (e.g. `127.0.0.64/26` or `127.0.0.1`) is contained within `cidr` (e.g. `127.0.0.1/24`) and `false` otherwise. Supports both IPv4 and IPv6 notations.", @@ -8649,6 +8755,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Checks if collections of cidrs or ips are contained within another collection of cidrs and returns matches. This function is similar to `net.cidr_contains` except it allows callers to pass collections of CIDRs or IPs as arguments and returns the matches (as opposed to a boolean result indicating a match between two CIDRs/IPs).", @@ -8737,6 +8844,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Expands CIDR to set of hosts (e.g., `net.cidr_expand(\"192.168.0.0/30\")` generates 4 hosts: `{\"192.168.0.0\", \"192.168.0.1\", \"192.168.0.2\", \"192.168.0.3\"}`).", @@ -8829,6 +8937,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Checks if a CIDR intersects with another CIDR (e.g. `192.168.0.0/16` overlaps with `192.168.1.0/24`). Supports both IPv4 and IPv6 notations.", @@ -8849,6 +8958,7 @@ "available": [ "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Parses an IPv4/IPv6 CIDR and returns a boolean indicating if the provided CIDR is valid.", @@ -8916,6 +9026,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Merges IP addresses and subnets into the smallest possible list of CIDRs (e.g., `net.cidr_merge([\"192.0.128.0/24\", \"192.0.129.0/24\"])` generates `{\"192.0.128.0/23\"}`.This function merges adjacent subnets where possible, those contained within others and also removes any duplicates.\nSupports both IPv4 and IPv6 notations. IPv6 inputs need a prefix length (e.g. \"/128\").", @@ -9006,6 +9117,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "deprecated": true, @@ -9044,6 +9156,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns the set of IP addresses (both v4 and v6) that the passed-in `name` resolves to using the standard name resolution mechanisms available.", @@ -9119,6 +9232,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns an array of numbers in the given (inclusive) range. If `a==b`, then `range == [a]`; if `a \u003e b`, then `range` is in descending order.", @@ -9210,6 +9324,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Filters the object by keeping only specified keys. For example: `object.filter({\"a\": {\"b\": \"x\", \"c\": \"y\"}, \"d\": \"z\"}, [\"a\"])` will result in `{\"a\": {\"b\": \"x\", \"c\": \"y\"}}`).", @@ -9309,6 +9424,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns value of an object's key if present, otherwise a default. If the supplied `key` is an `array`, then `object.get` will search through a nested object or array using each key in turn. For example: `object.get({\"a\": [{ \"b\": true }]}, [\"a\", 0, \"b\"], false)` results in `true`.", @@ -9329,10 +9445,11 @@ } ], "available": [ + "v0.47.0", "edge" ], "description": "Returns a set of an object's keys. For example: `object.keys({\"a\": 1, \"b\": true, \"c\": \"d\")` results in `{\"a\", \"b\", \"c\"}`.", - "introduced": "edge", + "introduced": "v0.47.0", "result": { "description": "set of `object`'s keys", "name": "value", @@ -9421,6 +9538,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Removes specified keys from an object.", @@ -9455,6 +9573,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Determines if an object `sub` is a subset of another object `super`.Object `sub` is a subset of object `super` if and only if every key in `sub` is also in `super`, **and** for all keys which `sub` and `super` share, they have the same value. This function works with objects, sets, arrays and a set of array and set.If both arguments are objects, then the operation is recursive, e.g. `{\"c\": {\"x\": {10, 15, 20}}` is a subset of `{\"a\": \"b\", \"c\": {\"x\": {10, 15, 20, 25}, \"y\": \"z\"}`. If both arguments are sets, then this function checks if every element of `sub` is a member of `super`, but does not attempt to recurse. If both arguments are arrays, then this function checks if `sub` appears contiguously in order within `super`, and also does not attempt to recurse. If `super` is array and `sub` is set, then this function checks if `super` contains every element of `sub` with no consideration of ordering, and also does not attempt to recurse.", @@ -9545,6 +9664,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Creates a new object of the asymmetric union of two objects. For example: `object.union({\"a\": 1, \"b\": 2, \"c\": {\"d\": 3}}, {\"a\": 7, \"c\": {\"d\": 4, \"e\": 5}})` will result in `{\"a\": 7, \"b\": 2, \"c\": {\"d\": 4, \"e\": 5}}`.", @@ -9581,6 +9701,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Creates a new object that is the asymmetric union of all objects merged from left to right. For example: `object.union_n([{\"a\": 1}, {\"b\": 2}, {\"a\": 3}])` will result in `{\"b\": 2, \"a\": 3}`.", @@ -9664,6 +9785,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns an object that describes the runtime environment where OPA is deployed.", @@ -9756,6 +9878,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns the union of two sets.", @@ -9849,6 +9972,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Plus adds two numbers together.", @@ -9887,6 +10011,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "introduced": "v0.34.0", @@ -9970,6 +10095,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Muliplies elements of an array or set of numbers", @@ -9997,10 +10123,11 @@ } ], "available": [ + "v0.47.0", "edge" ], "description": "Signs an HTTP request object for Amazon Web Services. Currently implements [AWS Signature Version 4 request signing](https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html) by the `Authorization` header method.", - "introduced": "edge", + "introduced": "v0.47.0", "result": { "name": "signed_request", "type": "object[any: any]" @@ -10047,6 +10174,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns a random integer between `0` and `n` (`n` exlusive). If `n` is `0`, then `y` is always `0`. For any given argument pair (`str`, `n`), the output will be consistent throughout a query evaluation.", @@ -10137,6 +10265,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "deprecated": true, @@ -10234,6 +10363,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns all successive matches of the expression.", @@ -10332,6 +10462,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns the specified number of matches when matching the input against the pattern.", @@ -10424,6 +10555,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Checks if the intersection of two glob-style regular expressions matches a non-empty set of non-empty strings.\nThe set of regex symbols is limited for this builtin: only `.`, `*`, `+`, `[`, `-`, `]` and `\\` are treated as special symbols.", @@ -10494,6 +10626,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Checks if a string is a valid regular expression: the detailed syntax for patterns is defined by https://github.com/google/re2/wiki/Syntax.", @@ -10569,6 +10702,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Matches a string against a regular expression.", @@ -10601,6 +10735,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Find and replaces the text using the regular expression pattern.", @@ -10694,6 +10829,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Splits the input string by the occurrences of the given pattern.", @@ -10798,6 +10934,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Matches a string against a pattern, where there pattern may be glob-like", @@ -10822,6 +10959,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns the chain of metadata for the active rule.\nOrdered starting at the active rule, going outward to the most distant node in its package ancestry.\nA chain entry is a JSON document with two members: \"path\", an array representing the path of the node; and \"annotations\", a JSON document containing the annotations declared for the node.\nThe first entry in the chain always points to the active rule, even if it has no declared annotations (in which case the \"annotations\" member is not present).", @@ -10847,6 +10985,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns annotations declared for the active rule and using the _rule_ scope.", @@ -10941,6 +11080,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Parses the input Rego string and returns an object representation of the AST.", @@ -11032,6 +11172,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns the remainder for of `x` divided by `y`, for `y != 0`.", @@ -11132,6 +11273,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Replace replaces all instances of a sub-string.", @@ -11221,6 +11363,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Rounds the number to the nearest integer.", @@ -11296,6 +11439,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Compares valid SemVer formatted version strings.", @@ -11367,6 +11511,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Validates that the input is a valid SemVer string.", @@ -11457,6 +11602,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "deprecated": true, @@ -11544,6 +11690,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns a sorted array.", @@ -11638,6 +11785,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Split returns an array containing elements of the input string split on a delimiter.", @@ -11732,6 +11880,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns the given string, formatted.", @@ -11826,6 +11975,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns true if the search string begins with the base string.", @@ -11855,6 +12005,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns true if any of the search strings begins with any of the base strings.", @@ -11884,6 +12035,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns true if any of the search strings ends with any of the base strings.", @@ -11978,6 +12130,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Replaces a string from a list of old, new string pairs.\nReplacements are performed in the order they appear in the target string, without overlapping matches.\nThe old string comparisons are done in argument order.", @@ -12015,6 +12168,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Reverses a given string.", @@ -12112,6 +12266,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns the portion of a string for a given `offset` and a `length`. If `length \u003c 0`, `output` is the remainder of the string.", @@ -12200,6 +12355,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Sums elements of an array or set of numbers.", @@ -12295,6 +12451,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns the nanoseconds since epoch after adding years, months and days to nanoseconds. `undefined` if the result would be outside the valid time range that can fit within an `int64`.", @@ -12384,6 +12541,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns the `[hour, minute, second]` of the day for the nanoseconds since epoch.", @@ -12473,6 +12631,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns the `[year, month, day]` for the nanoseconds since epoch.", @@ -12533,6 +12692,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns the difference between two unix timestamps in nanoseconds (with optional timezone strings).", @@ -12616,6 +12776,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns the current time since epoch in nanoseconds.", @@ -12705,6 +12866,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns the duration in nanoseconds represented by a string.", @@ -12799,6 +12961,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns the time in nanoseconds parsed from the string in the given format. `undefined` if the result would be outside the valid time range that can fit within an `int64`.", @@ -12887,6 +13050,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns the time in nanoseconds parsed from the string in RFC3339 format. `undefined` if the result would be outside the valid time range that can fit within an `int64`.", @@ -12976,6 +13140,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns the day of the week (Monday, Tuesday, ...) for the nanoseconds since epoch.", @@ -13064,6 +13229,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Converts a string, bool, or number value to a number: Strings are converted to numbers using `strconv.Atoi`, Boolean `false` is converted to 0 and `true` is converted to 1.", @@ -13152,6 +13318,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Emits `note` as a `Note` event in the query explanation. Query explanations show the exact expressions evaluated by OPA during policy execution. For example, `trace(\"Hello There!\")` includes `Note \"Hello There!\"` in the query explanation. To include variables in the message, use `sprintf`. For example, `person := \"Bob\"; trace(sprintf(\"Hello There! %v\", [person]))` will emit `Note \"Hello There! Bob\"` inside of the explanation.", @@ -13246,6 +13413,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns `value` with all leading or trailing instances of the `cutset` characters removed.", @@ -13340,6 +13508,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns `value` with all leading instances of the `cutset` chartacters removed.", @@ -13434,6 +13603,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns `value` without the prefix. If `value` doesn't start with `prefix`, it is returned unchanged.", @@ -13528,6 +13698,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns `value` with all trailing instances of the `cutset` chartacters removed.", @@ -13617,6 +13788,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Return the given string with all leading and trailing white space removed.", @@ -13711,6 +13883,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns `value` without the suffix. If `value` doesn't end with `suffix`, it is returned unchanged.", @@ -13799,6 +13972,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns the type of its input value.", @@ -13888,6 +14062,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns the union of the given input sets.", @@ -13918,6 +14093,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Converts strings like \"10G\", \"5K\", \"4M\", \"1500m\" and the like into a number.\nThis number can be a non-integer, such as 1.5, 0.22, etc. Supports standard metric decimal and\nbinary SI units (e.g., K, Ki, M, Mi, G, Gi etc.) m, K, M, G, T, P, and E are treated as decimal\nunits and Ki, Mi, Gi, Ti, Pi, and Ei are treated as binary units.\n\nNote that 'm' and 'M' are case-sensitive, to allow distinguishing between \"milli\" and \"mega\" units respectively. Other units are case-insensitive.", @@ -14007,6 +14183,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Converts strings like \"10GB\", \"5K\", \"4mb\" into an integer number of bytes.\nSupports standard byte units (e.g., KB, KiB, etc.) KB, MB, GB, and TB are treated as decimal\nunits and KiB, MiB, GiB, and TiB are treated as binary units. The bytes symbol (b/B) in the\nunit is optional and omitting it wil give the same result (e.g. Mi and MiB).", @@ -14096,6 +14273,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns the input string but with all characters in upper-case.", @@ -14184,6 +14362,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Decodes a URL-encoded input string.", @@ -14252,6 +14431,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Decodes the given URL query string into an object.", @@ -14340,6 +14520,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Encodes the input string into a URL-encoded string.", @@ -14428,6 +14609,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Encodes the given object into a URL encoded query string.", @@ -14507,6 +14689,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Returns a new UUIDv4.", @@ -14595,6 +14778,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Generates `[path, value]` tuples for all nested documents of `x` (recursively). Queries can use `walk` to traverse documents nested under `x`.", @@ -14663,6 +14847,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Verifies the input string is a valid YAML document.", @@ -14752,6 +14937,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Serializes the input term to YAML.", @@ -14841,6 +15027,7 @@ "v0.45.0", "v0.46.0", "v0.46.1", + "v0.47.0", "edge" ], "description": "Deserializes the input string.", diff --git a/capabilities/v0.47.0.json b/capabilities/v0.47.0.json new file mode 100644 index 0000000000..69d7284a11 --- /dev/null +++ b/capabilities/v0.47.0.json @@ -0,0 +1,4422 @@ +{ + "builtins": [ + { + "name": "abs", + "decl": { + "args": [ + { + "type": "number" + } + ], + "result": { + "type": "number" + }, + "type": "function" + } + }, + { + "name": "all", + "decl": { + "args": [ + { + "of": [ + { + "dynamic": { + "type": "any" + }, + "type": "array" + }, + { + "of": { + "type": "any" + }, + "type": "set" + } + ], + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "and", + "decl": { + "args": [ + { + "of": { + "type": "any" + }, + "type": "set" + }, + { + "of": { + "type": "any" + }, + "type": "set" + } + ], + "result": { + "of": { + "type": "any" + }, + "type": "set" + }, + "type": "function" + }, + "infix": "\u0026" + }, + { + "name": "any", + "decl": { + "args": [ + { + "of": [ + { + "dynamic": { + "type": "any" + }, + "type": "array" + }, + { + "of": { + "type": "any" + }, + "type": "set" + } + ], + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "array.concat", + "decl": { + "args": [ + { + "dynamic": { + "type": "any" + }, + "type": "array" + }, + { + "dynamic": { + "type": "any" + }, + "type": "array" + } + ], + "result": { + "dynamic": { + "type": "any" + }, + "type": "array" + }, + "type": "function" + } + }, + { + "name": "array.reverse", + "decl": { + "args": [ + { + "dynamic": { + "type": "any" + }, + "type": "array" + } + ], + "result": { + "dynamic": { + "type": "any" + }, + "type": "array" + }, + "type": "function" + } + }, + { + "name": "array.slice", + "decl": { + "args": [ + { + "dynamic": { + "type": "any" + }, + "type": "array" + }, + { + "type": "number" + }, + { + "type": "number" + } + ], + "result": { + "dynamic": { + "type": "any" + }, + "type": "array" + }, + "type": "function" + } + }, + { + "name": "assign", + "decl": { + "args": [ + { + "type": "any" + }, + { + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + }, + "infix": ":=" + }, + { + "name": "base64.decode", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "base64.encode", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "base64.is_valid", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "base64url.decode", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "base64url.encode", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "base64url.encode_no_pad", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "bits.and", + "decl": { + "args": [ + { + "type": "number" + }, + { + "type": "number" + } + ], + "result": { + "type": "number" + }, + "type": "function" + } + }, + { + "name": "bits.lsh", + "decl": { + "args": [ + { + "type": "number" + }, + { + "type": "number" + } + ], + "result": { + "type": "number" + }, + "type": "function" + } + }, + { + "name": "bits.negate", + "decl": { + "args": [ + { + "type": "number" + } + ], + "result": { + "type": "number" + }, + "type": "function" + } + }, + { + "name": "bits.or", + "decl": { + "args": [ + { + "type": "number" + }, + { + "type": "number" + } + ], + "result": { + "type": "number" + }, + "type": "function" + } + }, + { + "name": "bits.rsh", + "decl": { + "args": [ + { + "type": "number" + }, + { + "type": "number" + } + ], + "result": { + "type": "number" + }, + "type": "function" + } + }, + { + "name": "bits.xor", + "decl": { + "args": [ + { + "type": "number" + }, + { + "type": "number" + } + ], + "result": { + "type": "number" + }, + "type": "function" + } + }, + { + "name": "cast_array", + "decl": { + "args": [ + { + "type": "any" + } + ], + "result": { + "dynamic": { + "type": "any" + }, + "type": "array" + }, + "type": "function" + } + }, + { + "name": "cast_boolean", + "decl": { + "args": [ + { + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "cast_null", + "decl": { + "args": [ + { + "type": "any" + } + ], + "result": { + "type": "null" + }, + "type": "function" + } + }, + { + "name": "cast_object", + "decl": { + "args": [ + { + "type": "any" + } + ], + "result": { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + "type": "function" + } + }, + { + "name": "cast_set", + "decl": { + "args": [ + { + "type": "any" + } + ], + "result": { + "of": { + "type": "any" + }, + "type": "set" + }, + "type": "function" + } + }, + { + "name": "cast_string", + "decl": { + "args": [ + { + "type": "any" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "ceil", + "decl": { + "args": [ + { + "type": "number" + } + ], + "result": { + "type": "number" + }, + "type": "function" + } + }, + { + "name": "concat", + "decl": { + "args": [ + { + "type": "string" + }, + { + "of": [ + { + "dynamic": { + "type": "string" + }, + "type": "array" + }, + { + "of": { + "type": "string" + }, + "type": "set" + } + ], + "type": "any" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "contains", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "count", + "decl": { + "args": [ + { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "type": "any" + }, + "type": "array" + }, + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + { + "of": { + "type": "any" + }, + "type": "set" + } + ], + "type": "any" + } + ], + "result": { + "type": "number" + }, + "type": "function" + } + }, + { + "name": "crypto.hmac.md5", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "crypto.hmac.sha1", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "crypto.hmac.sha256", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "crypto.hmac.sha512", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "crypto.md5", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "crypto.sha1", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "crypto.sha256", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "crypto.x509.parse_and_verify_certificates", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "static": [ + { + "type": "boolean" + }, + { + "dynamic": { + "dynamic": { + "key": { + "type": "string" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + "type": "array" + } + ], + "type": "array" + }, + "type": "function" + } + }, + { + "name": "crypto.x509.parse_certificate_request", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "dynamic": { + "key": { + "type": "string" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + "type": "function" + } + }, + { + "name": "crypto.x509.parse_certificates", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "dynamic": { + "dynamic": { + "key": { + "type": "string" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + "type": "array" + }, + "type": "function" + } + }, + { + "name": "crypto.x509.parse_rsa_private_key", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "dynamic": { + "key": { + "type": "string" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + "type": "function" + } + }, + { + "name": "div", + "decl": { + "args": [ + { + "type": "number" + }, + { + "type": "number" + } + ], + "result": { + "type": "number" + }, + "type": "function" + }, + "infix": "/" + }, + { + "name": "endswith", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "eq", + "decl": { + "args": [ + { + "type": "any" + }, + { + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + }, + "infix": "=" + }, + { + "name": "equal", + "decl": { + "args": [ + { + "type": "any" + }, + { + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + }, + "infix": "==" + }, + { + "name": "floor", + "decl": { + "args": [ + { + "type": "number" + } + ], + "result": { + "type": "number" + }, + "type": "function" + } + }, + { + "name": "format_int", + "decl": { + "args": [ + { + "type": "number" + }, + { + "type": "number" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "glob.match", + "decl": { + "args": [ + { + "type": "string" + }, + { + "of": [ + { + "type": "null" + }, + { + "dynamic": { + "type": "string" + }, + "type": "array" + } + ], + "type": "any" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "glob.quote_meta", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "graph.reachable", + "decl": { + "args": [ + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "of": [ + { + "dynamic": { + "type": "any" + }, + "type": "array" + }, + { + "of": { + "type": "any" + }, + "type": "set" + } + ], + "type": "any" + } + }, + "type": "object" + }, + { + "of": [ + { + "dynamic": { + "type": "any" + }, + "type": "array" + }, + { + "of": { + "type": "any" + }, + "type": "set" + } + ], + "type": "any" + } + ], + "result": { + "of": { + "type": "any" + }, + "type": "set" + }, + "type": "function" + } + }, + { + "name": "graph.reachable_paths", + "decl": { + "args": [ + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "of": [ + { + "dynamic": { + "type": "any" + }, + "type": "array" + }, + { + "of": { + "type": "any" + }, + "type": "set" + } + ], + "type": "any" + } + }, + "type": "object" + }, + { + "of": [ + { + "dynamic": { + "type": "any" + }, + "type": "array" + }, + { + "of": { + "type": "any" + }, + "type": "set" + } + ], + "type": "any" + } + ], + "result": { + "of": { + "dynamic": { + "type": "any" + }, + "type": "array" + }, + "type": "set" + }, + "type": "function" + } + }, + { + "name": "graphql.is_valid", + "decl": { + "args": [ + { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + } + ], + "type": "any" + }, + { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + } + ], + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "graphql.parse", + "decl": { + "args": [ + { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + } + ], + "type": "any" + }, + { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + } + ], + "type": "any" + } + ], + "result": { + "static": [ + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + } + ], + "type": "array" + }, + "type": "function" + } + }, + { + "name": "graphql.parse_and_verify", + "decl": { + "args": [ + { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + } + ], + "type": "any" + }, + { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + } + ], + "type": "any" + } + ], + "result": { + "static": [ + { + "type": "boolean" + }, + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + } + ], + "type": "array" + }, + "type": "function" + } + }, + { + "name": "graphql.parse_query", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + "type": "function" + } + }, + { + "name": "graphql.parse_schema", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + "type": "function" + } + }, + { + "name": "graphql.schema_is_valid", + "decl": { + "args": [ + { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + } + ], + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "gt", + "decl": { + "args": [ + { + "type": "any" + }, + { + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + }, + "infix": "\u003e" + }, + { + "name": "gte", + "decl": { + "args": [ + { + "type": "any" + }, + { + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + }, + "infix": "\u003e=" + }, + { + "name": "hex.decode", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "hex.encode", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "http.send", + "decl": { + "args": [ + { + "dynamic": { + "key": { + "type": "string" + }, + "value": { + "type": "any" + } + }, + "type": "object" + } + ], + "result": { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + "type": "function" + }, + "nondeterministic": true + }, + { + "name": "indexof", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "number" + }, + "type": "function" + } + }, + { + "name": "indexof_n", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "dynamic": { + "type": "number" + }, + "type": "array" + }, + "type": "function" + } + }, + { + "name": "internal.member_2", + "decl": { + "args": [ + { + "type": "any" + }, + { + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + }, + "infix": "in" + }, + { + "name": "internal.member_3", + "decl": { + "args": [ + { + "type": "any" + }, + { + "type": "any" + }, + { + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + }, + "infix": "in" + }, + { + "name": "internal.print", + "decl": { + "args": [ + { + "dynamic": { + "of": { + "type": "any" + }, + "type": "set" + }, + "type": "array" + } + ], + "type": "function" + } + }, + { + "name": "intersection", + "decl": { + "args": [ + { + "of": { + "of": { + "type": "any" + }, + "type": "set" + }, + "type": "set" + } + ], + "result": { + "of": { + "type": "any" + }, + "type": "set" + }, + "type": "function" + } + }, + { + "name": "io.jwt.decode", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "static": [ + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + { + "type": "string" + } + ], + "type": "array" + }, + "type": "function" + } + }, + { + "name": "io.jwt.decode_verify", + "decl": { + "args": [ + { + "type": "string" + }, + { + "dynamic": { + "key": { + "type": "string" + }, + "value": { + "type": "any" + } + }, + "type": "object" + } + ], + "result": { + "static": [ + { + "type": "boolean" + }, + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + } + ], + "type": "array" + }, + "type": "function" + }, + "nondeterministic": true + }, + { + "name": "io.jwt.encode_sign", + "decl": { + "args": [ + { + "dynamic": { + "key": { + "type": "string" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + { + "dynamic": { + "key": { + "type": "string" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + { + "dynamic": { + "key": { + "type": "string" + }, + "value": { + "type": "any" + } + }, + "type": "object" + } + ], + "result": { + "type": "string" + }, + "type": "function" + }, + "nondeterministic": true + }, + { + "name": "io.jwt.encode_sign_raw", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + }, + "nondeterministic": true + }, + { + "name": "io.jwt.verify_es256", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "io.jwt.verify_es384", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "io.jwt.verify_es512", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "io.jwt.verify_hs256", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "io.jwt.verify_hs384", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "io.jwt.verify_hs512", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "io.jwt.verify_ps256", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "io.jwt.verify_ps384", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "io.jwt.verify_ps512", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "io.jwt.verify_rs256", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "io.jwt.verify_rs384", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "io.jwt.verify_rs512", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "is_array", + "decl": { + "args": [ + { + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "is_boolean", + "decl": { + "args": [ + { + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "is_null", + "decl": { + "args": [ + { + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "is_number", + "decl": { + "args": [ + { + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "is_object", + "decl": { + "args": [ + { + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "is_set", + "decl": { + "args": [ + { + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "is_string", + "decl": { + "args": [ + { + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "json.filter", + "decl": { + "args": [ + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + { + "of": [ + { + "dynamic": { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "type": "any" + }, + "type": "array" + } + ], + "type": "any" + }, + "type": "array" + }, + { + "of": { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "type": "any" + }, + "type": "array" + } + ], + "type": "any" + }, + "type": "set" + } + ], + "type": "any" + } + ], + "result": { + "type": "any" + }, + "type": "function" + } + }, + { + "name": "json.is_valid", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "json.marshal", + "decl": { + "args": [ + { + "type": "any" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "json.patch", + "decl": { + "args": [ + { + "type": "any" + }, + { + "dynamic": { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "static": [ + { + "key": "op", + "value": { + "type": "string" + } + }, + { + "key": "path", + "value": { + "type": "any" + } + } + ], + "type": "object" + }, + "type": "array" + } + ], + "result": { + "type": "any" + }, + "type": "function" + } + }, + { + "name": "json.remove", + "decl": { + "args": [ + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + { + "of": [ + { + "dynamic": { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "type": "any" + }, + "type": "array" + } + ], + "type": "any" + }, + "type": "array" + }, + { + "of": { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "type": "any" + }, + "type": "array" + } + ], + "type": "any" + }, + "type": "set" + } + ], + "type": "any" + } + ], + "result": { + "type": "any" + }, + "type": "function" + } + }, + { + "name": "json.unmarshal", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "any" + }, + "type": "function" + } + }, + { + "name": "lower", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "lt", + "decl": { + "args": [ + { + "type": "any" + }, + { + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + }, + "infix": "\u003c" + }, + { + "name": "lte", + "decl": { + "args": [ + { + "type": "any" + }, + { + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + }, + "infix": "\u003c=" + }, + { + "name": "max", + "decl": { + "args": [ + { + "of": [ + { + "dynamic": { + "type": "any" + }, + "type": "array" + }, + { + "of": { + "type": "any" + }, + "type": "set" + } + ], + "type": "any" + } + ], + "result": { + "type": "any" + }, + "type": "function" + } + }, + { + "name": "min", + "decl": { + "args": [ + { + "of": [ + { + "dynamic": { + "type": "any" + }, + "type": "array" + }, + { + "of": { + "type": "any" + }, + "type": "set" + } + ], + "type": "any" + } + ], + "result": { + "type": "any" + }, + "type": "function" + } + }, + { + "name": "minus", + "decl": { + "args": [ + { + "of": [ + { + "type": "number" + }, + { + "of": { + "type": "any" + }, + "type": "set" + } + ], + "type": "any" + }, + { + "of": [ + { + "type": "number" + }, + { + "of": { + "type": "any" + }, + "type": "set" + } + ], + "type": "any" + } + ], + "result": { + "of": [ + { + "type": "number" + }, + { + "of": { + "type": "any" + }, + "type": "set" + } + ], + "type": "any" + }, + "type": "function" + }, + "infix": "-" + }, + { + "name": "mul", + "decl": { + "args": [ + { + "type": "number" + }, + { + "type": "number" + } + ], + "result": { + "type": "number" + }, + "type": "function" + }, + "infix": "*" + }, + { + "name": "neq", + "decl": { + "args": [ + { + "type": "any" + }, + { + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + }, + "infix": "!=" + }, + { + "name": "net.cidr_contains", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "net.cidr_contains_matches", + "decl": { + "args": [ + { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "type": "any" + }, + "type": "array" + } + ], + "type": "any" + }, + "type": "array" + }, + { + "dynamic": { + "key": { + "type": "string" + }, + "value": { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "type": "any" + }, + "type": "array" + } + ], + "type": "any" + } + }, + "type": "object" + }, + { + "of": { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "type": "any" + }, + "type": "array" + } + ], + "type": "any" + }, + "type": "set" + } + ], + "type": "any" + }, + { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "type": "any" + }, + "type": "array" + } + ], + "type": "any" + }, + "type": "array" + }, + { + "dynamic": { + "key": { + "type": "string" + }, + "value": { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "type": "any" + }, + "type": "array" + } + ], + "type": "any" + } + }, + "type": "object" + }, + { + "of": { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "type": "any" + }, + "type": "array" + } + ], + "type": "any" + }, + "type": "set" + } + ], + "type": "any" + } + ], + "result": { + "of": { + "static": [ + { + "type": "any" + }, + { + "type": "any" + } + ], + "type": "array" + }, + "type": "set" + }, + "type": "function" + } + }, + { + "name": "net.cidr_expand", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "of": { + "type": "string" + }, + "type": "set" + }, + "type": "function" + } + }, + { + "name": "net.cidr_intersects", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "net.cidr_is_valid", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "net.cidr_merge", + "decl": { + "args": [ + { + "of": [ + { + "dynamic": { + "of": [ + { + "type": "string" + } + ], + "type": "any" + }, + "type": "array" + }, + { + "of": { + "type": "string" + }, + "type": "set" + } + ], + "type": "any" + } + ], + "result": { + "of": { + "type": "string" + }, + "type": "set" + }, + "type": "function" + } + }, + { + "name": "net.cidr_overlap", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "net.lookup_ip_addr", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "of": { + "type": "string" + }, + "type": "set" + }, + "type": "function" + }, + "nondeterministic": true + }, + { + "name": "numbers.range", + "decl": { + "args": [ + { + "type": "number" + }, + { + "type": "number" + } + ], + "result": { + "dynamic": { + "type": "number" + }, + "type": "array" + }, + "type": "function" + } + }, + { + "name": "object.filter", + "decl": { + "args": [ + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + { + "of": [ + { + "dynamic": { + "type": "any" + }, + "type": "array" + }, + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + { + "of": { + "type": "any" + }, + "type": "set" + } + ], + "type": "any" + } + ], + "result": { + "type": "any" + }, + "type": "function" + } + }, + { + "name": "object.get", + "decl": { + "args": [ + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + { + "type": "any" + }, + { + "type": "any" + } + ], + "result": { + "type": "any" + }, + "type": "function" + } + }, + { + "name": "object.keys", + "decl": { + "args": [ + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + } + ], + "result": { + "of": { + "type": "any" + }, + "type": "set" + }, + "type": "function" + } + }, + { + "name": "object.remove", + "decl": { + "args": [ + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + { + "of": [ + { + "dynamic": { + "type": "any" + }, + "type": "array" + }, + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + { + "of": { + "type": "any" + }, + "type": "set" + } + ], + "type": "any" + } + ], + "result": { + "type": "any" + }, + "type": "function" + } + }, + { + "name": "object.subset", + "decl": { + "args": [ + { + "of": [ + { + "dynamic": { + "type": "any" + }, + "type": "array" + }, + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + { + "of": { + "type": "any" + }, + "type": "set" + } + ], + "type": "any" + }, + { + "of": [ + { + "dynamic": { + "type": "any" + }, + "type": "array" + }, + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + { + "of": { + "type": "any" + }, + "type": "set" + } + ], + "type": "any" + } + ], + "result": { + "type": "any" + }, + "type": "function" + } + }, + { + "name": "object.union", + "decl": { + "args": [ + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + } + ], + "result": { + "type": "any" + }, + "type": "function" + } + }, + { + "name": "object.union_n", + "decl": { + "args": [ + { + "dynamic": { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + "type": "array" + } + ], + "result": { + "type": "any" + }, + "type": "function" + } + }, + { + "name": "opa.runtime", + "decl": { + "result": { + "dynamic": { + "key": { + "type": "string" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + "type": "function" + }, + "nondeterministic": true + }, + { + "name": "or", + "decl": { + "args": [ + { + "of": { + "type": "any" + }, + "type": "set" + }, + { + "of": { + "type": "any" + }, + "type": "set" + } + ], + "result": { + "of": { + "type": "any" + }, + "type": "set" + }, + "type": "function" + }, + "infix": "|" + }, + { + "name": "plus", + "decl": { + "args": [ + { + "type": "number" + }, + { + "type": "number" + } + ], + "result": { + "type": "number" + }, + "type": "function" + }, + "infix": "+" + }, + { + "name": "print", + "decl": { + "type": "function", + "variadic": { + "type": "any" + } + } + }, + { + "name": "product", + "decl": { + "args": [ + { + "of": [ + { + "dynamic": { + "type": "number" + }, + "type": "array" + }, + { + "of": { + "type": "number" + }, + "type": "set" + } + ], + "type": "any" + } + ], + "result": { + "type": "number" + }, + "type": "function" + } + }, + { + "name": "providers.aws.sign_req", + "decl": { + "args": [ + { + "dynamic": { + "key": { + "type": "string" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + { + "dynamic": { + "key": { + "type": "string" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + { + "type": "number" + } + ], + "result": { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + "type": "function" + } + }, + { + "name": "rand.intn", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "number" + } + ], + "result": { + "type": "number" + }, + "type": "function" + }, + "nondeterministic": true + }, + { + "name": "re_match", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "regex.find_all_string_submatch_n", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + }, + { + "type": "number" + } + ], + "result": { + "dynamic": { + "dynamic": { + "type": "string" + }, + "type": "array" + }, + "type": "array" + }, + "type": "function" + } + }, + { + "name": "regex.find_n", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + }, + { + "type": "number" + } + ], + "result": { + "dynamic": { + "type": "string" + }, + "type": "array" + }, + "type": "function" + } + }, + { + "name": "regex.globs_match", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "regex.is_valid", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "regex.match", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "regex.replace", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "regex.split", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "dynamic": { + "type": "string" + }, + "type": "array" + }, + "type": "function" + } + }, + { + "name": "regex.template_match", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + }, + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "rego.metadata.chain", + "decl": { + "result": { + "dynamic": { + "type": "any" + }, + "type": "array" + }, + "type": "function" + } + }, + { + "name": "rego.metadata.rule", + "decl": { + "result": { + "type": "any" + }, + "type": "function" + } + }, + { + "name": "rego.parse_module", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "dynamic": { + "key": { + "type": "string" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + "type": "function" + } + }, + { + "name": "rem", + "decl": { + "args": [ + { + "type": "number" + }, + { + "type": "number" + } + ], + "result": { + "type": "number" + }, + "type": "function" + }, + "infix": "%" + }, + { + "name": "replace", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "round", + "decl": { + "args": [ + { + "type": "number" + } + ], + "result": { + "type": "number" + }, + "type": "function" + } + }, + { + "name": "semver.compare", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "number" + }, + "type": "function" + } + }, + { + "name": "semver.is_valid", + "decl": { + "args": [ + { + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "set_diff", + "decl": { + "args": [ + { + "of": { + "type": "any" + }, + "type": "set" + }, + { + "of": { + "type": "any" + }, + "type": "set" + } + ], + "result": { + "of": { + "type": "any" + }, + "type": "set" + }, + "type": "function" + } + }, + { + "name": "sort", + "decl": { + "args": [ + { + "of": [ + { + "dynamic": { + "type": "any" + }, + "type": "array" + }, + { + "of": { + "type": "any" + }, + "type": "set" + } + ], + "type": "any" + } + ], + "result": { + "dynamic": { + "type": "any" + }, + "type": "array" + }, + "type": "function" + } + }, + { + "name": "split", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "dynamic": { + "type": "string" + }, + "type": "array" + }, + "type": "function" + } + }, + { + "name": "sprintf", + "decl": { + "args": [ + { + "type": "string" + }, + { + "dynamic": { + "type": "any" + }, + "type": "array" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "startswith", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "strings.any_prefix_match", + "decl": { + "args": [ + { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "type": "string" + }, + "type": "array" + }, + { + "of": { + "type": "string" + }, + "type": "set" + } + ], + "type": "any" + }, + { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "type": "string" + }, + "type": "array" + }, + { + "of": { + "type": "string" + }, + "type": "set" + } + ], + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "strings.any_suffix_match", + "decl": { + "args": [ + { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "type": "string" + }, + "type": "array" + }, + { + "of": { + "type": "string" + }, + "type": "set" + } + ], + "type": "any" + }, + { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "type": "string" + }, + "type": "array" + }, + { + "of": { + "type": "string" + }, + "type": "set" + } + ], + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "strings.replace_n", + "decl": { + "args": [ + { + "dynamic": { + "key": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "type": "object" + }, + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "strings.reverse", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "substring", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "number" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "sum", + "decl": { + "args": [ + { + "of": [ + { + "dynamic": { + "type": "number" + }, + "type": "array" + }, + { + "of": { + "type": "number" + }, + "type": "set" + } + ], + "type": "any" + } + ], + "result": { + "type": "number" + }, + "type": "function" + } + }, + { + "name": "time.add_date", + "decl": { + "args": [ + { + "type": "number" + }, + { + "type": "number" + }, + { + "type": "number" + }, + { + "type": "number" + } + ], + "result": { + "type": "number" + }, + "type": "function" + } + }, + { + "name": "time.clock", + "decl": { + "args": [ + { + "of": [ + { + "type": "number" + }, + { + "static": [ + { + "type": "number" + }, + { + "type": "string" + } + ], + "type": "array" + } + ], + "type": "any" + } + ], + "result": { + "static": [ + { + "type": "number" + }, + { + "type": "number" + }, + { + "type": "number" + } + ], + "type": "array" + }, + "type": "function" + } + }, + { + "name": "time.date", + "decl": { + "args": [ + { + "of": [ + { + "type": "number" + }, + { + "static": [ + { + "type": "number" + }, + { + "type": "string" + } + ], + "type": "array" + } + ], + "type": "any" + } + ], + "result": { + "static": [ + { + "type": "number" + }, + { + "type": "number" + }, + { + "type": "number" + } + ], + "type": "array" + }, + "type": "function" + } + }, + { + "name": "time.diff", + "decl": { + "args": [ + { + "of": [ + { + "type": "number" + }, + { + "static": [ + { + "type": "number" + }, + { + "type": "string" + } + ], + "type": "array" + } + ], + "type": "any" + }, + { + "of": [ + { + "type": "number" + }, + { + "static": [ + { + "type": "number" + }, + { + "type": "string" + } + ], + "type": "array" + } + ], + "type": "any" + } + ], + "result": { + "static": [ + { + "type": "number" + }, + { + "type": "number" + }, + { + "type": "number" + }, + { + "type": "number" + }, + { + "type": "number" + }, + { + "type": "number" + } + ], + "type": "array" + }, + "type": "function" + } + }, + { + "name": "time.now_ns", + "decl": { + "result": { + "type": "number" + }, + "type": "function" + }, + "nondeterministic": true + }, + { + "name": "time.parse_duration_ns", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "number" + }, + "type": "function" + } + }, + { + "name": "time.parse_ns", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "number" + }, + "type": "function" + } + }, + { + "name": "time.parse_rfc3339_ns", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "number" + }, + "type": "function" + } + }, + { + "name": "time.weekday", + "decl": { + "args": [ + { + "of": [ + { + "type": "number" + }, + { + "static": [ + { + "type": "number" + }, + { + "type": "string" + } + ], + "type": "array" + } + ], + "type": "any" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "to_number", + "decl": { + "args": [ + { + "of": [ + { + "type": "null" + }, + { + "type": "boolean" + }, + { + "type": "number" + }, + { + "type": "string" + } + ], + "type": "any" + } + ], + "result": { + "type": "number" + }, + "type": "function" + } + }, + { + "name": "trace", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "trim", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "trim_left", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "trim_prefix", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "trim_right", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "trim_space", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "trim_suffix", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "type_name", + "decl": { + "args": [ + { + "type": "any" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "union", + "decl": { + "args": [ + { + "of": { + "of": { + "type": "any" + }, + "type": "set" + }, + "type": "set" + } + ], + "result": { + "of": { + "type": "any" + }, + "type": "set" + }, + "type": "function" + } + }, + { + "name": "units.parse", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "number" + }, + "type": "function" + } + }, + { + "name": "units.parse_bytes", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "number" + }, + "type": "function" + } + }, + { + "name": "upper", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "urlquery.decode", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "urlquery.decode_object", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "dynamic": { + "key": { + "type": "string" + }, + "value": { + "dynamic": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "type": "function" + } + }, + { + "name": "urlquery.encode", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "urlquery.encode_object", + "decl": { + "args": [ + { + "dynamic": { + "key": { + "type": "string" + }, + "value": { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "type": "string" + }, + "type": "array" + }, + { + "of": { + "type": "string" + }, + "type": "set" + } + ], + "type": "any" + } + }, + "type": "object" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "uuid.rfc4122", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + }, + "nondeterministic": true + }, + { + "name": "walk", + "decl": { + "args": [ + { + "type": "any" + } + ], + "result": { + "static": [ + { + "dynamic": { + "type": "any" + }, + "type": "array" + }, + { + "type": "any" + } + ], + "type": "array" + }, + "type": "function" + }, + "relation": true + }, + { + "name": "yaml.is_valid", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "yaml.marshal", + "decl": { + "args": [ + { + "type": "any" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "yaml.unmarshal", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "any" + }, + "type": "function" + } + } + ], + "future_keywords": [ + "contains", + "every", + "if", + "in" + ], + "wasm_abi_versions": [ + { + "version": 1, + "minor_version": 1 + }, + { + "version": 1, + "minor_version": 2 + } + ], + "features": [ + "rule_head_ref_string_prefixes" + ] +} diff --git a/version/version.go b/version/version.go index 8ca214f2d9..73e620a9c6 100644 --- a/version/version.go +++ b/version/version.go @@ -10,7 +10,7 @@ import ( ) // Version is the canonical version of OPA. -var Version = "0.47.0-dev" +var Version = "0.47.0" // GoVersion is the version of Go this was built with var GoVersion = runtime.Version()