schema.json in platform-api-2.3.0 vs schema.json in platform-api-3.0.0.pre.1

- old
+ new

@@ -4129,226 +4129,10 @@ "size": { "$ref": "#/definitions/archive/definitions/size" } } }, - "audit-trail-event": { - "$schema": "http://json-schema.org/draft-04/hyper-schema", - "title": "Heroku Platform API - Audit Trail Event", - "description": "An audit trail event represents some action on the platform", - "stability": "development", - "strictProperties": true, - "type": [ - "object" - ], - "definitions": { - "id": { - "description": "unique identifier of event", - "readOnly": true, - "format": "uuid", - "type": [ - "string" - ] - }, - "identity": { - "anyOf": [ - { - "$ref": "#/definitions/audit-trail-event/definitions/id" - } - ] - }, - "type": { - "description": "type of event", - "readOnly": true, - "type": [ - "string" - ] - }, - "action": { - "description": "action for the event", - "readOnly": true, - "type": [ - "string" - ] - }, - "actor": { - "description": "user who caused event", - "readOnly": true, - "type": [ - "object" - ], - "properties": { - "id": { - "format": "uuid", - "type": [ - "string" - ] - }, - "email": { - "format": "email", - "type": [ - "string" - ] - } - } - }, - "app": { - "description": "app upon which event took place", - "readOnly": true, - "type": [ - "object" - ], - "properties": { - "id": { - "format": "uuid", - "type": [ - "string" - ] - }, - "name": { - "type": [ - "string" - ] - } - } - }, - "owner": { - "description": "owner of the app targeted by the event", - "readOnly": true, - "type": [ - "object" - ], - "properties": { - "id": { - "format": "uuid", - "type": [ - "string" - ] - }, - "email": { - "format": "email", - "type": [ - "string" - ] - } - } - }, - "enterprise_account": { - "description": "enterprise account on which the event happened", - "readOnly": true, - "type": [ - "object" - ], - "properties": { - "id": { - "format": "uuid", - "type": [ - "string" - ] - }, - "name": { - "type": [ - "string" - ] - } - } - }, - "team": { - "description": "team on which the event happened", - "readOnly": true, - "type": [ - "object" - ], - "properties": { - "id": { - "format": "uuid", - "type": [ - "string" - ] - }, - "name": { - "type": [ - "string" - ] - } - } - }, - "request": { - "description": "information about where the action was triggered", - "readOnly": true, - "type": [ - "object" - ], - "properties": { - "ip_address": { - "format": "ipv4", - "type": [ - "string" - ] - } - } - }, - "data": { - "description": "data specific to the event", - "readOnly": true, - "type": [ - "object" - ] - }, - "created_at": { - "description": "when event was created", - "format": "date-time", - "type": [ - "string" - ] - } - }, - "links": [ - { - "description": "List existing events.", - "href": "/enterprise-accounts/{(%23%2Fdefinitions%2Fenterprise-account%2Fdefinitions%2Fidentity)}/events", - "method": "GET", - "rel": "instances", - "title": "List" - } - ], - "properties": { - "created_at": { - "$ref": "#/definitions/audit-trail-event/definitions/created_at" - }, - "id": { - "$ref": "#/definitions/audit-trail-event/definitions/id" - }, - "type": { - "$ref": "#/definitions/audit-trail-event/definitions/type" - }, - "action": { - "$ref": "#/definitions/audit-trail-event/definitions/action" - }, - "actor": { - "$ref": "#/definitions/audit-trail-event/definitions/actor" - }, - "app": { - "$ref": "#/definitions/audit-trail-event/definitions/app" - }, - "owner": { - "$ref": "#/definitions/audit-trail-event/definitions/owner" - }, - "enterprise_account": { - "$ref": "#/definitions/audit-trail-event/definitions/enterprise_account" - }, - "team": { - "$ref": "#/definitions/audit-trail-event/definitions/team" - }, - "request": { - "$ref": "#/definitions/audit-trail-event/definitions/request" - }, - "data": { - "$ref": "#/definitions/audit-trail-event/definitions/data" - } - } - }, "build": { "$schema": "http://json-schema.org/draft-04/hyper-schema", "description": "A build represents the process of transforming a code tarball into a slug", "title": "Heroku Build API - Build", "stability": "production", @@ -6635,10 +6419,226 @@ } } } } }, + "event": { + "$schema": "http://json-schema.org/draft-04/hyper-schema", + "title": "Heroku Platform API - Audit Trail Event", + "description": "An audit trail event represents some action on the platform", + "stability": "development", + "strictProperties": true, + "type": [ + "object" + ], + "definitions": { + "id": { + "description": "unique identifier of event", + "readOnly": true, + "format": "uuid", + "type": [ + "string" + ] + }, + "identity": { + "anyOf": [ + { + "$ref": "#/definitions/event/definitions/id" + } + ] + }, + "type": { + "description": "type of event", + "readOnly": true, + "type": [ + "string" + ] + }, + "action": { + "description": "action for the event", + "readOnly": true, + "type": [ + "string" + ] + }, + "actor": { + "description": "user who caused event", + "readOnly": true, + "type": [ + "object" + ], + "properties": { + "id": { + "format": "uuid", + "type": [ + "string" + ] + }, + "email": { + "format": "email", + "type": [ + "string" + ] + } + } + }, + "app": { + "description": "app upon which event took place", + "readOnly": true, + "type": [ + "object" + ], + "properties": { + "id": { + "format": "uuid", + "type": [ + "string" + ] + }, + "name": { + "type": [ + "string" + ] + } + } + }, + "owner": { + "description": "owner of the app targeted by the event", + "readOnly": true, + "type": [ + "object" + ], + "properties": { + "id": { + "format": "uuid", + "type": [ + "string" + ] + }, + "email": { + "format": "email", + "type": [ + "string" + ] + } + } + }, + "enterprise_account": { + "description": "enterprise account on which the event happened", + "readOnly": true, + "type": [ + "object" + ], + "properties": { + "id": { + "format": "uuid", + "type": [ + "string" + ] + }, + "name": { + "type": [ + "string" + ] + } + } + }, + "team": { + "description": "team on which the event happened", + "readOnly": true, + "type": [ + "object" + ], + "properties": { + "id": { + "format": "uuid", + "type": [ + "string" + ] + }, + "name": { + "type": [ + "string" + ] + } + } + }, + "request": { + "description": "information about where the action was triggered", + "readOnly": true, + "type": [ + "object" + ], + "properties": { + "ip_address": { + "format": "ipv4", + "type": [ + "string" + ] + } + } + }, + "data": { + "description": "data specific to the event", + "readOnly": true, + "type": [ + "object" + ] + }, + "created_at": { + "description": "when event was created", + "format": "date-time", + "type": [ + "string" + ] + } + }, + "links": [ + { + "description": "List existing events.", + "href": "/enterprise-accounts/{(%23%2Fdefinitions%2Fenterprise-account%2Fdefinitions%2Fidentity)}/events", + "method": "GET", + "rel": "instances", + "title": "List" + } + ], + "properties": { + "created_at": { + "$ref": "#/definitions/event/definitions/created_at" + }, + "id": { + "$ref": "#/definitions/event/definitions/id" + }, + "type": { + "$ref": "#/definitions/event/definitions/type" + }, + "action": { + "$ref": "#/definitions/event/definitions/action" + }, + "actor": { + "$ref": "#/definitions/event/definitions/actor" + }, + "app": { + "$ref": "#/definitions/event/definitions/app" + }, + "owner": { + "$ref": "#/definitions/event/definitions/owner" + }, + "enterprise_account": { + "$ref": "#/definitions/event/definitions/enterprise_account" + }, + "team": { + "$ref": "#/definitions/event/definitions/team" + }, + "request": { + "$ref": "#/definitions/event/definitions/request" + }, + "data": { + "$ref": "#/definitions/event/definitions/data" + } + } + }, "filter-apps": { "description": "Filters are special endpoints to allow for API consumers to specify a subset of resources to consume in order to reduce the number of requests that are performed. Each filter endpoint endpoint is responsible for determining its supported request format. The endpoints are over POST in order to handle large request bodies without hitting request uri query length limitations, but the requests themselves are idempotent and will not have side effects.", "$schema": "http://json-schema.org/draft-04/hyper-schema", "stability": "development", "title": "Heroku Platform API - Filters", @@ -11493,11 +11493,11 @@ "integer", "null" ] }, "pr_number": { - "description": "pull request number the review app is built for", + "description": "GitHub Pull Request number if the Review app was created automatically", "example": 24, "readOnly": true, "type": [ "integer", "null" @@ -11513,13 +11513,10 @@ "schema": { "properties": { "branch": { "$ref": "#/definitions/review-app/definitions/branch" }, - "pr_number": { - "$ref": "#/definitions/review-app/definitions/pr_number" - }, "pipeline": { "$ref": "#/definitions/pipeline/definitions/id" }, "source_blob": { "$ref": "#/definitions/review-app/definitions/source_blob" @@ -12743,141 +12740,10 @@ "updated_at": { "$ref": "#/definitions/space-nat/definitions/updated_at" } } }, - "space-topology": { - "description": "Space Topology provides you with a mechanism for viewing all the running dynos, formations and applications for a space. This is the same data thats used to power our DNS Service Discovery.", - "$schema": "http://json-schema.org/draft-04/hyper-schema", - "stability": "prototype", - "strictProperties": true, - "title": "Heroku Platform API - Space Topology", - "type": [ - "object" - ], - "definitions": { - "version": { - "description": "version of the space topology payload", - "example": 1, - "readOnly": true, - "type": [ - "integer" - ] - }, - "dyno": { - "description": "A dyno", - "properties": { - "id": { - "$ref": "#/definitions/dyno/definitions/id" - }, - "number": { - "description": "process number, e.g. 1 in web.1", - "example": 1, - "type": [ - "integer" - ] - }, - "private_ip": { - "description": "RFC1918 Address of Dyno", - "example": "10.0.134.42", - "type": [ - "string" - ] - }, - "hostname": { - "description": "localspace hostname of resource", - "example": "1.example-app-90210.app.localspace", - "type": [ - "string" - ] - } - } - }, - "formation": { - "description": "formations for application", - "properties": { - "id": { - "$ref": "#/definitions/formation/definitions/id" - }, - "process_type": { - "description": "Name of process type", - "example": "web", - "type": [ - "string" - ] - }, - "dynos": { - "description": "Current dynos for application", - "items": { - "$ref": "#/definitions/space-topology/definitions/dyno" - }, - "type": [ - "array" - ] - } - }, - "type": [ - "object" - ] - } - }, - "links": [ - { - "description": "Current space topology", - "href": "/spaces/{(%23%2Fdefinitions%2Fspace%2Fdefinitions%2Fidentity)}/topology", - "method": "GET", - "rel": "self", - "targetSchema": { - "$ref": "#/definitions/space-topology" - }, - "title": "Topology" - } - ], - "properties": { - "version": { - "$ref": "#/definitions/space-topology/definitions/version" - }, - "apps": { - "description": "The apps within this space", - "type": [ - "array" - ], - "readOnly": true, - "items": { - "type": [ - "object" - ], - "properties": { - "id": { - "$ref": "#/definitions/app/definitions/id", - "readOnly": true - }, - "domains": { - "example": [ - "example.com", - "example.net" - ], - "readOnly": true, - "type": [ - "array" - ] - }, - "formation": { - "description": "formations for application", - "items": { - "$ref": "#/definitions/space-topology/definitions/formation" - }, - "type": [ - "array" - ], - "readOnly": true - } - } - } - } - } - }, "space-transfer": { "description": "Transfer spaces between enterprise teams with the same Enterprise Account.", "$schema": "http://json-schema.org/draft-04/hyper-schema", "stability": "development", "strictProperties": true, @@ -17179,13 +17045,10 @@ "$ref": "#/definitions/app" }, "archive": { "$ref": "#/definitions/archive" }, - "audit-trail-event": { - "$ref": "#/definitions/audit-trail-event" - }, "build": { "$ref": "#/definitions/build" }, "buildpack-installation": { "$ref": "#/definitions/buildpack-installation" @@ -17218,10 +17081,13 @@ "$ref": "#/definitions/enterprise-account-usage-monthly" }, "enterprise-account": { "$ref": "#/definitions/enterprise-account" }, + "event": { + "$ref": "#/definitions/event" + }, "filter-apps": { "$ref": "#/definitions/filter-apps" }, "formation": { "$ref": "#/definitions/formation" @@ -17337,12 +17203,9 @@ "space-app-access": { "$ref": "#/definitions/space-app-access" }, "space-nat": { "$ref": "#/definitions/space-nat" - }, - "space-topology": { - "$ref": "#/definitions/space-topology" }, "space-transfer": { "$ref": "#/definitions/space-transfer" }, "space": {