diff --git a/CHANGELOG.md b/CHANGELOG.md index 525016325e..1b9382e2f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,93 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). -## Unreleased +## 0.43.0 + +This release contains a number of fixes, enhancements, and performance improvements. + +### Object Insertion Optimization + +Rego Object insertion operations did not scale linearly ([#4625](https://github.com/open-policy-agent/opa/issues/4625)) +in the past, and experienced noticeable reallocation/memory movement +overheads once the Object grew past 120k-150k keys in size. + +This release introduces different handling of Object internals during insert +operations to avoid pathological reallocation behavior, and allows linear +performance scaling up into the 500k key range and beyond. + +### Tooling, SDK, and Runtime + +- Add lines covered/not covered counts to test coverage report (authored by @FarisR99) +- Plugins: Status and logs plugins now accept any HTTP 2xx status code (authored by @lvisterin) +- Runtime: Generalize OS check for MacOS to other Unix-likes (authored by @iamleot) + +#### Bundles Fixes + +The Bundles system received several bugfixes and performance improvements in this release: + + - Bundle: `opa bundle` command now supports `.yml` files ([#4859](https://github.com/open-policy-agent/opa/issues/4859)) authored by @Joffref reported by @rdrgmnzsakt + - Plugins/Bundle: Use unique temporary files for persisting activated bundles to disk ([#4782](https://github.com/open-policy-agent/opa/issues/4782)) authored by @FredrikAppelros reported by @FredrikAppelros + - Server: Old policy path is now checked for bundle ownership before update ([#4846](https://github.com/open-policy-agent/opa/issues/4846)) + - Storage+Bundle: Old bundle data is now cleaned before new bundle activation ([#4940](https://github.com/open-policy-agent/opa/issues/4940)) + - Bundle: Paths are now normalized before bundle root check occurs to ensure checks are os-independent + +#### Storage Fixes + +The Storage system received mostly bugfixes, with a notable performance improvement for large bundles in this release: + + - storage/inmem: Speed up bundle activation by avoiding unnecessary read operations ([#4898](https://github.com/open-policy-agent/opa/issues/4898)) + - storage/inmem: Paths are now created during truncate operations if they did not exist before + - storage/disk: Symlinks work with relative paths now ([#4869](https://github.com/open-policy-agent/opa/issues/4869)) + +### Rego and Topdown + +The Rego compiler and runtime environment received a number of bugfixes, and a few new features this release, as well as a notable performance improvement for large Objects +(covered above). + +- AST/Compiler: New method for obtaining parsed, but otherwise unprocessed modules is now available ([#4910](https://github.com/open-policy-agent/opa/issues/4910)) +- `object.subset`: Support array + set combination ([#4858](https://github.com/open-policy-agent/opa/issues/4858)) authored by @x-color +- Compiler: Prevent erasure of `print()` statements in the compiler via a `WithEnablePrintStatements` option to `compiler.Compiler` and `compiler.optimizer` (authored by @kevinstyra) +- Topdown fixes: + - AST/Builtins: `type_name` builtin now has more precise type metadata and improved docs + - Topdown/copypropagation: Ref-based tautologies like `input.a == input.a` are no longer eliminated during the copy-propagation pass ([#4848](https://github.com/open-policy-agent/opa/issues/4848)) reported by @johanneskra + - Topdown/parse_units: Use big.Rat for units parsing to avoid floating-point rounding issues on fractional units. ([#4856](https://github.com/open-policy-agent/opa/issues/4856)) reported by @tmos22 + - Topdown: `is_valid` builtins no longer error, and should always return booleans ([#4760](https://github.com/open-policy-agent/opa/issues/4760)) + - Topdown: `glob.match` now can be used without delimiters ([#4923](https://github.com/open-policy-agent/opa/issues/4923)) authored by @vinhph0906 reported by @vinhph0906 + +### Documentation + + - Docs: Add GraphQL API authorization tutorial + - Docs/bundles: Add bundle CLI command documentation ([#3831](https://github.com/open-policy-agent/opa/issues/3831)) authored by @Joffref + - Docs/policy-reference: Remove extra quote in Grammar to fix formatting ([#4915](https://github.com/open-policy-agent/opa/issues/4915)) authored by @friedrichsenm reported by @friedrichsenm + - Docs/policy-testing: Add missing future.keywords imports ([#4849](https://github.com/open-policy-agent/opa/issues/4849)) reported by @robert-elles + - Docs: Add note about counter_server_query_cache_hit metric ([#4389](https://github.com/open-policy-agent/opa/issues/4389)) + - Docs: Kube tutorial includes updated cert install procedure ([#4902](https://github.com/open-policy-agent/opa/issues/4902)) reported by @Imp + - Docs: GraphQL builtins section now includes a note about framework-specific `@directive` definitions in GraphQL schemas + - Docs: Add warning about name collisions in older policies from importing 'future.keywords' + +### Website + Ecosystem + +- Website: Show navbar on smaller devices ([#3353](https://github.com/open-policy-agent/opa/issues/3353)) authored by @Parsifal-M reported by @OBrienCommaJosh +- Website/frontpage: Update front page examples to use the future.keywords imports +- Website/live-blocks: Only pass 'import future.keywords' when needed and supported +- Website/live-blocks: Update codemirror-rego to 1.3.0 +- Website: Fix community page layout/scrolling issues (authored by @mstade) + +- Ecosystem Additions: + - Rond (authored by @ugho16) + - walt.id + +### Miscellaneous + +- Dependency bumps, notably: + - aquasecurity/trivy-action from 0.5.1 to 0.6.1 + - github.com/sirupsen/logrus from 1.8.1 to 1.9.0 + - github.com/vektah/gqlparser/v2 from 2.4.5 to 2.4.6 + - google.golang.org/grpc from 1.47.0 to 1.48.0 + - terser in /docs/website/scripts/live-blocks + - glob-parent in /docs/website/scripts/live-blocks +- Added GKE Policy Automation to ADOPTERS.md (authored by @mikouaj) +- Fix minor code unreachability error (authored by @Abirdcfly) ## 0.42.2 @@ -123,7 +209,7 @@ deny contains msg if msg := "forbidden" # VALID - 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. +We still use our release notes to record the nice fixes contributed by our community. - Ecosystem Additions: - Alfred, the self-hosted playground (authored by @dolevf) diff --git a/builtin_metadata.json b/builtin_metadata.json index c78eef0068..4e419a1f24 100644 --- a/builtin_metadata.json +++ b/builtin_metadata.json @@ -296,6 +296,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns the number without its sign.", @@ -377,6 +378,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "introduced": "v0.17.0", @@ -460,6 +462,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns the intersection of two sets.", @@ -542,6 +545,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "introduced": "v0.17.0", @@ -625,6 +629,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Concatenates two arrays.", @@ -658,6 +663,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns the reverse of a given array.", @@ -751,6 +757,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns a slice of a given array. If `start` is greater or equal than `stop`, `slice` is `[]`.", @@ -835,6 +842,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "infix": ":=", @@ -915,6 +923,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Deserializes the base64 encoded input string.", @@ -997,6 +1006,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Serializes the input string into base64 encoding.", @@ -1058,6 +1068,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Verifies the input string is base64 encoded.", @@ -1140,6 +1151,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Deserializes the base64url encoded input string.", @@ -1222,6 +1234,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Serializes the input string into base64url encoding.", @@ -1281,6 +1294,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Serializes the input string into base64url encoding without padding.", @@ -1363,6 +1377,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns the bitwise \"AND\" of two integers.", @@ -1444,6 +1459,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns a new integer with its bits shifted `s` bits to the left.", @@ -1521,6 +1537,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns the bitwise negation (flip) of an integer.", @@ -1602,6 +1619,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns the bitwise \"OR\" of two integers.", @@ -1683,6 +1701,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns a new integer with its bits shifted `s` bits to the right.", @@ -1764,6 +1783,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns the bitwise \"XOR\" (exclusive-or) of two integers.", @@ -1844,6 +1864,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "introduced": "v0.17.0", @@ -1922,6 +1943,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "introduced": "v0.17.0", @@ -2000,6 +2022,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "introduced": "v0.17.0", @@ -2078,6 +2101,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "introduced": "v0.17.0", @@ -2156,6 +2180,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "introduced": "v0.17.0", @@ -2234,6 +2259,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "introduced": "v0.17.0", @@ -2285,6 +2311,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Rounds the number _up_ to the nearest integer.", @@ -2372,6 +2399,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Joins a set or array of strings with a delimiter.", @@ -2459,6 +2487,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns `true` if the search string is included in the base string", @@ -2542,6 +2571,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": " Count takes a collection or string and returns the number of elements (or characters) in it.", @@ -2580,6 +2610,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns a string representing the MD5 HMAC of the input message using the input key.", @@ -2618,6 +2649,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns a string representing the SHA1 HMAC of the input message using the input key.", @@ -2656,6 +2688,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns a string representing the SHA256 HMAC of the input message using the input key.", @@ -2694,6 +2727,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns a string representing the SHA512 HMAC of the input message using the input key.", @@ -2776,6 +2810,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns a string representing the input string hashed with the MD5 function", @@ -2858,6 +2893,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns a string representing the input string hashed with the SHA1 function", @@ -2940,6 +2976,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns a string representing the input string hashed with the SHA256 function", @@ -2982,6 +3019,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.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.", @@ -3050,6 +3088,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns a PKCS #10 certificate signing request from the given PEM-encoded PKCS#10 certificate signing request.", @@ -3133,6 +3172,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns one or more certificates from the given base64 encoded string containing DER encoded certificates that have been concatenated.", @@ -3172,6 +3212,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns a JWK for signing a JWT from the given PEM-encoded RSA private key.", @@ -3260,6 +3301,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Divides the first number by the second number.", @@ -3349,6 +3391,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns true if the search string ends with the base string.", @@ -3433,6 +3476,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "infix": "=", @@ -3517,6 +3561,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "infix": "==", @@ -3571,6 +3616,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Rounds the number _down_ to the nearest integer.", @@ -3659,6 +3705,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns the string representation of the number in the given base after converting it to an integer value.", @@ -3750,6 +3797,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Parses and matches strings against the glob notation. Not to be confused with `regex.globs_match`.", @@ -3832,6 +3880,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns a string which represents a version of the pattern where all asterisks have been escaped.", @@ -3911,6 +3960,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Computes the set of reachable nodes in the graph from a set of starting nodes.", @@ -3947,6 +3997,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Computes the set of reachable paths in the graph from a set of starting nodes.", @@ -3974,6 +4025,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Checks that a GraphQL query is valid against a given schema.", @@ -4001,6 +4053,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.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.", @@ -4028,6 +4081,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.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.", @@ -4051,6 +4105,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns an AST object for a GraphQL query.", @@ -4074,6 +4129,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns an AST object for a GraphQL schema.", @@ -4160,6 +4216,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "infix": "\u003e", @@ -4246,6 +4303,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "infix": "\u003e=", @@ -4306,6 +4364,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Deserializes the hex-encoded input string.", @@ -4365,6 +4424,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Serializes the input string using hex-encoding.", @@ -4447,6 +4507,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns a HTTP response to the given HTTP request.", @@ -4534,6 +4595,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns the index of a substring contained inside a string.", @@ -4570,6 +4632,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns a list of all the indexes of a substring contained inside a string.", @@ -4608,6 +4671,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "infix": "in", @@ -4647,6 +4711,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "infix": "in", @@ -4680,6 +4745,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "introduced": "v0.34.0", @@ -4758,6 +4824,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns the intersection of the given input sets.", @@ -4841,6 +4908,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Decodes a JSON Web Token and outputs it as an object.", @@ -4929,6 +4997,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.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.", @@ -5022,6 +5091,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.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`).", @@ -5115,6 +5185,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Encodes and optionally signs a JSON Web Token.", @@ -5203,6 +5274,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Verifies if a ES256 JWT signature is valid.", @@ -5282,6 +5354,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Verifies if a ES384 JWT signature is valid.", @@ -5361,6 +5434,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Verifies if a ES512 JWT signature is valid.", @@ -5449,6 +5523,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Verifies if a HS256 (secret) JWT signature is valid.", @@ -5528,6 +5603,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Verifies if a HS384 (secret) JWT signature is valid.", @@ -5607,6 +5683,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Verifies if a HS512 (secret) JWT signature is valid.", @@ -5695,6 +5772,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Verifies if a PS256 JWT signature is valid.", @@ -5774,6 +5852,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Verifies if a PS384 JWT signature is valid.", @@ -5853,6 +5932,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Verifies if a PS512 JWT signature is valid.", @@ -5941,6 +6021,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Verifies if a RS256 JWT signature is valid.", @@ -6020,6 +6101,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Verifies if a RS384 JWT signature is valid.", @@ -6099,6 +6181,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Verifies if a RS512 JWT signature is valid.", @@ -6181,6 +6264,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns `true` if the input value is an array.", @@ -6263,6 +6347,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns `true` if the input value is a boolean.", @@ -6345,6 +6430,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns `true` if the input value is null.", @@ -6427,6 +6513,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns `true` if the input value is a number.", @@ -6509,6 +6596,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns true if the input value is an object", @@ -6591,6 +6679,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns `true` if the input value is a set.", @@ -6673,6 +6762,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns `true` if the input value is a string.", @@ -6760,6 +6850,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.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.", @@ -6821,6 +6912,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Verifies the input string is a valid JSON document.", @@ -6904,6 +6996,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Serializes the input term to JSON.", @@ -6964,6 +7057,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.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.", @@ -7047,6 +7141,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.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.", @@ -7130,6 +7225,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Deserializes the input string.", @@ -7213,6 +7309,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns the input string but with all characters in lower-case.", @@ -7299,6 +7396,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "infix": "\u003c", @@ -7385,6 +7483,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "infix": "\u003c=", @@ -7467,6 +7566,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns the maximum value in a collection.", @@ -7549,6 +7649,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns the minimum value in a collection.", @@ -7635,6 +7736,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Minus subtracts the second number from the first number or computes the difference between two sets.", @@ -7722,6 +7824,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Multiplies two numbers.", @@ -7809,6 +7912,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "infix": "!=", @@ -7895,6 +7999,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.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.", @@ -7975,6 +8080,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.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).", @@ -8057,6 +8163,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.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\"}`).", @@ -8143,6 +8250,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.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.", @@ -8204,6 +8312,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.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\").", @@ -8288,6 +8397,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "introduced": "v0.17.0", @@ -8319,6 +8429,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.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.", @@ -8388,6 +8499,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.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.", @@ -8473,6 +8585,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.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\"}}`).", @@ -8566,6 +8679,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.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`.", @@ -8652,6 +8766,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Removes specified keys from an object.", @@ -8680,6 +8795,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.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.", @@ -8764,6 +8880,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.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}}`.", @@ -8794,6 +8911,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.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}`.", @@ -8871,6 +8989,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns an object that describes the runtime environment where OPA is deployed.", @@ -8957,6 +9076,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns the union of two sets.", @@ -9044,6 +9164,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Plus adds two numbers together.", @@ -9076,6 +9197,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "introduced": "v0.34.0", @@ -9153,6 +9275,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Muliplies elements of an array or set of numbers", @@ -9198,6 +9321,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.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.", @@ -9282,6 +9406,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "introduced": "v0.17.0", @@ -9372,6 +9497,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns all successive matches of the expression.", @@ -9464,6 +9590,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns the specified number of matches when matching the input against the pattern.", @@ -9550,6 +9677,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.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.", @@ -9614,6 +9742,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.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.", @@ -9683,6 +9812,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Matches a string against a regular expression.", @@ -9770,6 +9900,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Splits the input string by the occurrences of the given pattern.", @@ -9868,6 +9999,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Matches a string against a pattern, where there pattern may be glob-like", @@ -9886,6 +10018,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.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).", @@ -9905,6 +10038,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns annotations declared for the active rule and using the _rule_ scope.", @@ -9993,6 +10127,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Parses the input Rego string and returns an object representation of the AST.", @@ -10078,6 +10213,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns the remainder for of `x` divided by `y`, for `y != 0`.", @@ -10172,6 +10308,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Replace replaces all instances of a sub-string.", @@ -10255,6 +10392,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Rounds the number to the nearest integer.", @@ -10324,6 +10462,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Compares valid SemVer formatted version strings.", @@ -10389,6 +10528,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Validates that the input is a valid SemVer string.", @@ -10473,6 +10613,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "introduced": "v0.17.0", @@ -10553,6 +10694,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns a sorted array.", @@ -10641,6 +10783,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Split returns an array containing elements of the input string split on a delimiter.", @@ -10729,6 +10872,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns the given string, formatted.", @@ -10817,6 +10961,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns true if the search string begins with the base string.", @@ -10905,6 +11050,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.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.", @@ -10936,6 +11082,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Reverses a given string.", @@ -11027,6 +11174,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.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.", @@ -11109,6 +11257,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Sums elements of an array or set of numbers.", @@ -11198,6 +11347,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.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`.", @@ -11281,6 +11431,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns the `[hour, minute, second]` of the day for the nanoseconds since epoch.", @@ -11364,6 +11515,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns the `[year, month, day]` for the nanoseconds since epoch.", @@ -11418,6 +11570,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns the difference between two unix timestamps in nanoseconds (with optional timezone strings).", @@ -11495,6 +11648,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns the current time since epoch in nanoseconds.", @@ -11578,6 +11732,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns the duration in nanoseconds represented by a string.", @@ -11666,6 +11821,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.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`.", @@ -11748,6 +11904,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.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`.", @@ -11831,6 +11988,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns the day of the week (Monday, Tuesday, ...) for the nanoseconds since epoch.", @@ -11913,6 +12071,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.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.", @@ -11995,6 +12154,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.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.", @@ -12083,6 +12243,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns `value` with all leading or trailing instances of the `cutset` characters removed.", @@ -12171,6 +12332,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns `value` with all leading instances of the `cutset` chartacters removed.", @@ -12259,6 +12421,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns `value` without the prefix. If `value` doesn't start with `prefix`, it is returned unchanged.", @@ -12347,6 +12510,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns `value` with all trailing instances of the `cutset` chartacters removed.", @@ -12430,6 +12594,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Return the given string with all leading and trailing white space removed.", @@ -12518,6 +12683,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns `value` without the suffix. If `value` doesn't end with `suffix`, it is returned unchanged.", @@ -12600,6 +12766,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns the type of its input value.", @@ -12683,6 +12850,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns the union of the given input sets.", @@ -12707,6 +12875,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.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.", @@ -12790,6 +12959,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.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).", @@ -12873,6 +13043,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns the input string but with all characters in upper-case.", @@ -12955,6 +13126,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Decodes a URL-encoded input string.", @@ -13017,6 +13189,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Decodes the given URL query string into an object.", @@ -13099,6 +13272,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Encodes the input string into a URL-encoded string.", @@ -13181,6 +13355,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Encodes the given object into a URL encoded query string.", @@ -13254,6 +13429,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Returns a new UUIDv4.", @@ -13336,6 +13512,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Generates `[path, value]` tuples for all nested documents of `x` (recursively). Queries can use `walk` to traverse documents nested under `x`.", @@ -13398,6 +13575,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Verifies the input string is a valid YAML document.", @@ -13481,6 +13659,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Serializes the input term to YAML.", @@ -13564,6 +13743,7 @@ "v0.42.0", "v0.42.1", "v0.42.2", + "v0.43.0", "edge" ], "description": "Deserializes the input string.", diff --git a/capabilities/v0.43.0.json b/capabilities/v0.43.0.json new file mode 100644 index 0000000000..f61c6f85c8 --- /dev/null +++ b/capabilities/v0.43.0.json @@ -0,0 +1,4079 @@ +{ + "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": [ + { + "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": [ + { + "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 11a0e6f50c..b39177ce7d 100644 --- a/version/version.go +++ b/version/version.go @@ -10,7 +10,7 @@ import ( ) // Version is the canonical version of OPA. -var Version = "0.43.0-dev" +var Version = "0.43.0" // GoVersion is the version of Go this was built with var GoVersion = runtime.Version()