Skip to content

Commit

Permalink
chore(blueprint-manifest-client): bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateus Nardo committed Oct 24, 2024
1 parent 8824bc3 commit bbec3a0
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 3 deletions.
4 changes: 2 additions & 2 deletions clients/blueprint-manifest-client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion clients/blueprint-manifest-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@epilot/blueprint-manifest-client",
"version": "2.5.1",
"version": "2.5.3",
"description": "Client for epilot Terraform Blueprint Manifest API",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
25 changes: 25 additions & 0 deletions clients/blueprint-manifest-client/src/openapi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,21 @@ declare namespace Components {
*/
is_virtual?: boolean;
}
export interface FormattedError {
error?: string | {
[key: string]: any;
};
code?: FormattedErrorCodes;
data?: FormattedErrorData;
}
export type FormattedErrorCodes = "dependency_extraction" | "resource_not_found" | "resource_fetch_api_error" | "resource_fetch_unknown_error" | "terraform_cli_process_error" | "terraform_import_block_process_error";
export interface FormattedErrorData {
resource?: {
id?: string;
name?: string;
type?: string;
};
}
export interface Job {
job_id?: /**
* ID of an import or export job (state machine)
Expand Down Expand Up @@ -146,6 +161,7 @@ declare namespace Components {
* Whether the manifest comes from a trusted source and is signed by epilot
*/
is_verified?: boolean;
errors?: FormattedError[];
/**
* An array of tree-like JSON objects or a singular tree-like JSON object representing the resources to import
*/
Expand Down Expand Up @@ -214,6 +230,12 @@ declare namespace Components {
export type JobID = string;
export type JobStatus = "PENDING" | "STARTED" | "WAITING_USER_ACTION" | "CANCELED" | "IN_PROGRESS" | "SUCCESS" | "FAILED";
export interface Manifest {
import_job_id?: /**
* ID of an import or export job (state machine)
* example:
* 4854bb2a-94f9-424d-a968-3fb17fb0bf89
*/
JobID;
manifest_id?: /**
* ID of an imported / installed manifest
* example:
Expand Down Expand Up @@ -911,6 +933,9 @@ export type CommonImportFields = Components.Schemas.CommonImportFields;
export type CommonManifestFields = Components.Schemas.CommonManifestFields;
export type CommonMarkdownFields = Components.Schemas.CommonMarkdownFields;
export type CommonResourceNode = Components.Schemas.CommonResourceNode;
export type FormattedError = Components.Schemas.FormattedError;
export type FormattedErrorCodes = Components.Schemas.FormattedErrorCodes;
export type FormattedErrorData = Components.Schemas.FormattedErrorData;
export type Job = Components.Schemas.Job;
export type JobID = Components.Schemas.JobID;
export type JobStatus = Components.Schemas.JobStatus;
Expand Down
65 changes: 65 additions & 0 deletions clients/blueprint-manifest-client/src/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,14 @@
},
"Manifest": {
"allOf": [
{
"type": "object",
"properties": {
"import_job_id": {
"$ref": "#/components/schemas/JobID"
}
}
},
{
"$ref": "#/components/schemas/CommonManifestFields"
},
Expand Down Expand Up @@ -733,6 +741,12 @@
"is_verified": {
"type": "boolean",
"description": "Whether the manifest comes from a trusted source and is signed by epilot"
},
"errors": {
"type": "array",
"items": {
"$ref": "#/components/schemas/FormattedError"
}
}
}
},
Expand Down Expand Up @@ -868,6 +882,57 @@
}
}
}
},
"FormattedErrorCodes": {
"type": "string",
"enum": [
"dependency_extraction",
"resource_not_found",
"resource_fetch_api_error",
"resource_fetch_unknown_error",
"terraform_cli_process_error",
"terraform_import_block_process_error"
]
},
"FormattedErrorData": {
"type": "object",
"properties": {
"resource": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"type": {
"type": "string"
}
}
}
}
},
"FormattedError": {
"type": "object",
"properties": {
"error": {
"anyOf": [
{
"type": "string"
},
{
"type": "object"
}
]
},
"code": {
"$ref": "#/components/schemas/FormattedErrorCodes"
},
"data": {
"$ref": "#/components/schemas/FormattedErrorData"
}
}
}
},
"parameters": {
Expand Down

0 comments on commit bbec3a0

Please sign in to comment.