changedOutput schema / anyOf
Previous value: -[
- {
- "additionalProperties": {},
- "propertyNames": {
- "type": "string"
- },
- "type": "object"
- },
- {
- "additionalProperties": {},
- "properties": {
- "error": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "error"
- ],
- "type": "object"
- },
- {
- "additionalProperties": {},
- "properties": {
- "message": {
- "type": "string"
- },
- "next_action": {
- "type": "string"
- },
- "operation_id": {
- "type": "string"
- },
- "status": {
- "type": "string"
- }
- },
- "required": [
- "operation_id",
- "status"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": {},
+ "properties": {
+ "available": {
+ "type": "boolean"
+ },
+ "entitlement": {
+ "additionalProperties": false,
+ "properties": {
+ "callBlocked": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "freeCalls": {
+ "type": "number"
+ },
+ "freeCallsLeft": {
+ "type": "number"
+ },
+ "freeCallsUsed": {
+ "type": "number"
+ },
+ "maxMinutesPerCall": {
+ "type": "number"
+ },
+ "nextPlan": {
+ "anyOf": [
+ {
+ "enum": [
+ "free",
+ "starter",
+ "pro",
+ "pro_starter",
+ "pro_plus",
+ "pro_max"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "period": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "end": {
+ "type": "string"
+ },
+ "start": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "start",
+ "end"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "plan": {
+ "enum": [
+ "free",
+ "starter",
+ "pro",
+ "pro_starter",
+ "pro_plus",
+ "pro_max"
+ ],
+ "type": "string"
+ },
+ "planChangesAt": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "planName": {
+ "type": "string"
+ },
+ "usageIncluded": {
+ "type": "number"
+ },
+ "usageLeft": {
+ "type": "number"
+ },
+ "usageLeftPct": {
+ "type": "number"
+ },
+ "usageUsed": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "plan",
+ "planName",
+ "freeCalls",
+ "freeCallsUsed",
+ "freeCallsLeft",
+ "usageIncluded",
+ "usageUsed",
+ "usageLeft",
+ "usageLeftPct",
+ "period",
+ "nextPlan",
+ "planChangesAt",
+ "maxMinutesPerCall",
+ "callBlocked"
+ ],
+ "type": "object"
+ },
+ "has_saved_payment_method": {
+ "type": "boolean"
+ },
+ "invoices": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "amount_due": {
+ "type": "number"
+ },
+ "amount_paid": {
+ "type": "number"
+ },
+ "currency": {
+ "type": "string"
+ },
+ "id": {
+ "maxLength": 200,
+ "minLength": 1,
+ "type": "string"
+ },
+ "pdf": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "status": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "status",
+ "amount_due",
+ "amount_paid",
+ "currency",
+ "url",
+ "pdf"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "next_cursor": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "payment_method": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "brand": {
+ "type": "string"
+ },
+ "id": {
+ "maxLength": 200,
+ "minLength": 1,
+ "type": "string"
+ },
+ "last4": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "type"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "plan": {
+ "enum": [
+ "free",
+ "starter",
+ "pro",
+ "pro_starter",
+ "pro_plus",
+ "pro_max"
+ ],
+ "type": "string"
+ },
+ "plans": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "plan": {
+ "enum": [
+ "starter",
+ "pro",
+ "pro_starter",
+ "pro_plus",
+ "pro_max"
+ ],
+ "type": "string"
+ },
+ "priceCents": {
+ "type": "number"
+ },
+ "usageUnits": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "plan",
+ "name",
+ "priceCents",
+ "usageUnits"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "subscription": {
+ "additionalProperties": false,
+ "properties": {
+ "cancel_at_period_end": {
+ "type": "boolean"
+ },
+ "change": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "at": {
+ "type": "string"
+ },
+ "plan": {
+ "enum": [
+ "free",
+ "starter",
+ "pro",
+ "pro_starter",
+ "pro_plus",
+ "pro_max"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "plan",
+ "at"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "status": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "status",
+ "cancel_at_period_end",
+ "change"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "plan",
+ "plans",
+ "entitlement",
+ "subscription",
+ "has_saved_payment_method",
+ "payment_method",
+ "invoices",
+ "next_cursor",
+ "available"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": {},
+ "properties": {
+ "error": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "error"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": {},
+ "properties": {
+ "message": {
+ "type": "string"
+ },
+ "next_action": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "status": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "operation_id",
+ "status"
+ ],
+ "type": "object"
+ }
+]