diff --git a/CHANGELOG.md b/CHANGELOG.md index e1e1584109..450e83c4e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,151 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). -## Unreleased +## 1.6.0 + +This release contains a mix of new features, performance improvements, and bugfixes. Notably: + +- Improvements to the OPA website and documentation +- Allowing keywords in Rego references +- Parallel test execution +- Faster built-in function execution + +### Modernized OPA Website ([#7037](https://github.com/open-policy-agent/opa/issues/7037)) + +We're continuing to modernize the OPA website with a new design and improved user experience. + +Some highlights: + +- [Builtins](https://www.openpolicyagent.org/docs/policy-reference#built-in-functions): You can now search them on the docs page! +- Sidebar redesign: Making it easier to find what you're looking for in our docs +- Feedback forms: Closing the feedback loop between docs authors and readers -- Please let us know if you dislike, or like, a docs page. +- [Downloads page](https://www.openpolicyagent.org/docs#1-download-opa): Find your OS' installation instructions on a less cluttered page! +- And much more + +Authored by @sky3n3t and @charlieegan3 + +### Allowing keywords in Rego references ([#7709](https://github.com/open-policy-agent/opa/pull/7709)) + +Previously, Rego references could not contain terms that conflict with Rego keywords such as `package`, `if`, `else`, `not`, etc. +in certain constructs: + +```rego +package example + +allow if { + input.package.source # not allowed (before v1.6.0) + input["package"].destination # allowed +} +``` + +The constraints for valid Rego references have been relaxed to allow keywords. +The above example is now valid and will no longer cause a compilation error. + +Authored by @johanfylling + +### Parallel Test Execution ([#7442](https://github.com/open-policy-agent/opa/issues/7442)) + +By default, OPA will now run tests in parallel (defaulting to one parallel execution thread per available CPU core), significantly speeding up test execution time for large test suites. +The performance boost is closely tied to the number of tests in your project and your selected parallelism level. For larger projects and default settings, 2-3x performance gains have been measured on a MacBook Pro. + +Parallelism can be disabled to run tests sequentially by setting the `--parallel` flag to `1`. E.g. `opa test . --parallel=1`. + +Authored by @sspaink reported by @anderseknert + +### Faster Builtin Function Evaluation + +The builtin context, an internal construct of OPA's evaluation engine, was previously provided to every builtin function. +As it turns out, only very few of them actually need it, for caching, cancellation, or lookups. +Those builtins are still provided with a builtin context, but for calls to all other builtins, we save the memory required by it. +The impact is tremendous: Even though the size of a single builtin context is only about 270 bytes, in an example application (Regal), this change brings about 360 MB of reduced memory usage! + +Authored by @anderseknert + +### Runtime, Tooling, SDK + +- cmd/check: `opa check --bundle` report virtual/base doc conflicts ([#7701](https://github.com/open-policy-agent/opa/pull/7701)) authored by @anderseknert + When `opa check` is used with the `--bundle` flag, an error will be reported if the provided json/yaml data has a conflicting overlap with the virtual documents generated by Rego rules. Such conflicts are ambiguous and can lead to unexpected evaluation results, and should be resolved. +- cmd/inspect: Fixing missing annotations location in `opa inspect` with JSON format ([#7459](https://github.com/open-policy-agent/opa/issues/7459)) authored by @johanfylling reported by @mostealth +- cmd/parse: Expose `--v0-compatible` flag ([#7668](https://github.com/open-policy-agent/opa/pull/7668)) authored by @tsandall +- cmd/refactor: Fix src:dst parsing to deal with colons ([#7648](https://github.com/open-policy-agent/opa/pull/7648)) authored by @tsandall +- metrics: Fix restartable timer bug. ([#7669](https://github.com/open-policy-agent/opa/pull/7669)) authored by @philipaconrad +- metrics: Prealloc maps + add benchmark ([#7664](https://github.com/open-policy-agent/opa/pull/7664)) authored by @philipaconrad +- oracle: Add support for some and every ([#7716](https://github.com/open-policy-agent/opa/pull/7716)) authored by @charlieegan3 +- oracle: Support object refs in FindDefinition ([#7711](https://github.com/open-policy-agent/opa/pull/7711)) authored by @charlieegan3 +- plugin/decision: Check if event is too large after compression ([#7526](https://github.com/open-policy-agent/opa/issues/7526)) authored by @sspaink +- runtime,server: Replace gorilla/mux dependency with http.ServeMux ([#7676](https://github.com/open-policy-agent/opa/pull/7676)) authored by @anderseknert + **Note**: This is a potentially breaking change for go API users directly interfacing with the OPA server's routing. +- server: Fix deferred metrics timers. ([#7671](https://github.com/open-policy-agent/opa/pull/7671)) authored by @philipaconrad +- server: Fix query url when opa is served not from root path ([#7644](https://github.com/open-policy-agent/opa/pull/7644)) authored by @olegKoshmeliuk + **Note**: This is only applicable for the web UI hosted by OPA on its root path (`/`) and OPA is served at some other path than root. + +### Compiler, Topdown and Rego + +- ast: Ensure surplus leading zeros always error ([#7726](https://github.com/open-policy-agent/opa/pull/7726)) authored by @charlieegan3 + **Note**: Primitive Rego number values with leading zeros (e.g. `0123`) are now considered invalid at time of parsing and will generate an error. If you're impacted by this change, please update your policies to not have numbers with leading zeros. E.g. `0123` should be changed to `123`. +- ast: Fixing type-checker schema cache race condition for inlined schemas ([#7679](https://github.com/open-policy-agent/opa/issues/7679), [7571](https://github.com/open-policy-agent/opa/issues/7571)) authored by @johanfylling reported by @daniel-petrov-gig +- perf: Improve performance when referencing "global" in loop ([#7654](https://github.com/open-policy-agent/opa/issues/7654)) authored by @anderseknert +- topdown: Fix issue where path in `walk` would get mutated ([#7656](https://github.com/open-policy-agent/opa/issues/7656)) authored by @anderseknert reported by @robmyersrobmyers +- topdown/http: Lenient application/json Content-Type header ([#6684](https://github.com/open-policy-agent/opa/issues/6684)) authored by @sspaink reported by @mrvanes + +### Docs, Website, Ecosystem + +- adopters: add Pix4D as adopters for its RBAC service ([#7645](https://github.com/open-policy-agent/opa/pull/7645)) authored by @marcaurele +- api: Expand docs for RegisterBuiltin — no thread-safety ([#7667](https://github.com/open-policy-agent/opa/issues/7667)) authored by @anderseknert reported by @parth-mehta-989 +- docs: Added a search function for the builtins section of policy-reference ([#7704](https://github.com/open-policy-agent/opa/pull/7704)) authored by @sky3n3t +- docs: Add another OR note in AND section ([#7706](https://github.com/open-policy-agent/opa/pull/7706)) authored by @charlieegan3 +- docs: Add basic docs covering CI/CD use case ([#7703](https://github.com/open-policy-agent/opa/pull/7703)) authored by @charlieegan3 +- docs: Add current ecosystem contribution docs ([#7678](https://github.com/open-policy-agent/opa/pull/7678)) authored by @charlieegan3 +- docs: Add EvergreenCodeBlock for code with version ([#7706](github.com/open-policy-agent/opa/pull/7706)) authored by @charlieegan3 +- docs: Add feedback form for user reported issues ([#7662](https://github.com/open-policy-agent/opa/pull/7662)) authored by @charlieegan3 +- docs: Address broken links ([#7661](https://github.com/open-policy-agent/opa/pull/7661)) authored by @charlieegan3 +- docs: Archive explain that only latest patch is shown ([#7682](https://github.com/open-policy-agent/opa/pull/7682)) authored by @charlieegan3 +- docs: Fix bug where the search match respects case ([#7713](https://github.com/open-policy-agent/opa/pull/7713)) authored by @sky3n3t +- docs: Hide feedback pop-up forever if dismissed ([#7674](https://github.com/open-policy-agent/opa/pull/7674)) authored by @charlieegan3 +- docs: Improve bundle structure documentation ([#7683](https://github.com/open-policy-agent/opa/pull/7683)) authored by @charlieegan3 +- docs: Improve explanations for initial examples ([#7677](https://github.com/open-policy-agent/opa/pull/7677)) authored by @charlieegan3 +- docs: Install/Download Instruction Update ([#7687](https://github.com/open-policy-agent/opa/pull/7687)) authored by @charlieegan3 +- docs: Move code example data inside the PlaygroundComponent ([#7724](https://github.com/open-policy-agent/opa/pull/7724)) authored by @sky3n3t +- docs: policy-reference, update sig algs formatting ([#7685](https://github.com/open-policy-agent/opa/pull/7685)) authored by @charlieegan3 +- docs: Redirect old admission control link ([#7730](https://github.com/open-policy-agent/opa/pull/7730)) authored by @charlieegan3 +- docs: Refactored Networking Reference docs ([#7686](https://github.com/open-policy-agent/opa/pull/7686)) authored by @sky3n3t +- docs: Revise sidebar order and layout ([#7731](https://github.com/open-policy-agent/opa/pull/7731)) authored by @charlieegan3 +- docs: Reworked existing policy examples to use PlaygroundExample ([#7690](https://github.com/open-policy-agent/opa/pull/7690)) authored by @sky3n3t +- docs: Show a feedback popup on the docs site ([#7663](https://github.com/open-policy-agent/opa/pull/7663)) authored by @charlieegan3 +- docs: Show edge rather than latest release ([#7717](https://github.com/open-policy-agent/opa/pull/7717)) authored by @charlieegan3 +- docs: Show TOC on CLI page ([#7712](https://github.com/open-policy-agent/opa/pull/7712)) authored by @charlieegan3 +- docs: Update colors for feedback form in dark mode ([#7691](https://github.com/open-policy-agent/opa/pull/7691)) authored by @charlieegan3 +- docs: Update policy-ref allowing anchor linking ([#7675](https://github.com/open-policy-agent/opa/pull/7675)) authored by @charlieegan3 +- docs: Update rego in deployment examples ([#7707](https://github.com/open-policy-agent/opa/pull/7707)) authored by @charlieegan3 +- docs: Update sidebar ([#7723](https://github.com/open-policy-agent/opa/pull/7723)) authored by @charlieegan3 +- website: Disable cancel script ([#7719](https://github.com/open-policy-agent/opa/pull/7719)) authored by @charlieegan3 +- website: Explain automation in RELEASE.md ([#7721](https://github.com/open-policy-agent/opa/pull/7721)) authored by @charlieegan3 +- website: Fix badge endpoints ([#7653](https://github.com/open-policy-agent/opa/pull/7653)) authored by @charlieegan3 +- website: Refactor site components with CSS modules ([#7666](https://github.com/open-policy-agent/opa/pull/7666)) authored by @charlieegan3 +- website: Update docusaurus components to 3.8.1 ([#7718](https://github.com/open-policy-agent/opa/pull/7718)) authored by @charlieegan3 + +### Miscellaneous + +- build: Better detection of go changes ([#7696](https://github.com/open-policy-agent/opa/pull/7696)) authored by @charlieegan3 +- build: Bump golang 1.24.3 -> 1.24.4 ([#7672](https://github.com/open-policy-agent/opa/pull/7672)) authored by @srenatus +- Adding Clarification to merge instructions when cutting a patch release ([#7660](https://github.com/open-policy-agent/opa/pull/7660)) authored by @johanfylling +- build: Make summary failure source clearer ([#7697](https://github.com/open-policy-agent/opa/pull/7697)) authored by @charlieegan3 +- build: Skip jobs for non docs changes ([#7688](https://github.com/open-policy-agent/opa/pull/7688)) authored by @charlieegan3 +- deps: Use `google.golang.org/protobuf` ([#7655](https://github.com/open-policy-agent/opa/pull/7655)) authored by @sspaink +- perf: Simplify interning ([#7714](https://github.com/open-policy-agent/opa/pull/7714)) authored by @anderseknert +- perf: Only pass built-in context to calls depending on it ([#7728](https://github.com/open-policy-agent/opa/pull/7728)) authored by @anderseknert +- perf: Improve built-in `concat` performance ([#7702](https://github.com/open-policy-agent/opa/pull/7702)) authored by @anderseknert +- perf: More efficient data/v1 POST handler ([#7673](https://github.com/open-policy-agent/opa/pull/7673)) authored by @anderseknert +- test: Fix flaky TestRaisingHTTPClientQueryError ([#7698](https://github.com/open-policy-agent/opa/pull/7698)) authored by @sspaink +- test: Fix flaky topdown query cache tests ([#7590](https://github.com/open-policy-agent/opa/issues/7590)) authored by @sspaink +- Dependency updates; notably: + - build(deps): Bump gqlparser from v2.5.27 to v2.5.28 ([#7699](https://github.com/open-policy-agent/opa/issues/7699)) authored by @robmyersrobmyers + - build(deps): bump github.com/go-logr/logr from 1.4.2 to 1.4.3 + - build(deps): bump github.com/vektah/gqlparser/v2 from 2.5.26 to 2.5.27 + - build(deps): bump golang.org/x/net from 0.39.0 to 0.40.0 + - build(deps): bump google.golang.org/grpc from 1.72.0 to 1.72.2 + - build(deps): bump oras.land/oras-go/v2 from 2.5.0 to 2.6.0 + - build(deps): bump go.opentelemetry.io deps to 1.36.0/0.61.0 ## 1.5.1 diff --git a/builtin_metadata.json b/builtin_metadata.json index 46c09c7bbc..4abe2e2586 100644 --- a/builtin_metadata.json +++ b/builtin_metadata.json @@ -373,6 +373,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns the number without its sign.", @@ -509,6 +510,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "deprecated": true, @@ -650,6 +652,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns the intersection of two sets.", @@ -787,6 +790,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "deprecated": true, @@ -928,6 +932,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Concatenates two arrays.", @@ -1016,6 +1021,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns the reverse of a given array.", @@ -1164,6 +1170,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns a slice of a given array. If `start` is greater or equal than `stop`, `slice` is `[]`.", @@ -1303,6 +1310,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "infix": ":=", @@ -1439,6 +1447,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Deserializes the base64 encoded input string.", @@ -1577,6 +1586,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Serializes the input string into base64 encoding.", @@ -1694,6 +1704,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Verifies the input string is base64 encoded.", @@ -1832,6 +1843,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Deserializes the base64url encoded input string.", @@ -1970,6 +1982,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Serializes the input string into base64url encoding.", @@ -2085,6 +2098,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Serializes the input string into base64url encoding without padding.", @@ -2224,6 +2238,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns the bitwise \"AND\" of two integers.", @@ -2363,6 +2378,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns a new integer with its bits shifted `s` bits to the left.", @@ -2497,6 +2513,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns the bitwise negation (flip) of an integer.", @@ -2636,6 +2653,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns the bitwise \"OR\" of two integers.", @@ -2775,6 +2793,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns a new integer with its bits shifted `s` bits to the right.", @@ -2914,6 +2933,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns the bitwise \"XOR\" (exclusive-or) of two integers.", @@ -3050,6 +3070,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "deprecated": true, @@ -3184,6 +3205,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "deprecated": true, @@ -3318,6 +3340,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "deprecated": true, @@ -3452,6 +3475,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "deprecated": true, @@ -3586,6 +3610,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "deprecated": true, @@ -3720,6 +3745,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "deprecated": true, @@ -3827,6 +3853,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Rounds the number _up_ to the nearest integer.", @@ -3970,6 +3997,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Joins a set or array of strings with a delimiter.", @@ -4113,6 +4141,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns `true` if the search string is included in the base string", @@ -4251,6 +4280,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": " Count takes a collection or string and returns the number of elements (or characters) in it.", @@ -4310,6 +4340,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns a boolean representing the result of comparing two MACs for equality without leaking timing information.", @@ -4403,6 +4434,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns a string representing the MD5 HMAC of the input message using the input key.", @@ -4496,6 +4528,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns a string representing the SHA1 HMAC of the input message using the input key.", @@ -4589,6 +4622,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns a string representing the SHA256 HMAC of the input message using the input key.", @@ -4682,6 +4716,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns a string representing the SHA512 HMAC of the input message using the input key.", @@ -4820,6 +4855,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns a string representing the input string hashed with the MD5 function", @@ -4870,6 +4906,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns zero or more private keys from the given encoded string containing DER certificate data.\n\nIf the input is empty, the function will return null. The input string should be a list of one or more concatenated PEM blocks. The whole input of concatenated PEM blocks can optionally be Base64 encoded.", @@ -5008,6 +5045,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns a string representing the input string hashed with the SHA1 function", @@ -5146,6 +5184,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns a string representing the input string hashed with the SHA256 function", @@ -5243,6 +5282,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.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.", @@ -5288,6 +5328,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.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. A config option passed as the second argument can\nbe used to configure the validation options used.\n\nThe first certificate is treated as the root and the last is treated as the leaf,\nwith all others being treated as intermediates.", @@ -5411,6 +5452,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns a PKCS #10 certificate signing request from the given PEM-encoded PKCS#10 certificate signing request.", @@ -5549,6 +5591,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns zero or more certificates from the given encoded string containing\nDER certificate data.\n\nIf the input is empty, the function will return null. The input string should be a list of one or more\nconcatenated PEM blocks. The whole input of concatenated PEM blocks can optionally be Base64 encoded.", @@ -5607,6 +5650,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns a valid key pair", @@ -5701,6 +5745,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns a JWK for signing a JWT from the given PEM-encoded RSA private key.", @@ -5844,6 +5889,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Divides the first number by the second number.", @@ -5988,6 +6034,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns true if the search string ends with the base string.", @@ -6127,6 +6174,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "infix": "=", @@ -6266,6 +6314,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "infix": "==", @@ -6375,6 +6424,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Rounds the number _down_ to the nearest integer.", @@ -6518,6 +6568,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns the string representation of the number in the given base after rounding it down to an integer value.", @@ -6666,6 +6717,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Parses and matches strings against the glob notation. Not to be confused with `regex.globs_match`.", @@ -6804,6 +6856,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns a string which represents a version of the pattern where all asterisks have been escaped.", @@ -6938,6 +6991,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Computes the set of reachable nodes in the graph from a set of starting nodes.", @@ -7029,6 +7083,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Computes the set of reachable paths in the graph from a set of starting nodes.", @@ -7113,6 +7168,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Checks that a GraphQL query is valid against a given schema. The query and/or schema can be either GraphQL strings or AST objects from the other GraphQL builtin functions.", @@ -7197,6 +7253,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns AST objects for a given GraphQL query and schema after validating the query against the schema. Returns undefined if errors were encountered during parsing or validation. The query and/or schema can be either GraphQL strings or AST objects from the other GraphQL builtin functions.", @@ -7281,6 +7338,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns a boolean indicating success or failure alongside the parsed ASTs for a given GraphQL query and schema after validating the query against the schema. The query and/or schema can be either GraphQL strings or AST objects from the other GraphQL builtin functions.", @@ -7360,6 +7418,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns an AST object for a GraphQL query.", @@ -7439,6 +7498,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns an AST object for a GraphQL schema.", @@ -7510,6 +7570,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Checks that the input is a valid GraphQL schema. The schema can be either a GraphQL string or an AST object from the other GraphQL builtin functions.", @@ -7651,6 +7712,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "infix": "\u003e", @@ -7792,6 +7854,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "infix": "\u003e=", @@ -7907,6 +7970,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Deserializes the hex-encoded input string.", @@ -8022,6 +8086,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Serializes the input string using hex-encoding.", @@ -8160,6 +8225,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns a HTTP response to the given HTTP request.", @@ -8303,6 +8369,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns the index of a substring contained inside a string.", @@ -8394,6 +8461,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns a list of all the indexes of a substring contained inside a string.", @@ -8487,6 +8555,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "infix": "in", @@ -8581,6 +8650,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "infix": "in", @@ -8669,6 +8739,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "introduced": "v0.34.0", @@ -8689,6 +8760,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "introduced": "v1.2.0", @@ -8822,6 +8894,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns the intersection of the given input sets.", @@ -8960,6 +9033,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Decodes a JSON Web Token and outputs it as an object.", @@ -9103,6 +9177,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.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.", @@ -9251,6 +9326,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.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`).", @@ -9399,6 +9475,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Encodes and optionally signs a JSON Web Token.", @@ -9542,6 +9619,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Verifies if a ES256 JWT signature is valid.", @@ -9676,6 +9754,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Verifies if a ES384 JWT signature is valid.", @@ -9810,6 +9889,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Verifies if a ES512 JWT signature is valid.", @@ -9953,6 +10033,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Verifies if a HS256 (secret) JWT signature is valid.", @@ -10087,6 +10168,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Verifies if a HS384 (secret) JWT signature is valid.", @@ -10221,6 +10303,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Verifies if a HS512 (secret) JWT signature is valid.", @@ -10364,6 +10447,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Verifies if a PS256 JWT signature is valid.", @@ -10498,6 +10582,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Verifies if a PS384 JWT signature is valid.", @@ -10632,6 +10717,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Verifies if a PS512 JWT signature is valid.", @@ -10775,6 +10861,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Verifies if a RS256 JWT signature is valid.", @@ -10909,6 +10996,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Verifies if a RS384 JWT signature is valid.", @@ -11043,6 +11131,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Verifies if a RS512 JWT signature is valid.", @@ -11181,6 +11270,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns `true` if the input value is an array.", @@ -11319,6 +11409,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns `true` if the input value is a boolean.", @@ -11457,6 +11548,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns `true` if the input value is null.", @@ -11595,6 +11687,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns `true` if the input value is a number.", @@ -11733,6 +11826,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns true if the input value is an object", @@ -11871,6 +11965,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns `true` if the input value is a set.", @@ -12009,6 +12104,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns `true` if the input value is a string.", @@ -12152,6 +12248,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.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.", @@ -12268,6 +12365,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Verifies the input string is a valid JSON document.", @@ -12406,6 +12504,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Serializes the input term to JSON.", @@ -12450,6 +12549,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Serializes the input term JSON, with additional formatting options via the `opts` parameter. `opts` accepts keys `pretty` (enable multi-line/formatted JSON), `prefix` (string to prefix lines with, default empty string) and `indent` (string to indent with, default `\\t`).", @@ -12513,6 +12613,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Checks that the document matches the JSON schema.", @@ -12630,6 +12731,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Patches an object according to RFC6902. For example: `json.patch({\"a\": {\"foo\": 1}}, [{\"op\": \"add\", \"path\": \"/a/bar\", \"value\": 2}])` results in `{\"a\": {\"foo\": 1, \"bar\": 2}`. The patches are applied atomically: if any of them fails, the result will be undefined. Additionally works on sets, where a value contained in the set is considered to be its path.", @@ -12769,6 +12871,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.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.", @@ -12907,6 +13010,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Deserializes the input string.", @@ -12965,6 +13069,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Checks that the input is a valid JSON schema object. The schema can be either a JSON string or an JSON object.", @@ -13103,6 +13208,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns the input string but with all characters in lower-case.", @@ -13244,6 +13350,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "infix": "\u003c", @@ -13385,6 +13492,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "infix": "\u003c=", @@ -13523,6 +13631,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns the maximum value in a collection.", @@ -13661,6 +13770,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns the minimum value in a collection.", @@ -13802,6 +13912,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Minus subtracts the second number from the first number or computes the difference between two sets.", @@ -13944,6 +14055,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Multiplies two numbers.", @@ -14086,6 +14198,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "infix": "!=", @@ -14229,6 +14342,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.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.", @@ -14367,6 +14481,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.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).", @@ -14505,6 +14620,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.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\"}`).", @@ -14648,6 +14764,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.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.", @@ -14719,6 +14836,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Parses an IPv4/IPv6 CIDR and returns a boolean indicating if the provided CIDR is valid.", @@ -14836,6 +14954,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.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\").", @@ -14975,6 +15094,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "deprecated": true, @@ -15062,6 +15182,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.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.", @@ -15188,6 +15309,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.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.", @@ -15247,6 +15369,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns an array of numbers in the given (inclusive) range incremented by a positive step.\n\tIf \"a==b\", then \"range == [a]\"; if \"a \u003e b\", then \"range\" is in descending order.\n\tIf the provided \"step\" is less then 1, an error will be thrown.\n\tIf \"b\" is not in the range of the provided \"step\", \"b\" won't be included in the result.\n\t", @@ -15388,6 +15511,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.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\"}}`).", @@ -15536,6 +15660,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.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`.", @@ -15603,6 +15728,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns a set of an object's keys. For example: `object.keys({\"a\": 1, \"b\": true, \"c\": \"d\")` results in `{\"a\", \"b\", \"c\"}`.", @@ -15744,6 +15870,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Removes specified keys from an object.", @@ -15827,6 +15954,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.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.", @@ -15968,6 +16096,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.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}}`.", @@ -16054,6 +16183,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.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}`.", @@ -16186,6 +16316,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns an object that describes the runtime environment where OPA is deployed.", @@ -16327,6 +16458,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns the union of two sets.", @@ -16469,6 +16601,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Plus adds two numbers together.", @@ -16556,6 +16689,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "introduced": "v0.34.0", @@ -16689,6 +16823,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Multiplies elements of an array or set of numbers", @@ -16766,6 +16901,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Signs an HTTP request object for Amazon Web Services. Currently implements [AWS Signature Version 4 request signing](https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html) by the `Authorization` header method.", @@ -16868,6 +17004,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns a random integer between `0` and `n` (`n` exclusive). 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.", @@ -17007,6 +17144,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "deprecated": true, @@ -17153,6 +17291,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns all successive matches of the expression.", @@ -17301,6 +17440,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns the specified number of matches when matching the input against the pattern.", @@ -17444,6 +17584,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.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.", @@ -17564,6 +17705,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.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.", @@ -17689,6 +17831,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Matches a string against a regular expression.", @@ -17771,6 +17914,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Find and replaces the text using the regular expression pattern.", @@ -17914,6 +18058,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Splits the input string by the occurrences of the given pattern.", @@ -18067,6 +18212,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Matches a string against a pattern, where there pattern may be glob-like", @@ -18141,6 +18287,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.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).", @@ -18215,6 +18362,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns annotations declared for the active rule and using the _rule_ scope.", @@ -18358,6 +18506,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Parses the input Rego string and returns an object representation of the AST.", @@ -18499,6 +18648,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns the remainder for of `x` divided by `y`, for `y != 0`.", @@ -18648,6 +18798,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Replace replaces all instances of a sub-string.", @@ -18786,6 +18937,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Rounds the number to the nearest integer.", @@ -18912,6 +19064,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Compares valid SemVer formatted version strings.", @@ -19033,6 +19186,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Validates that the input is a valid SemVer string.", @@ -19172,6 +19326,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "deprecated": true, @@ -19308,6 +19463,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns a sorted array.", @@ -19451,6 +19607,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Split returns an array containing elements of the input string split on a delimiter.", @@ -19594,6 +19751,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns the given string, formatted.", @@ -19737,6 +19895,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns true if the search string begins with the base string.", @@ -19815,6 +19974,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns true if any of the search strings begins with any of the base strings.", @@ -19893,6 +20053,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns true if any of the search strings ends with any of the base strings.", @@ -19933,6 +20094,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns the number of non-overlapping instances of a substring in a string.", @@ -19983,6 +20145,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Renders a templated string with given template variables injected. For a given templated string and key/value mapping, values will be injected into the template where they are referenced by key.\n\tFor examples of templating syntax, see https://pkg.go.dev/text/template", @@ -20126,6 +20289,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.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.", @@ -20214,6 +20378,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Reverses a given string.", @@ -20362,6 +20527,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.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.", @@ -20500,6 +20666,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Sums elements of an array or set of numbers.", @@ -20647,6 +20814,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns the nanoseconds since epoch after adding years, months and days to nanoseconds. Month \u0026 day values outside their usual ranges after the operation and will be normalized - for example, October 32 would become November 1. `undefined` if the result would be outside the valid time range that can fit within an `int64`.", @@ -20785,6 +20953,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns the `[hour, minute, second]` of the day for the nanoseconds since epoch.", @@ -20923,6 +21092,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns the `[year, month, day]` for the nanoseconds since epoch.", @@ -21034,6 +21204,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns the difference between two unix timestamps in nanoseconds (with optional timezone strings).", @@ -21096,6 +21267,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns the formatted timestamp for the nanoseconds since epoch.", @@ -21228,6 +21400,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns the current time since epoch in nanoseconds.", @@ -21366,6 +21539,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns the duration in nanoseconds represented by a string.", @@ -21509,6 +21683,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.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`.", @@ -21647,6 +21822,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.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`.", @@ -21785,6 +21961,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns the day of the week (Monday, Tuesday, ...) for the nanoseconds since epoch.", @@ -21923,6 +22100,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.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.", @@ -22061,6 +22239,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.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.", @@ -22204,6 +22383,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns `value` with all leading or trailing instances of the `cutset` characters removed.", @@ -22347,6 +22527,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns `value` with all leading instances of the `cutset` characters removed.", @@ -22490,6 +22671,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns `value` without the prefix. If `value` doesn't start with `prefix`, it is returned unchanged.", @@ -22633,6 +22815,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns `value` with all trailing instances of the `cutset` characters removed.", @@ -22771,6 +22954,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Return the given string with all leading and trailing white space removed.", @@ -22914,6 +23098,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns `value` without the suffix. If `value` doesn't end with `suffix`, it is returned unchanged.", @@ -23052,6 +23237,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns the type of its input value.", @@ -23190,6 +23376,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns the union of the given input sets.", @@ -23269,6 +23456,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.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. Scientific notation is supported,\nallowing values such as \"1e-3K\" (1) or \"2.5e6M\" (2.5 million M).\n\nSupports standard metric decimal and binary SI units (e.g., K, Ki, M, Mi, G, Gi, etc.) where\nm, K, M, G, T, P, and E are treated as decimal units and Ki, Mi, Gi, Ti, Pi, and Ei are treated as\nbinary units.\n\nNote that 'm' and 'M' are case-sensitive to allow distinguishing between \"milli\" and \"mega\" units\nrespectively. Other units are case-insensitive.", @@ -23407,6 +23595,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Converts strings like \"10GB\", \"5K\", \"4mb\", or \"1e6KB\" into an integer number of bytes.\n\nSupports standard byte units (e.g., KB, KiB, etc.) where KB, MB, GB, and TB are treated as decimal\nunits, and KiB, MiB, GiB, and TiB are treated as binary units. Scientific notation is supported,\nenabling values like \"1.5e3MB\" (1500MB) or \"2e6GiB\" (2 million GiB).\n\nThe bytes symbol (b/B) in the unit is optional; omitting it will yield the same result (e.g., \"Mi\"\nand \"MiB\" are equivalent).", @@ -23545,6 +23734,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns the input string but with all characters in upper-case.", @@ -23683,6 +23873,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Decodes a URL-encoded input string.", @@ -23800,6 +23991,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Decodes the given URL query string into an object.", @@ -23938,6 +24130,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Encodes the input string into a URL-encoded string.", @@ -24076,6 +24269,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Encodes the given object into a URL encoded query string.", @@ -24124,6 +24318,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Parses the string value as an UUID and returns an object with the well-defined fields of the UUID if valid.", @@ -24253,6 +24448,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Returns a new UUIDv4.", @@ -24391,6 +24587,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Generates `[path, value]` tuples for all nested documents of `x` (recursively). Queries can use `walk` to traverse documents nested under `x`.", @@ -24508,6 +24705,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Verifies the input string is a valid YAML document.", @@ -24646,6 +24844,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Serializes the input term to YAML.", @@ -24784,6 +24983,7 @@ "v1.4.2", "v1.5.0", "v1.5.1", + "v1.6.0", "edge" ], "description": "Deserializes the input string.", diff --git a/capabilities/v1.6.0.json b/capabilities/v1.6.0.json new file mode 100644 index 0000000000..110c3eca91 --- /dev/null +++ b/capabilities/v1.6.0.json @@ -0,0 +1,4850 @@ +{ + "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.equal", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "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.parse_private_keys", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "dynamic": { + "dynamic": { + "key": { + "type": "string" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + "type": "array" + }, + "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_and_verify_certificates_with_options", + "decl": { + "args": [ + { + "type": "string" + }, + { + "dynamic": { + "key": { + "type": "string" + }, + "value": { + "type": "any" + } + }, + "type": "object" + } + ], + "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_keypair", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "dynamic": { + "key": { + "type": "string" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + "type": "function" + } + }, + { + "name": "crypto.x509.parse_rsa_private_key", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "dynamic": { + "key": { + "type": "string" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + "type": "function" + } + }, + { + "name": "div", + "decl": { + "args": [ + { + "type": "number" + }, + { + "type": "number" + } + ], + "result": { + "type": "number" + }, + "type": "function" + }, + "infix": "/" + }, + { + "name": "endswith", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "eq", + "decl": { + "args": [ + { + "type": "any" + }, + { + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + }, + "infix": "=" + }, + { + "name": "equal", + "decl": { + "args": [ + { + "type": "any" + }, + { + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + }, + "infix": "==" + }, + { + "name": "floor", + "decl": { + "args": [ + { + "type": "number" + } + ], + "result": { + "type": "number" + }, + "type": "function" + } + }, + { + "name": "format_int", + "decl": { + "args": [ + { + "type": "number" + }, + { + "type": "number" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "glob.match", + "decl": { + "args": [ + { + "type": "string" + }, + { + "of": [ + { + "type": "null" + }, + { + "dynamic": { + "type": "string" + }, + "type": "array" + } + ], + "type": "any" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "glob.quote_meta", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "graph.reachable", + "decl": { + "args": [ + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "of": [ + { + "dynamic": { + "type": "any" + }, + "type": "array" + }, + { + "of": { + "type": "any" + }, + "type": "set" + } + ], + "type": "any" + } + }, + "type": "object" + }, + { + "of": [ + { + "dynamic": { + "type": "any" + }, + "type": "array" + }, + { + "of": { + "type": "any" + }, + "type": "set" + } + ], + "type": "any" + } + ], + "result": { + "of": { + "type": "any" + }, + "type": "set" + }, + "type": "function" + } + }, + { + "name": "graph.reachable_paths", + "decl": { + "args": [ + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "of": [ + { + "dynamic": { + "type": "any" + }, + "type": "array" + }, + { + "of": { + "type": "any" + }, + "type": "set" + } + ], + "type": "any" + } + }, + "type": "object" + }, + { + "of": [ + { + "dynamic": { + "type": "any" + }, + "type": "array" + }, + { + "of": { + "type": "any" + }, + "type": "set" + } + ], + "type": "any" + } + ], + "result": { + "of": { + "dynamic": { + "type": "any" + }, + "type": "array" + }, + "type": "set" + }, + "type": "function" + } + }, + { + "name": "graphql.is_valid", + "decl": { + "args": [ + { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + } + ], + "type": "any" + }, + { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + } + ], + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "graphql.parse", + "decl": { + "args": [ + { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + } + ], + "type": "any" + }, + { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + } + ], + "type": "any" + } + ], + "result": { + "static": [ + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + } + ], + "type": "array" + }, + "type": "function" + } + }, + { + "name": "graphql.parse_and_verify", + "decl": { + "args": [ + { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + } + ], + "type": "any" + }, + { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + } + ], + "type": "any" + } + ], + "result": { + "static": [ + { + "type": "boolean" + }, + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + } + ], + "type": "array" + }, + "type": "function" + } + }, + { + "name": "graphql.parse_query", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + "type": "function" + } + }, + { + "name": "graphql.parse_schema", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + "type": "function" + } + }, + { + "name": "graphql.schema_is_valid", + "decl": { + "args": [ + { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + } + ], + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "gt", + "decl": { + "args": [ + { + "type": "any" + }, + { + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + }, + "infix": "\u003e" + }, + { + "name": "gte", + "decl": { + "args": [ + { + "type": "any" + }, + { + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + }, + "infix": "\u003e=" + }, + { + "name": "hex.decode", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "hex.encode", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "http.send", + "decl": { + "args": [ + { + "dynamic": { + "key": { + "type": "string" + }, + "value": { + "type": "any" + } + }, + "type": "object" + } + ], + "result": { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + "type": "function" + }, + "nondeterministic": true + }, + { + "name": "indexof", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "number" + }, + "type": "function" + } + }, + { + "name": "indexof_n", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "dynamic": { + "type": "number" + }, + "type": "array" + }, + "type": "function" + } + }, + { + "name": "internal.member_2", + "decl": { + "args": [ + { + "type": "any" + }, + { + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + }, + "infix": "in" + }, + { + "name": "internal.member_3", + "decl": { + "args": [ + { + "type": "any" + }, + { + "type": "any" + }, + { + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + }, + "infix": "in" + }, + { + "name": "internal.print", + "decl": { + "args": [ + { + "dynamic": { + "of": { + "type": "any" + }, + "type": "set" + }, + "type": "array" + } + ], + "type": "function" + } + }, + { + "name": "internal.test_case", + "decl": { + "args": [ + { + "dynamic": { + "type": "any" + }, + "type": "array" + } + ], + "type": "function" + } + }, + { + "name": "intersection", + "decl": { + "args": [ + { + "of": { + "of": { + "type": "any" + }, + "type": "set" + }, + "type": "set" + } + ], + "result": { + "of": { + "type": "any" + }, + "type": "set" + }, + "type": "function" + } + }, + { + "name": "io.jwt.decode", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "static": [ + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + { + "type": "string" + } + ], + "type": "array" + }, + "type": "function" + } + }, + { + "name": "io.jwt.decode_verify", + "decl": { + "args": [ + { + "type": "string" + }, + { + "dynamic": { + "key": { + "type": "string" + }, + "value": { + "type": "any" + } + }, + "type": "object" + } + ], + "result": { + "static": [ + { + "type": "boolean" + }, + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + } + ], + "type": "array" + }, + "type": "function" + }, + "nondeterministic": true + }, + { + "name": "io.jwt.encode_sign", + "decl": { + "args": [ + { + "dynamic": { + "key": { + "type": "string" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + { + "dynamic": { + "key": { + "type": "string" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + { + "dynamic": { + "key": { + "type": "string" + }, + "value": { + "type": "any" + } + }, + "type": "object" + } + ], + "result": { + "type": "string" + }, + "type": "function" + }, + "nondeterministic": true + }, + { + "name": "io.jwt.encode_sign_raw", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + }, + "nondeterministic": true + }, + { + "name": "io.jwt.verify_es256", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "io.jwt.verify_es384", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "io.jwt.verify_es512", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "io.jwt.verify_hs256", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "io.jwt.verify_hs384", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "io.jwt.verify_hs512", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "io.jwt.verify_ps256", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "io.jwt.verify_ps384", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "io.jwt.verify_ps512", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "io.jwt.verify_rs256", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "io.jwt.verify_rs384", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "io.jwt.verify_rs512", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "is_array", + "decl": { + "args": [ + { + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "is_boolean", + "decl": { + "args": [ + { + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "is_null", + "decl": { + "args": [ + { + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "is_number", + "decl": { + "args": [ + { + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "is_object", + "decl": { + "args": [ + { + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "is_set", + "decl": { + "args": [ + { + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "is_string", + "decl": { + "args": [ + { + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "json.filter", + "decl": { + "args": [ + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + { + "of": [ + { + "dynamic": { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "type": "any" + }, + "type": "array" + } + ], + "type": "any" + }, + "type": "array" + }, + { + "of": { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "type": "any" + }, + "type": "array" + } + ], + "type": "any" + }, + "type": "set" + } + ], + "type": "any" + } + ], + "result": { + "type": "any" + }, + "type": "function" + } + }, + { + "name": "json.is_valid", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "json.marshal", + "decl": { + "args": [ + { + "type": "any" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "json.marshal_with_options", + "decl": { + "args": [ + { + "type": "any" + }, + { + "dynamic": { + "key": { + "type": "string" + }, + "value": { + "type": "any" + } + }, + "static": [ + { + "key": "indent", + "value": { + "type": "string" + } + }, + { + "key": "prefix", + "value": { + "type": "string" + } + }, + { + "key": "pretty", + "value": { + "type": "boolean" + } + } + ], + "type": "object" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "json.match_schema", + "decl": { + "args": [ + { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + } + ], + "type": "any" + }, + { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + } + ], + "type": "any" + } + ], + "result": { + "static": [ + { + "type": "boolean" + }, + { + "dynamic": { + "static": [ + { + "key": "desc", + "value": { + "type": "string" + } + }, + { + "key": "error", + "value": { + "type": "string" + } + }, + { + "key": "field", + "value": { + "type": "string" + } + }, + { + "key": "type", + "value": { + "type": "string" + } + } + ], + "type": "object" + }, + "type": "array" + } + ], + "type": "array" + }, + "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": "json.verify_schema", + "decl": { + "args": [ + { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + } + ], + "type": "any" + } + ], + "result": { + "static": [ + { + "type": "boolean" + }, + { + "of": [ + { + "type": "null" + }, + { + "type": "string" + } + ], + "type": "any" + } + ], + "type": "array" + }, + "type": "function" + } + }, + { + "name": "lower", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "lt", + "decl": { + "args": [ + { + "type": "any" + }, + { + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + }, + "infix": "\u003c" + }, + { + "name": "lte", + "decl": { + "args": [ + { + "type": "any" + }, + { + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + }, + "infix": "\u003c=" + }, + { + "name": "max", + "decl": { + "args": [ + { + "of": [ + { + "dynamic": { + "type": "any" + }, + "type": "array" + }, + { + "of": { + "type": "any" + }, + "type": "set" + } + ], + "type": "any" + } + ], + "result": { + "type": "any" + }, + "type": "function" + } + }, + { + "name": "min", + "decl": { + "args": [ + { + "of": [ + { + "dynamic": { + "type": "any" + }, + "type": "array" + }, + { + "of": { + "type": "any" + }, + "type": "set" + } + ], + "type": "any" + } + ], + "result": { + "type": "any" + }, + "type": "function" + } + }, + { + "name": "minus", + "decl": { + "args": [ + { + "of": [ + { + "type": "number" + }, + { + "of": { + "type": "any" + }, + "type": "set" + } + ], + "type": "any" + }, + { + "of": [ + { + "type": "number" + }, + { + "of": { + "type": "any" + }, + "type": "set" + } + ], + "type": "any" + } + ], + "result": { + "of": [ + { + "type": "number" + }, + { + "of": { + "type": "any" + }, + "type": "set" + } + ], + "type": "any" + }, + "type": "function" + }, + "infix": "-" + }, + { + "name": "mul", + "decl": { + "args": [ + { + "type": "number" + }, + { + "type": "number" + } + ], + "result": { + "type": "number" + }, + "type": "function" + }, + "infix": "*" + }, + { + "name": "neq", + "decl": { + "args": [ + { + "type": "any" + }, + { + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + }, + "infix": "!=" + }, + { + "name": "net.cidr_contains", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "net.cidr_contains_matches", + "decl": { + "args": [ + { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "type": "any" + }, + "type": "array" + } + ], + "type": "any" + }, + "type": "array" + }, + { + "dynamic": { + "key": { + "type": "string" + }, + "value": { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "type": "any" + }, + "type": "array" + } + ], + "type": "any" + } + }, + "type": "object" + }, + { + "of": { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "type": "any" + }, + "type": "array" + } + ], + "type": "any" + }, + "type": "set" + } + ], + "type": "any" + }, + { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "type": "any" + }, + "type": "array" + } + ], + "type": "any" + }, + "type": "array" + }, + { + "dynamic": { + "key": { + "type": "string" + }, + "value": { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "type": "any" + }, + "type": "array" + } + ], + "type": "any" + } + }, + "type": "object" + }, + { + "of": { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "type": "any" + }, + "type": "array" + } + ], + "type": "any" + }, + "type": "set" + } + ], + "type": "any" + } + ], + "result": { + "of": { + "static": [ + { + "type": "any" + }, + { + "type": "any" + } + ], + "type": "array" + }, + "type": "set" + }, + "type": "function" + } + }, + { + "name": "net.cidr_expand", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "of": { + "type": "string" + }, + "type": "set" + }, + "type": "function" + } + }, + { + "name": "net.cidr_intersects", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "net.cidr_is_valid", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "net.cidr_merge", + "decl": { + "args": [ + { + "of": [ + { + "dynamic": { + "of": [ + { + "type": "string" + } + ], + "type": "any" + }, + "type": "array" + }, + { + "of": { + "type": "string" + }, + "type": "set" + } + ], + "type": "any" + } + ], + "result": { + "of": { + "type": "string" + }, + "type": "set" + }, + "type": "function" + } + }, + { + "name": "net.cidr_overlap", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "net.lookup_ip_addr", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "of": { + "type": "string" + }, + "type": "set" + }, + "type": "function" + }, + "nondeterministic": true + }, + { + "name": "numbers.range", + "decl": { + "args": [ + { + "type": "number" + }, + { + "type": "number" + } + ], + "result": { + "dynamic": { + "type": "number" + }, + "type": "array" + }, + "type": "function" + } + }, + { + "name": "numbers.range_step", + "decl": { + "args": [ + { + "type": "number" + }, + { + "type": "number" + }, + { + "type": "number" + } + ], + "result": { + "dynamic": { + "type": "number" + }, + "type": "array" + }, + "type": "function" + } + }, + { + "name": "object.filter", + "decl": { + "args": [ + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + { + "of": [ + { + "dynamic": { + "type": "any" + }, + "type": "array" + }, + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + { + "of": { + "type": "any" + }, + "type": "set" + } + ], + "type": "any" + } + ], + "result": { + "type": "any" + }, + "type": "function" + } + }, + { + "name": "object.get", + "decl": { + "args": [ + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + { + "type": "any" + }, + { + "type": "any" + } + ], + "result": { + "type": "any" + }, + "type": "function" + } + }, + { + "name": "object.keys", + "decl": { + "args": [ + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + } + ], + "result": { + "of": { + "type": "any" + }, + "type": "set" + }, + "type": "function" + } + }, + { + "name": "object.remove", + "decl": { + "args": [ + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + { + "of": [ + { + "dynamic": { + "type": "any" + }, + "type": "array" + }, + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + { + "of": { + "type": "any" + }, + "type": "set" + } + ], + "type": "any" + } + ], + "result": { + "type": "any" + }, + "type": "function" + } + }, + { + "name": "object.subset", + "decl": { + "args": [ + { + "of": [ + { + "dynamic": { + "type": "any" + }, + "type": "array" + }, + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + { + "of": { + "type": "any" + }, + "type": "set" + } + ], + "type": "any" + }, + { + "of": [ + { + "dynamic": { + "type": "any" + }, + "type": "array" + }, + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + { + "of": { + "type": "any" + }, + "type": "set" + } + ], + "type": "any" + } + ], + "result": { + "type": "any" + }, + "type": "function" + } + }, + { + "name": "object.union", + "decl": { + "args": [ + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + } + ], + "result": { + "type": "any" + }, + "type": "function" + } + }, + { + "name": "object.union_n", + "decl": { + "args": [ + { + "dynamic": { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + "type": "array" + } + ], + "result": { + "type": "any" + }, + "type": "function" + } + }, + { + "name": "opa.runtime", + "decl": { + "result": { + "dynamic": { + "key": { + "type": "string" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + "type": "function" + }, + "nondeterministic": true + }, + { + "name": "or", + "decl": { + "args": [ + { + "of": { + "type": "any" + }, + "type": "set" + }, + { + "of": { + "type": "any" + }, + "type": "set" + } + ], + "result": { + "of": { + "type": "any" + }, + "type": "set" + }, + "type": "function" + }, + "infix": "|" + }, + { + "name": "plus", + "decl": { + "args": [ + { + "type": "number" + }, + { + "type": "number" + } + ], + "result": { + "type": "number" + }, + "type": "function" + }, + "infix": "+" + }, + { + "name": "print", + "decl": { + "type": "function", + "variadic": { + "type": "any" + } + } + }, + { + "name": "product", + "decl": { + "args": [ + { + "of": [ + { + "dynamic": { + "type": "number" + }, + "type": "array" + }, + { + "of": { + "type": "number" + }, + "type": "set" + } + ], + "type": "any" + } + ], + "result": { + "type": "number" + }, + "type": "function" + } + }, + { + "name": "providers.aws.sign_req", + "decl": { + "args": [ + { + "dynamic": { + "key": { + "type": "string" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + { + "dynamic": { + "key": { + "type": "string" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + { + "type": "number" + } + ], + "result": { + "dynamic": { + "key": { + "type": "any" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + "type": "function" + } + }, + { + "name": "rand.intn", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "number" + } + ], + "result": { + "type": "number" + }, + "type": "function" + }, + "nondeterministic": true + }, + { + "name": "re_match", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "regex.find_all_string_submatch_n", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + }, + { + "type": "number" + } + ], + "result": { + "dynamic": { + "dynamic": { + "type": "string" + }, + "type": "array" + }, + "type": "array" + }, + "type": "function" + } + }, + { + "name": "regex.find_n", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + }, + { + "type": "number" + } + ], + "result": { + "dynamic": { + "type": "string" + }, + "type": "array" + }, + "type": "function" + } + }, + { + "name": "regex.globs_match", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "regex.is_valid", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "regex.match", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "regex.replace", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "regex.split", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "dynamic": { + "type": "string" + }, + "type": "array" + }, + "type": "function" + } + }, + { + "name": "regex.template_match", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + }, + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "rego.metadata.chain", + "decl": { + "result": { + "dynamic": { + "type": "any" + }, + "type": "array" + }, + "type": "function" + } + }, + { + "name": "rego.metadata.rule", + "decl": { + "result": { + "type": "any" + }, + "type": "function" + } + }, + { + "name": "rego.parse_module", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "dynamic": { + "key": { + "type": "string" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + "type": "function" + } + }, + { + "name": "rem", + "decl": { + "args": [ + { + "type": "number" + }, + { + "type": "number" + } + ], + "result": { + "type": "number" + }, + "type": "function" + }, + "infix": "%" + }, + { + "name": "replace", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "round", + "decl": { + "args": [ + { + "type": "number" + } + ], + "result": { + "type": "number" + }, + "type": "function" + } + }, + { + "name": "semver.compare", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "number" + }, + "type": "function" + } + }, + { + "name": "semver.is_valid", + "decl": { + "args": [ + { + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "set_diff", + "decl": { + "args": [ + { + "of": { + "type": "any" + }, + "type": "set" + }, + { + "of": { + "type": "any" + }, + "type": "set" + } + ], + "result": { + "of": { + "type": "any" + }, + "type": "set" + }, + "type": "function" + } + }, + { + "name": "sort", + "decl": { + "args": [ + { + "of": [ + { + "dynamic": { + "type": "any" + }, + "type": "array" + }, + { + "of": { + "type": "any" + }, + "type": "set" + } + ], + "type": "any" + } + ], + "result": { + "dynamic": { + "type": "any" + }, + "type": "array" + }, + "type": "function" + } + }, + { + "name": "split", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "dynamic": { + "type": "string" + }, + "type": "array" + }, + "type": "function" + } + }, + { + "name": "sprintf", + "decl": { + "args": [ + { + "type": "string" + }, + { + "dynamic": { + "type": "any" + }, + "type": "array" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "startswith", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "strings.any_prefix_match", + "decl": { + "args": [ + { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "type": "string" + }, + "type": "array" + }, + { + "of": { + "type": "string" + }, + "type": "set" + } + ], + "type": "any" + }, + { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "type": "string" + }, + "type": "array" + }, + { + "of": { + "type": "string" + }, + "type": "set" + } + ], + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "strings.any_suffix_match", + "decl": { + "args": [ + { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "type": "string" + }, + "type": "array" + }, + { + "of": { + "type": "string" + }, + "type": "set" + } + ], + "type": "any" + }, + { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "type": "string" + }, + "type": "array" + }, + { + "of": { + "type": "string" + }, + "type": "set" + } + ], + "type": "any" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "strings.count", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "number" + }, + "type": "function" + } + }, + { + "name": "strings.render_template", + "decl": { + "args": [ + { + "type": "string" + }, + { + "dynamic": { + "key": { + "type": "string" + }, + "value": { + "type": "any" + } + }, + "type": "object" + } + ], + "result": { + "type": "string" + }, + "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.format", + "decl": { + "args": [ + { + "of": [ + { + "type": "number" + }, + { + "static": [ + { + "type": "number" + }, + { + "type": "string" + } + ], + "type": "array" + }, + { + "static": [ + { + "type": "number" + }, + { + "type": "string" + }, + { + "type": "string" + } + ], + "type": "array" + } + ], + "type": "any" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "time.now_ns", + "decl": { + "result": { + "type": "number" + }, + "type": "function" + }, + "nondeterministic": true + }, + { + "name": "time.parse_duration_ns", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "number" + }, + "type": "function" + } + }, + { + "name": "time.parse_ns", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "number" + }, + "type": "function" + } + }, + { + "name": "time.parse_rfc3339_ns", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "number" + }, + "type": "function" + } + }, + { + "name": "time.weekday", + "decl": { + "args": [ + { + "of": [ + { + "type": "number" + }, + { + "static": [ + { + "type": "number" + }, + { + "type": "string" + } + ], + "type": "array" + } + ], + "type": "any" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "to_number", + "decl": { + "args": [ + { + "of": [ + { + "type": "null" + }, + { + "type": "boolean" + }, + { + "type": "number" + }, + { + "type": "string" + } + ], + "type": "any" + } + ], + "result": { + "type": "number" + }, + "type": "function" + } + }, + { + "name": "trace", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "trim", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "trim_left", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "trim_prefix", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "trim_right", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "trim_space", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "trim_suffix", + "decl": { + "args": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "type_name", + "decl": { + "args": [ + { + "type": "any" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "union", + "decl": { + "args": [ + { + "of": { + "of": { + "type": "any" + }, + "type": "set" + }, + "type": "set" + } + ], + "result": { + "of": { + "type": "any" + }, + "type": "set" + }, + "type": "function" + } + }, + { + "name": "units.parse", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "number" + }, + "type": "function" + } + }, + { + "name": "units.parse_bytes", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "number" + }, + "type": "function" + } + }, + { + "name": "upper", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "urlquery.decode", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "urlquery.decode_object", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "dynamic": { + "key": { + "type": "string" + }, + "value": { + "dynamic": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "type": "function" + } + }, + { + "name": "urlquery.encode", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "urlquery.encode_object", + "decl": { + "args": [ + { + "dynamic": { + "key": { + "type": "string" + }, + "value": { + "of": [ + { + "type": "string" + }, + { + "dynamic": { + "type": "string" + }, + "type": "array" + }, + { + "of": { + "type": "string" + }, + "type": "set" + } + ], + "type": "any" + } + }, + "type": "object" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "uuid.parse", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "dynamic": { + "key": { + "type": "string" + }, + "value": { + "type": "any" + } + }, + "type": "object" + }, + "type": "function" + } + }, + { + "name": "uuid.rfc4122", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "string" + }, + "type": "function" + }, + "nondeterministic": true + }, + { + "name": "walk", + "decl": { + "args": [ + { + "type": "any" + } + ], + "result": { + "static": [ + { + "dynamic": { + "type": "any" + }, + "type": "array" + }, + { + "type": "any" + } + ], + "type": "array" + }, + "type": "function" + }, + "relation": true + }, + { + "name": "yaml.is_valid", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "boolean" + }, + "type": "function" + } + }, + { + "name": "yaml.marshal", + "decl": { + "args": [ + { + "type": "any" + } + ], + "result": { + "type": "string" + }, + "type": "function" + } + }, + { + "name": "yaml.unmarshal", + "decl": { + "args": [ + { + "type": "string" + } + ], + "result": { + "type": "any" + }, + "type": "function" + } + } + ], + "wasm_abi_versions": [ + { + "version": 1, + "minor_version": 1 + }, + { + "version": 1, + "minor_version": 2 + } + ], + "features": [ + "keywords_in_refs", + "rego_v1" + ] +} diff --git a/v1/ast/version_index.json b/v1/ast/version_index.json index eecb68c772..b84f09a290 100644 --- a/v1/ast/version_index.json +++ b/v1/ast/version_index.json @@ -1402,6 +1402,13 @@ } }, "features": { + "keywords_in_refs": { + "Major": 1, + "Minor": 6, + "Patch": 0, + "PreRelease": "", + "Metadata": "" + }, "rego_v1": { "Major": 1, "Minor": 0, diff --git a/v1/version/version.go b/v1/version/version.go index c9f7b4dddd..ab229e76fe 100644 --- a/v1/version/version.go +++ b/v1/version/version.go @@ -10,7 +10,7 @@ import ( "runtime/debug" ) -var Version = "1.6.0-dev" +var Version = "1.6.0" // GoVersion is the version of Go this was built with var GoVersion = runtime.Version()