Varendo

Intent schema

Fields, defaults, validation, and examples for browse, detail, create, edit, compare, analyze, and custom intent envelopes.

Send one of these envelopes to app.render or aeliqo_render. Unknown fields and unregistered values are rejected before any data is read.

Shared fields

FieldBehavior
versionContract version; currently "1".
idBounded request identity used for receipts and supersession.
kindOne standard kind or custom.
resourceRegistered resource ID. Unknown values are rejected.
preferredViewOptional preference limited to allowed registered views; omitting it enables default adaptive choice.

Browse

Intent

JSON example
{
  "version": "1",
  "id": "active-people",
  "kind": "browse",
  "resource": "people",
  "fields": ["name", "team"],
  "filter": { "op": "compare", "field": "active", "comparison": "eq", "value": true },
  "sort": [{ "field": "name", "direction": "asc" }],
  "page": { "size": 25 }
}

Detail and compare

Identity objects must contain exactly the resource identity fields. Compare accepts bounded identities and fields and preserves simultaneous comparison requirements during presentation.

Create and edit

Create opens the registered creation form. Edit additionally requires exact resource identity; current values and entity revision come from the trusted form-state adapter.

Analyze

Measures must reference registered meanings. Dimensions, filters, period, temporal field, grain, calendar, timezone, sort, and limit are validated against the Catalog and query contract.

Machine schema

