Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 26 additions & 26 deletions openapi/schemas/asset.openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@
{
"$ref": "#/components/schemas/IMetadataCountMetadata"
},
{
"$ref": "#/components/schemas/IMetadataDurationMetadata"
},
{
"$ref": "#/components/schemas/IMetadataFileTypeMetadata"
},
Expand All @@ -220,24 +223,21 @@
},
{
"$ref": "#/components/schemas/IMetadataTextMetadata"
},
{
"$ref": "#/components/schemas/IMetadataVideoDurationMetadata"
}
],
"discriminator": {
"propertyName": "_t",
"mapping": {
"ClassificationMetadata": "#/components/schemas/IMetadataClassificationMetadata",
"CountMetadata": "#/components/schemas/IMetadataCountMetadata",
"DurationMetadata": "#/components/schemas/IMetadataDurationMetadata",
"FileTypeMetadata": "#/components/schemas/IMetadataFileTypeMetadata",
"ImageDimensionMetadata": "#/components/schemas/IMetadataImageDimensionMetadata",
"LocationMetadata": "#/components/schemas/IMetadataLocationMetadata",
"OriginalFilenameMetadata": "#/components/schemas/IMetadataOriginalFilenameMetadata",
"SourceUrlMetadata": "#/components/schemas/IMetadataSourceUrlMetadata",
"StreamsMetadata": "#/components/schemas/IMetadataStreamsMetadata",
"TextMetadata": "#/components/schemas/IMetadataTextMetadata",
"VideoDurationMetadata": "#/components/schemas/IMetadataVideoDurationMetadata"
"TextMetadata": "#/components/schemas/IMetadataTextMetadata"
}
}
},
Expand Down Expand Up @@ -282,6 +282,27 @@
}
}
},
"IMetadataDurationMetadata": {
"required": [
"duration",
"_t"
],
"properties": {
"_t": {
"enum": [
"DurationMetadata"
],
"type": "string"
},
"duration": {
"type": "string",
"format": "date-time"
},
"visibilities": {
"$ref": "#/components/schemas/MetadataVisibilities"
}
}
},
"IMetadataFileTypeMetadata": {
"required": [
"fileType",
Expand Down Expand Up @@ -438,27 +459,6 @@
}
}
},
"IMetadataVideoDurationMetadata": {
"required": [
"duration",
"_t"
],
"properties": {
"_t": {
"enum": [
"VideoDurationMetadata"
],
"type": "string"
},
"duration": {
"type": "string",
"format": "date-time"
},
"visibilities": {
"$ref": "#/components/schemas/MetadataVisibilities"
}
}
},
"MetadataCollection": {
"type": "object",
"additionalProperties": {
Expand Down
15 changes: 14 additions & 1 deletion openapi/schemas/audience.openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,8 @@
"AddRapidToAudienceModel": {
"required": [
"asset",
"payload"
"payload",
"randomCorrectProbability"
],
"type": "object",
"properties": {
Expand Down Expand Up @@ -1745,6 +1746,14 @@
},
"boundingBoxes": {
"$ref": "#/components/schemas/ListOfBoxShape"
},
"requiredPrecision": {
"type": "number",
"format": "double"
},
"requiredCompleteness": {
"type": "number",
"format": "double"
}
}
},
Expand Down Expand Up @@ -2176,6 +2185,7 @@
"definitionId",
"audienceId",
"revisionNumber",
"pipelineId",
"status",
"createdAt"
],
Expand All @@ -2197,6 +2207,9 @@
"type": "integer",
"format": "int32"
},
"pipelineId": {
"type": "string"
},
"status": {
"type": "string"
},
Expand Down
6 changes: 6 additions & 0 deletions openapi/schemas/campaign.openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,12 @@
"items": {
"type": "string"
}
},
"kayzenAudienceIds": {
"type": "array",
"items": {
"type": "number"
}
}
}
},
Expand Down
34 changes: 1 addition & 33 deletions openapi/schemas/leaderboard.openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2969,9 +2969,6 @@
},
{
"$ref": "#/components/schemas/ICampaignFilterUserScoreFilter"
},
{
"$ref": "#/components/schemas/ICampaignFilterUserStateFilter"
}
],
"discriminator": {
Expand All @@ -2987,8 +2984,7 @@
"OrFilter": "#/components/schemas/ICampaignFilterOrFilter",
"ResponseCountFilter": "#/components/schemas/ICampaignFilterResponseCountFilter",
"UserActionRestrictionFilter": "#/components/schemas/ICampaignFilterUserActionRestrictionFilter",
"UserScoreFilter": "#/components/schemas/ICampaignFilterUserScoreFilter",
"UserStateFilter": "#/components/schemas/ICampaignFilterUserStateFilter"
"UserScoreFilter": "#/components/schemas/ICampaignFilterUserScoreFilter"
}
}
},
Expand Down Expand Up @@ -3269,34 +3265,6 @@
}
}
},
"ICampaignFilterUserStateFilter": {
"required": [
"states",
"_t"
],
"properties": {
"_t": {
"enum": [
"UserStateFilter"
],
"type": "string"
},
"states": {
"type": "array",
"items": {
"enum": [
"Training",
"Blacklist",
"Active"
]
}
},
"executionOrder": {
"type": "integer",
"format": "uint32"
}
}
},
"IMetadataInput": {
"required": [
"_t"
Expand Down
109 changes: 109 additions & 0 deletions openapi/schemas/order.openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,52 @@
}
}
},
"/job/{jobId}": {
"get": {
"tags": [
"Job"
],
"summary": "Gets a job by its id.",
"parameters": [
{
"name": "jobId",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GetJobByIdEndpoint_Output"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ValidationProblemDetails"
}
}
}
},
"401": {
"description": "Unauthenticated"
},
"403": {
"description": "Forbidden"
}
}
}
},
"/job/definition/{definitionId}/revision/{revisionNumber}": {
"get": {
"tags": [
Expand Down Expand Up @@ -1923,6 +1969,65 @@
"In"
]
},
"GetJobByIdEndpoint_Output": {
"required": [
"jobId",
"name",
"definitionId",
"audienceId",
"revisionNumber",
"pipelineId",
"status",
"createdAt"
],
"type": "object",
"properties": {
"jobId": {
"type": "string"
},
"name": {
"type": "string"
},
"definitionId": {
"type": "string"
},
"audienceId": {
"type": "string"
},
"revisionNumber": {
"type": "integer",
"format": "int32"
},
"pipelineId": {
"type": "string"
},
"status": {
"type": "string"
},
"completedAt": {
"type": "string",
"format": "date-time",
"nullable": true
},
"resultFileName": {
"type": "string",
"nullable": true
},
"failedAt": {
"type": "string",
"format": "date-time",
"nullable": true
},
"failureMessage": {
"type": "string",
"nullable": true
},
"createdAt": {
"type": "string",
"format": "date-time"
}
}
},
"GetJobDefinitionByIdEndpoint_Output": {
"required": [
"definitionId",
Expand Down Expand Up @@ -4111,6 +4216,7 @@
"definitionId",
"audienceId",
"revisionNumber",
"pipelineId",
"status",
"createdAt"
],
Expand All @@ -4132,6 +4238,9 @@
"type": "integer",
"format": "int32"
},
"pipelineId": {
"type": "string"
},
"status": {
"type": "string"
},
Expand Down
Loading