{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/samsung/json-schema/samsung-create-subscription-request-schema.json",
  "title": "CreateSubscriptionRequest",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/samsung-subscriptions-api-openapi.yml#/components/schemas/CreateSubscriptionRequest",
  "type": "object",
  "required": [
    "sourceType"
  ],
  "properties": {
    "sourceType": {
      "type": "string",
      "enum": [
        "CAPABILITY",
        "DEVICE",
        "MODE",
        "TIMER",
        "SCENE_LIFECYCLE",
        "DEVICE_LIFECYCLE"
      ]
    },
    "device": {
      "type": "object",
      "properties": {
        "deviceId": {
          "type": "string"
        },
        "componentId": {
          "type": "string"
        },
        "capability": {
          "type": "string"
        },
        "attribute": {
          "type": "string"
        },
        "stateChangeOnly": {
          "type": "boolean"
        }
      }
    }
  }
}