changedOutput schema / anyOf
Previous value: -[
- {
- "properties": {
- "agent_name": {
- "type": [
- "string",
- "null"
- ]
- },
- "audience": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "created_at": {
- "format": "date-time",
- "type": "string"
- },
- "duration_seconds": {
- "type": [
- "integer",
- "null"
- ]
- },
- "edited_at": {
- "format": "date-time",
- "type": [
- "string",
- "null"
- ]
- },
- "job_id": {
- "format": "uuid",
- "type": [
- "string",
- "null"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "media_ids": {
- "items": {
- "format": "uuid",
- "type": "string"
- },
- "type": "array"
- },
- "mentions": {
- "items": {
- "format": "uuid",
- "type": "string"
- },
- "type": "array"
- },
- "note_id": {
- "format": "uuid",
- "type": "string"
- },
- "pinned": {
- "type": "boolean"
- },
- "recorded_at": {
- "format": "date-time",
- "type": [
- "string",
- "null"
- ]
- },
- "remove_reason": {
- "type": [
- "string",
- "null"
- ]
- },
- "removed_at": {
- "format": "date-time",
- "type": [
- "string",
- "null"
- ]
- },
- "removed_by": {
- "format": "uuid",
- "type": [
- "string",
- "null"
- ]
- },
- "revisions": {
- "type": "integer"
- },
- "shop_id": {
- "format": "uuid",
- "type": "string"
- },
- "source": {
- "type": "string"
- },
- "target_id": {
- "format": "uuid",
- "type": "string"
- },
- "target_kind": {
- "type": "string"
- },
- "transcribed_with": {
- "type": [
- "string",
- "null"
- ]
- },
- "visit_id": {
- "format": "uuid",
- "type": [
- "string",
- "null"
- ]
- },
- "written_by": {
- "format": "uuid",
- "type": "string"
- },
- "written_by_name": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "note_id",
- "shop_id",
- "target_kind",
- "target_id",
- "job_id",
- "visit_id",
- "mentions",
- "agent_name",
- "source",
- "body",
- "audience",
- "pinned",
- "media_ids",
- "recorded_at",
- "duration_seconds",
- "transcribed_with",
- "language",
- "revisions",
- "written_by",
- "written_by_name",
- "created_at",
- "edited_at",
- "removed_at",
- "removed_by",
- "remove_reason"
- ],
- "type": "object"
- },
- {
- "properties": {
- "approval_id": {
- "format": "uuid",
- "type": "string"
- },
- "approval_required": {
- "enum": [
- true
- ],
- "type": "boolean"
- },
- "expires_at": {
- "format": "date-time",
- "type": "string"
- },
- "message": {
- "type": "string"
- },
- "status": {
- "enum": [
- "pending"
- ],
- "type": "string"
- }
- },
- "required": [
- "approval_required",
- "approval_id",
- "status",
- "expires_at",
- "message"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "properties": {
+ "agent_name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "audience": {
+ "type": "string"
+ },
+ "body": {
+ "type": "string"
+ },
+ "channel": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "created_at": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "duration_seconds": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "edited_at": {
+ "format": "date-time",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "job_id": {
+ "format": "uuid",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "media_ids": {
+ "items": {
+ "format": "uuid",
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "mentions": {
+ "items": {
+ "format": "uuid",
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "note_id": {
+ "format": "uuid",
+ "type": "string"
+ },
+ "pinned": {
+ "type": "boolean"
+ },
+ "recorded_at": {
+ "format": "date-time",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "remove_reason": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "removed_at": {
+ "format": "date-time",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "removed_by": {
+ "format": "uuid",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "revisions": {
+ "type": "integer"
+ },
+ "shop_id": {
+ "format": "uuid",
+ "type": "string"
+ },
+ "source": {
+ "type": "string"
+ },
+ "target_id": {
+ "format": "uuid",
+ "type": "string"
+ },
+ "target_kind": {
+ "type": "string"
+ },
+ "transcribed_with": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "visit_id": {
+ "format": "uuid",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "written_by": {
+ "format": "uuid",
+ "type": "string"
+ },
+ "written_by_name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "note_id",
+ "shop_id",
+ "target_kind",
+ "target_id",
+ "job_id",
+ "visit_id",
+ "mentions",
+ "agent_name",
+ "source",
+ "channel",
+ "body",
+ "audience",
+ "pinned",
+ "media_ids",
+ "recorded_at",
+ "duration_seconds",
+ "transcribed_with",
+ "language",
+ "revisions",
+ "written_by",
+ "written_by_name",
+ "created_at",
+ "edited_at",
+ "removed_at",
+ "removed_by",
+ "remove_reason"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "approval_id": {
+ "format": "uuid",
+ "type": "string"
+ },
+ "approval_required": {
+ "enum": [
+ true
+ ],
+ "type": "boolean"
+ },
+ "expires_at": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ },
+ "status": {
+ "enum": [
+ "pending"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "approval_required",
+ "approval_id",
+ "status",
+ "expires_at",
+ "message"
+ ],
+ "type": "object"
+ }
+]