changedOutput schema / properties / data / anyOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "adCopy": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "activeStep": {
- "const": "adCopy",
- "type": "string"
- },
- "adCopy": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "adCopy": {
- "type": "string"
- },
- "mode": {
- "enum": [
- "assisted",
- "preserve"
- ],
- "type": "string"
- }
- },
- "required": [
- "adCopy",
- "mode"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "campaignId": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "minimumPreservedAdCopyCharacters": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "updatedAt": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
- "type": "string"
- }
- },
- "required": [
- "activeStep",
- "adCopy",
- "campaignId",
- "minimumPreservedAdCopyCharacters",
- "updatedAt"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "budget": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "activeStep": {
- "const": "budget",
- "type": "string"
- },
- "budget": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "budgetAmountCents": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "budgetAmountMinor": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "budgetType": {
- "enum": [
- "DAILY",
- "TOTAL"
- ],
- "type": "string"
- },
- "currency": {
- "enum": [
- "USD",
- "EUR",
- "GBP",
- "CAD",
- "AUD",
- "MXN",
- "BRL",
- "JPY",
- "AED",
- "CHF",
- "CLP",
- "COP",
- "CZK",
- "DKK",
- "EGP",
- "HKD",
- "HUF",
- "IDR",
- "ILS",
- "INR",
- "KRW",
- "KZT",
- "MYR",
- "NGN",
- "NOK",
- "NZD",
- "PEN",
- "PHP",
- "PKR",
- "PLN",
- "QAR",
- "RON",
- "SAR",
- "SEK",
- "SGD",
- "THB",
- "TRY",
- "TWD",
- "TZS",
- "VND",
- "ZAR",
- "AFN",
- "ALL",
- "AMD",
- "ANG",
- "AOA",
- "ARS",
- "AWG",
- "AZN",
- "BAM",
- "BBD",
- "BDT",
- "BIF",
- "BMD",
- "BND",
- "BOB",
- "BSD",
- "BWP",
- "BYN",
- "BZD",
- "CDF",
- "CRC",
- "CVE",
- "DJF",
- "DOP",
- "DZD",
- "ETB",
- "FJD",
- "FKP",
- "GEL",
- "GHS",
- "GIP",
- "GMD",
- "GNF",
- "GTQ",
- "GYD",
- "HNL",
- "HTG",
- "IQD",
- "ISK",
- "JMD",
- "JOD",
- "KES",
- "KGS",
- "KHR",
- "KMF",
- "KYD",
- "LAK",
- "LKR",
- "LRD",
- "LSL",
- "MAD",
- "MDL",
- "MGA",
- "MKD",
- "MMK",
- "MNT",
- "MOP",
- "MUR",
- "MVR",
- "MWK",
- "MZN",
- "NAD",
- "NIO",
- "NPR",
- "PAB",
- "PGK",
- "PYG",
- "RSD",
- "RWF",
- "SBD",
- "SCR",
- "SHP",
- "SLE",
- "SOS",
- "SRD",
- "STD",
- "SZL",
- "TJS",
- "TOP",
- "TTD",
- "UAH",
- "UGX",
- "UYU",
- "UZS",
- "VUV",
- "WST",
- "XAF",
- "XCD",
- "XCG",
- "XOF",
- "XPF",
- "YER",
- "ZMW"
- ],
- "type": "string"
- },
- "currencyExponent": {
- "maximum": 3,
- "minimum": 0,
- "type": "integer"
- },
- "endDate": {
- "anyOf": [
- {
- "format": "date",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "endDateLabel": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "budgetAmountCents",
- "budgetType",
- "endDate"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "budgetPresentation": {
- "additionalProperties": false,
- "properties": {
- "defaultEndDate": {
- "format": "date",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
- "type": "string"
- },
- "effectiveDailyBudgetMinor": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "flightDays": {
- "anyOf": [
- {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "maximumBudgetMinor": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "minimumBudgetMinor": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "presetAmountsMinor": {
- "items": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "type": "array"
- }
- },
- "required": [
- "presetAmountsMinor",
- "flightDays",
- "effectiveDailyBudgetMinor"
- ],
- "type": "object"
- },
- "campaignId": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "currency": {
- "enum": [
- "USD",
- "EUR",
- "GBP",
- "CAD",
- "AUD",
- "MXN",
- "BRL",
- "JPY",
- "AED",
- "CHF",
- "CLP",
- "COP",
- "CZK",
- "DKK",
- "EGP",
- "HKD",
- "HUF",
- "IDR",
- "ILS",
- "INR",
- "KRW",
- "KZT",
- "MYR",
- "NGN",
- "NOK",
- "NZD",
- "PEN",
- "PHP",
- "PKR",
- "PLN",
- "QAR",
- "RON",
- "SAR",
- "SEK",
- "SGD",
- "THB",
- "TRY",
- "TWD",
- "TZS",
- "VND",
- "ZAR",
- "AFN",
- "ALL",
- "AMD",
- "ANG",
- "AOA",
- "ARS",
- "AWG",
- "AZN",
- "BAM",
- "BBD",
- "BDT",
- "BIF",
- "BMD",
- "BND",
- "BOB",
- "BSD",
- "BWP",
- "BYN",
- "BZD",
- "CDF",
- "CRC",
- "CVE",
- "DJF",
- "DOP",
- "DZD",
- "ETB",
- "FJD",
- "FKP",
- "GEL",
- "GHS",
- "GIP",
- "GMD",
- "GNF",
- "GTQ",
- "GYD",
- "HNL",
- "HTG",
- "IQD",
- "ISK",
- "JMD",
- "JOD",
- "KES",
- "KGS",
- "KHR",
- "KMF",
- "KYD",
- "LAK",
- "LKR",
- "LRD",
- "LSL",
- "MAD",
- "MDL",
- "MGA",
- "MKD",
- "MMK",
- "MNT",
- "MOP",
- "MUR",
- "MVR",
- "MWK",
- "MZN",
- "NAD",
- "NIO",
- "NPR",
- "PAB",
- "PGK",
- "PYG",
- "RSD",
- "RWF",
- "SBD",
- "SCR",
- "SHP",
- "SLE",
- "SOS",
- "SRD",
- "STD",
- "SZL",
- "TJS",
- "TOP",
- "TTD",
- "UAH",
- "UGX",
- "UYU",
- "UZS",
- "VUV",
- "WST",
- "XAF",
- "XCD",
- "XCG",
- "XOF",
- "XPF",
- "YER",
- "ZMW"
- ],
- "type": "string"
- },
- "currencyExponent": {
- "maximum": 3,
- "minimum": 0,
- "type": "integer"
- },
- "policy": {
- "additionalProperties": false,
- "properties": {
- "maximumDailyBudgetCents": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "maximumDailyBudgetMinor": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "minimumCampaignDays": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "minimumDailyBudgetCents": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "minimumDailyBudgetMinor": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "minimumEndDate": {
- "format": "date",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
- "type": "string"
- },
- "minimumTotalBudgetCents": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "minimumTotalBudgetMinor": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "platform": {
- "const": "META",
- "type": "string"
- }
- },
- "required": [
- "maximumDailyBudgetCents",
- "minimumCampaignDays",
- "minimumDailyBudgetCents",
- "minimumEndDate",
- "minimumTotalBudgetCents",
- "platform"
- ],
- "type": "object"
- },
- "updatedAt": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
- "type": "string"
- }
- },
- "required": [
- "activeStep",
- "budget",
- "campaignId",
- "policy",
- "updatedAt"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "creative": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "activeStep": {
- "const": "creative",
- "type": "string"
- },
- "campaignId": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "creative": {
- "additionalProperties": false,
- "properties": {
- "completed": {
- "type": "boolean"
- },
- "generation": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "completedCount": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "failedCount": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "inProgressCount": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "items": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "clipDurationSeconds": {
- "minimum": 0,
- "type": "number"
- },
- "clipStartSeconds": {
- "minimum": 0,
- "type": "number"
- },
- "errorMessage": {
- "type": [
- "string",
- "null"
- ]
- },
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "progressPercent": {
- "anyOf": [
- {
- "maximum": 100,
- "minimum": 0,
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- },
- "status": {
- "enum": [
- "PENDING",
- "PROCESSING",
- "COMPLETED",
- "FAILED"
- ],
- "type": "string"
- },
- "templateVariant": {
- "minLength": 1,
- "type": "string"
- },
- "thumbnailUrl": {
- "pattern": "^(?:https:\\/\\/|\\/)",
- "type": "string"
- },
- "videoUrl": {
- "pattern": "^(?:https:\\/\\/|\\/)",
- "type": "string"
- }
- },
- "required": [
- "clipDurationSeconds",
- "clipStartSeconds",
- "errorMessage",
- "id",
- "progressPercent",
- "status",
- "templateVariant",
- "thumbnailUrl",
- "videoUrl"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "jobErrorMessage": {
- "type": [
- "string",
- "null"
- ]
- },
- "jobId": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "phase": {
- "enum": [
- "CHECKING_RENDERER",
- "ANALYZING_AUDIO",
- "PREPARING_TEMPLATES",
- "RENDERING",
- "FINALIZING",
- "FAILED"
- ],
- "type": "string"
- },
- "totalCount": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "completedCount",
- "failedCount",
- "inProgressCount",
- "items",
- "jobErrorMessage",
- "jobId",
- "phase",
- "totalCount"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "selectedCreativeIds": {
- "items": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "type": "array"
- },
- "selectedSocialPosts": {
- "default": [],
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "source": {
- "anyOf": [
- {
- "enum": [
- "generate",
- "posts",
- "upload"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "sourceAudio": {
- "additionalProperties": false,
- "properties": {
- "fileName": {
- "type": [
- "string",
- "null"
- ]
- },
- "fileSizeBytes": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "hookSeconds": {
- "items": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "maxItems": 2,
- "type": "array"
- },
- "isUploaded": {
- "type": "boolean"
- },
- "trackDurationSeconds": {
- "anyOf": [
- {
- "minimum": 0,
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "fileName",
- "fileSizeBytes",
- "hookSeconds",
- "isUploaded",
- "trackDurationSeconds"
- ],
- "type": "object"
- },
- "uploadedAssets": {
- "default": [],
- "items": {
- "additionalProperties": false,
- "properties": {
- "errorMessage": {
- "type": [
- "string",
- "null"
- ]
- },
- "fileName": {
- "minLength": 1,
- "type": "string"
- },
- "fileSize": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "fileType": {
- "minLength": 1,
- "type": "string"
- },
- "id": {
- "minLength": 1,
- "type": "string"
- },
- "mediaAssetId": {
- "type": [
- "string",
- "null"
- ]
- },
- "progress": {
- "maximum": 100,
- "minimum": 0,
- "type": "number"
- },
- "source": {
- "enum": [
- "UPLOAD",
- "EXISTING"
- ],
- "type": "string"
- },
- "storageKey": {
- "type": [
- "string",
- "null"
- ]
- },
- "storageProvider": {
- "enum": [
- "R2",
- "CLOUDFLARE",
- "S3",
- "GCS"
- ],
- "type": "string"
- },
- "tempUrl": {
- "type": [
- "string",
- "null"
- ]
- },
- "thumbnailUrl": {
- "type": [
- "string",
- "null"
- ]
- },
- "uploadStatus": {
- "enum": [
- "pending",
- "uploading",
- "success",
- "error"
- ],
- "type": "string"
- }
- },
- "required": [
- "fileName",
- "fileSize",
- "fileType",
- "id"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "completed",
- "generation",
- "selectedCreativeIds",
- "selectedSocialPosts",
- "source",
- "sourceAudio",
- "uploadedAssets"
- ],
- "type": "object"
- },
- "updatedAt": {
- "anyOf": [
- {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "activeStep",
- "campaignId",
- "creative",
- "updatedAt"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "draft": {
- "additionalProperties": false,
- "properties": {
- "activeStep": {
- "type": [
- "string",
- "null"
- ]
- },
- "campaignId": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "campaignType": {
- "enum": [
- "SMART_CAMPAIGN",
- "YOUTUBE"
- ],
- "type": "string"
- },
- "playLinkId": {
- "type": [
- "string",
- "null"
- ]
- },
- "title": {
- "type": [
- "string",
- "null"
- ]
- },
- "updatedAt": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
- "type": "string"
- }
- },
- "required": [
- "activeStep",
- "campaignId",
- "campaignType",
- "playLinkId",
- "title",
- "updatedAt"
- ],
- "type": "object"
- },
- "location": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "activeStep": {
- "const": "location",
- "type": "string"
- },
- "availableCountries": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "maxLength": 2,
- "minLength": 2,
- "type": "string"
- },
- "name": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "code",
- "name"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "campaignId": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "location": {
- "additionalProperties": false,
- "properties": {
- "countries": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "maxLength": 2,
- "minLength": 2,
- "type": "string"
- },
- "name": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "code",
- "name"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "mode": {
- "enum": [
- "WORLDWIDE",
- "INCLUDE"
- ],
- "type": "string"
- }
- },
- "required": [
- "countries",
- "mode"
- ],
- "type": "object"
- },
- "recommendedCountries": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "maxLength": 2,
- "minLength": 2,
- "type": "string"
- },
- "name": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "code",
- "name"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "updatedAt": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
- "type": "string"
- }
- },
- "required": [
- "activeStep",
- "availableCountries",
- "campaignId",
- "location",
- "recommendedCountries",
- "updatedAt"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "youtube": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "artistId": {
- "type": "string"
- },
- "artistName": {
- "type": "string"
- },
- "availableCountries": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "maxLength": 2,
- "minLength": 2,
- "type": "string"
- },
- "name": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "code",
- "name"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "blockingPrereqs": {
- "items": {
- "enum": [
- "artist_access",
- "billing",
- "billing_suspended",
- "prereqs_unavailable",
- "youtube_connection"
- ],
- "type": "string"
- },
- "type": "array"
- },
- "budgetPolicy": {
- "additionalProperties": false,
- "properties": {
- "currency": {
- "enum": [
- "USD",
- "EUR",
- "GBP",
- "CAD",
- "AUD",
- "MXN",
- "BRL",
- "JPY",
- "AED",
- "CHF",
- "CLP",
- "COP",
- "CZK",
- "DKK",
- "EGP",
- "HKD",
- "HUF",
- "IDR",
- "ILS",
- "INR",
- "KRW",
- "KZT",
- "MYR",
- "NGN",
- "NOK",
- "NZD",
- "PEN",
- "PHP",
- "PKR",
- "PLN",
- "QAR",
- "RON",
- "SAR",
- "SEK",
- "SGD",
- "THB",
- "TRY",
- "TWD",
- "TZS",
- "VND",
- "ZAR",
- "AFN",
- "ALL",
- "AMD",
- "ANG",
- "AOA",
- "ARS",
- "AWG",
- "AZN",
- "BAM",
- "BBD",
- "BDT",
- "BIF",
- "BMD",
- "BND",
- "BOB",
- "BSD",
- "BWP",
- "BYN",
- "BZD",
- "CDF",
- "CRC",
- "CVE",
- "DJF",
- "DOP",
- "DZD",
- "ETB",
- "FJD",
- "FKP",
- "GEL",
- "GHS",
- "GIP",
- "GMD",
- "GNF",
- "GTQ",
- "GYD",
- "HNL",
- "HTG",
- "IQD",
- "ISK",
- "JMD",
- "JOD",
- "KES",
- "KGS",
- "KHR",
- "KMF",
- "KYD",
- "LAK",
- "LKR",
- "LRD",
- "LSL",
- "MAD",
- "MDL",
- "MGA",
- "MKD",
- "MMK",
- "MNT",
- "MOP",
- "MUR",
- "MVR",
- "MWK",
- "MZN",
- "NAD",
- "NIO",
- "NPR",
- "PAB",
- "PGK",
- "PYG",
- "RSD",
- "RWF",
- "SBD",
- "SCR",
- "SHP",
- "SLE",
- "SOS",
- "SRD",
- "STD",
- "SZL",
- "TJS",
- "TOP",
- "TTD",
- "UAH",
- "UGX",
- "UYU",
- "UZS",
- "VUV",
- "WST",
- "XAF",
- "XCD",
- "XCG",
- "XOF",
- "XPF",
- "YER",
- "ZMW"
- ],
- "type": "string"
- },
- "currencyExponent": {
- "maximum": 3,
- "minimum": 0,
- "type": "integer"
- },
- "maximumDailyBudgetCents": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "maximumDailyBudgetMinor": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "minimumCampaignDays": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "minimumDailyBudgetCents": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "minimumDailyBudgetMinor": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "minimumEndDate": {
- "format": "date",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
- "type": "string"
- },
- "minimumTotalBudgetCents": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "minimumTotalBudgetMinor": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "currency",
- "maximumDailyBudgetCents",
- "minimumCampaignDays",
- "minimumDailyBudgetCents",
- "minimumEndDate",
- "minimumTotalBudgetCents"
- ],
- "type": "object"
- },
- "budgetPresentation": {
- "additionalProperties": false,
- "properties": {
- "defaultEndDate": {
- "format": "date",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
- "type": "string"
- },
- "effectiveDailyBudgetMinor": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "flightDays": {
- "anyOf": [
- {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "maximumBudgetMinor": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "minimumBudgetMinor": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "presetAmountsMinor": {
- "items": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "type": "array"
- }
- },
- "required": [
- "presetAmountsMinor",
- "flightDays",
- "effectiveDailyBudgetMinor"
- ],
- "type": "object"
- },
- "channel": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "id": {
- "type": "string"
- },
- "isMonetized": {
- "type": "boolean"
- },
- "subscribers": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "thumbnailUrl": {
- "anyOf": [
- {
- "format": "uri",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "title": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "isMonetized",
- "subscribers",
- "thumbnailUrl",
- "title"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "draft": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "activeStep": {
- "anyOf": [
- {
- "enum": [
- "content",
- "location",
- "adCopy",
- "budget"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "adCopy": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "adCopy": {
- "type": "string"
- },
- "mode": {
- "enum": [
- "assisted",
- "preserve"
- ],
- "type": "string"
- }
- },
- "required": [
- "adCopy",
- "mode"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "budget": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "budgetAmountCents": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "budgetAmountMinor": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "budgetType": {
- "enum": [
- "DAILY",
- "TOTAL"
- ],
- "type": "string"
- },
- "currency": {
- "enum": [
- "USD",
- "EUR",
- "GBP",
- "CAD",
- "AUD",
- "MXN",
- "BRL",
- "JPY",
- "AED",
- "CHF",
- "CLP",
- "COP",
- "CZK",
- "DKK",
- "EGP",
- "HKD",
- "HUF",
- "IDR",
- "ILS",
- "INR",
- "KRW",
- "KZT",
- "MYR",
- "NGN",
- "NOK",
- "NZD",
- "PEN",
- "PHP",
- "PKR",
- "PLN",
- "QAR",
- "RON",
- "SAR",
- "SEK",
- "SGD",
- "THB",
- "TRY",
- "TWD",
- "TZS",
- "VND",
- "ZAR",
- "AFN",
- "ALL",
- "AMD",
- "ANG",
- "AOA",
- "ARS",
- "AWG",
- "AZN",
- "BAM",
- "BBD",
- "BDT",
- "BIF",
- "BMD",
- "BND",
- "BOB",
- "BSD",
- "BWP",
- "BYN",
- "BZD",
- "CDF",
- "CRC",
- "CVE",
- "DJF",
- "DOP",
- "DZD",
- "ETB",
- "FJD",
- "FKP",
- "GEL",
- "GHS",
- "GIP",
- "GMD",
- "GNF",
- "GTQ",
- "GYD",
- "HNL",
- "HTG",
- "IQD",
- "ISK",
- "JMD",
- "JOD",
- "KES",
- "KGS",
- "KHR",
- "KMF",
- "KYD",
- "LAK",
- "LKR",
- "LRD",
- "LSL",
- "MAD",
- "MDL",
- "MGA",
- "MKD",
- "MMK",
- "MNT",
- "MOP",
- "MUR",
- "MVR",
- "MWK",
- "MZN",
- "NAD",
- "NIO",
- "NPR",
- "PAB",
- "PGK",
- "PYG",
- "RSD",
- "RWF",
- "SBD",
- "SCR",
- "SHP",
- "SLE",
- "SOS",
- "SRD",
- "STD",
- "SZL",
- "TJS",
- "TOP",
- "TTD",
- "UAH",
- "UGX",
- "UYU",
- "UZS",
- "VUV",
- "WST",
- "XAF",
- "XCD",
- "XCG",
- "XOF",
- "XPF",
- "YER",
- "ZMW"
- ],
- "type": "string"
- },
- "currencyExponent": {
- "maximum": 3,
- "minimum": 0,
- "type": "integer"
- },
- "endDate": {
- "anyOf": [
- {
- "format": "date",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "endDateLabel": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "budgetAmountCents",
- "budgetType",
- "endDate"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "campaignId": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "completedSteps": {
- "items": {
- "enum": [
- "content",
- "location",
- "adCopy",
- "budget"
- ],
- "type": "string"
- },
- "type": "array"
- },
- "content": {
- "additionalProperties": false,
- "properties": {
- "playlist": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "id": {
- "type": "string"
- },
- "itemCount": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "thumbnailUrl": {
- "anyOf": [
- {
- "format": "uri",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "title": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "itemCount",
- "thumbnailUrl",
- "title"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "screening": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "matches": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "category": {
- "enum": [
- "Illicit Drugs",
- "Sexual",
- "Violent",
- "Firearms & Weapons",
- "Profanity",
- "Death, Harm & Tragedy"
- ],
- "type": "string"
- },
- "score": {
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "category",
- "score"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "status": {
- "enum": [
- "clear",
- "warning",
- "rejected",
- "unavailable"
- ],
- "type": "string"
- },
- "unavailableReason": {
- "anyOf": [
- {
- "enum": [
- "language_api_failed",
- "language_api_unauthorized",
- "missing_credentials",
- "transcript_unavailable",
- "video_not_found",
- "request_failed"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "videoId": {
- "type": "string"
- }
- },
- "required": [
- "matches",
- "status",
- "unavailableReason",
- "videoId"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "strategy": {
- "anyOf": [
- {
- "enum": [
- "CHEAPEST_VIEWS",
- "ORGANIC_VIEWS",
- "SUBSCRIBERS",
- "ORGANIC_VIEWS_AND_SUBSCRIBERS",
- "ADSENSE_ROI"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "video": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "durationSeconds": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "isPromoted": {
- "type": "boolean"
- },
- "publishedAt": {
- "anyOf": [
- {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "thumbnailUrl": {
- "anyOf": [
- {
- "format": "uri",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "title": {
- "type": "string"
- },
- "videoId": {
- "type": "string"
- },
- "viewCount": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "views28d": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "watchMinutes28d": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "durationSeconds",
- "isPromoted",
- "publishedAt",
- "thumbnailUrl",
- "title",
- "videoId",
- "viewCount",
- "views28d",
- "watchMinutes28d"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "playlist",
- "screening",
- "strategy",
- "video"
- ],
- "type": "object"
- },
- "generationJobId": {
- "anyOf": [
- {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "location": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "countries": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "maxLength": 2,
- "minLength": 2,
- "type": "string"
- },
- "name": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "code",
- "name"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "mode": {
- "enum": [
- "GLOBAL",
- "COUNTRIES"
- ],
- "type": "string"
- }
- },
- "required": [
- "countries",
- "mode"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "updatedAt": {
- "anyOf": [
- {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "activeStep",
- "adCopy",
- "budget",
- "campaignId",
- "completedSteps",
- "content",
- "generationJobId",
- "location",
- "updatedAt"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "minimumPreservedAdCopyCharacters": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "playlistLoadStatus": {
- "enum": [
- "load_error",
- "ready"
- ],
- "type": "string"
- },
- "playlists": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "id": {
- "type": "string"
- },
- "itemCount": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "thumbnailUrl": {
- "anyOf": [
- {
- "format": "uri",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "title": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "itemCount",
- "thumbnailUrl",
- "title"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "setupPrereqs": {
- "items": {
- "enum": [
- "artist_access",
- "billing",
- "billing_suspended",
- "prereqs_unavailable",
- "youtube_connection",
- "google_ads_permission"
- ],
- "type": "string"
- },
- "type": "array"
- },
- "steps": {
- "items": false,
- "maxItems": 4,
- "minItems": 4,
- "prefixItems": [
- {
- "const": "content",
- "type": "string"
- },
- {
- "const": "location",
- "type": "string"
- },
- {
- "const": "adCopy",
- "type": "string"
- },
- {
- "const": "budget",
- "type": "string"
- }
- ],
- "type": "array"
- },
- "strategies": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "fixedBudgetType": {
- "anyOf": [
- {
- "const": "TOTAL",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "isAvailable": {
- "type": "boolean"
- },
- "isRecommended": {
- "type": "boolean"
- },
- "key": {
- "enum": [
- "CHEAPEST_VIEWS",
- "ORGANIC_VIEWS",
- "SUBSCRIBERS",
- "ORGANIC_VIEWS_AND_SUBSCRIBERS",
- "ADSENSE_ROI"
- ],
- "type": "string"
- },
- "requiresPlaylist": {
- "type": "boolean"
- }
- },
- "required": [
- "fixedBudgetType",
- "isAvailable",
- "isRecommended",
- "key",
- "requiresPlaylist"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "artistId",
- "artistName",
- "availableCountries",
- "blockingPrereqs",
- "budgetPolicy",
- "channel",
- "draft",
- "minimumPreservedAdCopyCharacters",
- "playlistLoadStatus",
- "playlists",
- "setupPrereqs",
- "steps",
- "strategies"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "adCopy",
- "budget",
- "creative",
- "draft",
- "location",
- "youtube"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "items": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "createdAt": {
- "type": [
- "string",
- "null"
- ]
- },
- "eligibleForPromotion": {
- "type": [
- "boolean",
- "null"
- ]
- },
- "fileName": {
- "type": [
- "string",
- "null"
- ]
- },
- "fileSizeBytes": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "type": "string"
- },
- "mediaType": {
- "type": [
- "string",
- "null"
- ]
- },
- "moderationStatus": {
- "type": [
- "string",
- "null"
- ]
- },
- "text": {
- "type": "string"
- },
- "thumbnailUrl": {
- "type": [
- "string",
- "null"
- ]
- },
- "url": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "eligibleForPromotion",
- "id",
- "text"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "nextCursor": {
- "type": [
- "string",
- "null"
- ]
- },
- "source": {
- "enum": [
- "facebook",
- "instagram",
- "uploads"
- ],
- "type": "string"
- }
- },
- "required": [
- "items",
- "nextCursor",
- "source"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "adCopy": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "activeStep": {
+ "const": "adCopy",
+ "type": "string"
+ },
+ "adCopy": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "adCopy": {
+ "type": "string"
+ },
+ "mode": {
+ "enum": [
+ "assisted",
+ "preserve"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "adCopy",
+ "mode"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "campaignId": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "minimumPreservedAdCopyCharacters": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "updatedAt": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "activeStep",
+ "adCopy",
+ "campaignId",
+ "minimumPreservedAdCopyCharacters",
+ "updatedAt"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "budget": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "activeStep": {
+ "const": "budget",
+ "type": "string"
+ },
+ "budget": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "budgetAmountCents": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "budgetAmountMinor": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "budgetType": {
+ "enum": [
+ "DAILY",
+ "TOTAL"
+ ],
+ "type": "string"
+ },
+ "currency": {
+ "enum": [
+ "USD",
+ "EUR",
+ "GBP",
+ "CAD",
+ "AUD",
+ "MXN",
+ "BRL",
+ "JPY",
+ "AED",
+ "CHF",
+ "CLP",
+ "COP",
+ "CZK",
+ "DKK",
+ "EGP",
+ "HKD",
+ "HUF",
+ "IDR",
+ "ILS",
+ "INR",
+ "KRW",
+ "KZT",
+ "MYR",
+ "NGN",
+ "NOK",
+ "NZD",
+ "PEN",
+ "PHP",
+ "PKR",
+ "PLN",
+ "QAR",
+ "RON",
+ "SAR",
+ "SEK",
+ "SGD",
+ "THB",
+ "TRY",
+ "TWD",
+ "TZS",
+ "VND",
+ "ZAR",
+ "AFN",
+ "ALL",
+ "AMD",
+ "ANG",
+ "AOA",
+ "ARS",
+ "AWG",
+ "AZN",
+ "BAM",
+ "BBD",
+ "BDT",
+ "BIF",
+ "BMD",
+ "BND",
+ "BOB",
+ "BSD",
+ "BWP",
+ "BYN",
+ "BZD",
+ "CDF",
+ "CRC",
+ "CVE",
+ "DJF",
+ "DOP",
+ "DZD",
+ "ETB",
+ "FJD",
+ "FKP",
+ "GEL",
+ "GHS",
+ "GIP",
+ "GMD",
+ "GNF",
+ "GTQ",
+ "GYD",
+ "HNL",
+ "HTG",
+ "IQD",
+ "ISK",
+ "JMD",
+ "JOD",
+ "KES",
+ "KGS",
+ "KHR",
+ "KMF",
+ "KYD",
+ "LAK",
+ "LKR",
+ "LRD",
+ "LSL",
+ "MAD",
+ "MDL",
+ "MGA",
+ "MKD",
+ "MMK",
+ "MNT",
+ "MOP",
+ "MUR",
+ "MVR",
+ "MWK",
+ "MZN",
+ "NAD",
+ "NIO",
+ "NPR",
+ "PAB",
+ "PGK",
+ "PYG",
+ "RSD",
+ "RWF",
+ "SBD",
+ "SCR",
+ "SHP",
+ "SLE",
+ "SOS",
+ "SRD",
+ "STD",
+ "SZL",
+ "TJS",
+ "TOP",
+ "TTD",
+ "UAH",
+ "UGX",
+ "UYU",
+ "UZS",
+ "VUV",
+ "WST",
+ "XAF",
+ "XCD",
+ "XCG",
+ "XOF",
+ "XPF",
+ "YER",
+ "ZMW"
+ ],
+ "type": "string"
+ },
+ "currencyExponent": {
+ "maximum": 3,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "endDate": {
+ "anyOf": [
+ {
+ "format": "date",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "endDateLabel": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "budgetAmountCents",
+ "budgetType",
+ "endDate"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "budgetPresentation": {
+ "additionalProperties": false,
+ "properties": {
+ "defaultEndDate": {
+ "format": "date",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
+ "type": "string"
+ },
+ "effectiveDailyBudgetMinor": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "flightDays": {
+ "anyOf": [
+ {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "maximumBudgetMinor": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "minimumBudgetMinor": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "presetAmountsMinor": {
+ "items": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "presetAmountsMinor",
+ "flightDays",
+ "effectiveDailyBudgetMinor"
+ ],
+ "type": "object"
+ },
+ "campaignId": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "currency": {
+ "enum": [
+ "USD",
+ "EUR",
+ "GBP",
+ "CAD",
+ "AUD",
+ "MXN",
+ "BRL",
+ "JPY",
+ "AED",
+ "CHF",
+ "CLP",
+ "COP",
+ "CZK",
+ "DKK",
+ "EGP",
+ "HKD",
+ "HUF",
+ "IDR",
+ "ILS",
+ "INR",
+ "KRW",
+ "KZT",
+ "MYR",
+ "NGN",
+ "NOK",
+ "NZD",
+ "PEN",
+ "PHP",
+ "PKR",
+ "PLN",
+ "QAR",
+ "RON",
+ "SAR",
+ "SEK",
+ "SGD",
+ "THB",
+ "TRY",
+ "TWD",
+ "TZS",
+ "VND",
+ "ZAR",
+ "AFN",
+ "ALL",
+ "AMD",
+ "ANG",
+ "AOA",
+ "ARS",
+ "AWG",
+ "AZN",
+ "BAM",
+ "BBD",
+ "BDT",
+ "BIF",
+ "BMD",
+ "BND",
+ "BOB",
+ "BSD",
+ "BWP",
+ "BYN",
+ "BZD",
+ "CDF",
+ "CRC",
+ "CVE",
+ "DJF",
+ "DOP",
+ "DZD",
+ "ETB",
+ "FJD",
+ "FKP",
+ "GEL",
+ "GHS",
+ "GIP",
+ "GMD",
+ "GNF",
+ "GTQ",
+ "GYD",
+ "HNL",
+ "HTG",
+ "IQD",
+ "ISK",
+ "JMD",
+ "JOD",
+ "KES",
+ "KGS",
+ "KHR",
+ "KMF",
+ "KYD",
+ "LAK",
+ "LKR",
+ "LRD",
+ "LSL",
+ "MAD",
+ "MDL",
+ "MGA",
+ "MKD",
+ "MMK",
+ "MNT",
+ "MOP",
+ "MUR",
+ "MVR",
+ "MWK",
+ "MZN",
+ "NAD",
+ "NIO",
+ "NPR",
+ "PAB",
+ "PGK",
+ "PYG",
+ "RSD",
+ "RWF",
+ "SBD",
+ "SCR",
+ "SHP",
+ "SLE",
+ "SOS",
+ "SRD",
+ "STD",
+ "SZL",
+ "TJS",
+ "TOP",
+ "TTD",
+ "UAH",
+ "UGX",
+ "UYU",
+ "UZS",
+ "VUV",
+ "WST",
+ "XAF",
+ "XCD",
+ "XCG",
+ "XOF",
+ "XPF",
+ "YER",
+ "ZMW"
+ ],
+ "type": "string"
+ },
+ "currencyExponent": {
+ "maximum": 3,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "policy": {
+ "additionalProperties": false,
+ "properties": {
+ "maximumDailyBudgetCents": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "maximumDailyBudgetMinor": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "minimumCampaignDays": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "minimumDailyBudgetCents": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "minimumDailyBudgetMinor": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "minimumEndDate": {
+ "format": "date",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
+ "type": "string"
+ },
+ "minimumTotalBudgetCents": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "minimumTotalBudgetMinor": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "platform": {
+ "const": "META",
+ "type": "string"
+ }
+ },
+ "required": [
+ "maximumDailyBudgetCents",
+ "minimumCampaignDays",
+ "minimumDailyBudgetCents",
+ "minimumEndDate",
+ "minimumTotalBudgetCents",
+ "platform"
+ ],
+ "type": "object"
+ },
+ "updatedAt": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "activeStep",
+ "budget",
+ "campaignId",
+ "policy",
+ "updatedAt"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "creative": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "activeStep": {
+ "const": "creative",
+ "type": "string"
+ },
+ "campaignId": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "creative": {
+ "additionalProperties": false,
+ "properties": {
+ "completed": {
+ "type": "boolean"
+ },
+ "generation": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "completedCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "failedCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "inProgressCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "items": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "clipDurationSeconds": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "clipStartSeconds": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "errorMessage": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "progressPercent": {
+ "anyOf": [
+ {
+ "maximum": 100,
+ "minimum": 0,
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "status": {
+ "enum": [
+ "PENDING",
+ "PROCESSING",
+ "COMPLETED",
+ "FAILED"
+ ],
+ "type": "string"
+ },
+ "templateVariant": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "thumbnailUrl": {
+ "pattern": "^(?:https:\\/\\/|\\/)",
+ "type": "string"
+ },
+ "videoUrl": {
+ "pattern": "^(?:https:\\/\\/|\\/)",
+ "type": "string"
+ }
+ },
+ "required": [
+ "clipDurationSeconds",
+ "clipStartSeconds",
+ "errorMessage",
+ "id",
+ "progressPercent",
+ "status",
+ "templateVariant",
+ "thumbnailUrl",
+ "videoUrl"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "jobErrorMessage": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "jobId": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "phase": {
+ "enum": [
+ "CHECKING_RENDERER",
+ "ANALYZING_AUDIO",
+ "PREPARING_TEMPLATES",
+ "RENDERING",
+ "FINALIZING",
+ "FAILED"
+ ],
+ "type": "string"
+ },
+ "totalCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "completedCount",
+ "failedCount",
+ "inProgressCount",
+ "items",
+ "jobErrorMessage",
+ "jobId",
+ "phase",
+ "totalCount"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "selectedCreativeIds": {
+ "items": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "selectedSocialPosts": {
+ "default": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "source": {
+ "anyOf": [
+ {
+ "enum": [
+ "generate",
+ "posts",
+ "upload"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "sourceAudio": {
+ "additionalProperties": false,
+ "properties": {
+ "fileName": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "fileSizeBytes": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "hookSeconds": {
+ "items": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "maxItems": 2,
+ "type": "array"
+ },
+ "isUploaded": {
+ "type": "boolean"
+ },
+ "trackDurationSeconds": {
+ "anyOf": [
+ {
+ "minimum": 0,
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "fileName",
+ "fileSizeBytes",
+ "hookSeconds",
+ "isUploaded",
+ "trackDurationSeconds"
+ ],
+ "type": "object"
+ },
+ "uploadedAssets": {
+ "default": [],
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "errorMessage": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "fileName": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "fileSize": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "fileType": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "mediaAssetId": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "moderationReasonCode": {
+ "type": "string"
+ },
+ "moderationStatus": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "progress": {
+ "maximum": 100,
+ "minimum": 0,
+ "type": "number"
+ },
+ "source": {
+ "enum": [
+ "UPLOAD",
+ "EXISTING"
+ ],
+ "type": "string"
+ },
+ "storageKey": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "storageProvider": {
+ "enum": [
+ "R2",
+ "CLOUDFLARE",
+ "S3",
+ "GCS"
+ ],
+ "type": "string"
+ },
+ "tempUrl": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "thumbnailUrl": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "uploadStatus": {
+ "enum": [
+ "pending",
+ "uploading",
+ "success",
+ "error"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "fileName",
+ "fileSize",
+ "fileType",
+ "id"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "completed",
+ "generation",
+ "selectedCreativeIds",
+ "selectedSocialPosts",
+ "source",
+ "sourceAudio",
+ "uploadedAssets"
+ ],
+ "type": "object"
+ },
+ "updatedAt": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "activeStep",
+ "campaignId",
+ "creative",
+ "updatedAt"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "draft": {
+ "additionalProperties": false,
+ "properties": {
+ "activeStep": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "campaignId": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "campaignType": {
+ "enum": [
+ "SMART_CAMPAIGN",
+ "YOUTUBE"
+ ],
+ "type": "string"
+ },
+ "playLinkId": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "title": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "updatedAt": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "activeStep",
+ "campaignId",
+ "campaignType",
+ "playLinkId",
+ "title",
+ "updatedAt"
+ ],
+ "type": "object"
+ },
+ "location": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "activeStep": {
+ "const": "location",
+ "type": "string"
+ },
+ "availableCountries": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "maxLength": 2,
+ "minLength": 2,
+ "type": "string"
+ },
+ "name": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "name"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "campaignId": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "location": {
+ "additionalProperties": false,
+ "properties": {
+ "countries": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "maxLength": 2,
+ "minLength": 2,
+ "type": "string"
+ },
+ "name": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "name"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "mode": {
+ "enum": [
+ "WORLDWIDE",
+ "INCLUDE"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "countries",
+ "mode"
+ ],
+ "type": "object"
+ },
+ "recommendedCountries": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "maxLength": 2,
+ "minLength": 2,
+ "type": "string"
+ },
+ "name": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "name"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "updatedAt": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "activeStep",
+ "availableCountries",
+ "campaignId",
+ "location",
+ "recommendedCountries",
+ "updatedAt"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "youtube": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "artistId": {
+ "type": "string"
+ },
+ "artistName": {
+ "type": "string"
+ },
+ "availableCountries": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "maxLength": 2,
+ "minLength": 2,
+ "type": "string"
+ },
+ "name": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "name"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "blockingPrereqs": {
+ "items": {
+ "enum": [
+ "artist_access",
+ "billing",
+ "billing_suspended",
+ "prereqs_unavailable",
+ "youtube_connection"
+ ],
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "budgetPolicy": {
+ "additionalProperties": false,
+ "properties": {
+ "currency": {
+ "enum": [
+ "USD",
+ "EUR",
+ "GBP",
+ "CAD",
+ "AUD",
+ "MXN",
+ "BRL",
+ "JPY",
+ "AED",
+ "CHF",
+ "CLP",
+ "COP",
+ "CZK",
+ "DKK",
+ "EGP",
+ "HKD",
+ "HUF",
+ "IDR",
+ "ILS",
+ "INR",
+ "KRW",
+ "KZT",
+ "MYR",
+ "NGN",
+ "NOK",
+ "NZD",
+ "PEN",
+ "PHP",
+ "PKR",
+ "PLN",
+ "QAR",
+ "RON",
+ "SAR",
+ "SEK",
+ "SGD",
+ "THB",
+ "TRY",
+ "TWD",
+ "TZS",
+ "VND",
+ "ZAR",
+ "AFN",
+ "ALL",
+ "AMD",
+ "ANG",
+ "AOA",
+ "ARS",
+ "AWG",
+ "AZN",
+ "BAM",
+ "BBD",
+ "BDT",
+ "BIF",
+ "BMD",
+ "BND",
+ "BOB",
+ "BSD",
+ "BWP",
+ "BYN",
+ "BZD",
+ "CDF",
+ "CRC",
+ "CVE",
+ "DJF",
+ "DOP",
+ "DZD",
+ "ETB",
+ "FJD",
+ "FKP",
+ "GEL",
+ "GHS",
+ "GIP",
+ "GMD",
+ "GNF",
+ "GTQ",
+ "GYD",
+ "HNL",
+ "HTG",
+ "IQD",
+ "ISK",
+ "JMD",
+ "JOD",
+ "KES",
+ "KGS",
+ "KHR",
+ "KMF",
+ "KYD",
+ "LAK",
+ "LKR",
+ "LRD",
+ "LSL",
+ "MAD",
+ "MDL",
+ "MGA",
+ "MKD",
+ "MMK",
+ "MNT",
+ "MOP",
+ "MUR",
+ "MVR",
+ "MWK",
+ "MZN",
+ "NAD",
+ "NIO",
+ "NPR",
+ "PAB",
+ "PGK",
+ "PYG",
+ "RSD",
+ "RWF",
+ "SBD",
+ "SCR",
+ "SHP",
+ "SLE",
+ "SOS",
+ "SRD",
+ "STD",
+ "SZL",
+ "TJS",
+ "TOP",
+ "TTD",
+ "UAH",
+ "UGX",
+ "UYU",
+ "UZS",
+ "VUV",
+ "WST",
+ "XAF",
+ "XCD",
+ "XCG",
+ "XOF",
+ "XPF",
+ "YER",
+ "ZMW"
+ ],
+ "type": "string"
+ },
+ "currencyExponent": {
+ "maximum": 3,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "maximumDailyBudgetCents": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "maximumDailyBudgetMinor": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "minimumCampaignDays": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "minimumDailyBudgetCents": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "minimumDailyBudgetMinor": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "minimumEndDate": {
+ "format": "date",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
+ "type": "string"
+ },
+ "minimumTotalBudgetCents": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "minimumTotalBudgetMinor": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "currency",
+ "maximumDailyBudgetCents",
+ "minimumCampaignDays",
+ "minimumDailyBudgetCents",
+ "minimumEndDate",
+ "minimumTotalBudgetCents"
+ ],
+ "type": "object"
+ },
+ "budgetPresentation": {
+ "additionalProperties": false,
+ "properties": {
+ "defaultEndDate": {
+ "format": "date",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
+ "type": "string"
+ },
+ "effectiveDailyBudgetMinor": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "flightDays": {
+ "anyOf": [
+ {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "maximumBudgetMinor": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "minimumBudgetMinor": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "presetAmountsMinor": {
+ "items": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "presetAmountsMinor",
+ "flightDays",
+ "effectiveDailyBudgetMinor"
+ ],
+ "type": "object"
+ },
+ "channel": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "isMonetized": {
+ "type": "boolean"
+ },
+ "subscribers": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "thumbnailUrl": {
+ "anyOf": [
+ {
+ "format": "uri",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "title": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "isMonetized",
+ "subscribers",
+ "thumbnailUrl",
+ "title"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "draft": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "activeStep": {
+ "anyOf": [
+ {
+ "enum": [
+ "content",
+ "location",
+ "adCopy",
+ "budget"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "adCopy": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "adCopy": {
+ "type": "string"
+ },
+ "mode": {
+ "enum": [
+ "assisted",
+ "preserve"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "adCopy",
+ "mode"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "budget": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "budgetAmountCents": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "budgetAmountMinor": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "budgetType": {
+ "enum": [
+ "DAILY",
+ "TOTAL"
+ ],
+ "type": "string"
+ },
+ "currency": {
+ "enum": [
+ "USD",
+ "EUR",
+ "GBP",
+ "CAD",
+ "AUD",
+ "MXN",
+ "BRL",
+ "JPY",
+ "AED",
+ "CHF",
+ "CLP",
+ "COP",
+ "CZK",
+ "DKK",
+ "EGP",
+ "HKD",
+ "HUF",
+ "IDR",
+ "ILS",
+ "INR",
+ "KRW",
+ "KZT",
+ "MYR",
+ "NGN",
+ "NOK",
+ "NZD",
+ "PEN",
+ "PHP",
+ "PKR",
+ "PLN",
+ "QAR",
+ "RON",
+ "SAR",
+ "SEK",
+ "SGD",
+ "THB",
+ "TRY",
+ "TWD",
+ "TZS",
+ "VND",
+ "ZAR",
+ "AFN",
+ "ALL",
+ "AMD",
+ "ANG",
+ "AOA",
+ "ARS",
+ "AWG",
+ "AZN",
+ "BAM",
+ "BBD",
+ "BDT",
+ "BIF",
+ "BMD",
+ "BND",
+ "BOB",
+ "BSD",
+ "BWP",
+ "BYN",
+ "BZD",
+ "CDF",
+ "CRC",
+ "CVE",
+ "DJF",
+ "DOP",
+ "DZD",
+ "ETB",
+ "FJD",
+ "FKP",
+ "GEL",
+ "GHS",
+ "GIP",
+ "GMD",
+ "GNF",
+ "GTQ",
+ "GYD",
+ "HNL",
+ "HTG",
+ "IQD",
+ "ISK",
+ "JMD",
+ "JOD",
+ "KES",
+ "KGS",
+ "KHR",
+ "KMF",
+ "KYD",
+ "LAK",
+ "LKR",
+ "LRD",
+ "LSL",
+ "MAD",
+ "MDL",
+ "MGA",
+ "MKD",
+ "MMK",
+ "MNT",
+ "MOP",
+ "MUR",
+ "MVR",
+ "MWK",
+ "MZN",
+ "NAD",
+ "NIO",
+ "NPR",
+ "PAB",
+ "PGK",
+ "PYG",
+ "RSD",
+ "RWF",
+ "SBD",
+ "SCR",
+ "SHP",
+ "SLE",
+ "SOS",
+ "SRD",
+ "STD",
+ "SZL",
+ "TJS",
+ "TOP",
+ "TTD",
+ "UAH",
+ "UGX",
+ "UYU",
+ "UZS",
+ "VUV",
+ "WST",
+ "XAF",
+ "XCD",
+ "XCG",
+ "XOF",
+ "XPF",
+ "YER",
+ "ZMW"
+ ],
+ "type": "string"
+ },
+ "currencyExponent": {
+ "maximum": 3,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "endDate": {
+ "anyOf": [
+ {
+ "format": "date",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "endDateLabel": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "budgetAmountCents",
+ "budgetType",
+ "endDate"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "campaignId": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "completedSteps": {
+ "items": {
+ "enum": [
+ "content",
+ "location",
+ "adCopy",
+ "budget"
+ ],
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "content": {
+ "additionalProperties": false,
+ "properties": {
+ "playlist": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "itemCount": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "thumbnailUrl": {
+ "anyOf": [
+ {
+ "format": "uri",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "title": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "itemCount",
+ "thumbnailUrl",
+ "title"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "screening": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "matches": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "category": {
+ "enum": [
+ "Illicit Drugs",
+ "Sexual",
+ "Violent",
+ "Firearms & Weapons",
+ "Profanity",
+ "Death, Harm & Tragedy"
+ ],
+ "type": "string"
+ },
+ "score": {
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "category",
+ "score"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "status": {
+ "enum": [
+ "clear",
+ "warning",
+ "rejected",
+ "unavailable"
+ ],
+ "type": "string"
+ },
+ "unavailableReason": {
+ "anyOf": [
+ {
+ "enum": [
+ "language_api_failed",
+ "language_api_unauthorized",
+ "missing_credentials",
+ "transcript_unavailable",
+ "video_not_found",
+ "request_failed"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "videoId": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "matches",
+ "status",
+ "unavailableReason",
+ "videoId"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "strategy": {
+ "anyOf": [
+ {
+ "enum": [
+ "CHEAPEST_VIEWS",
+ "ORGANIC_VIEWS",
+ "SUBSCRIBERS",
+ "ORGANIC_VIEWS_AND_SUBSCRIBERS",
+ "ADSENSE_ROI"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "video": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "durationSeconds": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "isPromoted": {
+ "type": "boolean"
+ },
+ "publishedAt": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "thumbnailUrl": {
+ "anyOf": [
+ {
+ "format": "uri",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "title": {
+ "type": "string"
+ },
+ "videoId": {
+ "type": "string"
+ },
+ "viewCount": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "views28d": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "watchMinutes28d": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "durationSeconds",
+ "isPromoted",
+ "publishedAt",
+ "thumbnailUrl",
+ "title",
+ "videoId",
+ "viewCount",
+ "views28d",
+ "watchMinutes28d"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "playlist",
+ "screening",
+ "strategy",
+ "video"
+ ],
+ "type": "object"
+ },
+ "generationJobId": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "location": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "countries": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "maxLength": 2,
+ "minLength": 2,
+ "type": "string"
+ },
+ "name": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "name"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "mode": {
+ "enum": [
+ "GLOBAL",
+ "COUNTRIES"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "countries",
+ "mode"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "updatedAt": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "activeStep",
+ "adCopy",
+ "budget",
+ "campaignId",
+ "completedSteps",
+ "content",
+ "generationJobId",
+ "location",
+ "updatedAt"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "minimumPreservedAdCopyCharacters": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "playlistLoadStatus": {
+ "enum": [
+ "load_error",
+ "ready"
+ ],
+ "type": "string"
+ },
+ "playlists": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "itemCount": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "thumbnailUrl": {
+ "anyOf": [
+ {
+ "format": "uri",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "title": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "itemCount",
+ "thumbnailUrl",
+ "title"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "setupPrereqs": {
+ "items": {
+ "enum": [
+ "artist_access",
+ "billing",
+ "billing_suspended",
+ "prereqs_unavailable",
+ "youtube_connection",
+ "google_ads_permission"
+ ],
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "steps": {
+ "items": false,
+ "maxItems": 4,
+ "minItems": 4,
+ "prefixItems": [
+ {
+ "const": "content",
+ "type": "string"
+ },
+ {
+ "const": "location",
+ "type": "string"
+ },
+ {
+ "const": "adCopy",
+ "type": "string"
+ },
+ {
+ "const": "budget",
+ "type": "string"
+ }
+ ],
+ "type": "array"
+ },
+ "strategies": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "fixedBudgetType": {
+ "anyOf": [
+ {
+ "const": "TOTAL",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "isAvailable": {
+ "type": "boolean"
+ },
+ "isRecommended": {
+ "type": "boolean"
+ },
+ "key": {
+ "enum": [
+ "CHEAPEST_VIEWS",
+ "ORGANIC_VIEWS",
+ "SUBSCRIBERS",
+ "ORGANIC_VIEWS_AND_SUBSCRIBERS",
+ "ADSENSE_ROI"
+ ],
+ "type": "string"
+ },
+ "requiresPlaylist": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "fixedBudgetType",
+ "isAvailable",
+ "isRecommended",
+ "key",
+ "requiresPlaylist"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "artistId",
+ "artistName",
+ "availableCountries",
+ "blockingPrereqs",
+ "budgetPolicy",
+ "channel",
+ "draft",
+ "minimumPreservedAdCopyCharacters",
+ "playlistLoadStatus",
+ "playlists",
+ "setupPrereqs",
+ "steps",
+ "strategies"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "adCopy",
+ "budget",
+ "creative",
+ "draft",
+ "location",
+ "youtube"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "items": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "createdAt": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "eligibleForPromotion": {
+ "type": [
+ "boolean",
+ "null"
+ ]
+ },
+ "fileName": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "fileSizeBytes": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "type": "string"
+ },
+ "mediaType": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "moderationStatus": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "text": {
+ "type": "string"
+ },
+ "thumbnailUrl": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "eligibleForPromotion",
+ "id",
+ "text"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "nextCursor": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "source": {
+ "enum": [
+ "facebook",
+ "instagram",
+ "uploads"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "items",
+ "nextCursor",
+ "source"
+ ],
+ "type": "object"
+ }
+]