changedOutput schema / anyOf
Previous value: -[
- {
- "properties": {
- "created_at": {
- "type": "string"
- },
- "credits_balance": {
- "minimum": 0,
- "type": "integer"
- },
- "effective_retention_hours": {
- "description": "min(retention_days x 24, the service cap).",
- "type": "integer"
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "key_prefix": {
- "type": "string"
- },
- "ledger": {
- "description": "The 10 newest credit changes, newest first.",
- "items": {
- "properties": {
- "created_at": {
- "type": "string"
- },
- "delta": {
- "type": "integer"
- },
- "reason": {
- "description": "refund: a failed screen's credits given back (positive). pack_refund: pack credits taken back after a payment refund or chargeback (negative).",
- "enum": [
- "free_grant",
- "screen",
- "pack",
- "refund",
- "pack_refund",
- "admin"
- ],
- "type": "string"
- },
- "ref": {
- "description": "Record id (screen, refund), Paddle transaction id (pack) or Paddle adjustment id (pack_refund).",
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "delta",
- "reason",
- "ref",
- "created_at"
- ],
- "type": "object"
- },
- "maxItems": 10,
- "type": "array"
- },
- "rate_limit_per_minute": {
- "type": "integer"
- },
- "retention_days": {
- "description": "Days a record keeps names and hits. Default 90.",
- "maximum": 365,
- "minimum": 1,
- "type": "integer"
- }
- },
- "required": [
- "key_prefix",
- "credits_balance",
- "retention_days",
- "effective_retention_hours"
- ],
- "type": "object"
- },
- {
- "properties": {
- "error": {
- "const": "rate_limited",
- "type": "string"
- },
- "limit_per_minute": {
- "type": "integer"
- },
- "retry_after_seconds": {
- "minimum": 1,
- "type": "integer"
- }
- },
- "required": [
- "error",
- "limit_per_minute",
- "retry_after_seconds"
- ],
- "type": "object"
- },
- {
- "properties": {
- "details": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "error": {
- "description": "Machine-readable error code.",
- "type": "string"
- },
- "message": {
- "type": "string"
- },
- "record_id": {
- "type": "string"
- }
- },
- "required": [
- "error"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "properties": {
+ "buy_url": {
+ "description": "The checkout page on sanctionlistcheck.com for this key: it lists the credit packs. The link works for 24 hours.",
+ "type": "string"
+ },
+ "created_at": {
+ "type": "string"
+ },
+ "credits_balance": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "effective_retention_hours": {
+ "description": "min(retention_days x 24, the service cap).",
+ "type": "integer"
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "key_prefix": {
+ "type": "string"
+ },
+ "ledger": {
+ "description": "The 10 newest credit changes, newest first.",
+ "items": {
+ "properties": {
+ "created_at": {
+ "type": "string"
+ },
+ "delta": {
+ "type": "integer"
+ },
+ "reason": {
+ "description": "refund: a failed screen's credits given back (positive). pack_refund: pack credits taken back after a payment refund or chargeback (negative).",
+ "enum": [
+ "free_grant",
+ "screen",
+ "pack",
+ "refund",
+ "pack_refund",
+ "admin"
+ ],
+ "type": "string"
+ },
+ "ref": {
+ "description": "Record id (screen, refund), Paddle transaction id (pack) or Paddle adjustment id (pack_refund).",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "delta",
+ "reason",
+ "ref",
+ "created_at"
+ ],
+ "type": "object"
+ },
+ "maxItems": 10,
+ "type": "array"
+ },
+ "packs": {
+ "properties": {
+ "checkout": {
+ "description": "Present only without Authorization.",
+ "type": "string"
+ },
+ "credit_unit": {
+ "type": "string"
+ },
+ "credits_expire": {
+ "const": "never_while_key_active",
+ "type": "string"
+ },
+ "packs": {
+ "items": {
+ "properties": {
+ "checkout_url": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "credits": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "id": {
+ "enum": [
+ "starter",
+ "growth",
+ "scale"
+ ],
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "price": {
+ "properties": {
+ "amount": {
+ "examples": [
+ "15.00"
+ ],
+ "type": "string"
+ },
+ "amount_minor": {
+ "type": "integer"
+ },
+ "currency": {
+ "const": "EUR",
+ "type": "string"
+ }
+ },
+ "required": [
+ "amount",
+ "amount_minor",
+ "currency"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "credits",
+ "price",
+ "checkout_url"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "purchase": {
+ "const": "one_time",
+ "type": "string"
+ }
+ },
+ "required": [
+ "purchase",
+ "credits_expire",
+ "packs"
+ ],
+ "type": "object"
+ },
+ "rate_limit_per_minute": {
+ "type": "integer"
+ },
+ "retention_days": {
+ "description": "Days a record keeps names and hits. Default 90.",
+ "maximum": 365,
+ "minimum": 1,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "key_prefix",
+ "credits_balance",
+ "retention_days",
+ "effective_retention_hours"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "error": {
+ "const": "rate_limited",
+ "type": "string"
+ },
+ "limit_per_minute": {
+ "type": "integer"
+ },
+ "retry_after_seconds": {
+ "minimum": 1,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "error",
+ "limit_per_minute",
+ "retry_after_seconds"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "details": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "error": {
+ "description": "Machine-readable error code.",
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ },
+ "record_id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "error"
+ ],
+ "type": "object"
+ }
+]