@epilot/blueprint-manifest-client 3.4.0 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/openapi.d.ts CHANGED
@@ -79,6 +79,24 @@ declare namespace Components {
79
79
  resources?: BlueprintResource[];
80
80
  }
81
81
  export type Blueprint = CustomBlueprint | FileBlueprint | MarketplaceBlueprint | DeployedBlueprint | AppBlueprint;
82
+ export interface BlueprintDependenciesSyncJob {
83
+ id?: /**
84
+ * ID of a job
85
+ * example:
86
+ * c2d6cac8-bdd5-4ea2-8a6c-1cbdbe77b341
87
+ */
88
+ BlueprintJobID;
89
+ events?: BlueprintJobEvent[];
90
+ triggered_at?: string; // date-time
91
+ created_by?: CallerIdentity;
92
+ blueprint_id?: /**
93
+ * ID of a blueprint
94
+ * example:
95
+ * c2d6cac8-bdd5-4ea2-8a6c-1cbdbe77b341
96
+ */
97
+ BlueprintID;
98
+ status?: "IN_PROGRESS" | "SUCCESS" | "FAILED" | "CANCELED";
99
+ }
82
100
  export interface BlueprintExportJob {
83
101
  id?: /**
84
102
  * ID of a job
@@ -139,7 +157,7 @@ declare namespace Components {
139
157
  */
140
158
  resources_to_ignore?: string[];
141
159
  }
