{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/telnyx/json-schema/telnyx-paginated-user-bundles-response-schema.json",
  "title": "PaginatedUserBundlesResponse",
  "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/PaginatedUserBundlesResponse",
  "properties": {
    "data": {
      "items": {
        "$ref": "#/$defs/UserBundle"
      },
      "title": "Data",
      "type": "array"
    },
    "meta": {
      "$ref": "#/$defs/PaginationResponse"
    }
  },
  "required": [
    "meta",
    "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"
    },
    "PaginationResponse": {
      "properties": {
        "page_number": {
          "description": "The current page number.",
          "title": "Page Number",
          "type": "integer"
        },
        "page_size": {
          "description": "The number of results per page.",
          "title": "Page Size",
          "type": "integer"
        },
        "total_pages": {
          "description": "Total number of pages from the results.",
          "title": "Total Pages",
          "type": "integer"
        },
        "total_results": {
          "description": "Total number of results returned.",
          "title": "Total Results",
          "type": "integer"
        }
      },
      "required": [
        "total_results",
        "total_pages",
        "page_number",
        "page_size"
      ],
      "title": "PaginationResponse",
      "type": "object"
    },
    "UserBundle": {
      "properties": {
        "active": {
          "description": "Status of the user bundle.",
          "type": "boolean"
        },
        "billing_bundle": {
          "$ref": "#/$defs/BillingBundleSummary"
        },
        "created_at": {
          "description": "Date the user bundle was created.",
          "format": "date",
          "type": "string"
        },
        "id": {
          "description": "User bundle's ID, this is used to identify the user bundle in the API.",
          "format": "uuid",
          "type": "string"
        },
        "resources": {
          "items": {
            "$ref": "#/$defs/UserBundleResourceSchema"
          },
          "type": "array"
        },
        "updated_at": {
          "description": "Date the user bundle was last updated.",
          "format": "date",
          "type": [
            "string",
            "null"
          ]
        },
        "user_id": {
          "description": "The customer's ID that owns this user bundle.",
          "format": "uuid",
          "type": "string"
        }
      },
      "required": [
        "id",
        "active",
        "user_id",
        "created_at",
        "billing_bundle",
        "resources"
      ],
      "type": "object"
    },
    "UserBundleResourceSchema": {
      "properties": {
        "created_at": {
          "description": "Date the resource was created.",
          "format": "date",
          "type": "string"
        },
        "id": {
          "description": "Resource's ID.",
          "format": "uuid",
          "type": "string"
        },
        "resource": {
          "description": "The resource itself (usually a phone number).",
          "type": "string"
        },
        "resource_type": {
          "description": "The type of the resource (usually 'number').",
          "type": "string"
        },
        "updated_at": {
          "description": "Date the resource was last updated.",
          "format": "date",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "resource",
        "resource_type",
        "created_at"
      ],
      "title": "UserBundleResourceSchema",
      "type": "object"
    }
  }
}