{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/setluca-com/json-schema/setluca-com-provider-lab-fault-request-schema.json",
  "title": "ProviderLabFaultRequest",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/setluca-com-openapi-openapi.json#/components/schemas/ProviderLabFaultRequest",
  "oneOf": [
    {
      "type": "object",
      "properties": {
        "fault": {
          "type": "string",
          "enum": [
            "hold_booking_reminder_dispatch"
          ]
        },
        "bookingId": {
          "type": "string",
          "format": "uuid"
        },
        "communicationId": {
          "type": "string",
          "format": "uuid"
        },
        "reviewId": {
          "type": "string",
          "format": "uuid"
        },
        "timeoutMs": {
          "type": "integer",
          "minimum": 1000,
          "maximum": 120000
        }
      },
      "required": [
        "fault",
        "bookingId",
        "communicationId",
        "reviewId",
        "timeoutMs"
      ]
    },
    {
      "type": "object",
      "properties": {
        "fault": {
          "type": "string",
          "enum": [
            "release_booking_reminder_dispatch"
          ]
        },
        "eventId": {
          "type": "string",
          "format": "uuid"
        },
        "bookingId": {
          "type": "string",
          "format": "uuid"
        },
        "communicationId": {
          "type": "string",
          "format": "uuid"
        },
        "reviewId": {
          "type": "string",
          "format": "uuid"
        }
      },
      "required": [
        "fault",
        "eventId",
        "bookingId",
        "communicationId",
        "reviewId"
      ]
    },
    {
      "type": "object",
      "properties": {
        "fault": {
          "type": "string",
          "enum": [
            "delay_crm_sync"
          ]
        },
        "connectionId": {
          "type": "string",
          "format": "uuid"
        },
        "subjectId": {
          "type": "string",
          "format": "uuid"
        },
        "delayMs": {
          "type": "integer",
          "minimum": 1,
          "maximum": 10000
        }
      },
      "required": [
        "fault",
        "connectionId",
        "subjectId",
        "delayMs"
      ]
    },
    {
      "type": "object",
      "properties": {
        "fault": {
          "type": "string",
          "enum": [
            "delay_crm_response"
          ]
        },
        "connectionId": {
          "type": "string",
          "format": "uuid"
        },
        "subjectId": {
          "type": "string",
          "format": "uuid"
        },
        "operation": {
          "type": "string",
          "enum": [
            "contact_search",
            "note_create",
            "note_update",
            "contact_fields",
            "deal_lookup",
            "deal_stage",
            "note_deal_association"
          ]
        },
        "delayMs": {
          "type": "integer",
          "minimum": 1,
          "maximum": 10000
        }
      },
      "required": [
        "fault",
        "connectionId",
        "subjectId",
        "operation",
        "delayMs"
      ]
    },
    {
      "type": "object",
      "properties": {
        "fault": {
          "type": "string",
          "enum": [
            "reject_crm_request"
          ]
        },
        "connectionId": {
          "type": "string",
          "format": "uuid"
        },
        "subjectId": {
          "type": "string",
          "format": "uuid"
        },
        "operation": {
          "type": "string",
          "enum": [
            "contact_search",
            "note_create",
            "note_update",
            "contact_fields",
            "deal_lookup",
            "deal_stage",
            "note_deal_association"
          ]
        },
        "status": {
          "type": "integer",
          "minimum": 400,
          "maximum": 599
        }
      },
      "required": [
        "fault",
        "connectionId",
        "subjectId",
        "operation",
        "status"
      ]
    },
    {
      "type": "object",
      "properties": {
        "fault": {
          "type": "string",
          "enum": [
            "reject_channel_request"
          ]
        },
        "expectedText": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "fault",
        "expectedText"
      ]
    },
    {
      "type": "object",
      "properties": {
        "fault": {
          "type": "string",
          "enum": [
            "delay_channel_request"
          ]
        },
        "expectedText": {
          "type": "string",
          "minLength": 1
        },
        "delayMs": {
          "type": "integer",
          "minimum": 1,
          "maximum": 10000
        }
      },
      "required": [
        "fault",
        "expectedText",
        "delayMs"
      ]
    },
    {
      "type": "object",
      "properties": {
        "fault": {
          "type": "string",
          "enum": [
            "rate_limit_channel_request"
          ]
        },
        "expectedText": {
          "type": "string",
          "minLength": 1
        },
        "retryAfterSeconds": {
          "type": "integer",
          "minimum": 1,
          "maximum": 3600
        }
      },
      "required": [
        "fault",
        "expectedText",
        "retryAfterSeconds"
      ]
    },
    {
      "type": "object",
      "properties": {
        "fault": {
          "type": "string",
          "enum": [
            "ambiguous_channel_request"
          ]
        },
        "expectedText": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "fault",
        "expectedText"
      ]
    },
    {
      "type": "object",
      "properties": {
        "fault": {
          "type": "string",
          "enum": [
            "malformed_channel_response"
          ]
        },
        "expectedText": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "fault",
        "expectedText"
      ]
    },
    {
      "type": "object",
      "properties": {
        "fault": {
          "type": "string",
          "enum": [
            "partial_send"
          ]
        },
        "expectedText": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "fault",
        "expectedText"
      ]
    },
    {
      "type": "object",
      "properties": {
        "fault": {
          "type": "string",
          "enum": [
            "unauthorized_channel_request"
          ]
        },
        "expectedText": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "fault",
        "expectedText"
      ]
    },
    {
      "type": "object",
      "properties": {
        "fault": {
          "type": "string",
          "enum": [
            "forbidden_channel_request"
          ]
        },
        "expectedText": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "fault",
        "expectedText"
      ]
    },
    {
      "type": "object",
      "properties": {
        "fault": {
          "type": "string",
          "enum": [
            "server_error_channel_request"
          ]
        },
        "expectedText": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "fault",
        "expectedText"
      ]
    },
    {
      "type": "object",
      "properties": {
        "fault": {
          "type": "string",
          "enum": [
            "connection_reset_channel_request"
          ]
        },
        "expectedText": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "fault",
        "expectedText"
      ]
    },
    {
      "type": "object",
      "properties": {
        "fault": {
          "type": "string",
          "enum": [
            "timeout_channel_request"
          ]
        },
        "expectedText": {
          "type": "string",
          "minLength": 1
        },
        "delayMs": {
          "type": "integer",
          "minimum": 1,
          "maximum": 10000
        }
      },
      "required": [
        "fault",
        "expectedText",
        "delayMs"
      ]
    },
    {
      "type": "object",
      "properties": {
        "fault": {
          "type": "string",
          "enum": [
            "missing_acknowledgement_channel_request"
          ]
        },
        "expectedText": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "fault",
        "expectedText"
      ]
    },
    {
      "type": "object",
      "properties": {
        "fault": {
          "type": "string",
          "enum": [
            "reject_message_finalization"
          ]
        },
        "expectedText": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "fault",
        "expectedText"
      ]
    },
    {
      "type": "object",
      "properties": {
        "fault": {
          "type": "string",
          "enum": [
            "reject_credential_scrub"
          ]
        },
        "channelAccountId": {
          "type": "string",
          "format": "uuid"
        }
      },
      "required": [
        "fault",
        "channelAccountId"
      ]
    },
    {
      "type": "object",
      "properties": {
        "fault": {
          "type": "string",
          "enum": [
            "fail_cleanup"
          ]
        },
        "channelAccountId": {
          "type": "string",
          "format": "uuid"
        }
      },
      "required": [
        "fault",
        "channelAccountId"
      ]
    },
    {
      "type": "object",
      "properties": {
        "fault": {
          "type": "string",
          "enum": [
            "fail_repair"
          ]
        },
        "channelAccountId": {
          "type": "string",
          "format": "uuid"
        }
      },
      "required": [
        "fault",
        "channelAccountId"
      ]
    },
    {
      "type": "object",
      "properties": {
        "fault": {
          "type": "string",
          "enum": [
            "delay_lifecycle_request"
          ]
        },
        "provider": {
          "type": "string",
          "enum": [
            "telegram",
            "instagram",
            "messenger",
            "whatsapp"
          ]
        },
        "operation": {
          "type": "string",
          "enum": [
            "delete_subscriptions",
            "get_me",
            "get_webhook_info",
            "set_webhook",
            "delete_webhook",
            "register_phone_number",
            "subscribe_app",
            "unsubscribe_app",
            "subscribe_page",
            "unsubscribe_page"
          ]
        },
        "delayMs": {
          "type": "integer",
          "minimum": 1,
          "maximum": 10000
        }
      },
      "required": [
        "fault",
        "provider",
        "operation",
        "delayMs"
      ]
    },
    {
      "type": "object",
      "properties": {
        "fault": {
          "type": "string",
          "enum": [
            "reject_lifecycle_request"
          ]
        },
        "provider": {
          "type": "string",
          "enum": [
            "telegram",
            "instagram",
            "messenger",
            "whatsapp"
          ]
        },
        "operation": {
          "type": "string",
          "enum": [
            "delete_subscriptions",
            "get_me",
            "get_webhook_info",
            "set_webhook",
            "delete_webhook",
            "register_phone_number",
            "subscribe_app",
            "unsubscribe_app",
            "subscribe_page",
            "unsubscribe_page"
          ]
        },
        "status": {
          "type": "integer",
          "minimum": 400,
          "maximum": 599
        }
      },
      "required": [
        "fault",
        "provider",
        "operation",
        "status"
      ]
    },
    {
      "type": "object",
      "properties": {
        "fault": {
          "type": "string",
          "enum": [
            "delay_connection_report"
          ]
        },
        "delayMs": {
          "type": "integer",
          "minimum": 1,
          "maximum": 15000
        }
      },
      "required": [
        "fault",
        "delayMs"
      ]
    },
    {
      "type": "object",
      "properties": {
        "fault": {
          "type": "string",
          "enum": [
            "reject_connection_report"
          ]
        }
      },
      "required": [
        "fault"
      ]
    },
    {
      "type": "object",
      "properties": {
        "fault": {
          "type": "string",
          "enum": [
            "report_account_health_red"
          ]
        },
        "channelAccountId": {
          "type": "string",
          "format": "uuid"
        }
      },
      "required": [
        "fault",
        "channelAccountId"
      ]
    },
    {
      "type": "object",
      "properties": {
        "fault": {
          "type": "string",
          "enum": [
            "report_account_health_yellow"
          ]
        },
        "channelAccountId": {
          "type": "string",
          "format": "uuid"
        }
      },
      "required": [
        "fault",
        "channelAccountId"
      ]
    },
    {
      "type": "object",
      "properties": {
        "fault": {
          "type": "string",
          "enum": [
            "fail_account_health_probe"
          ]
        },
        "channelAccountId": {
          "type": "string",
          "format": "uuid"
        }
      },
      "required": [
        "fault",
        "channelAccountId"
      ]
    },
    {
      "type": "object",
      "properties": {
        "fault": {
          "type": "string",
          "enum": [
            "fail_release_lookup"
          ]
        }
      },
      "required": [
        "fault"
      ]
    }
  ]
}