142
- export type BlueprintJob = BlueprintExportJob | BlueprintInstallationJob;
160
+ export type BlueprintJob = BlueprintExportJob | BlueprintInstallationJob | BlueprintDependenciesSyncJob;
143
161
  export interface BlueprintJobEvent {
144
162
  timestamp?: string; // date-time
145
163
  message?: string;
@@ -2018,8 +2036,13 @@ declare namespace Paths {
2018
2036
  blueprint_id: Parameters.BlueprintId;
2019
2037
  }
2020
2038
  namespace Responses {
2021
- export interface $200 {
2022
- resources?: Components.Schemas.BlueprintResource[];
2039
+ export interface $202 {
2040
+ job_id?: /**
2041
+ * ID of a job
2042
+ * example:
2043
+ * c2d6cac8-bdd5-4ea2-8a6c-1cbdbe77b341
2044
+ */
2045
+ Components.Schemas.BlueprintJobID;
2023
2046
  }
2024
2047
  }
2025
2048
  }
@@ -2312,7 +2335,7 @@ export interface OperationMethods {
2312
2335
  parameters?: Parameters<Paths.SyncDependencies.PathParameters> | null,
2313
2336
  data?: any,
2314
2337
  config?: AxiosRequestConfig
2315
- ): OperationResponse<Paths.SyncDependencies.Responses.$200>
2338
+ ): OperationResponse<Paths.SyncDependencies.Responses.$202>
2316
2339
  /**
2317
2340
  * bulkUpdateBlueprintResources - bulkUpdateBlueprintResources
2318
2341
  *
@@ -2647,7 +2670,7 @@ export interface PathsDictionary {
2647
2670
  parameters?: Parameters<Paths.SyncDependencies.PathParameters> | null,
2648
2671
  data?: any,
2649
2672
  config?: AxiosRequestConfig
2650
- ): OperationResponse<Paths.SyncDependencies.Responses.$200>
2673
+ ): OperationResponse<Paths.SyncDependencies.Responses.$202>
2651
2674
  }
2652
2675
  ['/v2/blueprint-manifest/blueprints/{blueprint_id}/resources/bulk']: {
2653
2676
  /**
@@ -2758,6 +2781,7 @@ export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
2758
2781
 
2759
2782
  export type AppBlueprint = Components.Schemas.AppBlueprint;
2760
2783
  export type Blueprint = Components.Schemas.Blueprint;
2784
+ export type BlueprintDependenciesSyncJob = Components.Schemas.BlueprintDependenciesSyncJob;
2761
2785
  export type BlueprintExportJob = Components.Schemas.BlueprintExportJob;
2762
2786
  export type BlueprintID = Components.Schemas.BlueprintID;
2763
2787
  export type BlueprintInstallStatus = Components.Schemas.BlueprintInstallStatus;
package/dist/openapi.json CHANGED
@@ -1130,18 +1130,23 @@
1130
1130
  }
1131
1131
  ],
1132
1132
  "responses": {
1133
- "200": {
1134
- "description": "Synced dependencies of all root resources in a Blueprint",
1133
+ "202": {
1134
+ "description": "Dependencies sync job started",
1135
+ "headers": {
1136
+ "Location": {
1137
+ "description": "URL to poll the job",
1138
+ "schema": {
1139
+ "type": "string"
1140
+ }
1141
+ }
1142
+ },
1135
1143
  "content": {
1136
1144
  "application/json": {
1137
1145
  "schema": {
1138
1146
  "type": "object",
1139
1147
  "properties": {
1140
- "resources": {
1141
- "type": "array",
1142
- "items": {
1143
- "$ref": "#/components/schemas/BlueprintResource"
1144
- }
1148
+ "job_id": {
1149
+ "$ref": "#/components/schemas/BlueprintJobID"
1145
1150
  }
1146
1151
  }
1147
1152
  }
@@ -1986,6 +1991,33 @@
1986
1991
  },
1987
1992
  {
1988
1993
  "$ref": "#/components/schemas/BlueprintInstallationJob"
1994
+ },
1995
+ {
1996
+ "$ref": "#/components/schemas/BlueprintDependenciesSyncJob"
1997
+ }
1998
+ ]
1999
+ },
2000
+ "BlueprintDependenciesSyncJob": {
2001
+ "allOf": [
2002
+ {
2003
+ "$ref": "#/components/schemas/CommonBlueprintJobFields"
2004
+ },
2005
+ {
2006
+ "type": "object",
2007
+ "properties": {
2008
+ "blueprint_id": {
2009
+ "$ref": "#/components/schemas/BlueprintID"
2010
+ },
2011
+ "status": {
2012
+ "type": "string",
2013
+ "enum": [
2014
+ "IN_PROGRESS",
2015
+ "SUCCESS",
2016
+ "FAILED",
2017
+ "CANCELED"
2018
+ ]
2019
+ }
2020
+ }
1989
2021
  }
1990
2022
  ]
1991
2023
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/blueprint-manifest-client",
3
- "version": "3.4.0",
3
+ "version": "3.5.0",
4
4
  "description": "Client for epilot Terraform Blueprint Manifest API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -21,6 +21,18 @@
21
21
  "manifest",
22
22
  "terraform"
23
23
  ],
24
+ "scripts": {
25
+ "test": "jest",
26
+ "bundle-definition": "webpack",
27
+ "openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/blueprint-manifest.yaml",
28
+ "openapi:local": "node ../../scripts/update-openapi.js ../../../blueprint-manifest-api/lambda/TerraformHandlerFunction/openapi.yml",
29
+ "typegen": "openapi typegen src/openapi.json --client -b '/* eslint-disable */' > src/openapi.d.ts",
30
+ "build": "tsc && npm run build:patch && npm run bundle-definition",
31
+ "build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",
32
+ "build:watch": "npm run build && tsc -w",
33
+ "prepublishOnly": "npm run typegen && npm run build",
34
+ "lint": "pnpm exec eslint src"
35
+ },
24
36
  "files": [
25
37
  "*.js",
26
38
  "*.d.ts",
@@ -60,16 +72,5 @@
60
72
  "webpack": "^5.18.0",
61
73
  "webpack-cli": "^4.4.0"
62
74
  },
63
- "gitHead": "39426e86cfb320fa3227dc03f60ee6a10848e7c7",
64
- "scripts": {
65
- "test": "jest",
66
- "bundle-definition": "webpack",
67
- "openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/blueprint-manifest.yaml",
68
- "openapi:local": "node ../../scripts/update-openapi.js ../../../blueprint-manifest-api/lambda/TerraformHandlerFunction/openapi.yml",
69
- "typegen": "openapi typegen src/openapi.json --client -b '/* eslint-disable */' > src/openapi.d.ts",
70
- "build": "tsc && npm run build:patch && npm run bundle-definition",
71
- "build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",
72
- "build:watch": "npm run build && tsc -w",
73
- "lint": "pnpm exec eslint src"
74
- }
75
- }
75
+ "gitHead": "39426e86cfb320fa3227dc03f60ee6a10848e7c7"
76
+ }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2025 epilot GmbH
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.