changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "$defs": {
+ "AgentCronTriggerTarget": {
+ "properties": {
+ "agent_id": {
+ "$ref": "#/$defs/AgentID",
+ "description": "Agent that receives each message."
+ },
+ "delivery_mode": {
+ "$ref": "#/$defs/CronTriggerDeliveryMode",
+ "description": "How each message is delivered: queued (default) or steering."
+ },
+ "type": {
+ "description": "agent: send each message to an existing agent.",
+ "enum": [
+ "agent"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "agent_id"
+ ],
+ "type": "object"
+ },
+ "AgentID": {
+ "pattern": "^agt_[a-z2-7]{26}$",
+ "type": "string"
+ },
+ "AgentProfileCronTriggerTarget": {
+ "properties": {
+ "agent_profile_id": {
+ "$ref": "#/$defs/AgentProfileID",
+ "description": "Profile to launch a new agent from on each run."
+ },
+ "type": {
+ "description": "profile: launch a new agent on each run.",
+ "enum": [
+ "profile"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "agent_profile_id"
+ ],
+ "type": "object"
+ },
+ "AgentProfileID": {
+ "pattern": "^aprf_[a-z2-7]{26}$",
+ "type": "string"
+ },
+ "CronExpression": {
+ "description": "Standard five-field cron expression (minute, hour, day of month, month, day of week). `TZ=`/`CRON_TZ=` prefixes are rejected; set the `timezone` field instead.",
+ "maxLength": 256,
+ "minLength": 9,
+ "type": "string"
+ },
+ "CronMessageTemplate": {
+ "description": "Go text/template rendered on each firing to produce the message sent to the target. The template receives a `trigger` value with `name`, `fired_at`, `last_fired_at`, and `local_date` fields. Timestamps remain UTC; local_date is the scheduled occurrence's ISO date in the schedule timezone. Required for agent and profile targets; omitted for integration targets, which use their own settings. Rendering is capped at 64 KiB of output and one second of wall-clock time, and `printf` width and precision specifiers are capped at 1024; a firing whose template fails to render is recorded in `failure_report` without sending a message.",
+ "maxLength": 65536,
+ "type": "string"
+ },
+ "CronTimezone": {
+ "default": "UTC",
+ "description": "IANA time zone the schedule is evaluated in.",
+ "maxLength": 64,
+ "type": "string"
+ },
+ "CronTriggerDeliveryMode": {
+ "description": "Each firing sends a queued or steering message to the agent. Defaults to `queued` on creation; omitted updates preserve the current mode.",
+ "enum": [
+ "queued",
+ "steering"
+ ],
+ "type": "string"
+ },
+ "CronTriggerFailureReport": {
+ "properties": {
+ "failed_at": {
+ "$ref": "#/$defs/Timestamp"
+ },
+ "message": {
+ "description": "Why the most recent failed firing did not deliver a message.",
+ "type": "string"
+ },
+ "will_retry": {
+ "description": "Whether the firing will be retried after the claim lease expires.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "message",
+ "will_retry",
+ "failed_at"
+ ],
+ "type": "object"
+ },
+ "CronTriggerID": {
+ "pattern": "^cron_[a-z2-7]{26}$",
+ "type": "string"
+ },
+ "CronTriggerLastRun": {
+ "properties": {
+ "created_at": {
+ "$ref": "#/$defs/Timestamp"
+ },
+ "failure_message": {
+ "description": "Coarse scheduled action failure description; no raw provider errors.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "state": {
+ "$ref": "#/$defs/CronTriggerLastRunState"
+ },
+ "updated_at": {
+ "$ref": "#/$defs/Timestamp"
+ }
+ },
+ "required": [
+ "state",
+ "created_at",
+ "updated_at",
+ "failure_message"
+ ],
+ "type": "object"
+ },
+ "CronTriggerLastRunState": {
+ "description": "State of the latest accepted scheduled integration action. Completed means the integration handled the occurrence; it does not indicate completion of any agent task that action started.",
+ "enum": [
+ "queued",
+ "processing",
+ "completed",
+ "failed"
+ ],
+ "type": "string"
+ },
+ "CronTriggerTarget": {
+ "description": "What each firing does: type agent sends the message to an existing agent, type profile launches a new agent from a profile, and type integration hands the firing to an integration, such as a new Slack or Discord thread.",
+ "discriminator": {
+ "mapping": {
+ "agent": "#/$defs/AgentCronTriggerTarget",
+ "integration": "#/$defs/IntegrationCronTriggerTarget",
+ "profile": "#/$defs/AgentProfileCronTriggerTarget"
+ },
+ "propertyName": "type"
+ },
+ "oneOf": [
+ {
+ "$ref": "#/$defs/AgentCronTriggerTarget"
+ },
+ {
+ "$ref": "#/$defs/AgentProfileCronTriggerTarget"
+ },
+ {
+ "$ref": "#/$defs/IntegrationCronTriggerTarget"
+ }
+ ]
+ },
+ "IntegrationCronTriggerTarget": {
+ "properties": {
+ "integration_id": {
+ "$ref": "#/$defs/IntegrationID",
+ "description": "Integration that handles each run."
+ },
+ "settings": {
+ "additionalProperties": true,
+ "description": "Settings validated by the target integration's published schedule input schema. Each accepted occurrence retains its own copy. Integration resource references are resolved when the integration handles the occurrence.",
+ "type": "object"
+ },
+ "type": {
+ "description": "integration: hand each run to an integration.",
+ "enum": [
+ "integration"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "integration_id",
+ "settings"
+ ],
+ "type": "object"
+ },
+ "IntegrationID": {
+ "pattern": "^itg_[a-z2-7]{26}$",
+ "type": "string"
+ },
+ "OrganizationID": {
+ "pattern": "^org_[a-z2-7]{26}$",
+ "type": "string"
+ },
+ "ProjectID": {
+ "description": "Project ID (proj_...).",
+ "pattern": "^proj_[a-z2-7]{26}$",
+ "type": "string"
+ },
+ "ResourceName": {
+ "description": "Human-readable name. Spaces and punctuation are allowed; leading or trailing whitespace and invisible or control characters are not.",
+ "maxLength": 64,
+ "minLength": 1,
+ "type": "string"
+ },
+ "Timestamp": {
+ "format": "date-time",
+ "type": "string"
+ }
+ },
+ "properties": {
+ "created_at": {
+ "$ref": "#/$defs/Timestamp"
+ },
+ "cron": {
+ "$ref": "#/$defs/CronExpression"
+ },
+ "enabled": {
+ "type": "boolean"
+ },
+ "failure_report": {
+ "description": "Most recent failed firing, or null if no firing has failed since the last successful firing.",
+ "oneOf": [
+ {
+ "$ref": "#/$defs/CronTriggerFailureReport"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "$ref": "#/$defs/CronTriggerID"
+ },
+ "last_fired_at": {
+ "description": "When the trigger last fired, or null if it has never fired. For integration targets this means durable inbox handoff.",
+ "oneOf": [
+ {
+ "$ref": "#/$defs/Timestamp"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "last_run": {
+ "description": "Status of the latest accepted scheduled integration launch, scoped to this project and integration. Null for ordinary cron, before any launch is accepted, or when retained details have expired. Never falls back to an older launch. Schedule firing failures remain separate in failure_report. Deleting or disabling a schedule does not cancel launch work already accepted by the integration.",
+ "oneOf": [
+ {
+ "$ref": "#/$defs/CronTriggerLastRun"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "message_template": {
+ "$ref": "#/$defs/CronMessageTemplate"
+ },
+ "name": {
+ "$ref": "#/$defs/ResourceName"
+ },
+ "next_fire_at": {
+ "description": "Next scheduled firing, or null while the trigger is disabled.",
+ "oneOf": [
+ {
+ "$ref": "#/$defs/Timestamp"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "org_id": {
+ "$ref": "#/$defs/OrganizationID"
+ },
+ "project_id": {
+ "$ref": "#/$defs/ProjectID"
+ },
+ "target": {
+ "$ref": "#/$defs/CronTriggerTarget"
+ },
+ "timezone": {
+ "$ref": "#/$defs/CronTimezone"
+ },
+ "updated_at": {
+ "$ref": "#/$defs/Timestamp"
+ }
+ },
+ "required": [
+ "id",
+ "org_id",
+ "project_id",
+ "name",
+ "target",
+ "cron",
+ "timezone",
+ "enabled",
+ "last_fired_at",
+ "next_fire_at",
+ "failure_report",
+ "last_run",
+ "created_at",
+ "updated_at"
+ ],
+ "type": "object"
+}