edit_campaign_sequence
Edit a campaign's sequence in either shape — the grouped steps save or the ADR-067 builder (steps, variants, positions, content, run policy, entry delay) — and manage reusable sequences and subsequence trigger sets.
# MCP tool reference
1 callable tools.
Use tools/call at https://mcp.schedulerzero.com/mcp with the exact tool name and arguments below. The /tools/ paths in this view are documentation identifiers, not HTTP endpoints. Request execution is disabled for this reference.
Inputs are shown for personal API keys (bound) and for OAuth/delegated agents. Output schemas describe MCP structuredContent: native objects pass through; arrays, scalars and null use a data wrapper. Text content retains the native JSON result.
[Connect a client](/mcp/connect) · [Authentication and authorization](/authentication) · [Generated auth guide](/auth.md) · [Download tool catalog](/mcp-catalog.json) · [Agent documentation](/llms.txt)
## edit_campaign_sequence
Edit a campaign's sequence in either shape — the grouped steps save or the ADR-067 builder (steps, variants, positions, content, run policy, entry delay) — and manage reusable sequences and subsequence trigger sets.
Use to author or revise what a campaign sends. Every mutation answers the full updated sequence document with its new revision; pass expectedRevision / expectedSequenceRevision when the client has a snapshot.
Positions are server-owned and deletions tombstone retained execution identities — do not try to renumber steps or rewrite send history. A step's last variant is deleted by deleting the step, and edits are refused while a contact is task-pending on the affected variant.
Obtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.
Scopes: campaign:create, campaign:update, sequence:create, sequence:update, sequence:delete
Risk: write; confirmation: explicit; idempotency: supported.
### Input schema (personal API key)
```json
{
"type": "object",
"anyOf": [
{
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"save"
]
},
"workspaceId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"campaignId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"payload": {
"type": "object",
"properties": {
"expectedSequenceRevision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"initialDelayMinutes": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 43200
},
{
"type": "null"
}
]
},
"steps": {
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"email_content"
]
},
"stepId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"dbId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"status": {
"type": "string",
"enum": [
"draft",
"saved"
]
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 365
},
{
"type": "null"
}
]
},
"delayMinutes": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"bodyFormat": {
"type": "string",
"enum": [
"inherit",
"plain",
"html"
]
},
"previousThreadSelection": {
"anyOf": [
{
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": [
"all",
"latest",
"custom"
]
},
"stepIds": {
"type": "array",
"items": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
}
}
},
"required": [
"mode"
],
"patternProperties": {
"^(?!(?:mode|stepIds)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"mode",
"stepIds"
]
}
},
{
"type": "null"
}
]
},
"variants": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"variantOrder": {
"type": "integer",
"minimum": 1
},
"enabled": {
"type": "boolean"
},
"subject": {
"anyOf": [
{
"type": "object",
"properties": {
"root": {
"$ref": "#/$defs/Union_"
}
},
"required": [
"root"
],
"patternProperties": {
"^(?!(?:root)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"root"
]
}
]
}
},
{
"type": "null"
}
]
},
"body": {
"anyOf": [
{
"type": "object",
"properties": {
"root": {
"$ref": "#/$defs/Union_"
}
},
"required": [
"root"
],
"patternProperties": {
"^(?!(?:root)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"root"
]
}
]
}
},
{
"type": "null"
}
]
},
"status": {
"type": "string",
"enum": [
"draft",
"saved"
]
}
},
"required": [
"variantOrder"
],
"patternProperties": {
"^(?!(?:id|variantOrder|enabled|subject|body|status)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"variantOrder",
"enabled",
"subject",
"body",
"status"
]
}
},
"maxItems": 26
}
},
"required": [
"type",
"delayMinutes",
"variants"
],
"patternProperties": {
"^(?!(?:type|stepId|dbId|status|runMode|rearmAfterDays|delayMinutes|bodyFormat|previousThreadSelection|variants)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"stepId",
"dbId",
"status",
"runMode",
"rearmAfterDays",
"delayMinutes",
"bodyFormat",
"previousThreadSelection",
"variants"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"manual_review"
]
},
"stepId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"dbId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"status": {
"type": "string",
"enum": [
"draft",
"saved"
]
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 365
},
{
"type": "null"
}
]
},
"delayMinutes": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"notificationMessage": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|stepId|dbId|status|runMode|rearmAfterDays|delayMinutes|notificationMessage)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"stepId",
"dbId",
"status",
"runMode",
"rearmAfterDays",
"delayMinutes",
"notificationMessage"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"linked_in_connection_request"
]
},
"stepId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"dbId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"status": {
"type": "string",
"enum": [
"draft",
"saved"
]
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 365
},
{
"type": "null"
}
]
},
"delayMinutes": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"connectionNote": {
"anyOf": [
{
"type": "string",
"maxLength": 300
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|stepId|dbId|status|runMode|rearmAfterDays|delayMinutes|connectionNote)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"stepId",
"dbId",
"status",
"runMode",
"rearmAfterDays",
"delayMinutes",
"connectionNote"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"linked_in_in_mail"
]
},
"stepId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"dbId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"status": {
"type": "string",
"enum": [
"draft",
"saved"
]
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 365
},
{
"type": "null"
}
]
},
"delayMinutes": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"subject": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"body": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|stepId|dbId|status|runMode|rearmAfterDays|delayMinutes|subject|body)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"stepId",
"dbId",
"status",
"runMode",
"rearmAfterDays",
"delayMinutes",
"subject",
"body"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"phone_call"
]
},
"stepId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"dbId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"status": {
"type": "string",
"enum": [
"draft",
"saved"
]
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 365
},
{
"type": "null"
}
]
},
"delayMinutes": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"script": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|stepId|dbId|status|runMode|rearmAfterDays|delayMinutes|script)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"stepId",
"dbId",
"status",
"runMode",
"rearmAfterDays",
"delayMinutes",
"script"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"text_message"
]
},
"stepId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"dbId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"status": {
"type": "string",
"enum": [
"draft",
"saved"
]
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 365
},
{
"type": "null"
}
]
},
"delayMinutes": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"message": {
"anyOf": [
{
"type": "string",
"maxLength": 1600
},
{
"type": "null"
}
]
},
"mediaUrl": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|stepId|dbId|status|runMode|rearmAfterDays|delayMinutes|message|mediaUrl)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"stepId",
"dbId",
"status",
"runMode",
"rearmAfterDays",
"delayMinutes",
"message",
"mediaUrl"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"http_post_request"
]
},
"stepId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"dbId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"status": {
"type": "string",
"enum": [
"draft",
"saved"
]
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 365
},
{
"type": "null"
}
]
},
"delayMinutes": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"headers": {
"anyOf": [
{
"type": "object",
"additionalProperties": {
"type": "string"
}
},
{
"type": "null"
}
]
},
"bodyTemplate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|stepId|dbId|status|runMode|rearmAfterDays|delayMinutes|url|headers|bodyTemplate)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"stepId",
"dbId",
"status",
"runMode",
"rearmAfterDays",
"delayMinutes",
"url",
"headers",
"bodyTemplate"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"heyreach_campaign"
]
},
"stepId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"dbId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"status": {
"type": "string",
"enum": [
"draft",
"saved"
]
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 365
},
{
"type": "null"
}
]
},
"delayMinutes": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"connectionId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"campaignId": {
"anyOf": [
{
"type": "integer",
"minimum": 1
},
{
"type": "null"
}
]
},
"campaignName": {
"anyOf": [
{
"type": "string",
"maxLength": 500
},
{
"type": "null"
}
]
},
"linkedInAccountId": {
"anyOf": [
{
"type": "integer",
"minimum": 1
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|stepId|dbId|status|runMode|rearmAfterDays|delayMinutes|connectionId|campaignId|campaignName|linkedInAccountId)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"stepId",
"dbId",
"status",
"runMode",
"rearmAfterDays",
"delayMinutes",
"connectionId",
"campaignId",
"campaignName",
"linkedInAccountId"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"attio_task"
]
},
"stepId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"dbId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"status": {
"type": "string",
"enum": [
"draft",
"saved"
]
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 365
},
{
"type": "null"
}
]
},
"delayMinutes": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"content": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"assigneeMemberIds": {
"type": "array",
"items": {
"type": "string"
}
},
"onMissingAssignee": {
"type": "string",
"enum": [
"skip",
"fail"
]
},
"deadlineOffsetDays": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"personLink": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"sourceVariable": {
"type": "string"
},
"matchBy": {
"type": "string",
"enum": [
"email",
"domain",
"record_id"
]
},
"createIfMissing": {
"type": "boolean"
}
},
"required": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
],
"patternProperties": {
"^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
]
}
},
"companyLink": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"sourceVariable": {
"type": "string"
},
"matchBy": {
"type": "string",
"enum": [
"email",
"domain",
"record_id"
]
},
"createIfMissing": {
"type": "boolean"
}
},
"required": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
],
"patternProperties": {
"^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
]
}
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|stepId|dbId|status|runMode|rearmAfterDays|delayMinutes|content|assigneeMemberIds|onMissingAssignee|deadlineOffsetDays|personLink|companyLink)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"stepId",
"dbId",
"status",
"runMode",
"rearmAfterDays",
"delayMinutes",
"content",
"assigneeMemberIds",
"onMissingAssignee",
"deadlineOffsetDays",
"personLink",
"companyLink"
]
}
}
]
},
"maxItems": 100
}
},
"required": [
"steps"
],
"patternProperties": {
"^(?!(?:expectedSequenceRevision|initialDelayMinutes|steps)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"expectedSequenceRevision",
"initialDelayMinutes",
"steps"
]
}
}
},
"required": [
"action",
"workspaceId",
"campaignId",
"payload"
],
"patternProperties": {
"^(?!(?:action|workspaceId|campaignId|payload)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId",
"payload"
]
}
},
{
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"update_step"
]
},
"workspaceId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"campaignId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"stepId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"payload": {
"type": "object",
"properties": {
"stepOrder": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"variantOrder": {
"type": "integer",
"minimum": 1
},
"delayMinutes": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"subject": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"body": {
"anyOf": [
{
"type": "null"
},
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/Union_"
}
},
{
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
]
},
"notificationMessage": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"manualStepType": {
"type": "string",
"enum": [
"notify_and_continue",
"notify_and_wait"
]
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 365
},
{
"type": "null"
}
]
}
},
"patternProperties": {
"^(?!(?:stepOrder|variantOrder|delayMinutes|subject|body|notificationMessage|manualStepType|runMode|rearmAfterDays)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"stepOrder",
"variantOrder",
"delayMinutes",
"subject",
"body",
"notificationMessage",
"manualStepType",
"runMode",
"rearmAfterDays"
]
}
}
},
"required": [
"action",
"workspaceId",
"campaignId",
"stepId",
"payload"
],
"patternProperties": {
"^(?!(?:action|workspaceId|campaignId|stepId|payload)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId",
"stepId",
"payload"
]
}
},
{
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"toggle_enabled"
]
},
"workspaceId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"campaignId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"stepId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
}
},
"required": [
"action",
"workspaceId",
"campaignId",
"stepId"
],
"patternProperties": {
"^(?!(?:action|workspaceId|campaignId|stepId)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId",
"stepId"
]
}
},
{
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"delete_step"
]
},
"workspaceId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"campaignId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"stepId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
}
},
"required": [
"action",
"workspaceId",
"campaignId",
"stepId"
],
"patternProperties": {
"^(?!(?:action|workspaceId|campaignId|stepId)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId",
"stepId"
]
}
},
{
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"delete_all"
]
},
"workspaceId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"campaignId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
}
},
"required": [
"action",
"workspaceId",
"campaignId"
],
"patternProperties": {
"^(?!(?:action|workspaceId|campaignId)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId"
]
}
},
{
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"create_step"
]
},
"workspaceId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"campaignId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"payload": {
"type": "object",
"properties": {
"id": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"type": {
"type": "string",
"enum": [
"email_content",
"manual_review",
"linked_in_connection_request",
"linked_in_in_mail",
"phone_call",
"text_message",
"http_post_request",
"attio_task",
"heyreach_campaign"
]
},
"afterStepId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"waitFor": {
"type": "integer",
"minimum": 0
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 365
},
{
"type": "null"
}
]
},
"bodyFormat": {
"type": "string",
"enum": [
"inherit",
"plain",
"html"
]
},
"previousThreadSelection": {
"anyOf": [
{
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": [
"all",
"latest",
"custom"
]
},
"stepIds": {
"type": "array",
"items": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
}
}
},
"required": [
"mode"
],
"patternProperties": {
"^(?!(?:mode|stepIds)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"mode",
"stepIds"
]
}
},
{
"type": "null"
}
]
},
"enabled": {
"type": "boolean"
},
"variants": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"content": {
"anyOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"email_content"
]
},
"subject": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
},
"body": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"html"
]
},
"html": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"html"
],
"patternProperties": {
"^(?!(?:format|html)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"html"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|subject|body)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"subject",
"body"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"manual_review"
]
},
"stepType": {
"type": "string",
"enum": [
"notify_and_continue",
"notify_and_wait"
]
},
"notificationMessage": {
"type": "string",
"maxLength": 10000
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|stepType|notificationMessage)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"stepType",
"notificationMessage"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"linked_in_connection_request"
]
},
"message": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"html"
]
},
"html": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"html"
],
"patternProperties": {
"^(?!(?:format|html)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"html"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|message)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"message"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"linked_in_in_mail"
]
},
"subject": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
},
"body": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"html"
]
},
"html": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"html"
],
"patternProperties": {
"^(?!(?:format|html)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"html"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|subject|body)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"subject",
"body"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"phone_call"
]
},
"script": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"html"
]
},
"html": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"html"
],
"patternProperties": {
"^(?!(?:format|html)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"html"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|script)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"script"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"text_message"
]
},
"message": {
"anyOf": [
{
"type": "string",
"maxLength": 1600
},
{
"type": "null"
}
]
},
"mediaUrl": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|message|mediaUrl)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"message",
"mediaUrl"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"http_post_request"
]
},
"url": {
"type": "string"
},
"headers": {
"anyOf": [
{
"type": "object",
"additionalProperties": {
"type": "string"
}
},
{
"type": "null"
}
]
},
"bodyTemplate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"type",
"url"
],
"patternProperties": {
"^(?!(?:type|url|headers|bodyTemplate)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"url",
"headers",
"bodyTemplate"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"attio_task"
]
},
"content": {
"type": "string",
"maxLength": 10000
},
"assigneeMemberIds": {
"type": "array",
"items": {
"type": "string"
}
},
"onMissingAssignee": {
"type": "string",
"enum": [
"skip",
"fail"
]
},
"deadlineOffsetDays": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"personLink": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"sourceVariable": {
"type": "string"
},
"matchBy": {
"type": "string",
"enum": [
"email",
"domain",
"record_id"
]
},
"createIfMissing": {
"type": "boolean"
}
},
"required": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
],
"patternProperties": {
"^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
]
}
},
"companyLink": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"sourceVariable": {
"type": "string"
},
"matchBy": {
"type": "string",
"enum": [
"email",
"domain",
"record_id"
]
},
"createIfMissing": {
"type": "boolean"
}
},
"required": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
],
"patternProperties": {
"^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
]
}
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|content|assigneeMemberIds|onMissingAssignee|deadlineOffsetDays|personLink|companyLink)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"content",
"assigneeMemberIds",
"onMissingAssignee",
"deadlineOffsetDays",
"personLink",
"companyLink"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"heyreach_campaign"
]
},
"connectionId": {
"type": "string"
},
"campaignId": {
"type": "integer",
"minimum": 1
},
"campaignName": {
"anyOf": [
{
"type": "string",
"maxLength": 500
},
{
"type": "null"
}
]
},
"linkedInAccountId": {
"anyOf": [
{
"type": "integer",
"minimum": 1
},
{
"type": "null"
}
]
}
},
"required": [
"type",
"campaignId"
],
"patternProperties": {
"^(?!(?:type|connectionId|campaignId|campaignName|linkedInAccountId)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"connectionId",
"campaignId",
"campaignName",
"linkedInAccountId"
]
}
}
]
},
"enabled": {
"type": "boolean"
}
},
"patternProperties": {
"^(?!(?:id|content|enabled)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"content",
"enabled"
]
}
},
"maxItems": 26
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:id|type|afterStepId|waitFor|runMode|rearmAfterDays|bodyFormat|previousThreadSelection|enabled|variants)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"type",
"afterStepId",
"waitFor",
"runMode",
"rearmAfterDays",
"bodyFormat",
"previousThreadSelection",
"enabled",
"variants"
]
}
}
},
"required": [
"action",
"workspaceId",
"campaignId",
"payload"
],
"patternProperties": {
"^(?!(?:action|workspaceId|campaignId|payload)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId",
"payload"
]
}
},
{
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"update_sequence_step"
]
},
"workspaceId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"campaignId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"stepId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"payload": {
"type": "object",
"properties": {
"expectedRevision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"waitFor": {
"type": "integer",
"minimum": 0
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 365
},
{
"type": "null"
}
]
},
"bodyFormat": {
"type": "string",
"enum": [
"inherit",
"plain",
"html"
]
},
"previousThreadSelection": {
"anyOf": [
{
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": [
"all",
"latest",
"custom"
]
},
"stepIds": {
"type": "array",
"items": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
}
}
},
"required": [
"mode"
],
"patternProperties": {
"^(?!(?:mode|stepIds)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"mode",
"stepIds"
]
}
},
{
"type": "null"
}
]
},
"enabled": {
"type": "boolean"
}
},
"patternProperties": {
"^(?!(?:expectedRevision|waitFor|runMode|rearmAfterDays|bodyFormat|previousThreadSelection|enabled)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"expectedRevision",
"waitFor",
"runMode",
"rearmAfterDays",
"bodyFormat",
"previousThreadSelection",
"enabled"
]
}
}
},
"required": [
"action",
"workspaceId",
"campaignId",
"stepId",
"payload"
],
"patternProperties": {
"^(?!(?:action|workspaceId|campaignId|stepId|payload)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId",
"stepId",
"payload"
]
}
},
{
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"move_sequence_step"
]
},
"workspaceId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"campaignId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"stepId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"payload": {
"type": "object",
"properties": {
"afterStepId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
}
},
"required": [
"afterStepId"
],
"patternProperties": {
"^(?!(?:afterStepId)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"afterStepId"
]
}
]
}
}
},
"required": [
"action",
"workspaceId",
"campaignId",
"stepId",
"payload"
],
"patternProperties": {
"^(?!(?:action|workspaceId|campaignId|stepId|payload)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId",
"stepId",
"payload"
]
}
},
{
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"delete_sequence_step"
]
},
"workspaceId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"campaignId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"stepId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
}
},
"required": [
"action",
"workspaceId",
"campaignId",
"stepId"
],
"patternProperties": {
"^(?!(?:action|workspaceId|campaignId|stepId)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId",
"stepId"
]
}
},
{
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"create_variant"
]
},
"workspaceId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"campaignId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"stepId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"payload": {
"type": "object",
"properties": {
"id": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"content": {
"anyOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"email_content"
]
},
"subject": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
},
"body": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"html"
]
},
"html": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"html"
],
"patternProperties": {
"^(?!(?:format|html)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"html"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|subject|body)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"subject",
"body"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"manual_review"
]
},
"stepType": {
"type": "string",
"enum": [
"notify_and_continue",
"notify_and_wait"
]
},
"notificationMessage": {
"type": "string",
"maxLength": 10000
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|stepType|notificationMessage)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"stepType",
"notificationMessage"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"linked_in_connection_request"
]
},
"message": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"html"
]
},
"html": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"html"
],
"patternProperties": {
"^(?!(?:format|html)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"html"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|message)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"message"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"linked_in_in_mail"
]
},
"subject": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
},
"body": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"html"
]
},
"html": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"html"
],
"patternProperties": {
"^(?!(?:format|html)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"html"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|subject|body)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"subject",
"body"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"phone_call"
]
},
"script": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"html"
]
},
"html": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"html"
],
"patternProperties": {
"^(?!(?:format|html)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"html"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|script)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"script"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"text_message"
]
},
"message": {
"anyOf": [
{
"type": "string",
"maxLength": 1600
},
{
"type": "null"
}
]
},
"mediaUrl": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|message|mediaUrl)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"message",
"mediaUrl"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"http_post_request"
]
},
"url": {
"type": "string"
},
"headers": {
"anyOf": [
{
"type": "object",
"additionalProperties": {
"type": "string"
}
},
{
"type": "null"
}
]
},
"bodyTemplate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"type",
"url"
],
"patternProperties": {
"^(?!(?:type|url|headers|bodyTemplate)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"url",
"headers",
"bodyTemplate"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"attio_task"
]
},
"content": {
"type": "string",
"maxLength": 10000
},
"assigneeMemberIds": {
"type": "array",
"items": {
"type": "string"
}
},
"onMissingAssignee": {
"type": "string",
"enum": [
"skip",
"fail"
]
},
"deadlineOffsetDays": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"personLink": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"sourceVariable": {
"type": "string"
},
"matchBy": {
"type": "string",
"enum": [
"email",
"domain",
"record_id"
]
},
"createIfMissing": {
"type": "boolean"
}
},
"required": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
],
"patternProperties": {
"^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
]
}
},
"companyLink": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"sourceVariable": {
"type": "string"
},
"matchBy": {
"type": "string",
"enum": [
"email",
"domain",
"record_id"
]
},
"createIfMissing": {
"type": "boolean"
}
},
"required": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
],
"patternProperties": {
"^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
]
}
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|content|assigneeMemberIds|onMissingAssignee|deadlineOffsetDays|personLink|companyLink)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"content",
"assigneeMemberIds",
"onMissingAssignee",
"deadlineOffsetDays",
"personLink",
"companyLink"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"heyreach_campaign"
]
},
"connectionId": {
"type": "string"
},
"campaignId": {
"type": "integer",
"minimum": 1
},
"campaignName": {
"anyOf": [
{
"type": "string",
"maxLength": 500
},
{
"type": "null"
}
]
},
"linkedInAccountId": {
"anyOf": [
{
"type": "integer",
"minimum": 1
},
{
"type": "null"
}
]
}
},
"required": [
"type",
"campaignId"
],
"patternProperties": {
"^(?!(?:type|connectionId|campaignId|campaignName|linkedInAccountId)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"connectionId",
"campaignId",
"campaignName",
"linkedInAccountId"
]
}
}
]
},
"copyFromVariantId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"enabled": {
"type": "boolean"
}
},
"patternProperties": {
"^(?!(?:id|content|copyFromVariantId|enabled)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"content",
"copyFromVariantId",
"enabled"
]
}
}
},
"required": [
"action",
"workspaceId",
"campaignId",
"stepId",
"payload"
],
"patternProperties": {
"^(?!(?:action|workspaceId|campaignId|stepId|payload)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId",
"stepId",
"payload"
]
}
},
{
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"update_variant"
]
},
"workspaceId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"campaignId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"variantId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"payload": {
"type": "object",
"properties": {
"expectedRevision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"content": {
"anyOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"email_content"
]
},
"subject": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
},
"body": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"html"
]
},
"html": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"html"
],
"patternProperties": {
"^(?!(?:format|html)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"html"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|subject|body)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"subject",
"body"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"manual_review"
]
},
"stepType": {
"type": "string",
"enum": [
"notify_and_continue",
"notify_and_wait"
]
},
"notificationMessage": {
"type": "string",
"maxLength": 10000
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|stepType|notificationMessage)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"stepType",
"notificationMessage"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"linked_in_connection_request"
]
},
"message": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"html"
]
},
"html": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"html"
],
"patternProperties": {
"^(?!(?:format|html)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"html"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|message)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"message"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"linked_in_in_mail"
]
},
"subject": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
},
"body": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"html"
]
},
"html": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"html"
],
"patternProperties": {
"^(?!(?:format|html)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"html"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|subject|body)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"subject",
"body"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"phone_call"
]
},
"script": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"html"
]
},
"html": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"html"
],
"patternProperties": {
"^(?!(?:format|html)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"html"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|script)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"script"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"text_message"
]
},
"message": {
"anyOf": [
{
"type": "string",
"maxLength": 1600
},
{
"type": "null"
}
]
},
"mediaUrl": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|message|mediaUrl)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"message",
"mediaUrl"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"http_post_request"
]
},
"url": {
"type": "string"
},
"headers": {
"anyOf": [
{
"type": "object",
"additionalProperties": {
"type": "string"
}
},
{
"type": "null"
}
]
},
"bodyTemplate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"type",
"url"
],
"patternProperties": {
"^(?!(?:type|url|headers|bodyTemplate)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"url",
"headers",
"bodyTemplate"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"attio_task"
]
},
"content": {
"type": "string",
"maxLength": 10000
},
"assigneeMemberIds": {
"type": "array",
"items": {
"type": "string"
}
},
"onMissingAssignee": {
"type": "string",
"enum": [
"skip",
"fail"
]
},
"deadlineOffsetDays": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"personLink": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"sourceVariable": {
"type": "string"
},
"matchBy": {
"type": "string",
"enum": [
"email",
"domain",
"record_id"
]
},
"createIfMissing": {
"type": "boolean"
}
},
"required": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
],
"patternProperties": {
"^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
]
}
},
"companyLink": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"sourceVariable": {
"type": "string"
},
"matchBy": {
"type": "string",
"enum": [
"email",
"domain",
"record_id"
]
},
"createIfMissing": {
"type": "boolean"
}
},
"required": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
],
"patternProperties": {
"^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
]
}
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|content|assigneeMemberIds|onMissingAssignee|deadlineOffsetDays|personLink|companyLink)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"content",
"assigneeMemberIds",
"onMissingAssignee",
"deadlineOffsetDays",
"personLink",
"companyLink"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"heyreach_campaign"
]
},
"connectionId": {
"type": "string"
},
"campaignId": {
"type": "integer",
"minimum": 1
},
"campaignName": {
"anyOf": [
{
"type": "string",
"maxLength": 500
},
{
"type": "null"
}
]
},
"linkedInAccountId": {
"anyOf": [
{
"type": "integer",
"minimum": 1
},
{
"type": "null"
}
]
}
},
"required": [
"type",
"campaignId"
],
"patternProperties": {
"^(?!(?:type|connectionId|campaignId|campaignName|linkedInAccountId)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"connectionId",
"campaignId",
"campaignName",
"linkedInAccountId"
]
}
}
]
},
"enabled": {
"type": "boolean"
}
},
"patternProperties": {
"^(?!(?:expectedRevision|content|enabled)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"expectedRevision",
"content",
"enabled"
]
}
}
},
"required": [
"action",
"workspaceId",
"campaignId",
"variantId",
"payload"
],
"patternProperties": {
"^(?!(?:action|workspaceId|campaignId|variantId|payload)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId",
"variantId",
"payload"
]
}
},
{
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"delete_variant"
]
},
"workspaceId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"campaignId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"variantId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
}
},
"required": [
"action",
"workspaceId",
"campaignId",
"variantId"
],
"patternProperties": {
"^(?!(?:action|workspaceId|campaignId|variantId)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId",
"variantId"
]
}
},
{
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"replace_sequence"
]
},
"workspaceId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"campaignId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"payload": {
"type": "object",
"properties": {
"expectedSequenceRevision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"initialDelayMinutes": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 43200
},
{
"type": "null"
}
]
},
"steps": {
"type": "array",
"items": {
"type": "object",
"properties": {
"stepId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"type": {
"type": "string",
"enum": [
"email_content",
"manual_review",
"linked_in_connection_request",
"linked_in_in_mail",
"phone_call",
"text_message",
"http_post_request",
"attio_task",
"heyreach_campaign"
]
},
"waitFor": {
"type": "integer",
"minimum": 0
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 365
},
{
"type": "null"
}
]
},
"bodyFormat": {
"type": "string",
"enum": [
"inherit",
"plain",
"html"
]
},
"previousThreadSelection": {
"anyOf": [
{
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": [
"all",
"latest",
"custom"
]
},
"stepIds": {
"type": "array",
"items": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
}
}
},
"required": [
"mode"
],
"patternProperties": {
"^(?!(?:mode|stepIds)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"mode",
"stepIds"
]
}
},
{
"type": "null"
}
]
},
"enabled": {
"type": "boolean"
},
"variants": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"content": {
"anyOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"email_content"
]
},
"subject": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
},
"body": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"html"
]
},
"html": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"html"
],
"patternProperties": {
"^(?!(?:format|html)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"html"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|subject|body)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"subject",
"body"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"manual_review"
]
},
"stepType": {
"type": "string",
"enum": [
"notify_and_continue",
"notify_and_wait"
]
},
"notificationMessage": {
"type": "string",
"maxLength": 10000
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|stepType|notificationMessage)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"stepType",
"notificationMessage"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"linked_in_connection_request"
]
},
"message": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"html"
]
},
"html": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"html"
],
"patternProperties": {
"^(?!(?:format|html)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"html"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|message)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"message"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"linked_in_in_mail"
]
},
"subject": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
},
"body": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"html"
]
},
"html": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"html"
],
"patternProperties": {
"^(?!(?:format|html)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"html"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|subject|body)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"subject",
"body"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"phone_call"
]
},
"script": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"html"
]
},
"html": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"html"
],
"patternProperties": {
"^(?!(?:format|html)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"html"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|script)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"script"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"text_message"
]
},
"message": {
"anyOf": [
{
"type": "string",
"maxLength": 1600
},
{
"type": "null"
}
]
},
"mediaUrl": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|message|mediaUrl)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"message",
"mediaUrl"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"http_post_request"
]
},
"url": {
"type": "string"
},
"headers": {
"anyOf": [
{
"type": "object",
"additionalProperties": {
"type": "string"
}
},
{
"type": "null"
}
]
},
"bodyTemplate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"type",
"url"
],
"patternProperties": {
"^(?!(?:type|url|headers|bodyTemplate)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"url",
"headers",
"bodyTemplate"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"attio_task"
]
},
"content": {
"type": "string",
"maxLength": 10000
},
"assigneeMemberIds": {
"type": "array",
"items": {
"type": "string"
}
},
"onMissingAssignee": {
"type": "string",
"enum": [
"skip",
"fail"
]
},
"deadlineOffsetDays": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"personLink": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"sourceVariable": {
"type": "string"
},
"matchBy": {
"type": "string",
"enum": [
"email",
"domain",
"record_id"
]
},
"createIfMissing": {
"type": "boolean"
}
},
"required": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
],
"patternProperties": {
"^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
]
}
},
"companyLink": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"sourceVariable": {
"type": "string"
},
"matchBy": {
"type": "string",
"enum": [
"email",
"domain",
"record_id"
]
},
"createIfMissing": {
"type": "boolean"
}
},
"required": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
],
"patternProperties": {
"^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
]
}
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|content|assigneeMemberIds|onMissingAssignee|deadlineOffsetDays|personLink|companyLink)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"content",
"assigneeMemberIds",
"onMissingAssignee",
"deadlineOffsetDays",
"personLink",
"companyLink"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"heyreach_campaign"
]
},
"connectionId": {
"type": "string"
},
"campaignId": {
"type": "integer",
"minimum": 1
},
"campaignName": {
"anyOf": [
{
"type": "string",
"maxLength": 500
},
{
"type": "null"
}
]
},
"linkedInAccountId": {
"anyOf": [
{
"type": "integer",
"minimum": 1
},
{
"type": "null"
}
]
}
},
"required": [
"type",
"campaignId"
],
"patternProperties": {
"^(?!(?:type|connectionId|campaignId|campaignName|linkedInAccountId)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"connectionId",
"campaignId",
"campaignName",
"linkedInAccountId"
]
}
}
]
},
"enabled": {
"type": "boolean"
}
},
"patternProperties": {
"^(?!(?:id|content|enabled)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"content",
"enabled"
]
}
},
"maxItems": 26
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:stepId|type|waitFor|runMode|rearmAfterDays|bodyFormat|previousThreadSelection|enabled|variants)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"stepId",
"type",
"waitFor",
"runMode",
"rearmAfterDays",
"bodyFormat",
"previousThreadSelection",
"enabled",
"variants"
]
}
},
"maxItems": 100
}
},
"required": [
"steps"
],
"patternProperties": {
"^(?!(?:expectedSequenceRevision|initialDelayMinutes|steps)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"expectedSequenceRevision",
"initialDelayMinutes",
"steps"
]
}
}
},
"required": [
"action",
"workspaceId",
"campaignId",
"payload"
],
"patternProperties": {
"^(?!(?:action|workspaceId|campaignId|payload)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId",
"payload"
]
}
},
{
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"update_sequence"
]
},
"workspaceId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"campaignId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"payload": {
"type": "object",
"properties": {
"initialDelayMinutes": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 43200
},
{
"type": "null"
}
]
}
},
"required": [
"initialDelayMinutes"
],
"patternProperties": {
"^(?!(?:initialDelayMinutes)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"initialDelayMinutes"
]
}
]
}
}
},
"required": [
"action",
"workspaceId",
"campaignId",
"payload"
],
"patternProperties": {
"^(?!(?:action|workspaceId|campaignId|payload)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId",
"payload"
]
}
},
{
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"create_sequence"
]
},
"workspaceId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"payload": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"inboxIds": {
"type": "array",
"items": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"minItems": 1,
"maxItems": 100
},
"initialDelayMinutes": {
"type": "integer",
"minimum": 0,
"maximum": 525600
},
"stopOtherCampaigns": {
"type": "boolean"
}
},
"required": [
"name",
"inboxIds"
],
"patternProperties": {
"^(?!(?:name|inboxIds|initialDelayMinutes|stopOtherCampaigns)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"name",
"inboxIds",
"initialDelayMinutes",
"stopOtherCampaigns"
]
}
}
},
"required": [
"action",
"workspaceId",
"payload"
],
"patternProperties": {
"^(?!(?:action|workspaceId|payload)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"workspaceId",
"payload"
]
}
},
{
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"set_sequence_status"
]
},
"workspaceId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"sequenceId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"payload": {
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"active",
"paused"
]
}
},
"required": [
"status"
],
"patternProperties": {
"^(?!(?:status)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"status"
]
}
]
}
}
},
"required": [
"action",
"workspaceId",
"sequenceId",
"payload"
],
"patternProperties": {
"^(?!(?:action|workspaceId|sequenceId|payload)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"workspaceId",
"sequenceId",
"payload"
]
}
},
{
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"create_subsequence"
]
},
"workspaceId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"campaignId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"payload": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"trigger": {
"type": "object",
"properties": {
"conditionType": {
"type": "string",
"enum": [
"reply_any",
"reply_genuine",
"reply_label",
"reply_text"
]
},
"replyLabelIds": {
"type": "array",
"items": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
}
},
"textContains": {
"$ref": "#/$defs/NonEmptyString"
},
"textNotContains": {
"$ref": "#/$defs/NonEmptyString"
}
},
"required": [
"conditionType"
],
"patternProperties": {
"^(?!(?:conditionType|replyLabelIds|textContains|textNotContains)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"conditionType",
"replyLabelIds",
"textContains",
"textNotContains"
]
}
}
},
"required": [
"name"
],
"patternProperties": {
"^(?!(?:name|trigger)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"name",
"trigger"
]
}
}
},
"required": [
"action",
"workspaceId",
"campaignId",
"payload"
],
"patternProperties": {
"^(?!(?:action|workspaceId|campaignId|payload)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId",
"payload"
]
}
},
{
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"save_subsequence_triggers"
]
},
"workspaceId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"subsequenceCampaignId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"payload": {
"type": "object",
"properties": {
"triggers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"conditionType": {
"type": "string",
"enum": [
"reply_any",
"reply_genuine",
"reply_label",
"reply_text"
]
},
"replyLabelIds": {
"type": "array",
"items": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
}
},
"textContains": {
"$ref": "#/$defs/NonEmptyString"
},
"textNotContains": {
"$ref": "#/$defs/NonEmptyString"
},
"id": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"enabled": {
"type": "boolean"
}
},
"required": [
"conditionType"
],
"patternProperties": {
"^(?!(?:conditionType|replyLabelIds|textContains|textNotContains|id|enabled)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"conditionType",
"replyLabelIds",
"textContains",
"textNotContains",
"id",
"enabled"
]
}
}
}
},
"required": [
"triggers"
],
"patternProperties": {
"^(?!(?:triggers)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"triggers"
]
}
]
}
}
},
"required": [
"action",
"workspaceId",
"subsequenceCampaignId",
"payload"
],
"patternProperties": {
"^(?!(?:action|workspaceId|subsequenceCampaignId|payload)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"workspaceId",
"subsequenceCampaignId",
"payload"
]
}
}
],
"$defs": {
"Union_": {
"anyOf": [
{
"type": "null"
},
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/Union_"
}
},
{
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
]
},
"NonEmptyString": {
"type": "string",
"minLength": 1,
"maxLength": 4096
}
}
}
```
### Input schema (OAuth / delegated agent)
```json
{
"type": "object",
"properties": {
"workspaceId": {
"type": "string",
"format": "uuid",
"description": "Target Workspace UUID. Call list_workspaces to enumerate the Workspaces this credential may access, then pass the chosen id here."
}
},
"required": [
"workspaceId"
],
"anyOf": [
{
"type": "object",
"properties": {
"workspaceId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"action": {
"type": "string",
"enum": [
"save"
]
},
"campaignId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"payload": {
"type": "object",
"properties": {
"expectedSequenceRevision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"initialDelayMinutes": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 43200
},
{
"type": "null"
}
]
},
"steps": {
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"email_content"
]
},
"stepId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"dbId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"status": {
"type": "string",
"enum": [
"draft",
"saved"
]
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 365
},
{
"type": "null"
}
]
},
"delayMinutes": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"bodyFormat": {
"type": "string",
"enum": [
"inherit",
"plain",
"html"
]
},
"previousThreadSelection": {
"anyOf": [
{
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": [
"all",
"latest",
"custom"
]
},
"stepIds": {
"type": "array",
"items": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
}
}
},
"required": [
"mode"
],
"patternProperties": {
"^(?!(?:mode|stepIds)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"mode",
"stepIds"
]
}
},
{
"type": "null"
}
]
},
"variants": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"variantOrder": {
"type": "integer",
"minimum": 1
},
"enabled": {
"type": "boolean"
},
"subject": {
"anyOf": [
{
"type": "object",
"properties": {
"root": {
"$ref": "#/$defs/Union_"
}
},
"required": [
"root"
],
"patternProperties": {
"^(?!(?:root)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"root"
]
}
]
}
},
{
"type": "null"
}
]
},
"body": {
"anyOf": [
{
"type": "object",
"properties": {
"root": {
"$ref": "#/$defs/Union_"
}
},
"required": [
"root"
],
"patternProperties": {
"^(?!(?:root)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"root"
]
}
]
}
},
{
"type": "null"
}
]
},
"status": {
"type": "string",
"enum": [
"draft",
"saved"
]
}
},
"required": [
"variantOrder"
],
"patternProperties": {
"^(?!(?:id|variantOrder|enabled|subject|body|status)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"variantOrder",
"enabled",
"subject",
"body",
"status"
]
}
},
"maxItems": 26
}
},
"required": [
"type",
"delayMinutes",
"variants"
],
"patternProperties": {
"^(?!(?:type|stepId|dbId|status|runMode|rearmAfterDays|delayMinutes|bodyFormat|previousThreadSelection|variants)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"stepId",
"dbId",
"status",
"runMode",
"rearmAfterDays",
"delayMinutes",
"bodyFormat",
"previousThreadSelection",
"variants"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"manual_review"
]
},
"stepId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"dbId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"status": {
"type": "string",
"enum": [
"draft",
"saved"
]
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 365
},
{
"type": "null"
}
]
},
"delayMinutes": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"notificationMessage": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|stepId|dbId|status|runMode|rearmAfterDays|delayMinutes|notificationMessage)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"stepId",
"dbId",
"status",
"runMode",
"rearmAfterDays",
"delayMinutes",
"notificationMessage"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"linked_in_connection_request"
]
},
"stepId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"dbId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"status": {
"type": "string",
"enum": [
"draft",
"saved"
]
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 365
},
{
"type": "null"
}
]
},
"delayMinutes": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"connectionNote": {
"anyOf": [
{
"type": "string",
"maxLength": 300
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|stepId|dbId|status|runMode|rearmAfterDays|delayMinutes|connectionNote)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"stepId",
"dbId",
"status",
"runMode",
"rearmAfterDays",
"delayMinutes",
"connectionNote"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"linked_in_in_mail"
]
},
"stepId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"dbId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"status": {
"type": "string",
"enum": [
"draft",
"saved"
]
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 365
},
{
"type": "null"
}
]
},
"delayMinutes": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"subject": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"body": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|stepId|dbId|status|runMode|rearmAfterDays|delayMinutes|subject|body)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"stepId",
"dbId",
"status",
"runMode",
"rearmAfterDays",
"delayMinutes",
"subject",
"body"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"phone_call"
]
},
"stepId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"dbId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"status": {
"type": "string",
"enum": [
"draft",
"saved"
]
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 365
},
{
"type": "null"
}
]
},
"delayMinutes": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"script": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|stepId|dbId|status|runMode|rearmAfterDays|delayMinutes|script)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"stepId",
"dbId",
"status",
"runMode",
"rearmAfterDays",
"delayMinutes",
"script"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"text_message"
]
},
"stepId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"dbId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"status": {
"type": "string",
"enum": [
"draft",
"saved"
]
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 365
},
{
"type": "null"
}
]
},
"delayMinutes": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"message": {
"anyOf": [
{
"type": "string",
"maxLength": 1600
},
{
"type": "null"
}
]
},
"mediaUrl": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|stepId|dbId|status|runMode|rearmAfterDays|delayMinutes|message|mediaUrl)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"stepId",
"dbId",
"status",
"runMode",
"rearmAfterDays",
"delayMinutes",
"message",
"mediaUrl"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"http_post_request"
]
},
"stepId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"dbId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"status": {
"type": "string",
"enum": [
"draft",
"saved"
]
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 365
},
{
"type": "null"
}
]
},
"delayMinutes": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"headers": {
"anyOf": [
{
"type": "object",
"additionalProperties": {
"type": "string"
}
},
{
"type": "null"
}
]
},
"bodyTemplate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|stepId|dbId|status|runMode|rearmAfterDays|delayMinutes|url|headers|bodyTemplate)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"stepId",
"dbId",
"status",
"runMode",
"rearmAfterDays",
"delayMinutes",
"url",
"headers",
"bodyTemplate"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"heyreach_campaign"
]
},
"stepId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"dbId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"status": {
"type": "string",
"enum": [
"draft",
"saved"
]
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 365
},
{
"type": "null"
}
]
},
"delayMinutes": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"connectionId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"campaignId": {
"anyOf": [
{
"type": "integer",
"minimum": 1
},
{
"type": "null"
}
]
},
"campaignName": {
"anyOf": [
{
"type": "string",
"maxLength": 500
},
{
"type": "null"
}
]
},
"linkedInAccountId": {
"anyOf": [
{
"type": "integer",
"minimum": 1
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|stepId|dbId|status|runMode|rearmAfterDays|delayMinutes|connectionId|campaignId|campaignName|linkedInAccountId)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"stepId",
"dbId",
"status",
"runMode",
"rearmAfterDays",
"delayMinutes",
"connectionId",
"campaignId",
"campaignName",
"linkedInAccountId"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"attio_task"
]
},
"stepId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"dbId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"status": {
"type": "string",
"enum": [
"draft",
"saved"
]
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 365
},
{
"type": "null"
}
]
},
"delayMinutes": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"content": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"assigneeMemberIds": {
"type": "array",
"items": {
"type": "string"
}
},
"onMissingAssignee": {
"type": "string",
"enum": [
"skip",
"fail"
]
},
"deadlineOffsetDays": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"personLink": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"sourceVariable": {
"type": "string"
},
"matchBy": {
"type": "string",
"enum": [
"email",
"domain",
"record_id"
]
},
"createIfMissing": {
"type": "boolean"
}
},
"required": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
],
"patternProperties": {
"^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
]
}
},
"companyLink": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"sourceVariable": {
"type": "string"
},
"matchBy": {
"type": "string",
"enum": [
"email",
"domain",
"record_id"
]
},
"createIfMissing": {
"type": "boolean"
}
},
"required": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
],
"patternProperties": {
"^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
]
}
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|stepId|dbId|status|runMode|rearmAfterDays|delayMinutes|content|assigneeMemberIds|onMissingAssignee|deadlineOffsetDays|personLink|companyLink)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"stepId",
"dbId",
"status",
"runMode",
"rearmAfterDays",
"delayMinutes",
"content",
"assigneeMemberIds",
"onMissingAssignee",
"deadlineOffsetDays",
"personLink",
"companyLink"
]
}
}
]
},
"maxItems": 100
}
},
"required": [
"steps"
],
"patternProperties": {
"^(?!(?:expectedSequenceRevision|initialDelayMinutes|steps)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"expectedSequenceRevision",
"initialDelayMinutes",
"steps"
]
}
}
},
"required": [
"action",
"workspaceId",
"campaignId",
"payload"
],
"patternProperties": {
"^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|payload)$)[\\s\\S]*$)": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId",
"payload"
]
},
{
"enum": [
"workspaceId"
]
}
]
}
},
{
"type": "object",
"properties": {
"workspaceId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"action": {
"type": "string",
"enum": [
"update_step"
]
},
"campaignId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"stepId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"payload": {
"type": "object",
"properties": {
"stepOrder": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"variantOrder": {
"type": "integer",
"minimum": 1
},
"delayMinutes": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"subject": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"body": {
"anyOf": [
{
"type": "null"
},
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/Union_"
}
},
{
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
]
},
"notificationMessage": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"manualStepType": {
"type": "string",
"enum": [
"notify_and_continue",
"notify_and_wait"
]
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 365
},
{
"type": "null"
}
]
}
},
"patternProperties": {
"^(?!(?:stepOrder|variantOrder|delayMinutes|subject|body|notificationMessage|manualStepType|runMode|rearmAfterDays)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"stepOrder",
"variantOrder",
"delayMinutes",
"subject",
"body",
"notificationMessage",
"manualStepType",
"runMode",
"rearmAfterDays"
]
}
}
},
"required": [
"action",
"workspaceId",
"campaignId",
"stepId",
"payload"
],
"patternProperties": {
"^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|stepId|payload)$)[\\s\\S]*$)": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId",
"stepId",
"payload"
]
},
{
"enum": [
"workspaceId"
]
}
]
}
},
{
"type": "object",
"properties": {
"workspaceId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"action": {
"type": "string",
"enum": [
"toggle_enabled"
]
},
"campaignId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"stepId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
}
},
"required": [
"action",
"workspaceId",
"campaignId",
"stepId"
],
"patternProperties": {
"^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|stepId)$)[\\s\\S]*$)": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId",
"stepId"
]
},
{
"enum": [
"workspaceId"
]
}
]
}
},
{
"type": "object",
"properties": {
"workspaceId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"action": {
"type": "string",
"enum": [
"delete_step"
]
},
"campaignId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"stepId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
}
},
"required": [
"action",
"workspaceId",
"campaignId",
"stepId"
],
"patternProperties": {
"^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|stepId)$)[\\s\\S]*$)": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId",
"stepId"
]
},
{
"enum": [
"workspaceId"
]
}
]
}
},
{
"type": "object",
"properties": {
"workspaceId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"action": {
"type": "string",
"enum": [
"delete_all"
]
},
"campaignId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
}
},
"required": [
"action",
"workspaceId",
"campaignId"
],
"patternProperties": {
"^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId)$)[\\s\\S]*$)": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId"
]
},
{
"enum": [
"workspaceId"
]
}
]
}
},
{
"type": "object",
"properties": {
"workspaceId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"action": {
"type": "string",
"enum": [
"create_step"
]
},
"campaignId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"payload": {
"type": "object",
"properties": {
"id": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"type": {
"type": "string",
"enum": [
"email_content",
"manual_review",
"linked_in_connection_request",
"linked_in_in_mail",
"phone_call",
"text_message",
"http_post_request",
"attio_task",
"heyreach_campaign"
]
},
"afterStepId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"waitFor": {
"type": "integer",
"minimum": 0
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 365
},
{
"type": "null"
}
]
},
"bodyFormat": {
"type": "string",
"enum": [
"inherit",
"plain",
"html"
]
},
"previousThreadSelection": {
"anyOf": [
{
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": [
"all",
"latest",
"custom"
]
},
"stepIds": {
"type": "array",
"items": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
}
}
},
"required": [
"mode"
],
"patternProperties": {
"^(?!(?:mode|stepIds)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"mode",
"stepIds"
]
}
},
{
"type": "null"
}
]
},
"enabled": {
"type": "boolean"
},
"variants": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"content": {
"anyOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"email_content"
]
},
"subject": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
},
"body": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"html"
]
},
"html": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"html"
],
"patternProperties": {
"^(?!(?:format|html)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"html"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|subject|body)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"subject",
"body"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"manual_review"
]
},
"stepType": {
"type": "string",
"enum": [
"notify_and_continue",
"notify_and_wait"
]
},
"notificationMessage": {
"type": "string",
"maxLength": 10000
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|stepType|notificationMessage)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"stepType",
"notificationMessage"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"linked_in_connection_request"
]
},
"message": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"html"
]
},
"html": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"html"
],
"patternProperties": {
"^(?!(?:format|html)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"html"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|message)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"message"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"linked_in_in_mail"
]
},
"subject": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
},
"body": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"html"
]
},
"html": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"html"
],
"patternProperties": {
"^(?!(?:format|html)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"html"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|subject|body)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"subject",
"body"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"phone_call"
]
},
"script": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"html"
]
},
"html": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"html"
],
"patternProperties": {
"^(?!(?:format|html)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"html"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|script)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"script"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"text_message"
]
},
"message": {
"anyOf": [
{
"type": "string",
"maxLength": 1600
},
{
"type": "null"
}
]
},
"mediaUrl": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|message|mediaUrl)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"message",
"mediaUrl"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"http_post_request"
]
},
"url": {
"type": "string"
},
"headers": {
"anyOf": [
{
"type": "object",
"additionalProperties": {
"type": "string"
}
},
{
"type": "null"
}
]
},
"bodyTemplate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"type",
"url"
],
"patternProperties": {
"^(?!(?:type|url|headers|bodyTemplate)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"url",
"headers",
"bodyTemplate"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"attio_task"
]
},
"content": {
"type": "string",
"maxLength": 10000
},
"assigneeMemberIds": {
"type": "array",
"items": {
"type": "string"
}
},
"onMissingAssignee": {
"type": "string",
"enum": [
"skip",
"fail"
]
},
"deadlineOffsetDays": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"personLink": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"sourceVariable": {
"type": "string"
},
"matchBy": {
"type": "string",
"enum": [
"email",
"domain",
"record_id"
]
},
"createIfMissing": {
"type": "boolean"
}
},
"required": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
],
"patternProperties": {
"^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
]
}
},
"companyLink": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"sourceVariable": {
"type": "string"
},
"matchBy": {
"type": "string",
"enum": [
"email",
"domain",
"record_id"
]
},
"createIfMissing": {
"type": "boolean"
}
},
"required": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
],
"patternProperties": {
"^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
]
}
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|content|assigneeMemberIds|onMissingAssignee|deadlineOffsetDays|personLink|companyLink)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"content",
"assigneeMemberIds",
"onMissingAssignee",
"deadlineOffsetDays",
"personLink",
"companyLink"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"heyreach_campaign"
]
},
"connectionId": {
"type": "string"
},
"campaignId": {
"type": "integer",
"minimum": 1
},
"campaignName": {
"anyOf": [
{
"type": "string",
"maxLength": 500
},
{
"type": "null"
}
]
},
"linkedInAccountId": {
"anyOf": [
{
"type": "integer",
"minimum": 1
},
{
"type": "null"
}
]
}
},
"required": [
"type",
"campaignId"
],
"patternProperties": {
"^(?!(?:type|connectionId|campaignId|campaignName|linkedInAccountId)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"connectionId",
"campaignId",
"campaignName",
"linkedInAccountId"
]
}
}
]
},
"enabled": {
"type": "boolean"
}
},
"patternProperties": {
"^(?!(?:id|content|enabled)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"content",
"enabled"
]
}
},
"maxItems": 26
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:id|type|afterStepId|waitFor|runMode|rearmAfterDays|bodyFormat|previousThreadSelection|enabled|variants)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"type",
"afterStepId",
"waitFor",
"runMode",
"rearmAfterDays",
"bodyFormat",
"previousThreadSelection",
"enabled",
"variants"
]
}
}
},
"required": [
"action",
"workspaceId",
"campaignId",
"payload"
],
"patternProperties": {
"^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|payload)$)[\\s\\S]*$)": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId",
"payload"
]
},
{
"enum": [
"workspaceId"
]
}
]
}
},
{
"type": "object",
"properties": {
"workspaceId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"action": {
"type": "string",
"enum": [
"update_sequence_step"
]
},
"campaignId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"stepId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"payload": {
"type": "object",
"properties": {
"expectedRevision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"waitFor": {
"type": "integer",
"minimum": 0
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 365
},
{
"type": "null"
}
]
},
"bodyFormat": {
"type": "string",
"enum": [
"inherit",
"plain",
"html"
]
},
"previousThreadSelection": {
"anyOf": [
{
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": [
"all",
"latest",
"custom"
]
},
"stepIds": {
"type": "array",
"items": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
}
}
},
"required": [
"mode"
],
"patternProperties": {
"^(?!(?:mode|stepIds)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"mode",
"stepIds"
]
}
},
{
"type": "null"
}
]
},
"enabled": {
"type": "boolean"
}
},
"patternProperties": {
"^(?!(?:expectedRevision|waitFor|runMode|rearmAfterDays|bodyFormat|previousThreadSelection|enabled)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"expectedRevision",
"waitFor",
"runMode",
"rearmAfterDays",
"bodyFormat",
"previousThreadSelection",
"enabled"
]
}
}
},
"required": [
"action",
"workspaceId",
"campaignId",
"stepId",
"payload"
],
"patternProperties": {
"^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|stepId|payload)$)[\\s\\S]*$)": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId",
"stepId",
"payload"
]
},
{
"enum": [
"workspaceId"
]
}
]
}
},
{
"type": "object",
"properties": {
"workspaceId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"action": {
"type": "string",
"enum": [
"move_sequence_step"
]
},
"campaignId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"stepId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"payload": {
"type": "object",
"properties": {
"afterStepId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
}
},
"required": [
"afterStepId"
],
"patternProperties": {
"^(?!(?:afterStepId)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"afterStepId"
]
}
]
}
}
},
"required": [
"action",
"workspaceId",
"campaignId",
"stepId",
"payload"
],
"patternProperties": {
"^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|stepId|payload)$)[\\s\\S]*$)": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId",
"stepId",
"payload"
]
},
{
"enum": [
"workspaceId"
]
}
]
}
},
{
"type": "object",
"properties": {
"workspaceId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"action": {
"type": "string",
"enum": [
"delete_sequence_step"
]
},
"campaignId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"stepId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
}
},
"required": [
"action",
"workspaceId",
"campaignId",
"stepId"
],
"patternProperties": {
"^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|stepId)$)[\\s\\S]*$)": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId",
"stepId"
]
},
{
"enum": [
"workspaceId"
]
}
]
}
},
{
"type": "object",
"properties": {
"workspaceId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"action": {
"type": "string",
"enum": [
"create_variant"
]
},
"campaignId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"stepId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"payload": {
"type": "object",
"properties": {
"id": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"content": {
"anyOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"email_content"
]
},
"subject": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
},
"body": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"html"
]
},
"html": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"html"
],
"patternProperties": {
"^(?!(?:format|html)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"html"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|subject|body)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"subject",
"body"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"manual_review"
]
},
"stepType": {
"type": "string",
"enum": [
"notify_and_continue",
"notify_and_wait"
]
},
"notificationMessage": {
"type": "string",
"maxLength": 10000
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|stepType|notificationMessage)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"stepType",
"notificationMessage"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"linked_in_connection_request"
]
},
"message": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"html"
]
},
"html": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"html"
],
"patternProperties": {
"^(?!(?:format|html)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"html"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|message)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"message"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"linked_in_in_mail"
]
},
"subject": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
},
"body": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"html"
]
},
"html": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"html"
],
"patternProperties": {
"^(?!(?:format|html)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"html"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|subject|body)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"subject",
"body"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"phone_call"
]
},
"script": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"html"
]
},
"html": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"html"
],
"patternProperties": {
"^(?!(?:format|html)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"html"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|script)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"script"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"text_message"
]
},
"message": {
"anyOf": [
{
"type": "string",
"maxLength": 1600
},
{
"type": "null"
}
]
},
"mediaUrl": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|message|mediaUrl)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"message",
"mediaUrl"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"http_post_request"
]
},
"url": {
"type": "string"
},
"headers": {
"anyOf": [
{
"type": "object",
"additionalProperties": {
"type": "string"
}
},
{
"type": "null"
}
]
},
"bodyTemplate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"type",
"url"
],
"patternProperties": {
"^(?!(?:type|url|headers|bodyTemplate)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"url",
"headers",
"bodyTemplate"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"attio_task"
]
},
"content": {
"type": "string",
"maxLength": 10000
},
"assigneeMemberIds": {
"type": "array",
"items": {
"type": "string"
}
},
"onMissingAssignee": {
"type": "string",
"enum": [
"skip",
"fail"
]
},
"deadlineOffsetDays": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"personLink": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"sourceVariable": {
"type": "string"
},
"matchBy": {
"type": "string",
"enum": [
"email",
"domain",
"record_id"
]
},
"createIfMissing": {
"type": "boolean"
}
},
"required": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
],
"patternProperties": {
"^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
]
}
},
"companyLink": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"sourceVariable": {
"type": "string"
},
"matchBy": {
"type": "string",
"enum": [
"email",
"domain",
"record_id"
]
},
"createIfMissing": {
"type": "boolean"
}
},
"required": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
],
"patternProperties": {
"^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
]
}
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|content|assigneeMemberIds|onMissingAssignee|deadlineOffsetDays|personLink|companyLink)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"content",
"assigneeMemberIds",
"onMissingAssignee",
"deadlineOffsetDays",
"personLink",
"companyLink"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"heyreach_campaign"
]
},
"connectionId": {
"type": "string"
},
"campaignId": {
"type": "integer",
"minimum": 1
},
"campaignName": {
"anyOf": [
{
"type": "string",
"maxLength": 500
},
{
"type": "null"
}
]
},
"linkedInAccountId": {
"anyOf": [
{
"type": "integer",
"minimum": 1
},
{
"type": "null"
}
]
}
},
"required": [
"type",
"campaignId"
],
"patternProperties": {
"^(?!(?:type|connectionId|campaignId|campaignName|linkedInAccountId)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"connectionId",
"campaignId",
"campaignName",
"linkedInAccountId"
]
}
}
]
},
"copyFromVariantId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"enabled": {
"type": "boolean"
}
},
"patternProperties": {
"^(?!(?:id|content|copyFromVariantId|enabled)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"content",
"copyFromVariantId",
"enabled"
]
}
}
},
"required": [
"action",
"workspaceId",
"campaignId",
"stepId",
"payload"
],
"patternProperties": {
"^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|stepId|payload)$)[\\s\\S]*$)": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId",
"stepId",
"payload"
]
},
{
"enum": [
"workspaceId"
]
}
]
}
},
{
"type": "object",
"properties": {
"workspaceId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"action": {
"type": "string",
"enum": [
"update_variant"
]
},
"campaignId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"variantId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"payload": {
"type": "object",
"properties": {
"expectedRevision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"content": {
"anyOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"email_content"
]
},
"subject": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
},
"body": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"html"
]
},
"html": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"html"
],
"patternProperties": {
"^(?!(?:format|html)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"html"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|subject|body)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"subject",
"body"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"manual_review"
]
},
"stepType": {
"type": "string",
"enum": [
"notify_and_continue",
"notify_and_wait"
]
},
"notificationMessage": {
"type": "string",
"maxLength": 10000
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|stepType|notificationMessage)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"stepType",
"notificationMessage"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"linked_in_connection_request"
]
},
"message": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"html"
]
},
"html": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"html"
],
"patternProperties": {
"^(?!(?:format|html)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"html"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|message)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"message"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"linked_in_in_mail"
]
},
"subject": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
},
"body": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"html"
]
},
"html": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"html"
],
"patternProperties": {
"^(?!(?:format|html)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"html"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|subject|body)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"subject",
"body"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"phone_call"
]
},
"script": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"html"
]
},
"html": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"html"
],
"patternProperties": {
"^(?!(?:format|html)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"html"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|script)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"script"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"text_message"
]
},
"message": {
"anyOf": [
{
"type": "string",
"maxLength": 1600
},
{
"type": "null"
}
]
},
"mediaUrl": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|message|mediaUrl)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"message",
"mediaUrl"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"http_post_request"
]
},
"url": {
"type": "string"
},
"headers": {
"anyOf": [
{
"type": "object",
"additionalProperties": {
"type": "string"
}
},
{
"type": "null"
}
]
},
"bodyTemplate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"type",
"url"
],
"patternProperties": {
"^(?!(?:type|url|headers|bodyTemplate)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"url",
"headers",
"bodyTemplate"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"attio_task"
]
},
"content": {
"type": "string",
"maxLength": 10000
},
"assigneeMemberIds": {
"type": "array",
"items": {
"type": "string"
}
},
"onMissingAssignee": {
"type": "string",
"enum": [
"skip",
"fail"
]
},
"deadlineOffsetDays": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"personLink": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"sourceVariable": {
"type": "string"
},
"matchBy": {
"type": "string",
"enum": [
"email",
"domain",
"record_id"
]
},
"createIfMissing": {
"type": "boolean"
}
},
"required": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
],
"patternProperties": {
"^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
]
}
},
"companyLink": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"sourceVariable": {
"type": "string"
},
"matchBy": {
"type": "string",
"enum": [
"email",
"domain",
"record_id"
]
},
"createIfMissing": {
"type": "boolean"
}
},
"required": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
],
"patternProperties": {
"^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
]
}
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|content|assigneeMemberIds|onMissingAssignee|deadlineOffsetDays|personLink|companyLink)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"content",
"assigneeMemberIds",
"onMissingAssignee",
"deadlineOffsetDays",
"personLink",
"companyLink"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"heyreach_campaign"
]
},
"connectionId": {
"type": "string"
},
"campaignId": {
"type": "integer",
"minimum": 1
},
"campaignName": {
"anyOf": [
{
"type": "string",
"maxLength": 500
},
{
"type": "null"
}
]
},
"linkedInAccountId": {
"anyOf": [
{
"type": "integer",
"minimum": 1
},
{
"type": "null"
}
]
}
},
"required": [
"type",
"campaignId"
],
"patternProperties": {
"^(?!(?:type|connectionId|campaignId|campaignName|linkedInAccountId)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"connectionId",
"campaignId",
"campaignName",
"linkedInAccountId"
]
}
}
]
},
"enabled": {
"type": "boolean"
}
},
"patternProperties": {
"^(?!(?:expectedRevision|content|enabled)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"expectedRevision",
"content",
"enabled"
]
}
}
},
"required": [
"action",
"workspaceId",
"campaignId",
"variantId",
"payload"
],
"patternProperties": {
"^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|variantId|payload)$)[\\s\\S]*$)": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId",
"variantId",
"payload"
]
},
{
"enum": [
"workspaceId"
]
}
]
}
},
{
"type": "object",
"properties": {
"workspaceId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"action": {
"type": "string",
"enum": [
"delete_variant"
]
},
"campaignId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"variantId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
}
},
"required": [
"action",
"workspaceId",
"campaignId",
"variantId"
],
"patternProperties": {
"^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|variantId)$)[\\s\\S]*$)": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId",
"variantId"
]
},
{
"enum": [
"workspaceId"
]
}
]
}
},
{
"type": "object",
"properties": {
"workspaceId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"action": {
"type": "string",
"enum": [
"replace_sequence"
]
},
"campaignId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"payload": {
"type": "object",
"properties": {
"expectedSequenceRevision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"initialDelayMinutes": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 43200
},
{
"type": "null"
}
]
},
"steps": {
"type": "array",
"items": {
"type": "object",
"properties": {
"stepId": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"type": {
"type": "string",
"enum": [
"email_content",
"manual_review",
"linked_in_connection_request",
"linked_in_in_mail",
"phone_call",
"text_message",
"http_post_request",
"attio_task",
"heyreach_campaign"
]
},
"waitFor": {
"type": "integer",
"minimum": 0
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 365
},
{
"type": "null"
}
]
},
"bodyFormat": {
"type": "string",
"enum": [
"inherit",
"plain",
"html"
]
},
"previousThreadSelection": {
"anyOf": [
{
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": [
"all",
"latest",
"custom"
]
},
"stepIds": {
"type": "array",
"items": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
}
}
},
"required": [
"mode"
],
"patternProperties": {
"^(?!(?:mode|stepIds)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"mode",
"stepIds"
]
}
},
{
"type": "null"
}
]
},
"enabled": {
"type": "boolean"
},
"variants": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"anyOf": [
{
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"content": {
"anyOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"email_content"
]
},
"subject": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
},
"body": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"html"
]
},
"html": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"html"
],
"patternProperties": {
"^(?!(?:format|html)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"html"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|subject|body)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"subject",
"body"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"manual_review"
]
},
"stepType": {
"type": "string",
"enum": [
"notify_and_continue",
"notify_and_wait"
]
},
"notificationMessage": {
"type": "string",
"maxLength": 10000
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|stepType|notificationMessage)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"stepType",
"notificationMessage"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"linked_in_connection_request"
]
},
"message": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"html"
]
},
"html": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"html"
],
"patternProperties": {
"^(?!(?:format|html)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"html"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|message)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"message"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"linked_in_in_mail"
]
},
"subject": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
},
"body": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"html"
]
},
"html": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"html"
],
"patternProperties": {
"^(?!(?:format|html)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"html"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|subject|body)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"subject",
"body"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"phone_call"
]
},
"script": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"lexical"
]
},
"state": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"format",
"state"
],
"patternProperties": {
"^(?!(?:format|state)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"state"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"html"
]
},
"html": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"html"
],
"patternProperties": {
"^(?!(?:format|html)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"html"
]
}
},
{
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"maxLength": 256000
}
},
"required": [
"format",
"text"
],
"patternProperties": {
"^(?!(?:format|text)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"format",
"text"
]
}
}
]
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|script)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"script"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"text_message"
]
},
"message": {
"anyOf": [
{
"type": "string",
"maxLength": 1600
},
{
"type": "null"
}
]
},
"mediaUrl": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|message|mediaUrl)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"message",
"mediaUrl"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"http_post_request"
]
},
"url": {
"type": "string"
},
"headers": {
"anyOf": [
{
"type": "object",
"additionalProperties": {
"type": "string"
}
},
{
"type": "null"
}
]
},
"bodyTemplate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"type",
"url"
],
"patternProperties": {
"^(?!(?:type|url|headers|bodyTemplate)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"url",
"headers",
"bodyTemplate"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"attio_task"
]
},
"content": {
"type": "string",
"maxLength": 10000
},
"assigneeMemberIds": {
"type": "array",
"items": {
"type": "string"
}
},
"onMissingAssignee": {
"type": "string",
"enum": [
"skip",
"fail"
]
},
"deadlineOffsetDays": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"personLink": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"sourceVariable": {
"type": "string"
},
"matchBy": {
"type": "string",
"enum": [
"email",
"domain",
"record_id"
]
},
"createIfMissing": {
"type": "boolean"
}
},
"required": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
],
"patternProperties": {
"^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
]
}
},
"companyLink": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"sourceVariable": {
"type": "string"
},
"matchBy": {
"type": "string",
"enum": [
"email",
"domain",
"record_id"
]
},
"createIfMissing": {
"type": "boolean"
}
},
"required": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
],
"patternProperties": {
"^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
]
}
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:type|content|assigneeMemberIds|onMissingAssignee|deadlineOffsetDays|personLink|companyLink)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"content",
"assigneeMemberIds",
"onMissingAssignee",
"deadlineOffsetDays",
"personLink",
"companyLink"
]
}
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"heyreach_campaign"
]
},
"connectionId": {
"type": "string"
},
"campaignId": {
"type": "integer",
"minimum": 1
},
"campaignName": {
"anyOf": [
{
"type": "string",
"maxLength": 500
},
{
"type": "null"
}
]
},
"linkedInAccountId": {
"anyOf": [
{
"type": "integer",
"minimum": 1
},
{
"type": "null"
}
]
}
},
"required": [
"type",
"campaignId"
],
"patternProperties": {
"^(?!(?:type|connectionId|campaignId|campaignName|linkedInAccountId)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"type",
"connectionId",
"campaignId",
"campaignName",
"linkedInAccountId"
]
}
}
]
},
"enabled": {
"type": "boolean"
}
},
"patternProperties": {
"^(?!(?:id|content|enabled)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"content",
"enabled"
]
}
},
"maxItems": 26
}
},
"required": [
"type"
],
"patternProperties": {
"^(?!(?:stepId|type|waitFor|runMode|rearmAfterDays|bodyFormat|previousThreadSelection|enabled|variants)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"stepId",
"type",
"waitFor",
"runMode",
"rearmAfterDays",
"bodyFormat",
"previousThreadSelection",
"enabled",
"variants"
]
}
},
"maxItems": 100
}
},
"required": [
"steps"
],
"patternProperties": {
"^(?!(?:expectedSequenceRevision|initialDelayMinutes|steps)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"expectedSequenceRevision",
"initialDelayMinutes",
"steps"
]
}
}
},
"required": [
"action",
"workspaceId",
"campaignId",
"payload"
],
"patternProperties": {
"^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|payload)$)[\\s\\S]*$)": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId",
"payload"
]
},
{
"enum": [
"workspaceId"
]
}
]
}
},
{
"type": "object",
"properties": {
"workspaceId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"action": {
"type": "string",
"enum": [
"update_sequence"
]
},
"campaignId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"payload": {
"type": "object",
"properties": {
"initialDelayMinutes": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 43200
},
{
"type": "null"
}
]
}
},
"required": [
"initialDelayMinutes"
],
"patternProperties": {
"^(?!(?:initialDelayMinutes)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"initialDelayMinutes"
]
}
]
}
}
},
"required": [
"action",
"workspaceId",
"campaignId",
"payload"
],
"patternProperties": {
"^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|payload)$)[\\s\\S]*$)": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId",
"payload"
]
},
{
"enum": [
"workspaceId"
]
}
]
}
},
{
"type": "object",
"properties": {
"workspaceId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"action": {
"type": "string",
"enum": [
"create_sequence"
]
},
"payload": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"inboxIds": {
"type": "array",
"items": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"minItems": 1,
"maxItems": 100
},
"initialDelayMinutes": {
"type": "integer",
"minimum": 0,
"maximum": 525600
},
"stopOtherCampaigns": {
"type": "boolean"
}
},
"required": [
"name",
"inboxIds"
],
"patternProperties": {
"^(?!(?:name|inboxIds|initialDelayMinutes|stopOtherCampaigns)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"name",
"inboxIds",
"initialDelayMinutes",
"stopOtherCampaigns"
]
}
}
},
"required": [
"action",
"workspaceId",
"payload"
],
"patternProperties": {
"^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|payload)$)[\\s\\S]*$)": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"action",
"workspaceId",
"payload"
]
},
{
"enum": [
"workspaceId"
]
}
]
}
},
{
"type": "object",
"properties": {
"workspaceId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"action": {
"type": "string",
"enum": [
"set_sequence_status"
]
},
"sequenceId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"payload": {
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"active",
"paused"
]
}
},
"required": [
"status"
],
"patternProperties": {
"^(?!(?:status)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"status"
]
}
]
}
}
},
"required": [
"action",
"workspaceId",
"sequenceId",
"payload"
],
"patternProperties": {
"^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|sequenceId|payload)$)[\\s\\S]*$)": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"action",
"workspaceId",
"sequenceId",
"payload"
]
},
{
"enum": [
"workspaceId"
]
}
]
}
},
{
"type": "object",
"properties": {
"workspaceId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"action": {
"type": "string",
"enum": [
"create_subsequence"
]
},
"campaignId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"payload": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"trigger": {
"type": "object",
"properties": {
"conditionType": {
"type": "string",
"enum": [
"reply_any",
"reply_genuine",
"reply_label",
"reply_text"
]
},
"replyLabelIds": {
"type": "array",
"items": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
}
},
"textContains": {
"$ref": "#/$defs/NonEmptyString"
},
"textNotContains": {
"$ref": "#/$defs/NonEmptyString"
}
},
"required": [
"conditionType"
],
"patternProperties": {
"^(?!(?:conditionType|replyLabelIds|textContains|textNotContains)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"conditionType",
"replyLabelIds",
"textContains",
"textNotContains"
]
}
}
},
"required": [
"name"
],
"patternProperties": {
"^(?!(?:name|trigger)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"name",
"trigger"
]
}
}
},
"required": [
"action",
"workspaceId",
"campaignId",
"payload"
],
"patternProperties": {
"^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|payload)$)[\\s\\S]*$)": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId",
"payload"
]
},
{
"enum": [
"workspaceId"
]
}
]
}
},
{
"type": "object",
"properties": {
"workspaceId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"action": {
"type": "string",
"enum": [
"save_subsequence_triggers"
]
},
"subsequenceCampaignId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"payload": {
"type": "object",
"properties": {
"triggers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"conditionType": {
"type": "string",
"enum": [
"reply_any",
"reply_genuine",
"reply_label",
"reply_text"
]
},
"replyLabelIds": {
"type": "array",
"items": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
}
},
"textContains": {
"$ref": "#/$defs/NonEmptyString"
},
"textNotContains": {
"$ref": "#/$defs/NonEmptyString"
},
"id": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"enabled": {
"type": "boolean"
}
},
"required": [
"conditionType"
],
"patternProperties": {
"^(?!(?:conditionType|replyLabelIds|textContains|textNotContains|id|enabled)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"conditionType",
"replyLabelIds",
"textContains",
"textNotContains",
"id",
"enabled"
]
}
}
}
},
"required": [
"triggers"
],
"patternProperties": {
"^(?!(?:triggers)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"triggers"
]
}
]
}
}
},
"required": [
"action",
"workspaceId",
"subsequenceCampaignId",
"payload"
],
"patternProperties": {
"^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|subsequenceCampaignId|payload)$)[\\s\\S]*$)": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"action",
"workspaceId",
"subsequenceCampaignId",
"payload"
]
},
{
"enum": [
"workspaceId"
]
}
]
}
}
],
"$defs": {
"Union_": {
"anyOf": [
{
"type": "null"
},
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/Union_"
}
},
{
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
]
},
"NonEmptyString": {
"type": "string",
"minLength": 1,
"maxLength": 4096
}
}
}
```
### Output schema (structuredContent)
```json
{
"$defs": {
"UtcDateTimeEncoded": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
},
"Union_": {
"anyOf": [
{
"type": "null"
},
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/Union_"
}
},
{
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
]
},
"ShortText": {
"type": "string",
"minLength": 1,
"maxLength": 256
}
},
"type": "object",
"anyOf": [
{
"allOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"success": {
"type": "boolean",
"enum": [
true
]
},
"savedSteps": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"stepOrder": {
"type": "integer",
"minimum": 1
},
"variantOrder": {
"type": "integer",
"minimum": 1
},
"type": {
"type": "string",
"enum": [
"email_content",
"manual_review",
"linked_in_connection_request",
"linked_in_in_mail",
"phone_call",
"text_message",
"http_post_request",
"attio_task",
"heyreach_campaign"
]
},
"stepId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
}
},
"required": [
"id",
"stepOrder",
"variantOrder",
"type",
"stepId"
],
"patternProperties": {
"^(?!(?:id|stepOrder|variantOrder|type|stepId)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"stepOrder",
"variantOrder",
"type",
"stepId"
]
}
}
},
"txid": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"sequenceRevision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"success",
"savedSteps",
"txid",
"sequenceRevision"
],
"patternProperties": {
"^(?!(?:success|savedSteps|txid|sequenceRevision)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"success",
"savedSteps",
"txid",
"sequenceRevision"
]
}
},
{
"type": "object",
"properties": {
"success": {
"type": "boolean",
"enum": [
true
]
}
},
"required": [
"success"
],
"patternProperties": {
"^(?!(?:success)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"success"
]
}
]
}
},
{
"type": "object",
"properties": {
"success": {
"type": "boolean",
"enum": [
true
]
},
"enabled": {
"type": "boolean"
}
},
"required": [
"success",
"enabled"
],
"patternProperties": {
"^(?!(?:success|enabled)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"success",
"enabled"
]
}
},
{
"type": "object",
"properties": {
"success": {
"type": "boolean",
"enum": [
true
]
}
},
"required": [
"success"
],
"patternProperties": {
"^(?!(?:success)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"success"
]
}
]
}
},
{
"type": "object",
"properties": {
"txid": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"sequenceRevision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"sequence": {
"type": "object",
"properties": {
"campaignId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"sequenceRevision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"initialDelayMinutes": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"steps": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"position": {
"type": "integer",
"minimum": 1
},
"type": {
"type": "string",
"enum": [
"email_content",
"manual_review",
"linked_in_connection_request",
"linked_in_in_mail",
"phone_call",
"text_message",
"http_post_request",
"attio_task",
"heyreach_campaign"
]
},
"waitFor": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"bodyFormat": {
"type": "string",
"enum": [
"inherit",
"plain",
"html"
]
},
"previousThreadSelection": {
"anyOf": [
{
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": [
"all",
"latest",
"custom"
]
},
"stepIds": {
"type": "array",
"items": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
}
}
},
"required": [
"mode"
],
"patternProperties": {
"^(?!(?:mode|stepIds)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"mode",
"stepIds"
]
}
},
{
"type": "null"
}
]
},
"enabled": {
"type": "boolean"
},
"revision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"updatedAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"variants": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"variantOrder": {
"type": "integer",
"minimum": 1
},
"enabled": {
"type": "boolean"
},
"revision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"content": {
"$ref": "#/$defs/Union_"
},
"plainText": {
"type": "object",
"properties": {
"subject": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"body": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"patternProperties": {
"^(?!(?:subject|body)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"subject",
"body"
]
}
},
"updatedAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
}
},
"required": [
"id",
"variantOrder",
"enabled",
"revision",
"content",
"plainText",
"updatedAt"
],
"patternProperties": {
"^(?!(?:id|variantOrder|enabled|revision|content|plainText|updatedAt)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"variantOrder",
"enabled",
"revision",
"content",
"plainText",
"updatedAt"
]
}
}
}
},
"required": [
"id",
"position",
"type",
"waitFor",
"runMode",
"rearmAfterDays",
"bodyFormat",
"previousThreadSelection",
"enabled",
"revision",
"updatedAt",
"variants"
],
"patternProperties": {
"^(?!(?:id|position|type|waitFor|runMode|rearmAfterDays|bodyFormat|previousThreadSelection|enabled|revision|updatedAt|variants)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"position",
"type",
"waitFor",
"runMode",
"rearmAfterDays",
"bodyFormat",
"previousThreadSelection",
"enabled",
"revision",
"updatedAt",
"variants"
]
}
}
}
},
"required": [
"campaignId",
"sequenceRevision",
"initialDelayMinutes",
"steps"
],
"patternProperties": {
"^(?!(?:campaignId|sequenceRevision|initialDelayMinutes|steps)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"campaignId",
"sequenceRevision",
"initialDelayMinutes",
"steps"
]
}
}
},
"required": [
"txid",
"sequenceRevision",
"sequence"
],
"patternProperties": {
"^(?!(?:txid|sequenceRevision|sequence)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"txid",
"sequenceRevision",
"sequence"
]
}
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"name": {
"$ref": "#/$defs/ShortText"
},
"status": {
"type": "string",
"enum": [
"draft",
"active",
"paused",
"archived",
"completed"
]
},
"pauseContext": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"reason": {
"anyOf": [
{
"type": "string",
"enum": [
"manual"
]
}
]
},
"pausedAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"source": {
"anyOf": [
{
"type": "string",
"enum": [
"user"
]
}
]
},
"evidence": {
"type": "null"
}
},
"required": [
"reason",
"pausedAt",
"source",
"evidence"
],
"patternProperties": {
"^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"reason",
"pausedAt",
"source",
"evidence"
]
}
},
{
"type": "object",
"properties": {
"reason": {
"anyOf": [
{
"type": "string",
"enum": [
"bounce_threshold"
]
}
]
},
"pausedAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"source": {
"anyOf": [
{
"type": "string",
"enum": [
"system"
]
}
]
},
"evidence": {
"type": "object",
"properties": {
"thresholdPercent": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"bounceRatePercent": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"sentCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"bouncedCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"recipientBounceCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"senderBounceCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"unclassifiedBounceCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"scope": {
"anyOf": [
{
"type": "string",
"enum": [
"campaign_lifetime"
]
}
]
}
},
"required": [
"thresholdPercent",
"bounceRatePercent",
"sentCount",
"bouncedCount",
"recipientBounceCount",
"senderBounceCount",
"unclassifiedBounceCount",
"scope"
],
"patternProperties": {
"^(?!(?:thresholdPercent|bounceRatePercent|sentCount|bouncedCount|recipientBounceCount|senderBounceCount|unclassifiedBounceCount|scope)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"thresholdPercent",
"bounceRatePercent",
"sentCount",
"bouncedCount",
"recipientBounceCount",
"senderBounceCount",
"unclassifiedBounceCount",
"scope"
]
}
}
},
"required": [
"reason",
"pausedAt",
"source",
"evidence"
],
"patternProperties": {
"^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"reason",
"pausedAt",
"source",
"evidence"
]
}
},
{
"type": "object",
"properties": {
"reason": {
"anyOf": [
{
"type": "string",
"enum": [
"unknown"
]
}
]
},
"pausedAt": {
"anyOf": [
{
"$ref": "#/$defs/UtcDateTimeEncoded"
},
{
"type": "null"
}
]
},
"source": {
"anyOf": [
{
"type": "string",
"enum": [
"unknown"
]
}
]
},
"evidence": {
"type": "null"
}
},
"required": [
"reason",
"pausedAt",
"source",
"evidence"
],
"patternProperties": {
"^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"reason",
"pausedAt",
"source",
"evidence"
]
}
}
],
"description": "Opt-in response context: request Accept: application/vnd.scheduler-zero.campaign-pause-context.v1+json, application/json. Unnegotiated responses omit pauseContext for strict legacy clients. Old servers omit it even for new clients; an absent field on a paused campaign means unknown attribution."
},
{
"type": "null"
}
]
},
"kind": {
"type": "string",
"enum": [
"sequence"
]
},
"initialDelayMinutes": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"stopOtherCampaignsOnEnroll": {
"type": "boolean"
},
"inboxIds": {
"type": "array",
"items": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
}
},
"createdAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"updatedAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
}
},
"required": [
"id",
"name",
"status",
"kind",
"initialDelayMinutes",
"stopOtherCampaignsOnEnroll",
"inboxIds",
"createdAt",
"updatedAt"
],
"patternProperties": {
"^(?!(?:id|name|status|pauseContext|kind|initialDelayMinutes|stopOtherCampaignsOnEnroll|inboxIds|createdAt|updatedAt)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"name",
"status",
"pauseContext",
"kind",
"initialDelayMinutes",
"stopOtherCampaignsOnEnroll",
"inboxIds",
"createdAt",
"updatedAt"
]
}
},
{
"anyOf": [
{
"type": "object",
"properties": {
"success": {
"type": "boolean",
"enum": [
true
]
}
},
"required": [
"success"
],
"patternProperties": {
"^(?!(?:success)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"success"
]
}
]
}
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
}
},
"required": [
"id"
],
"patternProperties": {
"^(?!(?:id)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"id"
]
}
]
}
}
]
}
]
},
{
"type": "object"
}
]
},
{
"type": "object",
"properties": {
"data": {
"allOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"success": {
"type": "boolean",
"enum": [
true
]
},
"savedSteps": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"stepOrder": {
"type": "integer",
"minimum": 1
},
"variantOrder": {
"type": "integer",
"minimum": 1
},
"type": {
"type": "string",
"enum": [
"email_content",
"manual_review",
"linked_in_connection_request",
"linked_in_in_mail",
"phone_call",
"text_message",
"http_post_request",
"attio_task",
"heyreach_campaign"
]
},
"stepId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
}
},
"required": [
"id",
"stepOrder",
"variantOrder",
"type",
"stepId"
],
"patternProperties": {
"^(?!(?:id|stepOrder|variantOrder|type|stepId)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"stepOrder",
"variantOrder",
"type",
"stepId"
]
}
}
},
"txid": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"sequenceRevision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"success",
"savedSteps",
"txid",
"sequenceRevision"
],
"patternProperties": {
"^(?!(?:success|savedSteps|txid|sequenceRevision)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"success",
"savedSteps",
"txid",
"sequenceRevision"
]
}
},
{
"type": "object",
"properties": {
"success": {
"type": "boolean",
"enum": [
true
]
}
},
"required": [
"success"
],
"patternProperties": {
"^(?!(?:success)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"success"
]
}
]
}
},
{
"type": "object",
"properties": {
"success": {
"type": "boolean",
"enum": [
true
]
},
"enabled": {
"type": "boolean"
}
},
"required": [
"success",
"enabled"
],
"patternProperties": {
"^(?!(?:success|enabled)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"success",
"enabled"
]
}
},
{
"type": "object",
"properties": {
"success": {
"type": "boolean",
"enum": [
true
]
}
},
"required": [
"success"
],
"patternProperties": {
"^(?!(?:success)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"success"
]
}
]
}
},
{
"type": "object",
"properties": {
"txid": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"sequenceRevision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"sequence": {
"type": "object",
"properties": {
"campaignId": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"sequenceRevision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"initialDelayMinutes": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"steps": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"position": {
"type": "integer",
"minimum": 1
},
"type": {
"type": "string",
"enum": [
"email_content",
"manual_review",
"linked_in_connection_request",
"linked_in_in_mail",
"phone_call",
"text_message",
"http_post_request",
"attio_task",
"heyreach_campaign"
]
},
"waitFor": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"bodyFormat": {
"type": "string",
"enum": [
"inherit",
"plain",
"html"
]
},
"previousThreadSelection": {
"anyOf": [
{
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": [
"all",
"latest",
"custom"
]
},
"stepIds": {
"type": "array",
"items": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
}
}
},
"required": [
"mode"
],
"patternProperties": {
"^(?!(?:mode|stepIds)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"mode",
"stepIds"
]
}
},
{
"type": "null"
}
]
},
"enabled": {
"type": "boolean"
},
"revision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"updatedAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"variants": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"variantOrder": {
"type": "integer",
"minimum": 1
},
"enabled": {
"type": "boolean"
},
"revision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"content": {
"$ref": "#/$defs/Union_"
},
"plainText": {
"type": "object",
"properties": {
"subject": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"body": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"patternProperties": {
"^(?!(?:subject|body)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"subject",
"body"
]
}
},
"updatedAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
}
},
"required": [
"id",
"variantOrder",
"enabled",
"revision",
"content",
"plainText",
"updatedAt"
],
"patternProperties": {
"^(?!(?:id|variantOrder|enabled|revision|content|plainText|updatedAt)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"variantOrder",
"enabled",
"revision",
"content",
"plainText",
"updatedAt"
]
}
}
}
},
"required": [
"id",
"position",
"type",
"waitFor",
"runMode",
"rearmAfterDays",
"bodyFormat",
"previousThreadSelection",
"enabled",
"revision",
"updatedAt",
"variants"
],
"patternProperties": {
"^(?!(?:id|position|type|waitFor|runMode|rearmAfterDays|bodyFormat|previousThreadSelection|enabled|revision|updatedAt|variants)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"position",
"type",
"waitFor",
"runMode",
"rearmAfterDays",
"bodyFormat",
"previousThreadSelection",
"enabled",
"revision",
"updatedAt",
"variants"
]
}
}
}
},
"required": [
"campaignId",
"sequenceRevision",
"initialDelayMinutes",
"steps"
],
"patternProperties": {
"^(?!(?:campaignId|sequenceRevision|initialDelayMinutes|steps)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"campaignId",
"sequenceRevision",
"initialDelayMinutes",
"steps"
]
}
}
},
"required": [
"txid",
"sequenceRevision",
"sequence"
],
"patternProperties": {
"^(?!(?:txid|sequenceRevision|sequence)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"txid",
"sequenceRevision",
"sequence"
]
}
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"name": {
"$ref": "#/$defs/ShortText"
},
"status": {
"type": "string",
"enum": [
"draft",
"active",
"paused",
"archived",
"completed"
]
},
"pauseContext": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"reason": {
"anyOf": [
{
"type": "string",
"enum": [
"manual"
]
}
]
},
"pausedAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"source": {
"anyOf": [
{
"type": "string",
"enum": [
"user"
]
}
]
},
"evidence": {
"type": "null"
}
},
"required": [
"reason",
"pausedAt",
"source",
"evidence"
],
"patternProperties": {
"^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"reason",
"pausedAt",
"source",
"evidence"
]
}
},
{
"type": "object",
"properties": {
"reason": {
"anyOf": [
{
"type": "string",
"enum": [
"bounce_threshold"
]
}
]
},
"pausedAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"source": {
"anyOf": [
{
"type": "string",
"enum": [
"system"
]
}
]
},
"evidence": {
"type": "object",
"properties": {
"thresholdPercent": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"bounceRatePercent": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"sentCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"bouncedCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"recipientBounceCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"senderBounceCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"unclassifiedBounceCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"scope": {
"anyOf": [
{
"type": "string",
"enum": [
"campaign_lifetime"
]
}
]
}
},
"required": [
"thresholdPercent",
"bounceRatePercent",
"sentCount",
"bouncedCount",
"recipientBounceCount",
"senderBounceCount",
"unclassifiedBounceCount",
"scope"
],
"patternProperties": {
"^(?!(?:thresholdPercent|bounceRatePercent|sentCount|bouncedCount|recipientBounceCount|senderBounceCount|unclassifiedBounceCount|scope)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"thresholdPercent",
"bounceRatePercent",
"sentCount",
"bouncedCount",
"recipientBounceCount",
"senderBounceCount",
"unclassifiedBounceCount",
"scope"
]
}
}
},
"required": [
"reason",
"pausedAt",
"source",
"evidence"
],
"patternProperties": {
"^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"reason",
"pausedAt",
"source",
"evidence"
]
}
},
{
"type": "object",
"properties": {
"reason": {
"anyOf": [
{
"type": "string",
"enum": [
"unknown"
]
}
]
},
"pausedAt": {
"anyOf": [
{
"$ref": "#/$defs/UtcDateTimeEncoded"
},
{
"type": "null"
}
]
},
"source": {
"anyOf": [
{
"type": "string",
"enum": [
"unknown"
]
}
]
},
"evidence": {
"type": "null"
}
},
"required": [
"reason",
"pausedAt",
"source",
"evidence"
],
"patternProperties": {
"^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"reason",
"pausedAt",
"source",
"evidence"
]
}
}
],
"description": "Opt-in response context: request Accept: application/vnd.scheduler-zero.campaign-pause-context.v1+json, application/json. Unnegotiated responses omit pauseContext for strict legacy clients. Old servers omit it even for new clients; an absent field on a paused campaign means unknown attribution."
},
{
"type": "null"
}
]
},
"kind": {
"type": "string",
"enum": [
"sequence"
]
},
"initialDelayMinutes": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"stopOtherCampaignsOnEnroll": {
"type": "boolean"
},
"inboxIds": {
"type": "array",
"items": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
}
},
"createdAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"updatedAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
}
},
"required": [
"id",
"name",
"status",
"kind",
"initialDelayMinutes",
"stopOtherCampaignsOnEnroll",
"inboxIds",
"createdAt",
"updatedAt"
],
"patternProperties": {
"^(?!(?:id|name|status|pauseContext|kind|initialDelayMinutes|stopOtherCampaignsOnEnroll|inboxIds|createdAt|updatedAt)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"name",
"status",
"pauseContext",
"kind",
"initialDelayMinutes",
"stopOtherCampaignsOnEnroll",
"inboxIds",
"createdAt",
"updatedAt"
]
}
},
{
"anyOf": [
{
"type": "object",
"properties": {
"success": {
"type": "boolean",
"enum": [
true
]
}
},
"required": [
"success"
],
"patternProperties": {
"^(?!(?:success)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"success"
]
}
]
}
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
}
},
"required": [
"id"
],
"patternProperties": {
"^(?!(?:id)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"id"
]
}
]
}
}
]
}
]
},
{
"not": {
"type": "object"
}
}
]
}
},
"required": [
"data"
],
"additionalProperties": false
}
]
}
```
### Underlying API operations
- `campaignSteps.save`: `POST /v1/workspaces/:workspaceId/campaigns/:campaignId/steps/save`
- `campaignSteps.update`: `PATCH /v1/workspaces/:workspaceId/campaigns/:campaignId/steps/:stepId`
- `campaignSteps.toggleEnabled`: `POST /v1/workspaces/:workspaceId/campaigns/:campaignId/steps/:stepId/toggle-enabled`
- `campaignSteps.delete`: `DELETE /v1/workspaces/:workspaceId/campaigns/:campaignId/steps/:stepId`
- `campaignSteps.deleteAll`: `DELETE /v1/workspaces/:workspaceId/campaigns/:campaignId/steps`
- `campaignSteps.createStep`: `POST /v1/workspaces/:workspaceId/campaigns/:campaignId/sequence/steps`
- `campaignSteps.updateSequenceStep`: `PATCH /v1/workspaces/:workspaceId/campaigns/:campaignId/sequence/steps/:stepId`
- `campaignSteps.moveSequenceStep`: `POST /v1/workspaces/:workspaceId/campaigns/:campaignId/sequence/steps/:stepId/move`
- `campaignSteps.deleteSequenceStep`: `DELETE /v1/workspaces/:workspaceId/campaigns/:campaignId/sequence/steps/:stepId`
- `campaignSteps.createVariant`: `POST /v1/workspaces/:workspaceId/campaigns/:campaignId/sequence/steps/:stepId/variants`
- `campaignSteps.updateVariant`: `PATCH /v1/workspaces/:workspaceId/campaigns/:campaignId/sequence/variants/:variantId`
- `campaignSteps.deleteVariant`: `DELETE /v1/workspaces/:workspaceId/campaigns/:campaignId/sequence/variants/:variantId`
- `campaignSteps.replaceSequence`: `PUT /v1/workspaces/:workspaceId/campaigns/:campaignId/sequence`
- `campaignSteps.updateSequence`: `PATCH /v1/workspaces/:workspaceId/campaigns/:campaignId/sequence`
- `campaignSequences.create`: `POST /v1/workspaces/:workspaceId/campaigns/sequences`
- `campaignSequences.setStatus`: `PATCH /v1/workspaces/:workspaceId/campaigns/sequences/:sequenceId/status`
- `campaignSubsequences.create`: `POST /v1/workspaces/:workspaceId/campaigns/:campaignId/subsequences`
- `campaignSubsequences.saveTriggers`: `POST /v1/workspaces/:workspaceId/campaigns/subsequences/:subsequenceCampaignId/triggers`