@epilot/blueprint-manifest-client 3.10.0 → 4.1.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.
@@ -1 +1 @@
1
- (()=>{"use strict";var e={330: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","deprecated":true,"parameters":[{"$ref":"#/components/parameters/JobID"}],"responses":{}}},"/v1/blueprint-manifest/jobs:createExport":{"post":{"operationId":"createExport","deprecated":true,"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/blueprint-manifest/jobs/{job_id}:exportManifest":{"post":{"operationId":"exportManifest","deprecated":true,"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","deprecated":true,"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/blueprint-manifest/jobs/{job_id}:applyPlan":{"post":{"operationId":"applyPlan","deprecated":true,"parameters":[{"$ref":"#/components/parameters/JobID"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/blueprint-manifest/manifests":{"get":{"operationId":"listInstalledManifests","deprecated":true,"responses":{}}},"/v1/blueprint-manifest/manifests/{manifest_id}":{"get":{"operationId":"getManifest","deprecated":true,"parameters":[{"in":"path","required":true,"name":"manifest_id"}],"responses":{}},"put":{"operationId":"updateManifest","deprecated":true,"parameters":[{"in":"path","required":true,"name":"manifest_id"}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteManifest","deprecated":true,"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:marketplace":{"get":{"operationId":"listInstalledMarketplaceBlueprints","responses":{}}},"/v2/blueprint-manifest/blueprints:pre-install":{"post":{"operationId":"preInstallBlueprint","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}(330),n=exports;for(var s in r)n[s]=r[s];r.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
1
+ (()=>{"use strict";var e={330: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","deprecated":true,"parameters":[{"$ref":"#/components/parameters/JobID"}],"responses":{}}},"/v1/blueprint-manifest/jobs:createExport":{"post":{"operationId":"createExport","deprecated":true,"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/blueprint-manifest/jobs/{job_id}:exportManifest":{"post":{"operationId":"exportManifest","deprecated":true,"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","deprecated":true,"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/blueprint-manifest/jobs/{job_id}:applyPlan":{"post":{"operationId":"applyPlan","deprecated":true,"parameters":[{"$ref":"#/components/parameters/JobID"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/blueprint-manifest/manifests":{"get":{"operationId":"listInstalledManifests","deprecated":true,"responses":{}}},"/v1/blueprint-manifest/manifests/{manifest_id}":{"get":{"operationId":"getManifest","deprecated":true,"parameters":[{"in":"path","required":true,"name":"manifest_id"}],"responses":{}},"put":{"operationId":"updateManifest","deprecated":true,"parameters":[{"in":"path","required":true,"name":"manifest_id"}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteManifest","deprecated":true,"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:marketplace":{"get":{"operationId":"listInstalledMarketplaceBlueprints","responses":{}}},"/v2/blueprint-manifest/blueprints:pre-install":{"post":{"operationId":"preInstallBlueprint","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/blueprint-manifest/blueprints:preview/{preview_id}":{"get":{"operationId":"getBlueprintPreview","parameters":[{"in":"path","required":true,"name":"preview_id"}],"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}(330),n=exports;for(var s in r)n[s]=r[s];r.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
@@ -173,6 +173,19 @@
173
173
  "responses": {}
174
174
  }
175
175
  },
176
+ "/v2/blueprint-manifest/blueprints:preview/{preview_id}": {
177
+ "get": {
178
+ "operationId": "getBlueprintPreview",
179
+ "parameters": [
180
+ {
181
+ "in": "path",
182
+ "required": true,
183
+ "name": "preview_id"
184
+ }
185
+ ],
186
+ "responses": {}
187
+ }
188
+ },
176
189
  "/v2/blueprint-manifest/blueprint:install": {
177
190
  "post": {
178
191
  "operationId": "installBlueprint",
package/dist/openapi.d.ts CHANGED
@@ -185,6 +185,36 @@ declare namespace Components {
185
185
  * c2d6cac8-bdd5-4ea2-8a6c-1cbdbe77b341
186
186
  */
187
187
  export type BlueprintJobID = string;
188
+ /**
189
+ * Preview data for a blueprint before installation. Stored temporarily with TTL.
190
+ */
191
+ export interface BlueprintPreview {
192
+ /**
193
+ * Unique preview ID
194
+ */
195
+ id: string;
196
+ /**
197
+ * Organization ID
198
+ */
199
+ org_id: string;
200
+ title: string;
201
+ description?: {
202
+ preinstall?: string;
203
+ };
204
+ version?: string;
205
+ slug?: string;
206
+ source_type: "marketplace" | "file";
207
+ /**
208
+ * S3 key of the blueprint zip file
209
+ */
210
+ blueprint_file_s3_key: string;
211
+ is_verified: boolean;
212
+ docs_url?: string;
213
+ compatible_apps?: string[];
214
+ created_at: string; // date-time
215
+ created_by: CallerIdentity;
216
+ resources: BlueprintResource[];
217
+ }
188
218
  export interface BlueprintResource {
189
219
  id: /**
190
220
  * ID of a blueprint resource
@@ -1967,6 +1997,19 @@ declare namespace Paths {
1967
1997
  export type $200 = Components.Schemas.BlueprintJob;
1968
1998
  }
1969
1999
  }
2000
+ namespace GetBlueprintPreview {
2001
+ namespace Parameters {
2002
+ export type PreviewId = string;
2003
+ }
2004
+ export interface PathParameters {
2005
+ preview_id: Parameters.PreviewId;
2006
+ }
2007
+ namespace Responses {
2008
+ export type $200 = /* Preview data for a blueprint before installation. Stored temporarily with TTL. */ Components.Schemas.BlueprintPreview;
2009
+ export interface $404 {
2010
+ }
2011
+ }
2012
+ }
1970
2013
  namespace GetJob {
1971
2014
  namespace Parameters {
1972
2015
  export type JobId = /**
@@ -2108,7 +2151,7 @@ declare namespace Paths {
2108
2151
  slug?: string;
2109
2152
  }
2110
2153
  namespace Responses {
2111
- export type $200 = Components.Schemas.Blueprint;
2154
+ export type $200 = /* Preview data for a blueprint before installation. Stored temporarily with TTL. */ Components.Schemas.BlueprintPreview;
2112
2155
  }
2113
2156
  }
2114
2157
  namespace SyncDependencies {
@@ -2364,6 +2407,16 @@ export interface OperationMethods {
2364
2407
  data?: Paths.PreInstallBlueprint.RequestBody,
2365
2408
  config?: AxiosRequestConfig
2366
2409
  ): OperationResponse<Paths.PreInstallBlueprint.Responses.$200>
2410
+ /**
2411
+ * getBlueprintPreview - getBlueprintPreview
2412
+ *
2413
+ * Get Blueprint Preview by ID
2414
+ */
2415
+ 'getBlueprintPreview'(
2416
+ parameters?: Parameters<Paths.GetBlueprintPreview.PathParameters> | null,
2417
+ data?: any,
2418
+ config?: AxiosRequestConfig
2419
+ ): OperationResponse<Paths.GetBlueprintPreview.Responses.$200>
2367
2420
  /**
2368
2421
  * installBlueprint - installBlueprint
2369
2422
  *
@@ -2704,6 +2757,18 @@ export interface PathsDictionary {
2704
2757
  config?: AxiosRequestConfig
2705
2758
  ): OperationResponse<Paths.PreInstallBlueprint.Responses.$200>
2706
2759
  }
2760
+ ['/v2/blueprint-manifest/blueprints:preview/{preview_id}']: {
2761
+ /**
2762
+ * getBlueprintPreview - getBlueprintPreview
2763
+ *
2764
+ * Get Blueprint Preview by ID
2765
+ */
2766
+ 'get'(
2767
+ parameters?: Parameters<Paths.GetBlueprintPreview.PathParameters> | null,
2768
+ data?: any,
2769
+ config?: AxiosRequestConfig
2770
+ ): OperationResponse<Paths.GetBlueprintPreview.Responses.$200>
2771
+ }
2707
2772
  ['/v2/blueprint-manifest/blueprint:install']: {
2708
2773
  /**
2709
2774
  * installBlueprint - installBlueprint
@@ -2904,6 +2969,7 @@ export type BlueprintInstallationJobOptions = Components.Schemas.BlueprintInstal
2904
2969
  export type BlueprintJob = Components.Schemas.BlueprintJob;
2905
2970
  export type BlueprintJobEvent = Components.Schemas.BlueprintJobEvent;
2906
2971
  export type BlueprintJobID = Components.Schemas.BlueprintJobID;
2972
+ export type BlueprintPreview = Components.Schemas.BlueprintPreview;
2907
2973
  export type BlueprintResource = Components.Schemas.BlueprintResource;
2908
2974
  export type BlueprintResourceID = Components.Schemas.BlueprintResourceID;
2909
2975
  export type CallerIdentity = Components.Schemas.CallerIdentity;
package/dist/openapi.json CHANGED
@@ -829,14 +829,49 @@
829
829
  },
830
830
  "responses": {
831
831
  "200": {
832
- "description": "Pre-installed Blueprint",
832
+ "description": "Blueprint preview data for UI display",
833
833
  "content": {
834
834
  "application/json": {
835
835
  "schema": {
836
- "$ref": "#/components/schemas/Blueprint"
836
+ "$ref": "#/components/schemas/BlueprintPreview"
837
+ }
838
+ }
839
+ }
840
+ }
841
+ }
842
+ }
843
+ },
844
+ "/v2/blueprint-manifest/blueprints:preview/{preview_id}": {
845
+ "get": {
846
+ "operationId": "getBlueprintPreview",
847
+ "summary": "getBlueprintPreview",
848
+ "description": "Get Blueprint Preview by ID",
849
+ "tags": [
850
+ "Blueprints"
851
+ ],
852
+ "parameters": [
853
+ {
854
+ "in": "path",
855
+ "required": true,
856
+ "name": "preview_id",
857
+ "schema": {
858
+ "type": "string"
859
+ }
860
+ }
861
+ ],
862
+ "responses": {
863
+ "200": {
864
+ "description": "Blueprint Preview",
865
+ "content": {
866
+ "application/json": {
867
+ "schema": {
868
+ "$ref": "#/components/schemas/BlueprintPreview"
837
869
  }
838
870
  }
839
871
  }
872
+ },
873
+ "404": {
874
+ "description": "Blueprint Preview not found"
840
875
  }
841
876
  }
842
877
  }
@@ -1783,6 +1818,84 @@
1783
1818
  "type"
1784
1819
  ]
1785
1820
  },
1821
+ "BlueprintPreview": {
1822
+ "type": "object",
1823
+ "description": "Preview data for a blueprint before installation. Stored temporarily with TTL.",
1824
+ "properties": {
1825
+ "id": {
1826
+ "type": "string",
1827
+ "description": "Unique preview ID"
1828
+ },
1829
+ "org_id": {
1830
+ "type": "string",
1831
+ "description": "Organization ID"
1832
+ },
1833
+ "title": {
1834
+ "type": "string"
1835
+ },
1836
+ "description": {
1837
+ "type": "object",
1838
+ "properties": {
1839
+ "preinstall": {
1840
+ "type": "string"
1841
+ }
1842
+ }
1843
+ },
1844
+ "version": {
1845
+ "type": "string"
1846
+ },
1847
+ "slug": {
1848
+ "type": "string"
1849
+ },
1850
+ "source_type": {
1851
+ "type": "string",
1852
+ "enum": [
1853
+ "marketplace",
1854
+ "file"
1855
+ ]
1856
+ },
1857
+ "blueprint_file_s3_key": {
1858
+ "type": "string",
1859
+ "description": "S3 key of the blueprint zip file"
1860
+ },
1861
+ "is_verified": {
1862
+ "type": "boolean"
1863
+ },
1864
+ "docs_url": {
1865
+ "type": "string"
1866
+ },
1867
+ "compatible_apps": {
1868
+ "type": "array",
1869
+ "items": {
1870
+ "type": "string"
1871
+ }
1872
+ },
1873
+ "created_at": {
1874
+ "type": "string",
1875
+ "format": "date-time"
1876
+ },
1877
+ "created_by": {
1878
+ "$ref": "#/components/schemas/CallerIdentity"
1879
+ },
1880
+ "resources": {
1881
+ "type": "array",
1882
+ "items": {
1883
+ "$ref": "#/components/schemas/BlueprintResource"
1884
+ }
1885
+ }
1886
+ },
1887
+ "required": [
1888
+ "id",
1889
+ "org_id",
1890
+ "title",
1891
+ "source_type",
1892
+ "blueprint_file_s3_key",
1893
+ "is_verified",
1894
+ "created_at",
1895
+ "created_by",
1896
+ "resources"
1897
+ ]
1898
+ },
1786
1899
  "CustomBlueprint": {
1787
1900
  "allOf": [
1788
1901
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/blueprint-manifest-client",
3
- "version": "3.10.0",
3
+ "version": "4.1.0",
4
4
  "description": "Client for epilot Terraform Blueprint Manifest API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",