{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/telnyx/json-schema/telnyx-unused-user-bundles-response-schema.json",
  "title": "UnusedUserBundlesResponse",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/telnyx-user-bundles-api-openapi.yml#/components/schemas/UnusedUserBundlesResponse",
  "properties": {
    "data": {
      "items": {
        "$ref": "#/$defs/UnusedUserBundlesSchema"
      },
      "title": "Data",
      "type": "array"
    }
  },
  "required": [
    "data"
  ],
  "type": "object",
  "$defs": {
    "BillingBundleSummary": {
      "properties": {
        "cost_code": {
          "description": "Bundle's cost code, this is used to identify the bundle in the billing system.",
          "title": "Cost Code",
          "type": "string"
        },
        "created_at": {
          "description": "Date the bundle was created.",
          "format": "date",
          "title": "Created At",
          "type": "string"
        },
        "currency": {
          "description": "Bundle's currency code.",
          "title": "Currency",
          "type": "string"
        },
        "id": {
          "description": "Bundle's ID, this is used to identify the bundle in the API.",
          "format": "uuid",
          "title": "Id",
          "type": "string"
        },
        "is_public": {
          "description": "Available to all customers or only to specific customers.",
          "title": "Is Public",
          "type": "boolean"
        },
        "mrc_price": {
          "description": "Monthly recurring charge price.",
          "format": "float",
          "title": "Mrc Price",
          "type": "number"
        },
        "name": {
          "description": "Bundle's name, this is used to identify the bundle in the UI.",
          "title": "Name",
          "type": "string"
        },
        "slug": {
          "description": "Slugified version of the bundle's name.",
          "title": "Slug",
          "type": "string"
        },
        "specs": {
          "items": {
            "type": "string"
          },
          "title": "Specs",
          "type": "array"
        }
      },
      "required": [
        "id",
        "name",
        "cost_code",
        "is_public",
        "created_at"
      ],
      "title": "BillingBundleSummary",
      "type": "object"
    },
    "UnusedUserBundlesSchema": {
      "properties": {
        "billing_bundle": {
          "$ref": "#/$defs/BillingBundleSummary"
        },
        "user_bundle_ids": {
          "description": "List of user bundle IDs for given bundle.",
          "items": {
            "format": "uuid",
            "type": "string"
          },
          "title": "User Bundle Ids",
          "type": "array"
        }
      },
      "required": [
        "billing_bundle",
        "user_bundle_ids"
      ],
      "title": "UnusedUserBundlesSchema",
      "type": "object"
    }
  }
}