Appearance
Triggers
- N/A
Consumer notes
Use eventId as the idempotency key.
DECISION.ALL_DECISIONS_CREATED.schema.json
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$defs": {
"APIDecisionRule": {
"type": "object",
"properties": {
"description": {
"type": [
"string",
"null"
]
},
"error": {
"$ref": "#/$defs/APIError-nullable"
},
"name": {
"type": [
"string",
"null"
]
},
"nodeEvaluationData": {
"$ref": "#/$defs/NodeEvaluationData-nullable"
},
"outcome": {
"type": [
"string",
"null"
]
},
"result": {
"type": "boolean"
},
"ruleId": {
"type": [
"integer",
"null"
]
},
"scoreModifier": {
"type": "integer"
}
}
},
"APIDecisionScenario": {
"type": "object",
"properties": {
"description": {
"type": [
"string",
"null"
]
},
"id": {
"type": [
"integer",
"null"
]
},
"name": {
"type": [
"string",
"null"
]
},
"scenarioIterationId": {
"type": [
"integer",
"null"
]
},
"version": {
"type": "integer"
}
}
},
"APIDecisionScenario-nullable": {
"anyOf": [
{
"type": "null"
},
{
"$ref": "#/$defs/APIDecisionScenario"
}
]
},
"APIDecisionScreening": {
"type": "object",
"properties": {
"count": {
"type": [
"integer",
"null"
]
},
"id": {
"type": [
"integer",
"null"
]
},
"isPartial": {
"type": [
"boolean",
"null"
]
},
"status": {
"type": [
"string",
"null"
]
}
}
},
"APIDecisionWithRules": {
"type": "object",
"properties": {
"alert": {
"$ref": "#/$defs/AlertBasicData-nullable"
},
"appLink": {
"type": [
"string",
"null"
]
},
"createdAt": {
"type": [
"string",
"null"
]
},
"id": {
"type": [
"integer",
"null"
]
},
"outcome": {
"type": [
"string",
"null"
]
},
"pivotValues": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/$defs/PivotValueData"
}
},
"rules": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/$defs/APIDecisionRule"
}
},
"scenario": {
"$ref": "#/$defs/APIDecisionScenario-nullable"
},
"score": {
"type": "integer"
},
"screenings": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/$defs/APIDecisionScreening"
}
},
"triggerObject": {
"$ref": "#/$defs/Map(String,Object)-nullable"
},
"triggerObjectType": {
"type": [
"string",
"null"
]
}
}
},
"APIError": {
"type": "object",
"properties": {
"code": {
"type": "integer"
},
"message": {
"type": [
"string",
"null"
]
}
}
},
"APIError-nullable": {
"anyOf": [
{
"type": "null"
},
{
"$ref": "#/$defs/APIError"
}
]
},
"AggregateMetadata": {
"type": "object",
"properties": {
"approve": {
"type": "integer"
},
"blockAndReview": {
"type": "integer"
},
"decline": {
"type": "integer"
},
"review": {
"type": "integer"
},
"skipped": {
"type": "integer"
},
"total": {
"type": "integer"
}
}
},
"AggregateMetadata-nullable": {
"anyOf": [
{
"type": "null"
},
{
"$ref": "#/$defs/AggregateMetadata"
}
]
},
"AlertBasicData": {
"type": "object",
"properties": {
"description": {
"type": [
"string",
"null"
]
},
"id": {
"type": [
"integer",
"null"
]
},
"status": {
"$ref": "#/$defs/AlertStatus-nullable"
},
"title": {
"type": [
"string",
"null"
]
}
}
},
"AlertBasicData-nullable": {
"anyOf": [
{
"type": "null"
},
{
"$ref": "#/$defs/AlertBasicData"
}
]
},
"AlertStatus": {
"type": "string",
"enum": [
"NEW",
"OPEN",
"REOPEN",
"IN_REVIEW",
"PENDING_INFO",
"ESCALATED_TO_CASE",
"CLOSED",
"CLOSED_SUPPRESSION"
]
},
"AlertStatus-nullable": {
"anyOf": [
{
"type": "null"
},
{
"$ref": "#/$defs/AlertStatus"
}
]
},
"DecisionsAggregateMetadata": {
"type": "object",
"properties": {
"count": {
"$ref": "#/$defs/AggregateMetadata-nullable"
}
}
},
"DecisionsAggregateMetadata-nullable": {
"anyOf": [
{
"type": "null"
},
{
"$ref": "#/$defs/DecisionsAggregateMetadata"
}
]
},
"EvaluationErrorData": {
"type": "object",
"properties": {
"argumentIndex": {
"type": [
"integer",
"null"
]
},
"argumentName": {
"type": [
"string",
"null"
]
},
"evaluationError": {
"type": [
"string",
"null"
]
},
"message": {
"type": [
"string",
"null"
]
}
}
},
"Map(String,NodeEvaluationData)": {
"type": "object"
},
"Map(String,NodeEvaluationData)-nullable": {
"anyOf": [
{
"type": "null"
},
{
"$ref": "#/$defs/Map(String,NodeEvaluationData)"
}
]
},
"Map(String,Object)": {
"type": "object"
},
"Map(String,Object)-nullable": {
"anyOf": [
{
"type": "null"
},
{
"$ref": "#/$defs/Map(String,Object)"
}
]
},
"NodeEvaluationData": {
"type": "object",
"properties": {
"children": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/$defs/NodeEvaluationData"
}
},
"errors": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/$defs/EvaluationErrorData"
}
},
"metadata": {
"$ref": "#/$defs/Map(String,Object)-nullable"
},
"namedChildren": {
"$ref": "#/$defs/Map(String,NodeEvaluationData)-nullable"
},
"returnValue": {
"$ref": "#/$defs/ReturnValueData-nullable"
}
}
},
"NodeEvaluationData-nullable": {
"anyOf": [
{
"type": "null"
},
{
"$ref": "#/$defs/NodeEvaluationData"
}
]
},
"PivotValueData": {
"type": "object",
"properties": {
"pivotId": {
"type": [
"integer",
"null"
]
},
"pivotValue": {
"type": [
"string",
"null"
]
}
}
},
"ReturnValueData": {
"type": "object",
"properties": {
"omitted": {
"type": [
"boolean",
"null"
]
},
"value": {}
}
},
"ReturnValueData-nullable": {
"anyOf": [
{
"type": "null"
},
{
"$ref": "#/$defs/ReturnValueData"
}
]
}
},
"type": "object",
"properties": {
"decisionIds": {
"type": [
"array",
"null"
],
"items": {
"type": "integer"
}
},
"decisions": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/$defs/APIDecisionWithRules"
}
},
"metadata": {
"$ref": "#/$defs/DecisionsAggregateMetadata-nullable"
}
}
}