changedOutput schema / oneOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "ok": {
- "const": true,
- "type": "boolean"
- },
- "output": {
- "additionalProperties": false,
- "properties": {
- "availableCredits": {
- "minimum": 0,
- "type": "number"
- },
- "enabled": {
- "type": "boolean"
- },
- "generationCreditHold": {
- "minimum": 0,
- "type": "number"
- },
- "imageGenerationEnabled": {
- "type": "boolean"
- },
- "latestRun": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "createdAt": {
- "$ref": "#/$defs/__schema0"
- },
- "deadline": {
- "$ref": "#/$defs/__schema0"
- },
- "errorCode": {
- "maxLength": 128,
- "type": "string"
- },
- "planPublicId": {
- "$ref": "#/$defs/__schema1"
- },
- "publicId": {
- "$ref": "#/$defs/__schema1"
- },
- "status": {
- "enum": [
- "queued",
- "running",
- "completed",
- "failed",
- "canceled"
- ],
- "type": "string"
- }
- },
- "required": [
- "createdAt",
- "deadline",
- "planPublicId",
- "publicId",
- "status"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "reservedCredits": {
- "minimum": 0,
- "type": "number"
- },
- "selected": {
- "additionalProperties": false,
- "properties": {
- "context": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "brandProfileRevisionPublicId": {
- "anyOf": [
- {
- "$ref": "#/$defs/__schema2"
- },
- {
- "type": "null"
- }
- ]
- },
- "brandProfileSha256": {
- "anyOf": [
- {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "companyIdentity": {
- "maxLength": 2048,
- "minLength": 1,
- "type": "string"
- },
- "guidelines": {
- "additionalProperties": false,
- "properties": {
- "approvedClaims": {
- "$ref": "#/$defs/__schema3"
- },
- "companyDescription": {
- "$ref": "#/$defs/__schema5"
- },
- "companyName": {
- "$ref": "#/$defs/__schema6"
- },
- "examples": {
- "$ref": "#/$defs/__schema3"
- },
- "preferences": {
- "$ref": "#/$defs/__schema3"
- },
- "voiceRules": {
- "$ref": "#/$defs/__schema3"
- }
- },
- "required": [
- "approvedClaims",
- "companyDescription",
- "companyName",
- "examples",
- "preferences",
- "voiceRules"
- ],
- "type": "object"
- },
- "guidelinesVersion": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "brandProfileRevisionPublicId",
- "brandProfileSha256",
- "companyIdentity",
- "guidelines",
- "guidelinesVersion"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "contextStale": {
- "type": "boolean"
- },
- "conversation": {
- "items": {
- "$ref": "#/$defs/__schema7"
- },
- "maxItems": 40,
- "type": "array"
- },
- "conversationMediaAssetIds": {
- "items": {
- "$ref": "#/$defs/__schema1"
- },
- "maxItems": 6,
- "type": "array"
- },
- "conversationTargets": {
- "items": {
- "$ref": "#/$defs/__schema28"
- },
- "maxItems": 24,
- "type": "array"
- },
- "conversationWhatsAppTargets": {
- "items": {
- "$ref": "#/$defs/__schema32"
- },
- "maxItems": 24,
- "type": "array"
- },
- "document": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "brief": {
- "maxLength": 4000,
- "type": "string"
- },
- "defaultTargets": {
- "items": {
- "$ref": "#/$defs/__schema46"
- },
- "maxItems": 24,
- "type": "array"
- },
- "defaultWhatsAppTargets": {
- "items": {
- "$ref": "#/$defs/__schema32"
- },
- "maxItems": 24,
- "type": "array"
- },
- "groups": {
- "items": {
- "$ref": "#/$defs/__schema49"
- },
- "maxItems": 12,
- "minItems": 1,
- "type": "array"
- },
- "timezone": {
- "maxLength": 100,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "brief",
- "groups",
- "timezone"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "preferences": {
- "additionalProperties": false,
- "properties": {
- "composition": {
- "enum": [
- "post",
- "campaign"
- ],
- "type": "string"
- },
- "optimizePerDestination": {
- "type": "boolean"
- },
- "useBrandContext": {
- "type": "boolean"
- }
- },
- "required": [
- "composition",
- "optimizePerDestination",
- "useBrandContext"
- ],
- "type": "object"
- },
- "publicId": {
- "$ref": "#/$defs/__schema1"
- },
- "receipt": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "approvedAt": {
- "$ref": "#/$defs/__schema0"
- },
- "campaigns": {
- "items": {
- "$ref": "#/$defs/__schema53"
- },
- "maxItems": 12,
- "type": "array"
- }
- },
- "required": [
- "approvedAt",
- "campaigns"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "status": {
- "enum": [
- "draft",
- "approved"
- ],
- "type": "string"
- },
- "title": {
- "maxLength": 200,
- "type": "string"
- },
- "version": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "context",
- "contextStale",
- "document",
- "preferences",
- "publicId",
- "receipt",
- "status",
- "title",
- "version"
- ],
- "type": "object"
- }
- },
- "required": [
- "availableCredits",
- "enabled",
- "generationCreditHold",
- "imageGenerationEnabled",
- "latestRun",
- "reservedCredits",
- "selected"
- ],
- "type": "object"
- },
- "toolName": {
- "const": "campaignPlanGet",
- "type": "string"
- }
- },
- "required": [
- "ok",
- "output",
- "toolName"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "error": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "enum": [
- "INVALID_INPUT",
- "FORBIDDEN",
- "NOT_FOUND",
- "CONFLICT",
- "FEATURE_DISABLED",
- "CONFIRMATION_REQUIRED",
- "CONFIRMATION_INVALID",
- "UPSTREAM_FAILED",
- "NEEDS_REVIEW",
- "INTERNAL"
- ],
- "type": "string"
- },
- "message": {
- "maxLength": 2048,
- "minLength": 1,
- "type": "string"
- },
- "retryable": {
- "type": "boolean"
- }
- },
- "required": [
- "code",
- "message",
- "retryable"
- ],
- "type": "object"
- },
- "ok": {
- "const": false,
- "type": "boolean"
- },
- "toolName": {
- "const": "campaignPlanGet",
- "type": "string"
- }
- },
- "required": [
- "error",
- "ok",
- "toolName"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ok": {
+ "const": true,
+ "type": "boolean"
+ },
+ "output": {
+ "additionalProperties": false,
+ "properties": {
+ "availableCredits": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "enabled": {
+ "type": "boolean"
+ },
+ "generationCreditHold": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "imageGenerationEnabled": {
+ "type": "boolean"
+ },
+ "latestRun": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "createdAt": {
+ "$ref": "#/$defs/__schema0"
+ },
+ "deadline": {
+ "$ref": "#/$defs/__schema0"
+ },
+ "errorCode": {
+ "maxLength": 128,
+ "type": "string"
+ },
+ "planPublicId": {
+ "$ref": "#/$defs/__schema1"
+ },
+ "publicId": {
+ "$ref": "#/$defs/__schema1"
+ },
+ "status": {
+ "enum": [
+ "queued",
+ "running",
+ "completed",
+ "failed",
+ "canceled"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "createdAt",
+ "deadline",
+ "planPublicId",
+ "publicId",
+ "status"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "reservedCredits": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "selected": {
+ "additionalProperties": false,
+ "properties": {
+ "aiSchedulingAllowance": {
+ "additionalProperties": false,
+ "properties": {
+ "limit": {
+ "anyOf": [
+ {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "nextAvailableAt": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "remaining": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "limit",
+ "nextAvailableAt",
+ "remaining"
+ ],
+ "type": "object"
+ },
+ "context": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "brandProfileRevisionPublicId": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/__schema2"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "brandProfileSha256": {
+ "anyOf": [
+ {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "companyIdentity": {
+ "maxLength": 2048,
+ "minLength": 1,
+ "type": "string"
+ },
+ "guidelines": {
+ "additionalProperties": false,
+ "properties": {
+ "approvedClaims": {
+ "$ref": "#/$defs/__schema3"
+ },
+ "companyDescription": {
+ "$ref": "#/$defs/__schema5"
+ },
+ "companyName": {
+ "$ref": "#/$defs/__schema6"
+ },
+ "examples": {
+ "$ref": "#/$defs/__schema3"
+ },
+ "preferences": {
+ "$ref": "#/$defs/__schema3"
+ },
+ "voiceRules": {
+ "$ref": "#/$defs/__schema3"
+ }
+ },
+ "required": [
+ "approvedClaims",
+ "companyDescription",
+ "companyName",
+ "examples",
+ "preferences",
+ "voiceRules"
+ ],
+ "type": "object"
+ },
+ "guidelinesVersion": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "brandProfileRevisionPublicId",
+ "brandProfileSha256",
+ "companyIdentity",
+ "guidelines",
+ "guidelinesVersion"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "contextStale": {
+ "type": "boolean"
+ },
+ "conversation": {
+ "items": {
+ "$ref": "#/$defs/__schema7"
+ },
+ "maxItems": 40,
+ "type": "array"
+ },
+ "conversationMediaAssetIds": {
+ "items": {
+ "$ref": "#/$defs/__schema1"
+ },
+ "maxItems": 6,
+ "type": "array"
+ },
+ "conversationTargets": {
+ "items": {
+ "$ref": "#/$defs/__schema28"
+ },
+ "maxItems": 24,
+ "type": "array"
+ },
+ "conversationWhatsAppTargets": {
+ "items": {
+ "$ref": "#/$defs/__schema32"
+ },
+ "maxItems": 24,
+ "type": "array"
+ },
+ "document": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "brief": {
+ "maxLength": 4000,
+ "type": "string"
+ },
+ "defaultTargets": {
+ "items": {
+ "$ref": "#/$defs/__schema46"
+ },
+ "maxItems": 24,
+ "type": "array"
+ },
+ "defaultWhatsAppTargets": {
+ "items": {
+ "$ref": "#/$defs/__schema32"
+ },
+ "maxItems": 24,
+ "type": "array"
+ },
+ "groups": {
+ "items": {
+ "$ref": "#/$defs/__schema49"
+ },
+ "maxItems": 12,
+ "minItems": 1,
+ "type": "array"
+ },
+ "timezone": {
+ "maxLength": 100,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "brief",
+ "groups",
+ "timezone"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "preferences": {
+ "additionalProperties": false,
+ "properties": {
+ "composition": {
+ "enum": [
+ "post",
+ "campaign"
+ ],
+ "type": "string"
+ },
+ "optimizePerDestination": {
+ "type": "boolean"
+ },
+ "useBrandContext": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "composition",
+ "optimizePerDestination",
+ "useBrandContext"
+ ],
+ "type": "object"
+ },
+ "publicId": {
+ "$ref": "#/$defs/__schema1"
+ },
+ "receipt": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "approvedAt": {
+ "$ref": "#/$defs/__schema0"
+ },
+ "campaigns": {
+ "items": {
+ "$ref": "#/$defs/__schema53"
+ },
+ "maxItems": 12,
+ "type": "array"
+ }
+ },
+ "required": [
+ "approvedAt",
+ "campaigns"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "status": {
+ "enum": [
+ "draft",
+ "approved"
+ ],
+ "type": "string"
+ },
+ "title": {
+ "maxLength": 200,
+ "type": "string"
+ },
+ "version": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "context",
+ "contextStale",
+ "document",
+ "preferences",
+ "publicId",
+ "receipt",
+ "status",
+ "title",
+ "version"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "availableCredits",
+ "enabled",
+ "generationCreditHold",
+ "imageGenerationEnabled",
+ "latestRun",
+ "reservedCredits",
+ "selected"
+ ],
+ "type": "object"
+ },
+ "toolName": {
+ "const": "campaignPlanGet",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ok",
+ "output",
+ "toolName"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "enum": [
+ "AI_SCHEDULING_LIMIT_REACHED",
+ "AI_SCHEDULING_UNAVAILABLE",
+ "INVALID_INPUT",
+ "FORBIDDEN",
+ "NOT_FOUND",
+ "CONFLICT",
+ "FEATURE_DISABLED",
+ "CONFIRMATION_REQUIRED",
+ "CONFIRMATION_INVALID",
+ "UPSTREAM_FAILED",
+ "NEEDS_REVIEW",
+ "INTERNAL"
+ ],
+ "type": "string"
+ },
+ "message": {
+ "maxLength": 2048,
+ "minLength": 1,
+ "type": "string"
+ },
+ "retryable": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "retryable"
+ ],
+ "type": "object"
+ },
+ "ok": {
+ "const": false,
+ "type": "boolean"
+ },
+ "toolName": {
+ "const": "campaignPlanGet",
+ "type": "string"
+ }
+ },
+ "required": [
+ "error",
+ "ok",
+ "toolName"
+ ],
+ "type": "object"
+ }
+]