removedInput schema / additionalProperties
Removed value: -false
changedInput schema / properties / channels / description
Previous value: -"Messaging channels for approval requests (telegram or whatsapp)"New value: +"Messaging channels for approval requests (telegram or whatsapp). Either channels or circle_id is required."
removedInput schema / properties / channels / items / anyOf
Removed value: -[
- {
- "additionalProperties": false,
- "properties": {
- "config": {
- "additionalProperties": false,
- "properties": {
- "chat_id": {
- "maxLength": 50,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "chat_id"
- ],
- "type": "object"
- },
- "type": {
- "const": "telegram",
- "type": "string"
- }
- },
- "required": [
- "type",
- "config"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "config": {
- "additionalProperties": false,
- "properties": {
- "bsuid": {
- "description": "WhatsApp Business-Scoped User ID (e.g. US.abc123...)",
- "pattern": "^[A-Z]{2}\\.[a-zA-Z0-9]{10,140}$",
- "type": "string"
- },
- "phone_number": {
- "description": "Phone number in E.164 format",
- "pattern": "^\\+?[1-9]\\d{6,14}$",
- "type": "string"
- }
- },
- "type": "object"
- },
- "type": {
- "const": "whatsapp",
- "type": "string"
- }
- },
- "required": [
- "type",
- "config"
- ],
- "type": "object"
- }
-]
addedInput schema / properties / channels / items / oneOf
Added value: +[
+ {
+ "properties": {
+ "config": {
+ "properties": {
+ "chat_id": {
+ "maxLength": 50,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "chat_id"
+ ],
+ "type": "object"
+ },
+ "type": {
+ "const": "telegram",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "config"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "config": {
+ "properties": {
+ "bsuid": {
+ "description": "WhatsApp Business-Scoped User ID (e.g. US.abc123...)",
+ "pattern": "^[A-Z]{2}\\.[a-zA-Z0-9]{10,140}$",
+ "type": "string"
+ },
+ "phone_number": {
+ "description": "Phone number in E.164 format",
+ "pattern": "^\\+?[1-9]\\d{6,14}$",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "type": {
+ "const": "whatsapp",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "config"
+ ],
+ "type": "object"
+ }
+]
addedInput schema / properties / circle_id
Added value: +{
+ "description": "Route approvals through this circle's members instead of listed channels (24 hex characters)",
+ "pattern": "^[0-9a-fA-F]{24}$",
+ "type": "string"
+}
addedInput schema / properties / profile_id
Added value: +{
+ "description": "The sub-account (24 hex characters) whose branding the approval messages carry; omitted, the primary",
+ "pattern": "^[0-9a-fA-F]{24}$",
+ "type": "string"
+}
changedInput schema / required
Previous value: -[
- "name",
- "channels"
-]New value: +[
+ "name"
+]
changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "additionalProperties": {},
+ "description": "HITL configuration with messaging channels and timeout",
+ "properties": {
+ "channels": {
+ "items": {
+ "oneOf": [
+ {
+ "additionalProperties": {},
+ "properties": {
+ "config": {
+ "additionalProperties": {},
+ "properties": {
+ "chat_id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "chat_id"
+ ],
+ "type": "object"
+ },
+ "type": {
+ "const": "telegram",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "config"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": {},
+ "properties": {
+ "config": {
+ "additionalProperties": {},
+ "properties": {
+ "bsuid": {
+ "type": "string"
+ },
+ "phone_number": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "type": {
+ "const": "whatsapp",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "config"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "circle_id": {
+ "description": "Backing Circle for a circle-backed Approvals config (null for channel-list configs)",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "created_at": {
+ "type": "string"
+ },
+ "environment": {
+ "type": "string"
+ },
+ "id": {
+ "description": "MongoDB ObjectId",
+ "type": "string"
+ },
+ "keypair": {
+ "anyOf": [
+ {
+ "additionalProperties": {},
+ "properties": {
+ "has_backup_wrapper": {
+ "type": "boolean"
+ },
+ "has_encrypted_private_key": {
+ "type": "boolean"
+ },
+ "has_wrapped_dek": {
+ "type": "boolean"
+ },
+ "kid": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "kid",
+ "has_encrypted_private_key",
+ "has_wrapped_dek",
+ "has_backup_wrapper"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Encryption keypair metadata (null if not configured)"
+ },
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "profile_id": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "status": {
+ "description": "Status of a HITL configuration",
+ "type": "string"
+ },
+ "timeout_seconds": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "updated_at": {
+ "type": "string"
+ },
+ "user_id": {
+ "description": "Owner user ID (useful for SDK encryption AAD)",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "user_id",
+ "channels",
+ "timeout_seconds",
+ "status",
+ "keypair",
+ "environment",
+ "created_at",
+ "updated_at"
+ ],
+ "type": "object"
+}