removedInput schema / oneOf
Removed value: -[
- {
- "not": {
- "required": [
- "cases"
- ]
- },
- "required": [
- "reply"
- ]
- },
- {
- "not": {
- "required": [
- "reply"
- ]
- },
- "required": [
- "cases"
- ]
- }
-]
addedInput schema / properties / cases / description
Added value: +"Up to 50 replies checked against the same policy. Send reply or cases, not both."
addedInput schema / properties / cases / items / properties / id / description
Added value: +"Your id for this case, returned with its result."
addedInput schema / properties / cases / items / properties / record / additionalProperties
Added value: +false
addedInput schema / properties / cases / items / properties / record / description
Added value: +"The record for this case only."
addedInput schema / properties / cases / items / properties / record / properties
Added value: +{
+ "effects": {
+ "description": "Actions on record.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "operation": {
+ "description": "Operation name from policy.actions, for example \"billing.refund\".",
+ "type": "string"
+ },
+ "status": {
+ "description": "\"DONE\" when the action happened. Any other value does not count.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "maxItems": 100,
+ "type": "array"
+ },
+ "facts": {
+ "description": "Values the reply must state correctly, such as an appointment time.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "description": "Kind of value.",
+ "enum": [
+ "time",
+ "money",
+ "date"
+ ],
+ "type": "string"
+ },
+ "near": {
+ "description": "Words the value appears next to in the reply, for example \"appointment\".",
+ "maxLength": 80,
+ "minLength": 1,
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "maxLength": 40,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ }
+ ],
+ "description": "The value on record, as a number or text of at most 40 characters."
+ }
+ },
+ "required": [
+ "near",
+ "kind",
+ "value"
+ ],
+ "type": "object"
+ },
+ "maxItems": 20,
+ "type": "array"
+ },
+ "receipts": {
+ "description": "Curbi-signed receipts, when you have them.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "subject": {
+ "description": "Optional id the record is about, such as an order or ticket.",
+ "maxLength": 200,
+ "minLength": 1,
+ "type": "string"
+ }
+}
addedInput schema / properties / cases / items / properties / reply / description
Added value: +"The agent reply."
addedInput schema / properties / policy / additionalProperties
Added value: +false
addedInput schema / properties / policy / description
Added value: +"Your rules. Set at least one of prices, forbid or actions; validate_policy lints a policy before use. Ready-made policies: https://curbi.io/policies/"
addedInput schema / properties / policy / properties
Added value: +{
+ "actions": {
+ "additionalProperties": {
+ "description": "Operation that must be DONE in the record.",
+ "maxLength": 60,
+ "minLength": 1,
+ "type": "string"
+ },
+ "description": "Past-tense verb to operation, for example {\"refunded\": \"billing.refund\"}. Claiming the verb needs that operation DONE in the record.",
+ "maxProperties": 40,
+ "propertyNames": {
+ "pattern": "^[a-z]{2,20}$"
+ },
+ "type": "object"
+ },
+ "description": {
+ "description": "Optional policy description.",
+ "type": "string"
+ },
+ "discounts": {
+ "description": "Approved discounts. Any other \"N% off\" claim is a finding.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "items": {
+ "description": "Price items it applies to; omit for all.",
+ "items": {
+ "type": "string"
+ },
+ "minItems": 1,
+ "type": "array"
+ },
+ "percent": {
+ "description": "Percent off.",
+ "exclusiveMinimum": 0,
+ "maximum": 100,
+ "type": "number"
+ }
+ },
+ "required": [
+ "percent"
+ ],
+ "type": "object"
+ },
+ "maxItems": 20,
+ "type": "array"
+ },
+ "forbid": {
+ "description": "Phrases the agent must not say.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "description": "Lowercase slug. Findings are reported as forbid:<id>.",
+ "pattern": "^[a-z0-9-]{1,40}$",
+ "type": "string"
+ },
+ "negatable": {
+ "description": "Default true: a negated mention (\"we do not guarantee\") passes.",
+ "type": "boolean"
+ },
+ "phrases": {
+ "description": "Literal phrases, never regular expressions.",
+ "items": {
+ "maxLength": 80,
+ "minLength": 1,
+ "type": "string"
+ },
+ "maxItems": 20,
+ "minItems": 1,
+ "type": "array"
+ },
+ "why": {
+ "description": "Reason shown with the finding.",
+ "maxLength": 200,
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "phrases"
+ ],
+ "type": "object"
+ },
+ "maxItems": 50,
+ "type": "array"
+ },
+ "name": {
+ "description": "Optional policy name.",
+ "type": "string"
+ },
+ "prices": {
+ "description": "Approved prices in USD. A wrong price, another currency, or an unapproved discount for an item is a finding.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "aliases": {
+ "description": "Names to match instead of item, for example [\"Pro\", \"Pro plan\"].",
+ "items": {
+ "maxLength": 80,
+ "minLength": 1,
+ "type": "string"
+ },
+ "maxItems": 8,
+ "type": "array"
+ },
+ "amount": {
+ "description": "The approved price. Use amount or amounts, not both.",
+ "minimum": 0,
+ "type": "number"
+ },
+ "amounts": {
+ "description": "Several approved prices for the item, such as monthly and annual.",
+ "items": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "maxItems": 8,
+ "minItems": 1,
+ "type": "array"
+ },
+ "item": {
+ "description": "Item name as customers say it, for example \"Pro\".",
+ "maxLength": 80,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "item"
+ ],
+ "type": "object"
+ },
+ "maxItems": 50,
+ "type": "array"
+ },
+ "unknownAmounts": {
+ "description": "\"flag\" (default) reports dollar amounts not tied to an approved price; \"allow\" ignores them.",
+ "enum": [
+ "flag",
+ "allow"
+ ],
+ "type": "string"
+ }
+}
addedInput schema / properties / record / additionalProperties
Added value: +false
addedInput schema / properties / record / description
Added value: +"What actually happened, supplied by the caller and not verified by Curbi. A claimed action passes only when its operation is DONE here."
addedInput schema / properties / record / properties
Added value: +{
+ "effects": {
+ "description": "Actions on record.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "operation": {
+ "description": "Operation name from policy.actions, for example \"billing.refund\".",
+ "type": "string"
+ },
+ "status": {
+ "description": "\"DONE\" when the action happened. Any other value does not count.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "maxItems": 100,
+ "type": "array"
+ },
+ "facts": {
+ "description": "Values the reply must state correctly, such as an appointment time.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "description": "Kind of value.",
+ "enum": [
+ "time",
+ "money",
+ "date"
+ ],
+ "type": "string"
+ },
+ "near": {
+ "description": "Words the value appears next to in the reply, for example \"appointment\".",
+ "maxLength": 80,
+ "minLength": 1,
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "maxLength": 40,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ }
+ ],
+ "description": "The value on record, as a number or text of at most 40 characters."
+ }
+ },
+ "required": [
+ "near",
+ "kind",
+ "value"
+ ],
+ "type": "object"
+ },
+ "maxItems": 20,
+ "type": "array"
+ },
+ "receipts": {
+ "description": "Curbi-signed receipts, when you have them.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "subject": {
+ "description": "Optional id the record is about, such as an order or ticket.",
+ "maxLength": 200,
+ "minLength": 1,
+ "type": "string"
+ }
+}
addedInput schema / properties / reply / description
Added value: +"One agent reply to check. Send reply or cases, not both."
addedInput schema / properties / title / description
Added value: +"Title for the regression file."
addedInput schema / properties / verify / description
Added value: +"Exports use caller records, so only \"optional\" is accepted."
addedInput schema / properties / version / description
Added value: +"Regression format version."