Generated intent JSON Schema · compiled source
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "oneOf": [
    {
      "type": "object",
      "properties": {
        "version": {
          "type": "string",
          "const": "1",
          "maxLength": 16384
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
        },
        "resource": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
        },
        "preferredView": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
        },
        "kind": {
          "type": "string",
          "const": "browse",
          "maxLength": 16384
        },
        "fields": {
          "maxItems": 128,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
          }
        },
        "filter": {
          "$ref": "#/$defs/__schema0"
        },
        "search": {
          "type": "object",
          "properties": {
            "text": {
              "type": "string",
              "minLength": 1,
              "maxLength": 4096
            },
            "fields": {
              "type": "array",
              "prefixItems": [
                {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 160,
                  "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
                }
              ],
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
              },
              "minItems": 1,
              "maxItems": 128
            }
          },
          "required": [
            "text"
          ],
          "additionalProperties": false,
          "maxProperties": 256,
          "propertyNames": {
            "maxLength": 160,
            "not": {
              "const": "__proto__"
            }
          }
        },
        "sort": {
          "maxItems": 128,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "field": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
              },
              "direction": {
                "type": "string",
                "enum": [
                  "asc",
                  "desc"
                ],
                "maxLength": 16384
              },
              "nulls": {
                "type": "string",
                "enum": [
                  "first",
                  "last"
                ],
                "maxLength": 16384
              }
            },
            "required": [
              "field",
              "direction"
            ],
            "additionalProperties": false,
            "maxProperties": 256,
            "propertyNames": {
              "maxLength": 160,
              "not": {
                "const": "__proto__"
              }
            }
          }
        },
        "page": {
          "type": "object",
          "properties": {
            "size": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000
            },
            "cursor": {
              "type": "string",
              "maxLength": 16384
            }
          },
          "required": [
            "size"
          ],
          "additionalProperties": false,
          "maxProperties": 256,
          "propertyNames": {
            "maxLength": 160,
            "not": {
              "const": "__proto__"
            }
          }
        }
      },
      "required": [
        "version",
        "id",
        "resource",
        "kind"
      ],
      "additionalProperties": false,
      "maxProperties": 256,
      "propertyNames": {
        "maxLength": 160,
        "not": {
          "const": "__proto__"
        }
      }
    },
    {
      "type": "object",
      "properties": {
        "version": {
          "type": "string",
          "const": "1",
          "maxLength": 16384
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
        },
        "resource": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
        },
        "preferredView": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
        },
        "kind": {
          "type": "string",
          "const": "detail",
          "maxLength": 16384
        },
        "identity": {
          "type": "object",
          "propertyNames": {
            "allOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
              },
              {
                "maxLength": 160,
                "not": {
                  "const": "__proto__"
                }
              }
            ]
          },
          "additionalProperties": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string",
                "maxLength": 16384
              },
              {
                "type": "object",
                "properties": {
                  "decimal": {
                    "type": "string",
                    "maxLength": 512,
                    "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$"
                  }
                },
                "required": [
                  "decimal"
                ],
                "additionalProperties": false,
                "maxProperties": 256,
                "propertyNames": {
                  "maxLength": 160,
                  "not": {
                    "const": "__proto__"
                  }
                }
              }
            ]
          },
          "maxProperties": 256
        },
        "fields": {
          "maxItems": 128,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
          }
        }
      },
      "required": [
        "version",
        "id",
        "resource",
        "kind",
        "identity"
      ],
      "additionalProperties": false,
      "maxProperties": 256,
      "propertyNames": {
        "maxLength": 160,
        "not": {
          "const": "__proto__"
        }
      }
    },
    {
      "type": "object",
      "properties": {
        "version": {
          "type": "string",
          "const": "1",
          "maxLength": 16384
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
        },
        "resource": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
        },
        "preferredView": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
        },
        "kind": {
          "type": "string",
          "const": "create",
          "maxLength": 16384
        }
      },
      "required": [
        "version",
        "id",
        "resource",
        "kind"
      ],
      "additionalProperties": false,
      "maxProperties": 256,
      "propertyNames": {
        "maxLength": 160,
        "not": {
          "const": "__proto__"
        }
      }
    },
    {
      "type": "object",
      "properties": {
        "version": {
          "type": "string",
          "const": "1",
          "maxLength": 16384
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
        },
        "resource": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
        },
        "preferredView": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
        },
        "kind": {
          "type": "string",
          "const": "edit",
          "maxLength": 16384
        },
        "identity": {
          "type": "object",
          "propertyNames": {
            "allOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
              },
              {
                "maxLength": 160,
                "not": {
                  "const": "__proto__"
                }
              }
            ]
          },
          "additionalProperties": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string",
                "maxLength": 16384
              },
              {
                "type": "object",
                "properties": {
                  "decimal": {
                    "type": "string",
                    "maxLength": 512,
                    "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$"
                  }
                },
                "required": [
                  "decimal"
                ],
                "additionalProperties": false,
                "maxProperties": 256,
                "propertyNames": {
                  "maxLength": 160,
                  "not": {
                    "const": "__proto__"
                  }
                }
              }
            ]
          },
          "maxProperties": 256
        }
      },
      "required": [
        "version",
        "id",
        "resource",
        "kind",
        "identity"
      ],
      "additionalProperties": false,
      "maxProperties": 256,
      "propertyNames": {
        "maxLength": 160,
        "not": {
          "const": "__proto__"
        }
      }
    },
    {
      "type": "object",
      "properties": {
        "version": {
          "type": "string",
          "const": "1",
          "maxLength": 16384
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
        },
        "resource": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
        },
        "preferredView": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
        },
        "kind": {
          "type": "string",
          "const": "compare",
          "maxLength": 16384
        },
        "identities": {
          "type": "array",
          "prefixItems": [
            {
              "type": "object",
              "propertyNames": {
                "allOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
                  },
                  {
                    "maxLength": 160,
                    "not": {
                      "const": "__proto__"
                    }
                  }
                ]
              },
              "additionalProperties": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "maxLength": 16384
                  },
                  {
                    "type": "object",
                    "properties": {
                      "decimal": {
                        "type": "string",
                        "maxLength": 512,
                        "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$"
                      }
                    },
                    "required": [
                      "decimal"
                    ],
                    "additionalProperties": false,
                    "maxProperties": 256,
                    "propertyNames": {
                      "maxLength": 160,
                      "not": {
                        "const": "__proto__"
                      }
                    }
                  }
                ]
              },
              "maxProperties": 256
            }
          ],
          "items": {
            "type": "object",
            "propertyNames": {
              "allOf": [
                {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 160,
                  "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
                },
                {
                  "maxLength": 160,
                  "not": {
                    "const": "__proto__"
                  }
                }
              ]
            },
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "null"
                },
                {
                  "type": "boolean"
                },
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "maxLength": 16384
                },
                {
                  "type": "object",
                  "properties": {
                    "decimal": {
                      "type": "string",
                      "maxLength": 512,
                      "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$"
                    }
                  },
                  "required": [
                    "decimal"
                  ],
                  "additionalProperties": false,
                  "maxProperties": 256,
                  "propertyNames": {
                    "maxLength": 160,
                    "not": {
                      "const": "__proto__"
                    }
                  }
                }
              ]
            },
            "maxProperties": 256
          },
          "minItems": 1,
          "maxItems": 128
        },
        "fields": {
          "maxItems": 128,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
          }
        }
      },
      "required": [
        "version",
        "id",
        "resource",
        "kind",
        "identities"
      ],
      "additionalProperties": false,
      "maxProperties": 256,
      "propertyNames": {
        "maxLength": 160,
        "not": {
          "const": "__proto__"
        }
      }
    },
    {
      "type": "object",
      "properties": {
        "version": {
          "type": "string",
          "const": "1",
          "maxLength": 16384
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
        },
        "resource": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
        },
        "preferredView": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
        },
        "kind": {
          "type": "string",
          "const": "analyze",
          "maxLength": 16384
        },
        "dimensions": {
          "maxItems": 128,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
          }
        },
        "measures": {
          "type": "array",
          "prefixItems": [
            {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 160,
                  "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
                },
                "revision": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 160,
                  "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
                }
              },
              "required": [
                "id",
                "revision"
              ],
              "additionalProperties": false,
              "maxProperties": 256,
              "propertyNames": {
                "maxLength": 160,
                "not": {
                  "const": "__proto__"
                }
              }
            }
          ],
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
              },
              "revision": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
              }
            },
            "required": [
              "id",
              "revision"
            ],
            "additionalProperties": false,
            "maxProperties": 256,
            "propertyNames": {
              "maxLength": 160,
              "not": {
                "const": "__proto__"
              }
            }
          },
          "minItems": 1,
          "maxItems": 128
        },
        "filter": {
          "$ref": "#/$defs/__schema0"
        },
        "period": {
          "type": "object",
          "properties": {
            "from": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
              "maxLength": 16384
            },
            "toExclusive": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
              "maxLength": 16384
            },
            "calendar": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160,
              "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
            },
            "timezone": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160,
              "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
            },
            "interpretation": {
              "type": "string",
              "minLength": 1,
              "maxLength": 4096
            }
          },
          "required": [
            "from",
            "toExclusive",
            "calendar",
            "timezone",
            "interpretation"
          ],
          "additionalProperties": false,
          "maxProperties": 256,
          "propertyNames": {
            "maxLength": 160,
            "not": {
              "const": "__proto__"
            }
          }
        },
        "time": {
          "type": "object",
          "properties": {
            "field": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160,
              "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
            },
            "grain": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160,
              "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
            },
            "calendar": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160,
              "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
            },
            "timezone": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160,
              "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
            },
            "weekStartsOn": {
              "type": "number",
              "enum": [
                0,
                1,
                2,
                3,
                4,
                5,
                6
              ]
            }
          },
          "required": [
            "field",
            "grain"
          ],
          "additionalProperties": false,
          "maxProperties": 256,
          "propertyNames": {
            "maxLength": 160,
            "not": {
              "const": "__proto__"
            }
          }
        },
        "sort": {
          "maxItems": 128,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "field": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
              },
              "direction": {
                "type": "string",
                "enum": [
                  "asc",
                  "desc"
                ],
                "maxLength": 16384
              },
              "nulls": {
                "type": "string",
                "enum": [
                  "first",
                  "last"
                ],
                "maxLength": 16384
              }
            },
            "required": [
              "field",
              "direction"
            ],
            "additionalProperties": false,
            "maxProperties": 256,
            "propertyNames": {
              "maxLength": 160,
              "not": {
                "const": "__proto__"
              }
            }
          }
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 10000
        }
      },
      "required": [
        "version",
        "id",
        "resource",
        "kind",
        "measures"
      ],
      "additionalProperties": false,
      "maxProperties": 256,
      "propertyNames": {
        "maxLength": 160,
        "not": {
          "const": "__proto__"
        }
      }
    },
    {
      "type": "object",
      "properties": {
        "version": {
          "type": "string",
          "const": "1",
          "maxLength": 16384
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
        },
        "resource": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
        },
        "preferredView": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
        },
        "kind": {
          "type": "string",
          "const": "custom",
          "maxLength": 16384
        },
        "intent": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160,
              "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
            },
            "revision": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160,
              "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
            }
          },
          "required": [
            "id",
            "revision"
          ],
          "additionalProperties": false,
          "maxProperties": 256,
          "propertyNames": {
            "maxLength": 160,
            "not": {
              "const": "__proto__"
            }
          }
        },
        "input": {
          "$ref": "#/$defs/__schema1"
        }
      },
      "required": [
        "version",
        "id",
        "resource",
        "kind",
        "intent",
        "input"
      ],
      "additionalProperties": false,
      "maxProperties": 256,
      "propertyNames": {
        "maxLength": 160,
        "not": {
          "const": "__proto__"
        }
      }
    }
  ],
  "$defs": {
    "__schema0": {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "op": {
              "type": "string",
              "const": "compare",
              "maxLength": 16384
            },
            "field": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160,
              "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
            },
            "entity": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160,
              "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
            },
            "comparison": {
              "type": "string",
              "enum": [
                "eq",
                "ne",
                "lt",
                "lte",
                "gt",
                "gte"
              ],
              "maxLength": 16384
            },
            "value": {
              "anyOf": [
                {
                  "type": "null"
                },
                {
                  "type": "boolean"
                },
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "maxLength": 16384
                },
                {
                  "type": "object",
                  "properties": {
                    "decimal": {
                      "type": "string",
                      "maxLength": 512,
                      "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$"
                    }
                  },
                  "required": [
                    "decimal"
                  ],
                  "additionalProperties": false,
                  "maxProperties": 256,
                  "propertyNames": {
                    "maxLength": 160,
                    "not": {
                      "const": "__proto__"
                    }
                  }
                }
              ]
            }
          },
          "required": [
            "op",
            "field",
            "comparison",
            "value"
          ],
          "additionalProperties": false,
          "maxProperties": 256,
          "propertyNames": {
            "maxLength": 160,
            "not": {
              "const": "__proto__"
            }
          }
        },
        {
          "type": "object",
          "properties": {
            "op": {
              "type": "string",
              "const": "is-null",
              "maxLength": 16384
            },
            "field": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160,
              "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
            },
            "entity": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160,
              "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
            },
            "negate": {
              "type": "boolean"
            }
          },
          "required": [
            "op",
            "field",
            "negate"
          ],
          "additionalProperties": false,
          "maxProperties": 256,
          "propertyNames": {
            "maxLength": 160,
            "not": {
              "const": "__proto__"
            }
          }
        },
        {
          "type": "object",
          "properties": {
            "op": {
              "type": "string",
              "const": "in",
              "maxLength": 16384
            },
            "field": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160,
              "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
            },
            "entity": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160,
              "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
            },
            "values": {
              "maxItems": 10000,
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "maxLength": 16384
                  },
                  {
                    "type": "object",
                    "properties": {
                      "decimal": {
                        "type": "string",
                        "maxLength": 512,
                        "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$"
                      }
                    },
                    "required": [
                      "decimal"
                    ],
                    "additionalProperties": false,
                    "maxProperties": 256,
                    "propertyNames": {
                      "maxLength": 160,
                      "not": {
                        "const": "__proto__"
                      }
                    }
                  }
                ]
              }
            }
          },
          "required": [
            "op",
            "field",
            "values"
          ],
          "additionalProperties": false,
          "maxProperties": 256,
          "propertyNames": {
            "maxLength": 160,
            "not": {
              "const": "__proto__"
            }
          }
        },
        {
          "type": "object",
          "properties": {
            "op": {
              "type": "string",
              "enum": [
                "and",
                "or"
              ],
              "maxLength": 16384
            },
            "predicates": {
              "maxItems": 10000,
              "type": "array",
              "items": {
                "$ref": "#/$defs/__schema0"
              }
            }
          },
          "required": [
            "op",
            "predicates"
          ],
          "additionalProperties": false,
          "maxProperties": 256,
          "propertyNames": {
            "maxLength": 160,
            "not": {
              "const": "__proto__"
            }
          }
        },
        {
          "type": "object",
          "properties": {
            "op": {
              "type": "string",
              "const": "not",
              "maxLength": 16384
            },
            "predicate": {
              "$ref": "#/$defs/__schema0"
            }
          },
          "required": [
            "op",
            "predicate"
          ],
          "additionalProperties": false,
          "maxProperties": 256,
          "propertyNames": {
            "maxLength": 160,
            "not": {
              "const": "__proto__"
            }
          }
        }
      ]
    },
    "__schema1": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 16384
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema1"
          },
          "maxItems": 10000
        },
        {
          "type": "object",
          "propertyNames": {
            "allOf": [
              {
                "type": "string",
                "maxLength": 16384
              },
              {
                "maxLength": 160,
                "not": {
                  "const": "__proto__"
                }
              }
            ]
          },
          "additionalProperties": {
            "$ref": "#/$defs/__schema1"
          },
          "maxProperties": 256
        }
      ]
    }
  },
  "$id": "https://hermawan22.github.io/varendo/schemas/1/intent.schema.json",
  "$comment": "Shape contract only. Apply documented byte/depth/node/JSON-object ingress limits before recursive validation; binding and authority are separate."
}