diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b0e60d256..8cc7dbc04f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,131 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). -## Unreleased +## 0.42.0 + +This release contains a number of fixes and enhancements. + +### New built-in function: `object.subset` + +This function checks if a collection is a subset of another collection. +It works on objects, sets, and arrays. + +If both arguments are objects, then the operation is recursive, e.g. `{"c": {"x": {10, 15, 20}}` +is considered a subset of `{"a": "b", "c": {"x": {10, 15, 20, 25}, "y": "z"}`. + +See [the built-in functions docs for all details](https://www.openpolicyagent.org/docs/v0.42.0/policy-reference/#builtin-object-objectsubset) + +This implementation fixes [#4358](https://github.com/open-policy-agent/opa/issues/4358) and was authored by @charlesdaniels. + +### New keywords: "contains" and "if" + +These new keywords let you increase the expressiveness of your policy code: + +Before + +```rego +package authz +allow { not denied } # `denied` left out for presentation purposes + +deny[msg] { + count(violations) > 0 + msg := sprintf("there are %d violations", [count(violations)]) +} +``` + +After + +```rego +package authz +import future.keywords + +allow if not denied # one expression only => no { ... } needed! + +deny contains msg if { + count(violations) > 0 + msg := sprintf("there are %d violations", [count(violations)]) +} +``` + +Note that rule bodies containing only one expression can be abbreviated when using `if`. + +To use the new keywords, use `import future.keywords.contains` and `import future.keywords.if`; or +import all of them at once via `import future.keywords`. When these future imports are present, the +pretty printer (`opa fmt`) will introduce `contains` and `if` where applicable. + +`if` is allowed in all places to separate the rule head from the body, like +```rego +response[key] = value if { key := "open", y := "sesame" } +``` +_but_ not for partial set rules, unless also using `contains`: +```rego +deny[msg] if msg := "forbidden" # INVALID +deny contains msg if msg := "forbidden" # VALID +``` + +### Tooling, SDK, and Runtime + +- Plugins: + - S3 Plugin: Allow multiple AWS credential providers at once, chained together ([#4791](https://github.com/open-policy-agent/opa/issues/4791)), reported and authored by @abhisek + - Discovery Plugin: Check for empty key config ([#4656](https://github.com/open-policy-agent/opa/issues/4656)) reported by @humbertoc-silva + - Logs Plugin: Update mechanism to escape field paths ([#4717](https://github.com/open-policy-agent/opa/issues/4717)) reported by @pauly4it + - Status Plugin: fix `bundle_failed_load_counter` metric for bundles without revisions ([#4822](https://github.com/open-policy-agent/opa/issues/4822)) reported and authored by @jkbschmid +- Server: The `system.authz` policy now properly supports the interquery caching of `http.send` calls ([#4829](https://github.com/open-policy-agent/opa/issues/4829)), reported by @HarshPathakhp +- `opa bench`: Passing `--e2e` makes the benchmark measure the performance of a query including the server's HTTP handlers and their processing. +- `opa fmt`: Output list _and_ diff changes with `--fail` flag (#4710) (authored by @davidkuridza) +- Disk Storage: Bundles are now streamed into the disk store, and not extracted completely in-memory ([#4539](https://github.com/open-policy-agent/opa/issues/4539)) +- Golang package `repl`: Add a `WithCapabilities` function (authored by @jaspervdj) +- SDK: Allow configurable ID (authored by @rakshasa-1729) +- Windows: User lookups in various code paths have been avoided. They had no use, but are costly, and removing them should increase + the performance of any CLI calls (even `opa version`) on Windows. Fixes [#4646](https://github.com/open-policy-agent/opa/issues/4646). +- Server: Open read storage transaction in Query API handler (not write) + +### Rego and Topdown + +- Runtime Errors: Fix type error message in `count`, `object.filter`, and `object.remove` built-in functions ([#4767](https://github.com/open-policy-agent/opa/issues/4767)) +- Parser: Remove early MHS return in infix parsing, fixing confusing error messages ([#4672](https://github.com/open-policy-agent/opa/issues/4672)) authored by @philipaconrad +- AST: Disallow shadowing of called functions in comprehension heads ([#4762](https://github.com/open-policy-agent/opa/issues/4762)) +- Planner/IR: shadow rule funcs if mocking functions ([#4746](https://github.com/open-policy-agent/opa/issues/4746)) +- Compiler: Fix "every" handling in partial eval: by reordering body for safety differently, and correctly plugging its terms on safe ([#4801](https://github.com/open-policy-agent/opa/pull/4801)), reported by @jguenther-va +- Compiler: fix util.HashMap eq comparison ([#4759](https://github.com/open-policy-agent/opa/pull/4759)) +- Built-ins: use strings.Builder in glob.match() (authored by @charlesdaniels) + +### Documentation + +- Builtins: Fix documentation of `startswith` and `endswith` (authored by @whme) +- Kubenetes Tutorial: Remove unused assignement in example ([#4778](https://github.com/open-policy-agent/opa/issues/4778)) authored by @Joffref +- OCI: Update configuration docs for private images in OCI registries (authored by @carabasdaniel) +- AWS S3 Signing: Fix profile_credentials docs (authored by @wangli1030) + +### Website + Ecosystem + +- Add "Edit on GitHub" button to docs ([#3784](https://github.com/open-policy-agent/opa/issues/3784)) authored by @avinashdesireddy +- Wasm: fix function table markup ([#4664](https://github.com/open-policy-agent/opa/issues/4664)) +- Ecosystem: use location.hash to track open modal ([#4667](https://github.com/open-policy-agent/opa/issues/4667)) + +Note that website changes like these become effective immediately and are not tied to a release. +We still use our release notes to record the nice fixed contributed by our community. + +- Ecosystem Additions: + - Alfred, the self-hosted playground (authored by @dolevf) + - Java Spring tutorial (authored by @psevestre) + - Pulumi + +### Miscellaneous + +- Add Terminus to ADOPTERS.md (#4734) ([#4713](https://github.com/open-policy-agent/opa/issues/4713)) reported by @charlieflowers +- Remove any data attributes not used in the "YAML tests" ([#4813](https://github.com/open-policy-agent/opa/issues/4813)) +- Dependency bumps, notably: + - github.com/prometheus/client_golang 1.12.2 ([#4697](https://github.com/open-policy-agent/opa/issues/4697)) + - github.com/vektah/gqlparser/v2 2.4.5 +- Build process and CI: + - Use Trivy for vulnerability scans in code and container images (authored by @JAORMX) + - Bump golangci-lint to v1.46.2, fix some issues ([#4765](https://github.com/open-policy-agent/opa/issues/4765)) + - Remove npm-opa-wasm test + - Skip flaky darwin tests on PR runs + - Fix flaky oci e2e test ([#4748](https://github.com/open-policy-agent/opa/issues/4748)) authored by @carabasdaniel + - Integrate builtin_metadata.json handling in release process ([#4754](https://github.com/open-policy-agent/opa/issues/4754)) + ## 0.41.0 diff --git a/builtin_metadata.json b/builtin_metadata.json index e0cead4608..2292813b6f 100644 --- a/builtin_metadata.json +++ b/builtin_metadata.json @@ -292,6 +292,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns the number without its sign.", @@ -370,6 +371,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "introduced": "v0.17.0", @@ -450,6 +452,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns the intersection of two sets.", @@ -529,6 +532,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "introduced": "v0.17.0", @@ -609,6 +613,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Concatenates two arrays.", @@ -639,6 +644,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns the reverse of a given array.", @@ -729,6 +735,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns a slice of a given array. If `start` is greater or equal than `stop`, `slice` is `[]`.", @@ -810,6 +817,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "infix": ":=", @@ -887,6 +895,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Deserializes the base64 encoded input string.", @@ -966,6 +975,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Serializes the input string into base64 encoding.", @@ -1024,6 +1034,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Verifies the input string is base64 encoded.", @@ -1103,6 +1114,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Deserializes the base64url encoded input string.", @@ -1182,6 +1194,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Serializes the input string into base64url encoding.", @@ -1238,6 +1251,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Serializes the input string into base64url encoding without padding.", @@ -1317,6 +1331,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns the bitwise \"AND\" of two integers.", @@ -1395,6 +1410,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns a new integer with its bits shifted `s` bits to the left.", @@ -1469,6 +1485,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns the bitwise negation (flip) of an integer.", @@ -1547,6 +1564,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns the bitwise \"OR\" of two integers.", @@ -1625,6 +1643,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns a new integer with its bits shifted `s` bits to the right.", @@ -1703,6 +1722,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns the bitwise \"XOR\" (exclusive-or) of two integers.", @@ -1780,6 +1800,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "introduced": "v0.17.0", @@ -1855,6 +1876,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "introduced": "v0.17.0", @@ -1930,6 +1952,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "introduced": "v0.17.0", @@ -2005,6 +2028,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "introduced": "v0.17.0", @@ -2080,6 +2104,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "introduced": "v0.17.0", @@ -2155,6 +2180,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "introduced": "v0.17.0", @@ -2203,6 +2229,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Rounds the number _up_ to the nearest integer.", @@ -2287,6 +2314,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Joins a set or array of strings with a delimiter.", @@ -2371,6 +2399,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns `true` if the search string is included in the base string", @@ -2451,6 +2480,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": " Count takes a collection or string and returns the number of elements (or characters) in it.", @@ -2486,6 +2516,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns a string representing the MD5 HMAC of the input message using the input key.", @@ -2521,6 +2552,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns a string representing the SHA1 HMAC of the input message using the input key.", @@ -2556,6 +2588,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns a string representing the SHA256 HMAC of the input message using the input key.", @@ -2591,6 +2624,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns a string representing the SHA512 HMAC of the input message using the input key.", @@ -2670,6 +2704,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns a string representing the input string hashed with the MD5 function", @@ -2749,6 +2784,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns a string representing the input string hashed with the SHA1 function", @@ -2828,6 +2864,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns a string representing the input string hashed with the SHA256 function", @@ -2867,6 +2904,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.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.", @@ -2932,6 +2970,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns a PKCS #10 certificate signing request from the given PEM-encoded PKCS#10 certificate signing request.", @@ -3012,6 +3051,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns one or more certificates from the given base64 encoded string containing DER encoded certificates that have been concatenated.", @@ -3048,6 +3088,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns a JWK for signing a JWT from the given PEM-encoded RSA private key.", @@ -3133,6 +3174,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Divides the first number by the second number.", @@ -3219,6 +3261,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns true if the search string ends with the base string.", @@ -3300,6 +3343,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "infix": "=", @@ -3381,6 +3425,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "infix": "==", @@ -3432,6 +3477,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Rounds the number _down_ to the nearest integer.", @@ -3517,6 +3563,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns the string representation of the number in the given base after converting it to an integer value.", @@ -3605,6 +3652,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Parses and matches strings against the glob notation. Not to be confused with `regex.globs_match`.", @@ -3684,6 +3732,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns a string which represents a version of the pattern where all asterisks have been escaped.", @@ -3760,6 +3809,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Computes the set of reachable nodes in the graph from a set of starting nodes.", @@ -3793,6 +3843,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Computes the set of reachable paths in the graph from a set of starting nodes.", @@ -3817,6 +3868,7 @@ ], "available": [ "v0.41.0", + "v0.42.0", "edge" ], "description": "Checks that a GraphQL query is valid against a given schema.", @@ -3841,6 +3893,7 @@ ], "available": [ "v0.41.0", + "v0.42.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.", @@ -3865,6 +3918,7 @@ ], "available": [ "v0.41.0", + "v0.42.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.", @@ -3885,6 +3939,7 @@ ], "available": [ "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns an AST object for a GraphQL query.", @@ -3905,6 +3960,7 @@ ], "available": [ "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns an AST object for a GraphQL schema.", @@ -3988,6 +4044,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "infix": "\u003e", @@ -4071,6 +4128,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "infix": "\u003e=", @@ -4128,6 +4186,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Deserializes the hex-encoded input string.", @@ -4184,6 +4243,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Serializes the input string using hex-encoding.", @@ -4263,6 +4323,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns a HTTP response to the given HTTP request.", @@ -4347,6 +4408,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns the index of a substring contained inside a string.", @@ -4380,6 +4442,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns a list of all the indexes of a substring contained inside a string.", @@ -4415,6 +4478,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "infix": "in", @@ -4451,6 +4515,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "infix": "in", @@ -4481,6 +4546,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "introduced": "v0.34.0", @@ -4556,6 +4622,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns the intersection of the given input sets.", @@ -4636,6 +4703,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Decodes a JSON Web Token and outputs it as an object.", @@ -4721,6 +4789,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.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.", @@ -4811,6 +4880,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.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`).", @@ -4901,6 +4971,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Encodes and optionally signs a JSON Web Token.", @@ -4986,6 +5057,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Verifies if a ES256 JWT signature is valid.", @@ -5062,6 +5134,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Verifies if a ES384 JWT signature is valid.", @@ -5138,6 +5211,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Verifies if a ES512 JWT signature is valid.", @@ -5223,6 +5297,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Verifies if a HS256 (secret) JWT signature is valid.", @@ -5299,6 +5374,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Verifies if a HS384 (secret) JWT signature is valid.", @@ -5375,6 +5451,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Verifies if a HS512 (secret) JWT signature is valid.", @@ -5460,6 +5537,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Verifies if a PS256 JWT signature is valid.", @@ -5536,6 +5614,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Verifies if a PS384 JWT signature is valid.", @@ -5612,6 +5691,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Verifies if a PS512 JWT signature is valid.", @@ -5697,6 +5777,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Verifies if a RS256 JWT signature is valid.", @@ -5773,6 +5854,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Verifies if a RS384 JWT signature is valid.", @@ -5849,6 +5931,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Verifies if a RS512 JWT signature is valid.", @@ -5928,6 +6011,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns `true` if the input value is an array.", @@ -6007,6 +6091,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns `true` if the input value is a boolean.", @@ -6086,6 +6171,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns `true` if the input value is null.", @@ -6165,6 +6251,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns `true` if the input value is a number.", @@ -6244,6 +6331,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns true if the input value is an object", @@ -6323,6 +6411,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns `true` if the input value is a set.", @@ -6402,6 +6491,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns `true` if the input value is a string.", @@ -6486,6 +6576,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.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.", @@ -6544,6 +6635,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Verifies the input string is a valid JSON document.", @@ -6624,6 +6716,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Serializes the input term to JSON.", @@ -6681,6 +6774,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.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.", @@ -6761,6 +6855,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.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.", @@ -6841,6 +6936,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Deserializes the input string.", @@ -6921,6 +7017,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns the input string but with all characters in lower-case.", @@ -7004,6 +7101,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "infix": "\u003c", @@ -7087,6 +7185,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "infix": "\u003c=", @@ -7166,6 +7265,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns the maximum value in a collection.", @@ -7245,6 +7345,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns the minimum value in a collection.", @@ -7328,6 +7429,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Minus subtracts the second number from the first number or computes the difference between two sets.", @@ -7412,6 +7514,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Multiplies two numbers.", @@ -7496,6 +7599,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "infix": "!=", @@ -7579,6 +7683,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.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.", @@ -7656,6 +7761,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.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).", @@ -7735,6 +7841,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.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\"}`).", @@ -7818,6 +7925,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.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.", @@ -7876,6 +7984,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.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\").", @@ -7957,6 +8066,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "introduced": "v0.17.0", @@ -7985,6 +8095,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.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.", @@ -8051,6 +8162,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.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.", @@ -8133,6 +8245,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.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\"}}`).", @@ -8223,6 +8336,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.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`.", @@ -8306,6 +8420,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Removes specified keys from an object.", @@ -8331,10 +8446,11 @@ } ], "available": [ + "v0.42.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, and arrays. 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.", - "introduced": "edge", + "introduced": "v0.42.0", "result": { "description": "`true` if `sub` is a subset of `super`", "name": "result", @@ -8412,6 +8528,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.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}}`.", @@ -8439,6 +8556,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.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}`.", @@ -8513,6 +8631,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns an object that describes the runtime environment where OPA is deployed.", @@ -8596,6 +8715,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns the union of two sets.", @@ -8680,6 +8800,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Plus adds two numbers together.", @@ -8709,6 +8830,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "introduced": "v0.34.0", @@ -8783,6 +8905,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Muliplies elements of an array or set of numbers", @@ -8825,6 +8948,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.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.", @@ -8906,6 +9030,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "introduced": "v0.17.0", @@ -8993,6 +9118,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns all successive matches of the expression.", @@ -9082,6 +9208,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns the specified number of matches when matching the input against the pattern.", @@ -9165,6 +9292,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.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.", @@ -9226,6 +9354,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.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.", @@ -9292,6 +9421,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Matches a string against a regular expression.", @@ -9376,6 +9506,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Splits the input string by the occurrences of the given pattern.", @@ -9471,6 +9602,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Matches a string against a pattern, where there pattern may be glob-like", @@ -9486,6 +9618,7 @@ "available": [ "v0.40.0", "v0.41.0", + "v0.42.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).", @@ -9502,6 +9635,7 @@ "available": [ "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns annotations declared for the active rule and using the _rule_ scope.", @@ -9587,6 +9721,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Parses the input Rego string and returns an object representation of the AST.", @@ -9669,6 +9804,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns the remainder for of `x` divided by `y`, for `y != 0`.", @@ -9760,6 +9896,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Replace replaces all instances of a sub-string.", @@ -9840,6 +9977,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Rounds the number to the nearest integer.", @@ -9906,6 +10044,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Compares valid SemVer formatted version strings.", @@ -9968,6 +10107,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Validates that the input is a valid SemVer string.", @@ -10049,6 +10189,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "introduced": "v0.17.0", @@ -10126,6 +10267,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns a sorted array.", @@ -10211,6 +10353,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Split returns an array containing elements of the input string split on a delimiter.", @@ -10296,6 +10439,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns the given string, formatted.", @@ -10381,6 +10525,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns true if the search string begins with the base string.", @@ -10466,6 +10611,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.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.", @@ -10494,6 +10640,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Reverses a given string.", @@ -10582,6 +10729,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.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.", @@ -10661,6 +10809,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Sums elements of an array or set of numbers.", @@ -10747,6 +10896,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.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`.", @@ -10827,6 +10977,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns the `[hour, minute, second]` of the day for the nanoseconds since epoch.", @@ -10907,6 +11058,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns the `[year, month, day]` for the nanoseconds since epoch.", @@ -10958,6 +11110,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns the difference between two unix timestamps in nanoseconds (with optional timezone strings).", @@ -11032,6 +11185,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns the current time since epoch in nanoseconds.", @@ -11112,6 +11266,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns the duration in nanoseconds represented by a string.", @@ -11197,6 +11352,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.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`.", @@ -11276,6 +11432,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.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`.", @@ -11356,6 +11513,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns the day of the week (Monday, Tuesday, ...) for the nanoseconds since epoch.", @@ -11435,6 +11593,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.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.", @@ -11514,6 +11673,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.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.", @@ -11599,6 +11759,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns `value` with all leading or trailing instances of the `cutset` characters removed.", @@ -11684,6 +11845,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns `value` with all leading instances of the `cutset` chartacters removed.", @@ -11769,6 +11931,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns `value` without the prefix. If `value` doesn't start with `prefix`, it is returned unchanged.", @@ -11854,6 +12017,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns `value` with all trailing instances of the `cutset` chartacters removed.", @@ -11934,6 +12098,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Return the given string with all leading and trailing white space removed.", @@ -12019,6 +12184,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns `value` without the suffix. If `value` doesn't end with `suffix`, it is returned unchanged.", @@ -12097,6 +12263,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "introduced": "v0.17.0", @@ -12174,6 +12341,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns the union of the given input sets.", @@ -12195,6 +12363,7 @@ ], "available": [ "v0.41.0", + "v0.42.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.", @@ -12275,6 +12444,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.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).", @@ -12355,6 +12525,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns the input string but with all characters in upper-case.", @@ -12434,6 +12605,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Decodes a URL-encoded input string.", @@ -12493,6 +12665,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Decodes the given URL query string into an object.", @@ -12572,6 +12745,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Encodes the input string into a URL-encoded string.", @@ -12651,6 +12825,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Encodes the given object into a URL encoded query string.", @@ -12721,6 +12896,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Returns a new UUIDv4.", @@ -12800,6 +12976,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Generates `[path, value]` tuples for all nested documents of `x` (recursively). Queries can use `walk` to traverse documents nested under `x`.", @@ -12859,6 +13036,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Verifies the input string is a valid YAML document.", @@ -12939,6 +13117,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Serializes the input term to YAML.", @@ -13019,6 +13198,7 @@ "v0.39.0", "v0.40.0", "v0.41.0", + "v0.42.0", "edge" ], "description": "Deserializes the input string.", diff --git a/capabilities/v0.42.0.json b/capabilities/v0.42.0.json new file mode 100644 index 0000000000..2a57613fb0 --- /dev/null +++ b/capabilities/v0.42.0.json @@ -0,0 +1,4076 @@ +{ + "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" + }, + { + "dynamic": { + "type": "string" + }, + "type": "array" + }, + { + "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": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "graphql.parse", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "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": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "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": "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" + } + }, + { + "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" + } + }, + { + "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" + } + }, + { + "name": "io.jwt.encode_sign_raw", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "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_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" + } + }, + { + "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.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" + } + }, + { + "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": "rand.intn", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "number" + } + ], + "result": { + "type": "number" + }, + "type": "function" + } + }, + { + "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.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.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" + } + }, + { + "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": [ + { + "of": [ + { + "type": "any" + } + ], + "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" + } + }, + { + "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 + } + ] +} diff --git a/version/version.go b/version/version.go index b605375c6b..3abc37d424 100644 --- a/version/version.go +++ b/version/version.go @@ -10,7 +10,7 @@ import ( ) // Version is the canonical version of OPA. -var Version = "0.42.0-dev" +var Version = "0.42.0" // GoVersion is the version of Go this was built with var GoVersion = runtime.Version()