changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "properties": {
+ "cache": {
+ "description": "How the result was served: HIT or STALE from a cache tier, MISS or BYPASS when it was fetched now.",
+ "properties": {
+ "ageSeconds": {
+ "type": "number"
+ },
+ "source": {
+ "enum": [
+ "worker",
+ "origin",
+ "coalesced"
+ ],
+ "type": "string"
+ },
+ "status": {
+ "enum": [
+ "HIT",
+ "STALE",
+ "MISS",
+ "BYPASS"
+ ],
+ "type": "string"
+ },
+ "tier": {
+ "type": "string"
+ },
+ "ttlSeconds": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "status",
+ "tier",
+ "ageSeconds",
+ "ttlSeconds"
+ ],
+ "type": "object"
+ },
+ "results": {
+ "description": "One row for the video: the transcript, or an error with a code.",
+ "items": {
+ "anyOf": [
+ {
+ "additionalProperties": true,
+ "properties": {
+ "channelName": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "format": {
+ "enum": [
+ "segments",
+ "text",
+ "srt",
+ "vtt"
+ ],
+ "type": "string"
+ },
+ "isGenerated": {
+ "type": "boolean"
+ },
+ "language": {
+ "type": "string"
+ },
+ "languageCode": {
+ "type": "string"
+ },
+ "languageFallback": {
+ "type": "boolean"
+ },
+ "segmentCount": {
+ "type": "number"
+ },
+ "segments": {
+ "items": {
+ "properties": {
+ "duration": {
+ "type": "number"
+ },
+ "start": {
+ "type": "number"
+ },
+ "text": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "text",
+ "start",
+ "duration"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "status": {
+ "const": "ok"
+ },
+ "subtitles": {
+ "type": "string"
+ },
+ "text": {
+ "type": "string"
+ },
+ "title": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "translatedFrom": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "videoId": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "status",
+ "videoId",
+ "languageCode",
+ "isGenerated",
+ "languageFallback",
+ "format",
+ "text",
+ "segmentCount"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": true,
+ "properties": {
+ "error": {
+ "additionalProperties": true,
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ },
+ "retryable": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "retryable"
+ ],
+ "type": "object"
+ },
+ "status": {
+ "const": "error"
+ },
+ "videoId": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "status",
+ "error"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "results",
+ "cache"
+ ],
+ "type": "object"
+}