changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "additionalProperties": {},
+ "description": "Usage for the current billing period, with the months asked for",
+ "properties": {
+ "balance": {
+ "additionalProperties": {},
+ "description": "The prepaid balance as `GET /me/billing/balance` reports it, without `billing_enabled` (the usage read carries that itself)",
+ "properties": {
+ "auto_top_up": {
+ "additionalProperties": {},
+ "properties": {
+ "amount": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "enabled": {
+ "type": "boolean"
+ },
+ "has_payment_method": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "enabled",
+ "amount",
+ "has_payment_method"
+ ],
+ "type": "object"
+ },
+ "balance": {
+ "additionalProperties": {},
+ "properties": {
+ "amount": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "currency": {
+ "type": "string"
+ },
+ "mills": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "amount",
+ "currency",
+ "mills"
+ ],
+ "type": "object"
+ },
+ "low_balance_threshold": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "top_up_amounts": {
+ "items": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "balance",
+ "low_balance_threshold",
+ "top_up_amounts",
+ "auto_top_up"
+ ],
+ "type": "object"
+ },
+ "billing_enabled": {
+ "type": "boolean"
+ },
+ "card_on_file": {
+ "type": "boolean"
+ },
+ "channels_with_zero_completions": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "current_period": {
+ "description": "The current month, `YYYY-MM`",
+ "type": "string"
+ },
+ "current_usage": {
+ "description": "Verifications, confirmations, authorizations and delegations this month, counted from the requested months' records: 0 when `period` names another month, since the current month's record is then not among them",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "days_remaining": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "hard_limit": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "is_on_track": {
+ "description": "null when fewer than 5 days have passed or usage is 0",
+ "type": [
+ "boolean",
+ "null"
+ ]
+ },
+ "limit": {
+ "description": "The plan's included verifications per month",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "percentage": {
+ "description": "`current_usage` as a percentage of `limit`, rounded",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "periods": {
+ "description": "The months asked for that have a record, newest first",
+ "items": {
+ "additionalProperties": {},
+ "properties": {
+ "by_channel": {
+ "additionalProperties": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "properties": {},
+ "type": "object"
+ },
+ "by_hitl_channel": {
+ "additionalProperties": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "properties": {},
+ "type": "object"
+ },
+ "by_type": {
+ "additionalProperties": {},
+ "properties": {
+ "domain": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "email": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "phone": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "social": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "telegram_bot": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "wallet": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "phone",
+ "email",
+ "domain",
+ "social",
+ "wallet",
+ "telegram_bot"
+ ],
+ "type": "object"
+ },
+ "period": {
+ "type": "string"
+ },
+ "total_authorizations": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "total_confirmations": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "total_delegations": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "total_verifications": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "period",
+ "total_verifications",
+ "total_confirmations",
+ "total_authorizations",
+ "total_delegations",
+ "by_type",
+ "by_channel",
+ "by_hitl_channel"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "plan": {
+ "type": "string"
+ },
+ "projected_eom_usage": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "projection_unreliable": {
+ "description": "true when the projection exceeds the limit three times over",
+ "type": "boolean"
+ },
+ "top_channels": {
+ "items": {
+ "additionalProperties": {},
+ "properties": {
+ "channel": {
+ "type": "string"
+ },
+ "completion_rate": {
+ "type": "number"
+ },
+ "count": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "channel",
+ "count",
+ "completion_rate"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "plan",
+ "limit",
+ "billing_enabled",
+ "card_on_file",
+ "hard_limit",
+ "balance",
+ "current_period",
+ "current_usage",
+ "percentage",
+ "days_remaining",
+ "projected_eom_usage",
+ "is_on_track",
+ "projection_unreliable",
+ "top_channels",
+ "channels_with_zero_completions",
+ "periods"
+ ],
+ "type": "object"
+}