changedOutput schema / properties / item / oneOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "content": {
- "type": "string"
- },
- "contentType": {
- "type": "string"
- },
- "distributionKind": {
- "anyOf": [
- {
- "enum": [
- "substack_restack"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "draft": {
- "additionalProperties": false,
- "properties": {
- "id": {
- "type": "string"
- },
- "title": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "title"
- ],
- "type": "object"
- },
- "engagement": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "clicks": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "comments": {
- "type": "integer"
- },
- "follows": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "freeSubscriptions": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "impressions": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "likes": {
- "type": "integer"
- },
- "paidSubscriptions": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "recordedAt": {
- "format": "date-time",
- "type": "string"
- },
- "shares": {
- "type": "integer"
- }
- },
- "required": [
- "likes",
- "comments",
- "shares",
- "impressions",
- "clicks",
- "follows",
- "freeSubscriptions",
- "paidSubscriptions",
- "recordedAt"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "error": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "externalPostId": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "failureCode": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "type": "string"
- },
- "itemUrl": {
- "type": "string"
- },
- "platform": {
- "type": "string"
- },
- "platformMetrics": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "clicks": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- },
- "comments": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- },
- "follows": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- },
- "impressions": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- },
- "likes": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- },
- "observedAt": {
- "format": "date-time",
- "type": "string"
- },
- "reach": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- },
- "reposts": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- },
- "saves": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- },
- "sends": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- },
- "shares": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- },
- "views": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "likes",
- "comments",
- "shares",
- "saves",
- "sends",
- "clicks",
- "views",
- "reach",
- "impressions",
- "follows",
- "reposts",
- "observedAt"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "postUrl": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "postedAt": {
- "anyOf": [
- {
- "format": "date-time",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "quote": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "kind": {
- "enum": [
- "note",
- "post"
- ],
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- },
- "required": [
- "url",
- "kind"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "restackSourceCommentId": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "scheduledFor": {
- "format": "date-time",
- "type": "string"
- },
- "socialAccountId": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "status": {
- "type": "string"
- },
- "timezone": {
- "type": "string"
- },
- "type": {
- "const": "note",
- "type": "string"
- }
- },
- "required": [
- "id",
- "itemUrl",
- "type",
- "platform",
- "status",
- "scheduledFor",
- "timezone",
- "postedAt",
- "postUrl",
- "externalPostId",
- "error",
- "failureCode",
- "socialAccountId",
- "contentType",
- "distributionKind",
- "restackSourceCommentId",
- "quote",
- "content",
- "draft",
- "engagement",
- "platformMetrics"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "deliveryNote": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "draft": {
- "additionalProperties": false,
- "properties": {
- "id": {
- "type": "string"
- },
- "title": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "title"
- ],
- "type": "object"
- },
- "error": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "heldForEditorialReview": {
- "type": "boolean"
- },
- "id": {
- "type": "string"
- },
- "itemUrl": {
- "type": "string"
- },
- "outcome": {
- "enum": [
- "saved_draft"
- ],
- "type": "string"
- },
- "platforms": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "publishedAt": {
- "anyOf": [
- {
- "format": "date-time",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "recurringScheduleId": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "remoteEditUrl": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "scheduledFor": {
- "format": "date-time",
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "substackDelivery": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "note": {
- "type": "string"
- },
- "requiresVerification": {
- "type": "boolean"
- },
- "state": {
- "enum": [
- "waiting",
- "publishing",
- "verifying"
- ],
- "type": "string"
- },
- "verification": {
- "additionalProperties": false,
- "properties": {
- "action": {
- "type": "string"
- },
- "connectionId": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "endpoint": {
- "type": "string"
- },
- "instruction": {
- "type": "string"
- },
- "scheduledPostId": {
- "type": "string"
- },
- "tool": {
- "type": "string"
- },
- "tools": {
- "additionalProperties": false,
- "properties": {
- "cancel": {
- "type": "string"
- },
- "complete": {
- "type": "string"
- },
- "start": {
- "type": "string"
- },
- "status": {
- "type": "string"
- }
- },
- "required": [
- "status",
- "start",
- "complete",
- "cancel"
- ],
- "type": "object"
- }
- },
- "required": [
- "connectionId",
- "tool",
- "endpoint",
- "action",
- "instruction"
- ],
- "type": "object"
- },
- "verificationUrl": {
- "type": "string"
- }
- },
- "required": [
- "state",
- "note",
- "requiresVerification"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "timezone": {
- "type": "string"
- },
- "type": {
- "const": "article",
- "type": "string"
- }
- },
- "required": [
- "substackDelivery",
- "heldForEditorialReview",
- "deliveryNote",
- "id",
- "itemUrl",
- "type",
- "status",
- "scheduledFor",
- "timezone",
- "publishedAt",
- "error",
- "platforms",
- "recurringScheduleId",
- "draft"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "content": {
+ "type": "string"
+ },
+ "contentType": {
+ "type": "string"
+ },
+ "distributionKind": {
+ "anyOf": [
+ {
+ "enum": [
+ "substack_restack"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "draft": {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "title": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "title"
+ ],
+ "type": "object"
+ },
+ "engagement": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "clicks": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "comments": {
+ "type": "integer"
+ },
+ "follows": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "freeSubscriptions": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "impressions": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "likes": {
+ "type": "integer"
+ },
+ "paidSubscriptions": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "recordedAt": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "shares": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "likes",
+ "comments",
+ "shares",
+ "impressions",
+ "clicks",
+ "follows",
+ "freeSubscriptions",
+ "paidSubscriptions",
+ "recordedAt"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "error": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "externalPostId": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "failureCode": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "type": "string"
+ },
+ "itemUrl": {
+ "type": "string"
+ },
+ "platform": {
+ "type": "string"
+ },
+ "platformMetrics": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "clicks": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "comments": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "follows": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "impressions": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "likes": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "observedAt": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "reach": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "reposts": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "saves": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "sends": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "shares": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "views": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "likes",
+ "comments",
+ "shares",
+ "saves",
+ "sends",
+ "clicks",
+ "views",
+ "reach",
+ "impressions",
+ "follows",
+ "reposts",
+ "observedAt"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "postUrl": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "postedAt": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "quote": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "enum": [
+ "note",
+ "post"
+ ],
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "url",
+ "kind"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "restackSourceCommentId": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "scheduledFor": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "socialAccountId": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "status": {
+ "type": "string"
+ },
+ "timezone": {
+ "type": "string"
+ },
+ "type": {
+ "const": "note",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "itemUrl",
+ "type",
+ "platform",
+ "status",
+ "scheduledFor",
+ "timezone",
+ "postedAt",
+ "postUrl",
+ "externalPostId",
+ "error",
+ "failureCode",
+ "socialAccountId",
+ "contentType",
+ "distributionKind",
+ "restackSourceCommentId",
+ "quote",
+ "content",
+ "draft",
+ "engagement",
+ "platformMetrics"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "deliveryNote": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "draft": {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "title": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "title"
+ ],
+ "type": "object"
+ },
+ "error": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "heldForEditorialReview": {
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ },
+ "itemUrl": {
+ "type": "string"
+ },
+ "outcome": {
+ "enum": [
+ "saved_draft"
+ ],
+ "type": "string"
+ },
+ "platforms": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "publishedAt": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "recurringScheduleId": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "remoteEditUrl": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "scheduledFor": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "status": {
+ "type": "string"
+ },
+ "substackDelivery": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "note": {
+ "type": "string"
+ },
+ "reason": {
+ "type": "string"
+ },
+ "recoveryRequired": {
+ "type": "boolean"
+ },
+ "requiresVerification": {
+ "type": "boolean"
+ },
+ "state": {
+ "enum": [
+ "waiting",
+ "publishing",
+ "verifying"
+ ],
+ "type": "string"
+ },
+ "verification": {
+ "additionalProperties": false,
+ "properties": {
+ "action": {
+ "type": "string"
+ },
+ "connectionId": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "endpoint": {
+ "type": "string"
+ },
+ "instruction": {
+ "type": "string"
+ },
+ "scheduledPostId": {
+ "type": "string"
+ },
+ "tool": {
+ "type": "string"
+ },
+ "tools": {
+ "additionalProperties": false,
+ "properties": {
+ "cancel": {
+ "type": "string"
+ },
+ "complete": {
+ "type": "string"
+ },
+ "start": {
+ "type": "string"
+ },
+ "status": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "status",
+ "start",
+ "complete",
+ "cancel"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "connectionId",
+ "tool",
+ "endpoint",
+ "action",
+ "instruction"
+ ],
+ "type": "object"
+ },
+ "verificationUrl": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "state",
+ "note",
+ "requiresVerification"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "timezone": {
+ "type": "string"
+ },
+ "type": {
+ "const": "article",
+ "type": "string"
+ }
+ },
+ "required": [
+ "substackDelivery",
+ "heldForEditorialReview",
+ "deliveryNote",
+ "id",
+ "itemUrl",
+ "type",
+ "status",
+ "scheduledFor",
+ "timezone",
+ "publishedAt",
+ "error",
+ "platforms",
+ "recurringScheduleId",
+ "draft"
+ ],
+ "type": "object"
+ }
+]