@epilot/blueprint-manifest-client 3.1.1 → 3.2.1-beta

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.
@@ -1 +1 @@
1
- (()=>{"use strict";var e={390:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(r(466));t.default=s.default},466:e=>{e.exports=JSON.parse('{"openapi":"3.1.0","info":{"title":"","version":""},"servers":[{"url":"https://blueprint-manifest.sls.epilot.io"}],"paths":{"/v1/blueprint-manifest/jobs/{job_id}":{"get":{"operationId":"getJob","parameters":[{"$ref":"#/components/parameters/JobID"}],"responses":{}}},"/v1/blueprint-manifest/jobs:createExport":{"post":{"operationId":"createExport","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/blueprint-manifest/jobs/{job_id}:exportManifest":{"post":{"operationId":"exportManifest","parameters":[{"$ref":"#/components/parameters/JobID"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/blueprint-manifest:uploadManifest":{"post":{"operationId":"uploadManifest","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/blueprint-manifest/jobs:createPlan":{"post":{"operationId":"createPlan","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/blueprint-manifest/jobs/{job_id}:applyPlan":{"post":{"operationId":"applyPlan","parameters":[{"$ref":"#/components/parameters/JobID"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/blueprint-manifest/manifests":{"get":{"operationId":"listInstalledManifests","responses":{}}},"/v1/blueprint-manifest/manifests/{manifest_id}":{"get":{"operationId":"getManifest","parameters":[{"in":"path","required":true,"name":"manifest_id"}],"responses":{}},"put":{"operationId":"updateManifest","parameters":[{"in":"path","required":true,"name":"manifest_id"}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteManifest","parameters":[{"in":"path","required":true,"name":"manifest_id"}],"responses":{}}},"/v2/blueprint-manifest/blueprints":{"get":{"operationId":"listBlueprints","responses":{}},"post":{"operationId":"createBlueprint","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/blueprint-manifest/blueprint:install":{"post":{"operationId":"installBlueprint","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v2/blueprint-manifest/blueprints/{blueprint_id}":{"get":{"operationId":"getBlueprint","parameters":[{"in":"path","required":true,"name":"blueprint_id"}],"responses":{}},"put":{"operationId":"updateBlueprint","parameters":[{"in":"path","required":true,"name":"blueprint_id"}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteBlueprint","parameters":[{"in":"path","required":true,"name":"blueprint_id"}],"responses":{}}},"/v2/blueprint-manifest/blueprints/{blueprint_id}:export":{"post":{"operationId":"exportBlueprint","parameters":[{"in":"path","required":true,"name":"blueprint_id"}],"requestBody":{"required":false,"content":{"application/json":{}}},"responses":{}}},"/v2/blueprint-manifest/blueprints/{blueprint_id}/resources":{"post":{"operationId":"addBlueprintResource","parameters":[{"in":"path","required":true,"name":"blueprint_id"},{"in":"query","name":"add_dependencies"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/blueprint-manifest/blueprints/{blueprint_id}/resources:syncDependencies":{"post":{"operationId":"syncDependencies","parameters":[{"in":"path","required":true,"name":"blueprint_id"}],"responses":{}}},"/v2/blueprint-manifest/blueprints/{blueprint_id}/resources/bulk":{"post":{"operationId":"bulkAddBlueprintResources","parameters":[{"in":"path","required":true,"name":"blueprint_id"},{"in":"query","name":"add_dependencies"}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"put":{"operationId":"bulkUpdateBlueprintResources","parameters":[{"in":"path","required":true,"name":"blueprint_id"}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"bulkDeleteBlueprintResources","parameters":[{"in":"path","required":true,"name":"blueprint_id"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/blueprint-manifest/blueprints/{blueprint_id}/resources/{resource_id}":{"put":{"operationId":"updateBlueprintResource","parameters":[{"in":"path","required":true,"name":"blueprint_id"},{"in":"path","required":true,"name":"resource_id"}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteBlueprintResource","parameters":[{"in":"path","required":true,"name":"blueprint_id"},{"in":"path","required":true,"name":"resource_id"}],"responses":{}}},"/v2/blueprint-manifest/jobs":{"get":{"operationId":"listBlueprintJobs","responses":{}}},"/v2/blueprint-manifest/jobs/{job_id}":{"get":{"operationId":"getBlueprintJob","parameters":[{"in":"path","required":true,"name":"job_id"}],"responses":{}}},"/v2/blueprint-manifest/jobs/{job_id}:continue":{"post":{"operationId":"continueInstallationJob","parameters":[{"in":"path","required":true,"name":"job_id"}],"requestBody":{"required":false,"content":{"application/json":{}}},"responses":{}}},"/v2/blueprint-manifest/jobs/{job_id}:cancel":{"post":{"operationId":"cancelBlueprintJob","parameters":[{"in":"path","required":true,"name":"job_id"}],"responses":{}}}},"components":{"parameters":{"JobID":{"name":"job_id","in":"path","required":true}}}}')}},t={},r=function r(n){var s=t[n];if(void 0!==s)return s.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}(390),n=exports;for(var s in r)n[s]=r[s];r.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
1
+ (()=>{"use strict";var e={390:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(466));t.default=i.default},466:e=>{e.exports=JSON.parse('{"openapi":"3.1.0","info":{"title":"","version":""},"servers":[{"url":"https://blueprint-manifest.sls.epilot.io"}],"paths":{"/v1/blueprint-manifest/jobs/{job_id}":{"get":{"operationId":"getJob","parameters":[{"$ref":"#/components/parameters/JobID"}],"responses":{}}},"/v1/blueprint-manifest/jobs:createExport":{"post":{"operationId":"createExport","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/blueprint-manifest/jobs/{job_id}:exportManifest":{"post":{"operationId":"exportManifest","parameters":[{"$ref":"#/components/parameters/JobID"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/blueprint-manifest:uploadManifest":{"post":{"operationId":"uploadManifest","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/blueprint-manifest/jobs:createPlan":{"post":{"operationId":"createPlan","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/blueprint-manifest/jobs/{job_id}:applyPlan":{"post":{"operationId":"applyPlan","parameters":[{"$ref":"#/components/parameters/JobID"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/blueprint-manifest/manifests":{"get":{"operationId":"listInstalledManifests","responses":{}}},"/v1/blueprint-manifest/manifests/{manifest_id}":{"get":{"operationId":"getManifest","parameters":[{"in":"path","required":true,"name":"manifest_id"}],"responses":{}},"put":{"operationId":"updateManifest","parameters":[{"in":"path","required":true,"name":"manifest_id"}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteManifest","parameters":[{"in":"path","required":true,"name":"manifest_id"}],"responses":{}}},"/v2/blueprint-manifest/blueprints":{"get":{"operationId":"listBlueprints","responses":{}},"post":{"operationId":"createBlueprint","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/blueprint-manifest/blueprints:pre-install":{"post":{"operationId":"preInstallBlueprint","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/blueprint-manifest/blueprint/{blueprint_id}/diff":{"get":{"operationId":"getBlueprintDiff","parameters":[{"in":"path","required":true,"name":"blueprint_id"}]},"responses":{"200":{"description":"The diff for the given blueprint","content":{"application/json":{}}}}},"/v2/blueprint-manifest/blueprint:install":{"post":{"operationId":"installBlueprint","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v2/blueprint-manifest/blueprints/{blueprint_id}":{"get":{"operationId":"getBlueprint","parameters":[{"in":"path","required":true,"name":"blueprint_id"}],"responses":{}},"put":{"operationId":"updateBlueprint","parameters":[{"in":"path","required":true,"name":"blueprint_id"}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteBlueprint","parameters":[{"in":"path","required":true,"name":"blueprint_id"}],"responses":{}}},"/v2/blueprint-manifest/blueprints/{blueprint_id}:export":{"post":{"operationId":"exportBlueprint","parameters":[{"in":"path","required":true,"name":"blueprint_id"}],"requestBody":{"required":false,"content":{"application/json":{}}},"responses":{}}},"/v2/blueprint-manifest/blueprints/{blueprint_id}:create-plan":{"post":{"operationId":"createBlueprintPlan","parameters":[{"in":"path","required":true,"name":"blueprint_id"}],"responses":{}}},"/v2/blueprint-manifest/blueprints/{blueprint_id}/resources":{"post":{"operationId":"addBlueprintResource","parameters":[{"in":"path","required":true,"name":"blueprint_id"},{"in":"query","name":"add_dependencies"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/blueprint-manifest/blueprints/{blueprint_id}/resources:syncDependencies":{"post":{"operationId":"syncDependencies","parameters":[{"in":"path","required":true,"name":"blueprint_id"}],"responses":{}}},"/v2/blueprint-manifest/blueprints/{blueprint_id}/resources/bulk":{"post":{"operationId":"bulkAddBlueprintResources","parameters":[{"in":"path","required":true,"name":"blueprint_id"},{"in":"query","name":"add_dependencies"}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"put":{"operationId":"bulkUpdateBlueprintResources","parameters":[{"in":"path","required":true,"name":"blueprint_id"}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"bulkDeleteBlueprintResources","parameters":[{"in":"path","required":true,"name":"blueprint_id"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/blueprint-manifest/blueprints/{blueprint_id}/resources/{resource_id}":{"put":{"operationId":"updateBlueprintResource","parameters":[{"in":"path","required":true,"name":"blueprint_id"},{"in":"path","required":true,"name":"resource_id"}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteBlueprintResource","parameters":[{"in":"path","required":true,"name":"blueprint_id"},{"in":"path","required":true,"name":"resource_id"}],"responses":{}}},"/v2/blueprint-manifest/jobs":{"get":{"operationId":"listBlueprintJobs","responses":{}}},"/v2/blueprint-manifest/jobs/{job_id}":{"get":{"operationId":"getBlueprintJob","parameters":[{"in":"path","required":true,"name":"job_id"}],"responses":{}}},"/v2/blueprint-manifest/jobs/{job_id}:continue":{"post":{"operationId":"continueInstallationJob","parameters":[{"in":"path","required":true,"name":"job_id"}],"requestBody":{"required":false,"content":{"application/json":{}}},"responses":{}}},"/v2/blueprint-manifest/jobs/{job_id}:cancel":{"post":{"operationId":"cancelBlueprintJob","parameters":[{"in":"path","required":true,"name":"job_id"}],"responses":{}}}},"components":{"parameters":{"JobID":{"name":"job_id","in":"path","required":true}}}}')}},t={},r=function r(n){var i=t[n];if(void 0!==i)return i.exports;var s=t[n]={exports:{}};return e[n].call(s.exports,s,s.exports,r),s.exports}(390),n=exports;for(var i in r)n[i]=r[i];r.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
@@ -147,6 +147,37 @@
147
147
  "responses": {}
148
148
  }
