From 75cc90abee5e0b7b3c2a5c0fcbb3c5f4b2b8a80a Mon Sep 17 00:00:00 2001 From: Ashutosh Narkar Date: Wed, 24 Apr 2024 16:41:21 -0700 Subject: [PATCH] Prepare v0.64.0 release Signed-off-by: Ashutosh Narkar --- CHANGELOG.md | 61 +- ast/version_index.json | 7 + builtin_metadata.json | 200 +- capabilities/v0.64.0.json | 4826 +++++++++++++++++++++++++++++++++++++ version/version.go | 2 +- 5 files changed, 5087 insertions(+), 9 deletions(-) create mode 100644 capabilities/v0.64.0.json diff --git a/CHANGELOG.md b/CHANGELOG.md index d397279c02..54067c4703 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,15 +3,17 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). -## Unreleased +## 0.64.0 -The `go` stanza of OPA's `go.mod` had become out of sync: Projects importing OPA as a Go library would see their `go` stanza moved to 1.21 (if it wasn't that before). -This was introduced with v0.63.0, but the main branch's `go.mod` still claimed to be a `go 1.20` compatible. -Now, it states the true state of affairs: OPA, used as Go dependency, requires at least Go 1.21, and thus works with all officially supported Go versions (1.21.x and 1.22.x). +> **_NOTES:_** +> +> * The minimum version of Go required to build the OPA module is **1.21** -#### Breaking Change +This release contains a mix of features, a new builtin function (`json.marshal_with_options()`), performance improvements, and bugfixes. -##### Bootstrap configuration overrides Discovered configuration +### Breaking Change + +#### Bootstrap configuration overrides Discovered configuration Previously if Discovery was enabled, other features like bundle downloading and status reporting could not be configured manually. The reason for this was to prevent OPAs being deployed that could not be controlled through discovery. It's possible that @@ -25,7 +27,52 @@ configuration fields. For example, if the discovered configuration changes the ` additional compared to the bootstrap configuration are used, all other changes are ignored. This implies labels in the bootstrap configuration override those in the discovered configuration. But for fields such as `default_decision`, `default_authorization_decision`, `nd_builtin_cache`, the discovered configuration would override the bootstrap configuration. Now the behavior is more consistent -for the entire configuration and helps to avoid accidental configuration errors. +for the entire configuration and helps to avoid accidental configuration errors. ([#5722](https://github.com/open-policy-agent/opa/issues/5722)) authored by @ashutosh-narkar + +### Add `rego_version` attribute to the bundle manifest + +A new global `rego_version` attribute is added to the bundle manifest, to inform the OPA runtime about what Rego version (`v0`/`v1`) to +use while parsing/compiling contained Rego files. There is also a new `file_rego_versions` attribute which allows individual +files to override the global Rego version specified by `rego_version`. + +When the version of the contained Rego is advertised by the bundle through this attribute, it is not required to run OPA with the +`--v1-compatible` (or future `--v0-compatible`) flag in order to correctly parse, compile and evaluate the bundle's modules. + +A bundle's `rego_version` attribute takes precedence over any applied `--v1-compatible`/`--v0-compatible` flag. ([#6578](https://github.com/open-policy-agent/opa/issues/6578)) authored by @johanfylling + +### Runtime, Tooling, SDK +- compile: Fix panic from CLI + metadata entrypoint overlaps. The panic occurs when `opa build` was provided an entrypoint from both a CLI flag, and via entrypoint metadata annotation. ([#6661](https://github.com/open-policy-agent/opa/issues/6661)) authored by @philipaconrad +- cmd/deps: Improve memory footprint and execution time of `deps` command for policies with high dependency connectivity ([#6685](https://github.com/open-policy-agent/opa/issues/6685)) authored by @johanfylling +- server: Keep default decision path in-sync with manager's config ([#6697](https://github.com/open-policy-agent/opa/issues/6697)) authored by @ashutosh-narkar +- server: Remove unnecessary AST-to-JSON conversions ([#6665](https://github.com/open-policy-agent/opa/pull/6665)) and ([#6669](https://github.com/open-policy-agent/opa/pull/6669)) authored by @koponen-styra +- sdk: Allow customizations of the plugin manager via SDK ([#6662](https://github.com/open-policy-agent/opa/issues/6662)) authored by @xico42 +- sdk: Fix issue where active parser options aren't propagated to module reload during bundle activation resulting in errors while activating bundles with `v1` syntax ([#6689](https://github.com/open-policy-agent/opa/pull/6689)) authored by @xico42 +- plugins/rest: Close response body in OAuth2 client credentials flow ([#6708](https://github.com/open-policy-agent/opa/pull/6708)) authored by @johanneslarsson + +### Topdown and Rego +- ast: Import `rego.v1` in `v0` support modules when applicable ([#6450](https://github.com/open-policy-agent/opa/issues/6450)) authored by @johanfylling +- rego: Set query Rego version from configured imports ([#6701](https://github.com/open-policy-agent/opa/issues/6701)) authored by @johanfylling +- topdown: New `json.marshal_with_options()` builtin for indented/"pretty-printed" and/or line-prefixed JSON ([#6630](https://github.com/open-policy-agent/opa/issues/6630)) authored by @sean-r-williams + +### Docs, Website, Ecosystem +- Add Raygun to ecosystem projects ([#6712](https://github.com/open-policy-agent/opa/pull/6712)) authored by @johndbro1 +- Add env0 to ecosystem projects ([#6658](https://github.com/open-policy-agent/opa/pull/6658)) authored by @yarivg +- Add Rego Language Comparisons to ecosystem projects ([#6663](https://github.com/open-policy-agent/opa/pull/6663)) authored by @charlieegan3 +- docs/configuration: Tidy up headers in Services section ([#6695](https://github.com/open-policy-agent/opa/pull/6695)) authored by @tsandall +- docs: Use cuboid rather than cube to explain concepts of sets and composite values in policy-language section of documentation ([#6691](https://github.com/open-policy-agent/opa/pull/6691)) authored by @kd-labs + +### Miscellaneous +- go.{mod,sum}: Update the `go` stanza of OPA's `go.mod` to `go 1.21`. OPA, used as Go dependency, requires at least `go 1.21`, and thus works with all officially supported Go versions (`1.21.x` and `1.22.x`) ([#6678](https://github.com/open-policy-agent/opa/pull/6678)) authored by @srenatus +- ci: Update Github Actions for Node 20. This change updates the `upload-artifact` and `download-artifact` Github actions to the latest version (v4) ([#6670](https://github.com/open-policy-agent/opa/pull/6670)) authored by @philipaconrad +- build: Update WASM Rego test generation docker command to address CVE-2022-24765 in Git ([#6703](https://github.com/open-policy-agent/opa/issues/6703)) authored by @ashutosh-narkar +- Dependency updates; notably: + - build(go): bump 1.22.1 -> 1.22.2 ([#6672](https://github.com/open-policy-agent/opa/pull/6672)) authored by @srenatus + - build(deps): bump aquasecurity/trivy-action from 0.18.0 to 0.19.0 + - build(deps): bump github.com/containerd/containerd from 1.7.14 to 1.7.15 + - build(deps): bump github.com/prometheus/client_model from 0.5.0 to 0.6.1 + - build(deps): bump golang.org/x/net from 0.22.0 to 0.24.0 + - build(deps): bump google.golang.org/grpc from 1.62.1 to 1.63.2 + ## 0.63.0 diff --git a/ast/version_index.json b/ast/version_index.json index 95ba781e6e..f64a03aa08 100644 --- a/ast/version_index.json +++ b/ast/version_index.json @@ -686,6 +686,13 @@ "PreRelease": "", "Metadata": "" }, + "json.marshal_with_options": { + "Major": 0, + "Minor": 64, + "Patch": 0, + "PreRelease": "", + "Metadata": "" + }, "json.match_schema": { "Major": 0, "Minor": 50, diff --git a/builtin_metadata.json b/builtin_metadata.json index 0d5ddd63ef..af3a03d281 100644 --- a/builtin_metadata.json +++ b/builtin_metadata.json @@ -351,6 +351,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns the number without its sign.", @@ -468,6 +469,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "deprecated": true, @@ -588,6 +590,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns the intersection of two sets.", @@ -706,6 +709,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "deprecated": true, @@ -826,6 +830,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Concatenates two arrays.", @@ -895,6 +900,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns the reverse of a given array.", @@ -1024,6 +1030,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns a slice of a given array. If `start` is greater or equal than `stop`, `slice` is `[]`.", @@ -1144,6 +1151,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "infix": ":=", @@ -1260,6 +1268,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Deserializes the base64 encoded input string.", @@ -1378,6 +1387,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Serializes the input string into base64 encoding.", @@ -1475,6 +1485,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Verifies the input string is base64 encoded.", @@ -1593,6 +1604,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Deserializes the base64url encoded input string.", @@ -1711,6 +1723,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Serializes the input string into base64url encoding.", @@ -1806,6 +1819,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Serializes the input string into base64url encoding without padding.", @@ -1924,6 +1938,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns the bitwise \"AND\" of two integers.", @@ -2041,6 +2056,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns a new integer with its bits shifted `s` bits to the left.", @@ -2154,6 +2170,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns the bitwise negation (flip) of an integer.", @@ -2271,6 +2288,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns the bitwise \"OR\" of two integers.", @@ -2388,6 +2406,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns a new integer with its bits shifted `s` bits to the right.", @@ -2505,6 +2524,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns the bitwise \"XOR\" (exclusive-or) of two integers.", @@ -2621,6 +2641,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "deprecated": true, @@ -2736,6 +2757,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "deprecated": true, @@ -2851,6 +2873,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "deprecated": true, @@ -2966,6 +2989,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "deprecated": true, @@ -3081,6 +3105,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "deprecated": true, @@ -3196,6 +3221,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "deprecated": true, @@ -3284,6 +3310,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Rounds the number _up_ to the nearest integer.", @@ -3407,6 +3434,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Joins a set or array of strings with a delimiter.", @@ -3530,6 +3558,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns `true` if the search string is included in the base string", @@ -3649,6 +3678,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": " Count takes a collection or string and returns the number of elements (or characters) in it.", @@ -3689,6 +3719,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns a boolean representing the result of comparing two MACs for equality without leaking timing information.", @@ -3763,6 +3794,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns a string representing the MD5 HMAC of the input message using the input key.", @@ -3837,6 +3869,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns a string representing the SHA1 HMAC of the input message using the input key.", @@ -3911,6 +3944,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns a string representing the SHA256 HMAC of the input message using the input key.", @@ -3985,6 +4019,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns a string representing the SHA512 HMAC of the input message using the input key.", @@ -4103,6 +4138,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns a string representing the input string hashed with the MD5 function", @@ -4134,6 +4170,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.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.", @@ -4252,6 +4289,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns a string representing the input string hashed with the SHA1 function", @@ -4370,6 +4408,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns a string representing the input string hashed with the SHA256 function", @@ -4448,6 +4487,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.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.", @@ -4474,6 +4514,7 @@ ], "available": [ "v0.63.0", + "v0.64.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.", @@ -4578,6 +4619,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns a PKCS #10 certificate signing request from the given PEM-encoded PKCS#10 certificate signing request.", @@ -4697,6 +4739,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.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.", @@ -4736,6 +4779,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns a valid key pair", @@ -4811,6 +4855,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns a JWK for signing a JWT from the given PEM-encoded RSA private key.", @@ -4935,6 +4980,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Divides the first number by the second number.", @@ -5060,6 +5106,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns true if the search string ends with the base string.", @@ -5180,6 +5227,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "infix": "=", @@ -5300,6 +5348,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "infix": "==", @@ -5390,6 +5439,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Rounds the number _down_ to the nearest integer.", @@ -5514,6 +5564,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns the string representation of the number in the given base after rounding it down to an integer value.", @@ -5641,6 +5692,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Parses and matches strings against the glob notation. Not to be confused with `regex.globs_match`.", @@ -5759,6 +5811,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns a string which represents a version of the pattern where all asterisks have been escaped.", @@ -5874,6 +5927,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Computes the set of reachable nodes in the graph from a set of starting nodes.", @@ -5946,6 +6000,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Computes the set of reachable paths in the graph from a set of starting nodes.", @@ -6009,6 +6064,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.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.", @@ -6072,6 +6128,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.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.", @@ -6135,6 +6192,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.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.", @@ -6194,6 +6252,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns an AST object for a GraphQL query.", @@ -6253,6 +6312,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns an AST object for a GraphQL schema.", @@ -6304,6 +6364,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.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.", @@ -6426,6 +6487,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "infix": "\u003e", @@ -6548,6 +6610,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "infix": "\u003e=", @@ -6644,6 +6707,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Deserializes the hex-encoded input string.", @@ -6739,6 +6803,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Serializes the input string using hex-encoding.", @@ -6857,6 +6922,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns a HTTP response to the given HTTP request.", @@ -6980,6 +7046,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns the index of a substring contained inside a string.", @@ -7052,6 +7119,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns a list of all the indexes of a substring contained inside a string.", @@ -7126,6 +7194,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "infix": "in", @@ -7201,6 +7270,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "infix": "in", @@ -7270,6 +7340,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "introduced": "v0.34.0", @@ -7384,6 +7455,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns the intersection of the given input sets.", @@ -7503,6 +7575,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Decodes a JSON Web Token and outputs it as an object.", @@ -7627,6 +7700,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.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.", @@ -7756,6 +7830,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.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`).", @@ -7885,6 +7960,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Encodes and optionally signs a JSON Web Token.", @@ -8009,6 +8085,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Verifies if a ES256 JWT signature is valid.", @@ -8124,6 +8201,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Verifies if a ES384 JWT signature is valid.", @@ -8239,6 +8317,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Verifies if a ES512 JWT signature is valid.", @@ -8363,6 +8442,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Verifies if a HS256 (secret) JWT signature is valid.", @@ -8478,6 +8558,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Verifies if a HS384 (secret) JWT signature is valid.", @@ -8593,6 +8674,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Verifies if a HS512 (secret) JWT signature is valid.", @@ -8717,6 +8799,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Verifies if a PS256 JWT signature is valid.", @@ -8832,6 +8915,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Verifies if a PS384 JWT signature is valid.", @@ -8947,6 +9031,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Verifies if a PS512 JWT signature is valid.", @@ -9071,6 +9156,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Verifies if a RS256 JWT signature is valid.", @@ -9186,6 +9272,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Verifies if a RS384 JWT signature is valid.", @@ -9301,6 +9388,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Verifies if a RS512 JWT signature is valid.", @@ -9419,6 +9507,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns `true` if the input value is an array.", @@ -9537,6 +9626,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns `true` if the input value is a boolean.", @@ -9655,6 +9745,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns `true` if the input value is null.", @@ -9773,6 +9864,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns `true` if the input value is a number.", @@ -9891,6 +9983,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns true if the input value is an object", @@ -10009,6 +10102,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns `true` if the input value is a set.", @@ -10127,6 +10221,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns `true` if the input value is a string.", @@ -10250,6 +10345,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.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.", @@ -10347,6 +10443,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Verifies the input string is a valid JSON document.", @@ -10466,6 +10563,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Serializes the input term to JSON.", @@ -10491,10 +10589,11 @@ } ], "available": [ + "v0.64.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`).", - "introduced": "edge", + "introduced": "v0.64.0", "result": { "description": "the JSON string representation of `x`, with configured prefix/indent string(s) as appropriate", "name": "y", @@ -10535,6 +10634,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Checks that the document matches the JSON schema.", @@ -10631,6 +10731,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.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.", @@ -10750,6 +10851,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.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.", @@ -10869,6 +10971,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Deserializes the input string.", @@ -10908,6 +11011,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.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.", @@ -11027,6 +11131,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns the input string but with all characters in lower-case.", @@ -11149,6 +11254,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "infix": "\u003c", @@ -11271,6 +11377,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "infix": "\u003c=", @@ -11389,6 +11496,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns the maximum value in a collection.", @@ -11507,6 +11615,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns the minimum value in a collection.", @@ -11629,6 +11738,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Minus subtracts the second number from the first number or computes the difference between two sets.", @@ -11752,6 +11862,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Multiplies two numbers.", @@ -11875,6 +11986,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "infix": "!=", @@ -11997,6 +12109,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.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.", @@ -12113,6 +12226,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.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).", @@ -12231,6 +12345,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.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\"}`).", @@ -12353,6 +12468,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.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.", @@ -12403,6 +12519,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Parses an IPv4/IPv6 CIDR and returns a boolean indicating if the provided CIDR is valid.", @@ -12500,6 +12617,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.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\").", @@ -12620,6 +12738,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "deprecated": true, @@ -12688,6 +12807,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.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.", @@ -12793,6 +12913,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.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.", @@ -12830,6 +12951,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.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", @@ -12951,6 +13073,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.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\"}}`).", @@ -13080,6 +13203,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.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`.", @@ -13128,6 +13252,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.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\"}`.", @@ -13250,6 +13375,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Removes specified keys from an object.", @@ -13314,6 +13440,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.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.", @@ -13434,6 +13561,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.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}}`.", @@ -13500,6 +13628,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.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}`.", @@ -13613,6 +13742,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns an object that describes the runtime environment where OPA is deployed.", @@ -13735,6 +13865,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns the union of two sets.", @@ -13858,6 +13989,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Plus adds two numbers together.", @@ -13926,6 +14058,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "introduced": "v0.34.0", @@ -14039,6 +14172,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Muliplies elements of an array or set of numbers", @@ -14094,6 +14228,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.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.", @@ -14174,6 +14309,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns a random integer between `0` and `n` (`n` exlusive). If `n` is `0`, then `y` is always `0`. For any given argument pair (`str`, `n`), the output will be consistent throughout a query evaluation.", @@ -14294,6 +14430,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "deprecated": true, @@ -14421,6 +14558,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns all successive matches of the expression.", @@ -14549,6 +14687,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns the specified number of matches when matching the input against the pattern.", @@ -14671,6 +14810,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.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.", @@ -14771,6 +14911,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.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.", @@ -14876,6 +15017,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Matches a string against a regular expression.", @@ -14938,6 +15080,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Find and replaces the text using the regular expression pattern.", @@ -15061,6 +15204,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Splits the input string by the occurrences of the given pattern.", @@ -15195,6 +15339,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Matches a string against a pattern, where there pattern may be glob-like", @@ -15249,6 +15394,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.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).", @@ -15304,6 +15450,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns annotations declared for the active rule and using the _rule_ scope.", @@ -15428,6 +15575,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Parses the input Rego string and returns an object representation of the AST.", @@ -15549,6 +15697,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns the remainder for of `x` divided by `y`, for `y != 0`.", @@ -15679,6 +15828,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Replace replaces all instances of a sub-string.", @@ -15798,6 +15948,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Rounds the number to the nearest integer.", @@ -15903,6 +16054,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Compares valid SemVer formatted version strings.", @@ -16004,6 +16156,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Validates that the input is a valid SemVer string.", @@ -16124,6 +16277,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "deprecated": true, @@ -16241,6 +16395,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns a sorted array.", @@ -16365,6 +16520,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Split returns an array containing elements of the input string split on a delimiter.", @@ -16489,6 +16645,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns the given string, formatted.", @@ -16613,6 +16770,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns true if the search string begins with the base string.", @@ -16672,6 +16830,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns true if any of the search strings begins with any of the base strings.", @@ -16731,6 +16890,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns true if any of the search strings ends with any of the base strings.", @@ -16762,6 +16922,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.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", @@ -16886,6 +17047,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.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.", @@ -16953,6 +17115,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Reverses a given string.", @@ -17080,6 +17243,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.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.", @@ -17198,6 +17362,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Sums elements of an array or set of numbers.", @@ -17323,6 +17488,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.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`.", @@ -17442,6 +17608,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns the `[hour, minute, second]` of the day for the nanoseconds since epoch.", @@ -17561,6 +17728,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns the `[year, month, day]` for the nanoseconds since epoch.", @@ -17651,6 +17819,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns the difference between two unix timestamps in nanoseconds (with optional timezone strings).", @@ -17694,6 +17863,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns the formatted timestamp for the nanoseconds since epoch.", @@ -17807,6 +17977,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns the current time since epoch in nanoseconds.", @@ -17926,6 +18097,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns the duration in nanoseconds represented by a string.", @@ -18050,6 +18222,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.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`.", @@ -18168,6 +18341,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.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`.", @@ -18287,6 +18461,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns the day of the week (Monday, Tuesday, ...) for the nanoseconds since epoch.", @@ -18405,6 +18580,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.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.", @@ -18523,6 +18699,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.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.", @@ -18647,6 +18824,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns `value` with all leading or trailing instances of the `cutset` characters removed.", @@ -18771,6 +18949,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns `value` with all leading instances of the `cutset` chartacters removed.", @@ -18895,6 +19074,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns `value` without the prefix. If `value` doesn't start with `prefix`, it is returned unchanged.", @@ -19019,6 +19199,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns `value` with all trailing instances of the `cutset` chartacters removed.", @@ -19138,6 +19319,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Return the given string with all leading and trailing white space removed.", @@ -19262,6 +19444,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns `value` without the suffix. If `value` doesn't end with `suffix`, it is returned unchanged.", @@ -19380,6 +19563,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns the type of its input value.", @@ -19499,6 +19683,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns the union of the given input sets.", @@ -19559,6 +19744,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Converts strings like \"10G\", \"5K\", \"4M\", \"1500m\" and the like into a number.\nThis number can be a non-integer, such as 1.5, 0.22, etc. Supports standard metric decimal and\nbinary SI units (e.g., K, Ki, M, Mi, G, Gi etc.) m, K, M, G, T, P, and E are treated as decimal\nunits and Ki, Mi, Gi, Ti, Pi, and Ei are treated as binary units.\n\nNote that 'm' and 'M' are case-sensitive, to allow distinguishing between \"milli\" and \"mega\" units respectively. Other units are case-insensitive.", @@ -19678,6 +19864,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Converts strings like \"10GB\", \"5K\", \"4mb\" into an integer number of bytes.\nSupports standard byte units (e.g., KB, KiB, etc.) KB, MB, GB, and TB are treated as decimal\nunits and KiB, MiB, GiB, and TiB are treated as binary units. The bytes symbol (b/B) in the\nunit is optional and omitting it wil give the same result (e.g. Mi and MiB).", @@ -19797,6 +19984,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns the input string but with all characters in upper-case.", @@ -19915,6 +20103,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Decodes a URL-encoded input string.", @@ -20013,6 +20202,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Decodes the given URL query string into an object.", @@ -20131,6 +20321,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Encodes the input string into a URL-encoded string.", @@ -20249,6 +20440,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Encodes the given object into a URL encoded query string.", @@ -20277,6 +20469,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Parses the string value as an UUID and returns an object with the well-defined fields of the UUID if valid.", @@ -20386,6 +20579,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Returns a new UUIDv4.", @@ -20504,6 +20698,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Generates `[path, value]` tuples for all nested documents of `x` (recursively). Queries can use `walk` to traverse documents nested under `x`.", @@ -20602,6 +20797,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Verifies the input string is a valid YAML document.", @@ -20721,6 +20917,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Serializes the input term to YAML.", @@ -20840,6 +21037,7 @@ "v0.62.0", "v0.62.1", "v0.63.0", + "v0.64.0", "edge" ], "description": "Deserializes the input string.", diff --git a/capabilities/v0.64.0.json b/capabilities/v0.64.0.json new file mode 100644 index 0000000000..06c04773c1 --- /dev/null +++ b/capabilities/v0.64.0.json @@ -0,0 +1,4826 @@ +{ + "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": "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.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" + } + } + ], + "future_keywords": [ + "contains", + "every", + "if", + "in" + ], + "wasm_abi_versions": [ + { + "version": 1, + "minor_version": 1 + }, + { + "version": 1, + "minor_version": 2 + } + ], + "features": [ + "rule_head_ref_string_prefixes", + "rule_head_refs", + "rego_v1_import" + ] +} diff --git a/version/version.go b/version/version.go index 3bd9b6b3e8..e5c82f0561 100644 --- a/version/version.go +++ b/version/version.go @@ -11,7 +11,7 @@ import ( ) // Version is the canonical version of OPA. -var Version = "0.64.0-dev" +var Version = "0.64.0" // GoVersion is the version of Go this was built with var GoVersion = runtime.Version()