Skip to content

Commit 154f846

Browse files
committed
fix: updated schema
1 parent 0866173 commit 154f846

File tree

2 files changed

+0
-160
lines changed

2 files changed

+0
-160
lines changed

lib/index.d.ts

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export interface HerokuPlatformApi {
2828
'app-webhook-event'?: AppWebhookEvent
2929
'app-webhook'?: AppWebhook
3030
app?: App
31-
'build-result'?: BuildResult
3231
build?: Build
3332
'buildpack-installation'?: BuildpackInstallations
3433
collaborator?: Collaborator
@@ -1081,48 +1080,6 @@ export interface App {
10811080
web_url?: string
10821081
[k: string]: any
10831082
}
1084-
/**
1085-
* A build result contains the output from a build.
1086-
*/
1087-
export interface BuildResult {
1088-
/**
1089-
* identity of build
1090-
*/
1091-
build?: {
1092-
/**
1093-
* unique identifier of build
1094-
*/
1095-
id?: string
1096-
/**
1097-
* status of build
1098-
*/
1099-
status?: 'failed' | 'pending' | 'succeeded'
1100-
/**
1101-
* Build process output will be available from this URL as a stream. The stream is available as either `text/plain` or `text/event-stream`. Clients should be prepared to handle disconnects and can resume the stream by sending a `Range` header (for `text/plain`) or a `Last-Event-Id` header (for `text/event-stream`).
1102-
*/
1103-
output_stream_url?: string
1104-
[k: string]: any
1105-
}
1106-
/**
1107-
* status from the build
1108-
*/
1109-
exit_code?: number
1110-
/**
1111-
* A list of all the lines of a build's output. This has been replaced by the `output_stream_url` attribute on the build resource.
1112-
*/
1113-
lines?: {
1114-
/**
1115-
* The output stream where the line was sent.
1116-
*/
1117-
stream?: 'STDOUT' | 'STDERR'
1118-
/**
1119-
* A line of output from the build.
1120-
*/
1121-
line?: string
1122-
[k: string]: any
1123-
}[]
1124-
[k: string]: any
1125-
}
11261083
/**
11271084
* A build represents the process of transforming a code tarball into a slug
11281085
*/

schema.json

Lines changed: 0 additions & 117 deletions
Original file line numberDiff line numberDiff line change
@@ -4022,120 +4022,6 @@
40224022
}
40234023
}
40244024
},
4025-
"build-result": {
4026-
"$schema": "http://json-schema.org/draft-04/hyper-schema",
4027-
"deactivate_on": "2016-10-01",
4028-
"description": "A build result contains the output from a build.",
4029-
"title": "Heroku Build API - Build Result",
4030-
"stability": "deprecation",
4031-
"strictProperties": true,
4032-
"type": [
4033-
"object"
4034-
],
4035-
"definitions": {
4036-
"identity": {
4037-
},
4038-
"exit_code": {
4039-
"description": "status from the build",
4040-
"example": 0,
4041-
"readOnly": true,
4042-
"type": [
4043-
"number"
4044-
]
4045-
},
4046-
"line": {
4047-
"description": "a single line of output to STDOUT or STDERR from the build.",
4048-
"strictProperties": true,
4049-
"type": [
4050-
"object"
4051-
],
4052-
"example": {
4053-
"stream": "STDOUT",
4054-
"line": "-----> Ruby app detected\n"
4055-
},
4056-
"readOnly": true,
4057-
"definitions": {
4058-
"stream": {
4059-
"type": [
4060-
"string"
4061-
],
4062-
"enum": [
4063-
"STDOUT",
4064-
"STDERR"
4065-
],
4066-
"description": "The output stream where the line was sent.",
4067-
"example": "STDOUT",
4068-
"readOnly": true
4069-
},
4070-
"line": {
4071-
"type": [
4072-
"string"
4073-
],
4074-
"example": "-----> Ruby app detected\n",
4075-
"readOnly": true,
4076-
"description": "A line of output from the build."
4077-
}
4078-
},
4079-
"properties": {
4080-
"stream": {
4081-
"$ref": "#/definitions/build-result/definitions/line/definitions/stream"
4082-
},
4083-
"line": {
4084-
"$ref": "#/definitions/build-result/definitions/line/definitions/line"
4085-
}
4086-
}
4087-
}
4088-
},
4089-
"links": [
4090-
{
4091-
"description": "Info for existing result.",
4092-
"href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/builds/{(%23%2Fdefinitions%2Fbuild%2Fdefinitions%2Fidentity)}/result",
4093-
"method": "GET",
4094-
"rel": "self",
4095-
"targetSchema": {
4096-
"$ref": "#/definitions/build-result"
4097-
},
4098-
"title": "Info"
4099-
}
4100-
],
4101-
"properties": {
4102-
"build": {
4103-
"description": "identity of build",
4104-
"properties": {
4105-
"id": {
4106-
"$ref": "#/definitions/build/definitions/id"
4107-
},
4108-
"status": {
4109-
"$ref": "#/definitions/build/definitions/status"
4110-
},
4111-
"output_stream_url": {
4112-
"$ref": "#/definitions/build/definitions/output_stream_url"
4113-
}
4114-
},
4115-
"type": [
4116-
"object"
4117-
]
4118-
},
4119-
"exit_code": {
4120-
"$ref": "#/definitions/build-result/definitions/exit_code"
4121-
},
4122-
"lines": {
4123-
"type": [
4124-
"array"
4125-
],
4126-
"items": {
4127-
"$ref": "#/definitions/build-result/definitions/line"
4128-
},
4129-
"description": "A list of all the lines of a build's output. This has been replaced by the `output_stream_url` attribute on the build resource.",
4130-
"example": [
4131-
{
4132-
"line": "-----> Ruby app detected\n",
4133-
"stream": "STDOUT"
4134-
}
4135-
]
4136-
}
4137-
}
4138-
},
41394025
"build": {
41404026
"$schema": "http://json-schema.org/draft-04/hyper-schema",
41414027
"description": "A build represents the process of transforming a code tarball into a slug",
@@ -14520,9 +14406,6 @@
1452014406
"app": {
1452114407
"$ref": "#/definitions/app"
1452214408
},
14523-
"build-result": {
14524-
"$ref": "#/definitions/build-result"
14525-
},
1452614409
"build": {
1452714410
"$ref": "#/definitions/build"
1452814411
},

0 commit comments

Comments
 (0)