149
149
  },
150
+ "/v2/blueprint-manifest/blueprints:pre-install": {
151
+ "post": {
152
+ "operationId": "preInstallBlueprint",
153
+ "requestBody": {
154
+ "content": {
155
+ "application/json": {}
156
+ }
157
+ },
158
+ "responses": {}
159
+ }
160
+ },
161
+ "/v2/blueprint-manifest/blueprint/{blueprint_id}/diff": {
162
+ "get": {
163
+ "operationId": "getBlueprintDiff",
164
+ "parameters": [
165
+ {
166
+ "in": "path",
167
+ "required": true,
168
+ "name": "blueprint_id"
169
+ }
170
+ ]
171
+ },
172
+ "responses": {
173
+ "200": {
174
+ "description": "The diff for the given blueprint",
175
+ "content": {
176
+ "application/json": {}
177
+ }
178
+ }
179
+ }
180
+ },
150
181
  "/v2/blueprint-manifest/blueprint:install": {
151
182
  "post": {
152
183
  "operationId": "installBlueprint",
@@ -218,6 +249,19 @@
218
249
  "responses": {}
219
250
  }
220
251
  },
252
+ "/v2/blueprint-manifest/blueprints/{blueprint_id}:create-plan": {
253
+ "post": {
254
+ "operationId": "createBlueprintPlan",
255
+ "parameters": [
256
+ {
257
+ "in": "path",
258
+ "required": true,
259
+ "name": "blueprint_id"
260
+ }
261
+ ],
262
+ "responses": {}
263
+ }
264
+ },
221
265
  "/v2/blueprint-manifest/blueprints/{blueprint_id}/resources": {
222
266
  "post": {
223
267
  "operationId": "addBlueprintResource",
package/dist/openapi.d.ts CHANGED
@@ -544,6 +544,14 @@ declare namespace Components {
544
544
  source_type: "deploy";
545
545
  resources?: BlueprintResource[];
546
546
  }
547
+ export interface DiffRow {
548
+ type: "added" | "removed" | "changed" | "no-op";
549
+ key: string;
550
+ before: string | null;
551
+ after: string | null;
552
+ resource: string;
553
+ }
554
+ export type DiffRowArray = DiffRow[];
547
555
  export interface FileBlueprint {
548
556
  id?: /**
549
557
  * ID of a blueprint
@@ -1506,6 +1514,29 @@ declare namespace Paths {
1506
1514
  export type $200 = Components.Schemas.Blueprint;
1507
1515
  }
1508
1516
  }
1517
+ namespace CreateBlueprintPlan {
1518
+ namespace Parameters {
1519
+ export type BlueprintId = /**
1520
+ * ID of a blueprint
1521
+ * example:
1522
+ * c2d6cac8-bdd5-4ea2-8a6c-1cbdbe77b341
1523
+ */
1524
+ Components.Schemas.BlueprintID;
1525
+ }
1526
+ export interface PathParameters {
1527
+ blueprint_id: Parameters.BlueprintId;
1528
+ }
1529
+ namespace Responses {
1530
+ export interface $202 {
1531
+ job_id?: /**
1532
+ * ID of a job
1533
+ * example:
1534
+ * c2d6cac8-bdd5-4ea2-8a6c-1cbdbe77b341
1535
+ */
1536
+ Components.Schemas.BlueprintJobID;
1537
+ }
1538
+ }
1539
+ }
1509
1540
  namespace CreateExport {
1510
1541
  export interface RequestBody {
1511
1542
  resources: [
@@ -1790,6 +1821,19 @@ declare namespace Paths {
1790
1821
  export type $200 = Components.Schemas.Blueprint;
1791
1822
  }
1792
1823
  }
1824
+ namespace GetBlueprintDiff {
1825
+ namespace Parameters {
1826
+ export type BlueprintId = /**
1827
+ * ID of a blueprint
1828
+ * example:
1829
+ * c2d6cac8-bdd5-4ea2-8a6c-1cbdbe77b341
1830
+ */
1831
+ Components.Schemas.BlueprintID;
1832
+ }
1833
+ export interface PathParameters {
1834
+ blueprint_id: Parameters.BlueprintId;
1835
+ }
1836
+ }
1793
1837
  namespace GetBlueprintJob {
1794
1838
  namespace Parameters {
1795
1839
  export type JobId = /**
@@ -1918,6 +1962,18 @@ declare namespace Paths {
1918
1962
  }
1919
1963
  }
1920
1964
  }
1965
+ namespace PreInstallBlueprint {
1966
+ export interface RequestBody {
1967
+ /**
1968
+ * URL to the blueprint zip file
1969
+ */
1970
+ blueprint_file?: string;
1971
+ source_blueprint_type?: "marketplace";
1972
+ }
1973
+ namespace Responses {
1974
+ export type $200 = Components.Schemas.Blueprint;
1975
+ }
1976
+ }
1921
1977
  namespace SyncDependencies {
1922
1978
  namespace Parameters {
1923
1979
  export type BlueprintId = /**
@@ -2144,6 +2200,27 @@ export interface OperationMethods {
2144
2200
  data?: Paths.CreateBlueprint.RequestBody,
2145
2201
  config?: AxiosRequestConfig
2146
2202
  ): OperationResponse<Paths.CreateBlueprint.Responses.$200>
2203
+ /**
2204
+ * preInstallBlueprint - preInstallBlueprint
2205
+ *
2206
+ * Pre-install a Blueprint based on a blueprint file
2207
+ */
2208
+ 'preInstallBlueprint'(
2209
+ parameters?: Parameters<UnknownParamsObject> | null,
2210
+ data?: Paths.PreInstallBlueprint.RequestBody,
2211
+ config?: AxiosRequestConfig
2212
+ ): OperationResponse<Paths.PreInstallBlueprint.Responses.$200>
2213
+ /**
2214
+ * getBlueprintDiff - getBlueprintDiff
2215
+ *
2216
+ * Makes the diff of a blueprint vs the current state of its resources
2217
+ *
2218
+ */
2219
+ 'getBlueprintDiff'(
2220
+ parameters?: Parameters<Paths.GetBlueprintDiff.PathParameters> | null,
2221
+ data?: any,
2222
+ config?: AxiosRequestConfig
2223
+ ): OperationResponse<any>
2147
2224
  /**
2148
2225
  * installBlueprint - installBlueprint
2149
2226
  *
@@ -2196,6 +2273,17 @@ export interface OperationMethods {
2196
2273
  data?: Paths.ExportBlueprint.RequestBody,
2197
2274
  config?: AxiosRequestConfig
2198
2275
  ): OperationResponse<Paths.ExportBlueprint.Responses.$202>
2276
+ /**
2277
+ * createBlueprintPlan - createBlueprintPlan
2278
+ *
2279
+ * Kick off a new blueprint plan creation job. Returns 202 Accepted with Location header pointing to the job resource.
2280
+ *
2281
+ */
2282
+ 'createBlueprintPlan'(
2283
+ parameters?: Parameters<Paths.CreateBlueprintPlan.PathParameters> | null,
2284
+ data?: any,
2285
+ config?: AxiosRequestConfig
2286
+ ): OperationResponse<Paths.CreateBlueprintPlan.Responses.$202>
2199
2287
  /**
2200
2288
  * addBlueprintResource - addBlueprintResource
2201
2289
  *
@@ -2458,6 +2546,31 @@ export interface PathsDictionary {
2458
2546
  config?: AxiosRequestConfig
2459
2547
  ): OperationResponse<Paths.CreateBlueprint.Responses.$200>
2460
2548
  }
2549
+ ['/v2/blueprint-manifest/blueprints:pre-install']: {
2550
+ /**
2551
+ * preInstallBlueprint - preInstallBlueprint
2552
+ *
2553
+ * Pre-install a Blueprint based on a blueprint file
2554
+ */
2555
+ 'post'(
2556
+ parameters?: Parameters<UnknownParamsObject> | null,
2557
+ data?: Paths.PreInstallBlueprint.RequestBody,
2558
+ config?: AxiosRequestConfig
2559
+ ): OperationResponse<Paths.PreInstallBlueprint.Responses.$200>
2560
+ }
2561
+ ['/v2/blueprint-manifest/blueprint/{blueprint_id}/diff']: {
2562
+ /**
2563
+ * getBlueprintDiff - getBlueprintDiff
2564
+ *
2565
+ * Makes the diff of a blueprint vs the current state of its resources
2566
+ *
2567
+ */
2568
+ 'get'(
2569
+ parameters?: Parameters<Paths.GetBlueprintDiff.PathParameters> | null,
2570
+ data?: any,
2571
+ config?: AxiosRequestConfig
2572
+ ): OperationResponse<any>
2573
+ }
2461
2574
  ['/v2/blueprint-manifest/blueprint:install']: {
2462
2575
  /**
2463
2576
  * installBlueprint - installBlueprint
@@ -2516,6 +2629,19 @@ export interface PathsDictionary {
2516
2629
  config?: AxiosRequestConfig
2517
2630
  ): OperationResponse<Paths.ExportBlueprint.Responses.$202>
2518
2631
  }
2632
+ ['/v2/blueprint-manifest/blueprints/{blueprint_id}:create-plan']: {
2633
+ /**
2634
+ * createBlueprintPlan - createBlueprintPlan
2635
+ *
2636
+ * Kick off a new blueprint plan creation job. Returns 202 Accepted with Location header pointing to the job resource.
2637
+ *
2638
+ */
2639
+ 'post'(
2640
+ parameters?: Parameters<Paths.CreateBlueprintPlan.PathParameters> | null,
2641
+ data?: any,
2642
+ config?: AxiosRequestConfig
2643
+ ): OperationResponse<Paths.CreateBlueprintPlan.Responses.$202>
2644
+ }
2519
2645
  ['/v2/blueprint-manifest/blueprints/{blueprint_id}/resources']: {
2520
2646
  /**
2521
2647
  * addBlueprintResource - addBlueprintResource
@@ -2668,6 +2794,8 @@ export type CommonMarkdownFields = Components.Schemas.CommonMarkdownFields;
2668
2794
  export type CommonResourceNode = Components.Schemas.CommonResourceNode;
2669
2795
  export type CustomBlueprint = Components.Schemas.CustomBlueprint;
2670
2796
  export type DeployedBlueprint = Components.Schemas.DeployedBlueprint;
2797
+ export type DiffRow = Components.Schemas.DiffRow;
2798
+ export type DiffRowArray = Components.Schemas.DiffRowArray;
2671
2799
  export type FileBlueprint = Components.Schemas.FileBlueprint;
2672
2800
  export type FormattedError = Components.Schemas.FormattedError;
2673
2801
  export type FormattedErrorCodes = Components.Schemas.FormattedErrorCodes;
package/dist/openapi.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "openapi": "3.1.0",
3
3
  "info": {
4
4
  "title": "Blueprint Manifest API",
5
- "version": "3.0.0",
5
+ "version": "3.3.0",
6
6
  "description": "Service to create and install Blueprint Manifest files"
7
7
  },
8
8
  "tags": [
@@ -751,6 +751,89 @@
751
751
  }
752
752
  }
753
753
  },
754
+ "/v2/blueprint-manifest/blueprints:pre-install": {
755
+ "post": {
756
+ "operationId": "preInstallBlueprint",
757
+ "summary": "preInstallBlueprint",
758
+ "description": "Pre-install a Blueprint based on a blueprint file",
759
+ "tags": [
760
+ "Blueprints"
761
+ ],
762
+ "requestBody": {
763
+ "content": {
764
+ "application/json": {
765
+ "schema": {
766
+ "type": "object",
767
+ "properties": {
768
+ "blueprint_file": {
769
+ "type": "string",
770
+ "description": "URL to the blueprint zip file"
771
+ },
772
+ "source_blueprint_type": {
773
+ "type": "string",
774
+ "enum": [
775
+ "marketplace"
776
+ ]
777
+ }
778
+ }
779
+ }
780
+ }
781
+ }
782
+ },
783
+ "responses": {
784
+ "200": {
785
+ "description": "Pre-installed Blueprint",
786
+ "content": {
787
+ "application/json": {
788
+ "schema": {
789
+ "$ref": "#/components/schemas/Blueprint"
790
+ }
791
+ }
792
+ }
793
+ }
794
+ }
795
+ }
796
+ },
797
+ "/v2/blueprint-manifest/blueprint/{blueprint_id}/diff": {
798
+ "get": {
799
+ "operationId": "getBlueprintDiff",
800
+ "summary": "getBlueprintDiff",
801
+ "description": "Makes the diff of a blueprint vs the current state of its resources\n",
802
+ "tags": [
803
+ "Blueprints"
804
+ ],
805
+ "parameters": [
806
+ {
807
+ "in": "path",
808
+ "required": true,
809
+ "name": "blueprint_id",
810
+ "schema": {
811
+ "$ref": "#/components/schemas/BlueprintID"
812
+ }
813
+ }
814
+ ]
815
+ },
816
+ "responses": {
817
+ "200": {
818
+ "description": "The diff for the given blueprint",
819
+ "content": {
820
+ "application/json": {
821
+ "schema": {
822
+ "type": "object",
823
+ "properties": {
824
+ "diffRows": {
825
+ "$ref": "#/components/schemas/DiffRowArray"
826
+ }
827
+ },
828
+ "required": [
829
+ "diffRows"
830
+ ]
831
+ }
832
+ }
833
+ }
834
+ }
835
+ }
836
+ },
754
837
  "/v2/blueprint-manifest/blueprint:install": {
755
838
  "post": {
756
839
  "operationId": "installBlueprint",
@@ -1001,6 +1084,51 @@
1001
1084
  }
1002
1085
  }
1003
1086
  },
1087
+ "/v2/blueprint-manifest/blueprints/{blueprint_id}:create-plan": {
1088
+ "post": {
1089
+ "operationId": "createBlueprintPlan",
1090
+ "summary": "createBlueprintPlan",
1091
+ "description": "Kick off a new blueprint plan creation job. Returns 202 Accepted with Location header pointing to the job resource.\n",
1092
+ "tags": [
1093
+ "Blueprints"
1094
+ ],
1095
+ "parameters": [
1096
+ {
1097
+ "in": "path",
1098
+ "required": true,
1099
+ "name": "blueprint_id",
1100
+ "schema": {
1101
+ "$ref": "#/components/schemas/BlueprintID"
1102
+ }
1103
+ }
1104
+ ],
1105
+ "responses": {
1106
+ "202": {
1107
+ "description": "Blueprint export plan job started",
1108
+ "headers": {
1109
+ "Location": {
1110
+ "description": "URL to poll the job",
1111
+ "schema": {
1112
+ "type": "string"
1113
+ }
1114
+ }
1115
+ },
1116
+ "content": {
1117
+ "application/json": {
1118
+ "schema": {
1119
+ "type": "object",
1120
+ "properties": {
1121
+ "job_id": {
1122
+ "$ref": "#/components/schemas/BlueprintJobID"
1123
+ }
1124
+ }
1125
+ }
1126
+ }
1127
+ }
1128
+ }
1129
+ }
1130
+ }
1131
+ },
1004
1132
  "/v2/blueprint-manifest/blueprints/{blueprint_id}/resources": {
1005
1133
  "post": {
1006
1134
  "operationId": "addBlueprintResource",
@@ -1506,6 +1634,59 @@
1506
1634
  },
1507
1635
  "components": {
1508
1636
  "schemas": {
1637
+ "DiffRow": {
1638
+ "type": "object",
1639
+ "required": [
1640
+ "type",
1641
+ "key",
1642
+ "before",
1643
+ "after",
1644
+ "resource"
1645
+ ],
1646
+ "properties": {
1647
+ "type": {
1648
+ "type": "string",
1649
+ "enum": [
1650
+ "added",
1651
+ "removed",
1652
+ "changed",
1653
+ "no-op"
1654
+ ]
1655
+ },
1656
+ "key": {
1657
+ "type": "string"
1658
+ },
1659
+ "before": {
1660
+ "oneOf": [
1661
+ {
1662
+ "type": "string"
1663
+ },
1664
+ {
1665
+ "type": "null"
1666
+ }
1667
+ ]
1668
+ },
1669
+ "after": {
1670
+ "oneOf": [
1671
+ {
1672
+ "type": "string"
1673
+ },
1674
+ {
1675
+ "type": "null"
1676
+ }
1677
+ ]
1678
+ },
1679
+ "resource": {
1680
+ "type": "string"
1681
+ }
1682
+ }
1683
+ },
1684
+ "DiffRowArray": {
1685
+ "type": "array",
1686
+ "items": {
1687
+ "$ref": "#/components/schemas/DiffRow"
1688
+ }
1689
+ },
1509
1690
  "BlueprintID": {
1510
1691
  "type": "string",
1511
1692
  "description": "ID of a blueprint",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/blueprint-manifest-client",
3
- "version": "3.1.1",
3
+ "version": "3.2.1-beta",
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",
@@ -50,26 +62,15 @@
50
62
  "@types/jest": "^26.0.20",
51
63
  "axios": "^1.11.0",
52
64
  "copy-webpack-plugin": "^7.0.0",
53
- "jest": "^26.6.3",
65
+ "jest": "^29.6.2",
54
66
  "json-loader": "^0.5.7",
55
67
  "openapicmd": "^2.7.0",
56
- "ts-jest": "^26.5.0",
68
+ "ts-jest": "^29.4.1",
57
69
  "ts-loader": "^8.0.14",
58
70
  "ts-node": "^10.9.1",
59
71
  "typescript": "^4.1.3",
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.