@epilot/blueprint-manifest-client 3.6.4 → 3.8.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: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={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","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}(390),n=exports;for(var s in r)n[s]=r[s];r.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
@@ -156,6 +156,12 @@
156
156
  "responses": {}
157
157
  }
158
158
  },
159
+ "/v2/blueprint-manifest/blueprints:marketplace": {
160
+ "get": {
161
+ "operationId": "listInstalledMarketplaceBlueprints",
162
+ "responses": {}
163
+ }
164
+ },
159
165
  "/v2/blueprint-manifest/blueprints:pre-install": {
160
166
  "post": {
161
167
  "operationId": "preInstallBlueprint",
package/dist/openapi.d.ts CHANGED
@@ -692,6 +692,45 @@ declare namespace Components {
692
692
  name?: string;
693
693
  type?: string;
694
694
  }
695
+ /**
696
+ * Summary of an installed marketplace blueprint for version tracking
697
+ */
698
+ export interface InstalledMarketplaceBlueprintItem {
699
+ id: /**
700
+ * ID of a blueprint
701
+ * example:
702
+ * c2d6cac8-bdd5-4ea2-8a6c-1cbdbe77b341
703
+ */
704
+ BlueprintID;
705
+ /**
706
+ * URL slug of the blueprint from the epilot marketplace
707
+ * example:
708
+ * solar-b2b
709
+ */
710
+ slug: string;
711
+ /**
712
+ * Version of the installed blueprint
713
+ * example:
714
+ * v1.0.0
715
+ */
716
+ version?: string;
717
+ created_at?: string; // date-time
718
+ created_by?: CallerIdentity;
719
+ updated_at?: string; // date-time
720
+ updated_by?: CallerIdentity;
721
+ /**
722
+ * Whether a newer version is available in the marketplace
723
+ * example:
724
+ * true
725
+ */
726
+ has_update_available?: boolean;
727
+ /**
728
+ * The latest version available in the marketplace
729
+ * example:
730
+ * v2.0.0
731
+ */
732
+ latest_marketplace_version?: string;
733
+ }
695
734
  export interface Job {
696
735
  job_id?: /**
697
736
  * ID of an import or export job (state machine)
@@ -1968,6 +2007,10 @@ declare namespace Paths {
1968
2007
  */
1969
2008
  mode: "simple" | "advanced";
1970
2009
  source_blueprint_type?: "marketplace";
2010
+ /**
2011
+ * Slug to enforce in this blueprint. Used in marketplace blueprints to keep it consistent with webflow.
2012
+ */
2013
+ slug?: string;
1971
2014
  }
1972
2015
  namespace Responses {
1973
2016
  export interface $202 {
@@ -2022,6 +2065,18 @@ declare namespace Paths {
2022
2065
  }
2023
2066
  }
2024
2067
  }
2068
+ namespace ListInstalledMarketplaceBlueprints {
2069
+ namespace Responses {
2070
+ export interface $200 {
2071
+ /**
2072
+ * example:
2073
+ * 1
2074
+ */
2075
+ total?: number;
2076
+ results?: /* Summary of an installed marketplace blueprint for version tracking */ Components.Schemas.InstalledMarketplaceBlueprintItem[];
2077
+ }
2078
+ }
2079
+ }
2025
2080
  namespace PreInstallBlueprint {
2026
2081
  export interface RequestBody {
2027
2082
  /**
@@ -2029,6 +2084,10 @@ declare namespace Paths {
2029
2084
  */
2030
2085
  blueprint_file?: string;
2031
2086
  source_blueprint_type?: "marketplace";
2087
+ /**
2088
+ * Slug to enforce in this blueprint. Used in marketplace blueprints to keep it consistent with webflow.
2089
+ */
2090
+ slug?: string;
2032
2091
  }
2033
2092
  namespace Responses {
2034
2093
  export type $200 = Components.Schemas.Blueprint;
@@ -2265,6 +2324,18 @@ export interface OperationMethods {
2265
2324
  data?: Paths.CreateBlueprint.RequestBody,
2266
2325
  config?: AxiosRequestConfig
2267
2326
  ): OperationResponse<Paths.CreateBlueprint.Responses.$200>
2327
+ /**
2328
+ * listInstalledMarketplaceBlueprints - listInstalledMarketplaceBlueprints
2329
+ *
2330
+ * List installed Marketplace Blueprints for the organization.
2331
+ * When multiple blueprints have the same slug, returns only the most recently created one.
2332
+ *
2333
+ */
2334
+ 'listInstalledMarketplaceBlueprints'(
2335
+ parameters?: Parameters<UnknownParamsObject> | null,
2336
+ data?: any,
2337
+ config?: AxiosRequestConfig
2338
+ ): OperationResponse<Paths.ListInstalledMarketplaceBlueprints.Responses.$200>
2268
2339
  /**
2269
2340
  * preInstallBlueprint - preInstallBlueprint
2270
2341
  *
@@ -2589,6 +2660,20 @@ export interface PathsDictionary {
2589
2660
  config?: AxiosRequestConfig
2590
2661
  ): OperationResponse<Paths.CreateBlueprint.Responses.$200>
2591
2662
  }
2663
+ ['/v2/blueprint-manifest/blueprints:marketplace']: {
2664
+ /**
2665
+ * listInstalledMarketplaceBlueprints - listInstalledMarketplaceBlueprints
2666
+ *
2667
+ * List installed Marketplace Blueprints for the organization.
2668
+ * When multiple blueprints have the same slug, returns only the most recently created one.
2669
+ *
2670
+ */
2671
+ 'get'(
2672
+ parameters?: Parameters<UnknownParamsObject> | null,
2673
+ data?: any,
2674
+ config?: AxiosRequestConfig
2675
+ ): OperationResponse<Paths.ListInstalledMarketplaceBlueprints.Responses.$200>
2676
+ }
2592
2677
  ['/v2/blueprint-manifest/blueprints:pre-install']: {
2593
2678
  /**
2594
2679
  * preInstallBlueprint - preInstallBlueprint
@@ -2816,6 +2901,7 @@ export type FileBlueprint = Components.Schemas.FileBlueprint;
2816
2901
  export type FormattedError = Components.Schemas.FormattedError;
2817
2902
  export type FormattedErrorCodes = Components.Schemas.FormattedErrorCodes;
2818
2903
  export type FormattedErrorData = Components.Schemas.FormattedErrorData;
2904
+ export type InstalledMarketplaceBlueprintItem = Components.Schemas.InstalledMarketplaceBlueprintItem;
2819
2905
  export type Job = Components.Schemas.Job;
2820
2906
  export type JobID = Components.Schemas.JobID;
2821
2907
  export type JobStatus = Components.Schemas.JobStatus;
package/dist/openapi.json CHANGED
@@ -760,6 +760,40 @@
760
760
  }
761
761
  }
762
762
  },
763
+ "/v2/blueprint-manifest/blueprints:marketplace": {
764
+ "get": {
765
+ "operationId": "listInstalledMarketplaceBlueprints",
766
+ "summary": "listInstalledMarketplaceBlueprints",
767
+ "description": "List installed Marketplace Blueprints for the organization.\nWhen multiple blueprints have the same slug, returns only the most recently created one.\n",
768
+ "tags": [
769
+ "Blueprints"
770
+ ],
771
+ "responses": {
772
+ "200": {
773
+ "description": "Installed Marketplace Blueprints",
774
+ "content": {
775
+ "application/json": {
776
+ "schema": {
777
+ "type": "object",
778
+ "properties": {
779
+ "total": {
780
+ "type": "integer",
781
+ "example": 1
782
+ },
783
+ "results": {
784
+ "type": "array",
785
+ "items": {
786
+ "$ref": "#/components/schemas/InstalledMarketplaceBlueprintItem"
787
+ }
788
+ }
789
+ }
790
+ }
791
+ }
792
+ }
793
+ }
794
+ }
795
+ }
796
+ },
763
797
  "/v2/blueprint-manifest/blueprints:pre-install": {
764
798
  "post": {
765
799
  "operationId": "preInstallBlueprint",
@@ -783,6 +817,10 @@
783
817
  "enum": [
784
818
  "marketplace"
785
819
  ]
820
+ },
821
+ "slug": {
822
+ "type": "string",
823
+ "description": "Slug to enforce in this blueprint. Used in marketplace blueprints to keep it consistent with webflow."
786
824
  }
787
825
  }
788
826
  }
@@ -850,6 +888,10 @@
850
888
  "enum": [
851
889
  "marketplace"
852
890
  ]
891
+ },
892
+ "slug": {
893
+ "type": "string",
894
+ "description": "Slug to enforce in this blueprint. Used in marketplace blueprints to keep it consistent with webflow."
853
895
  }
854
896
  },
855
897
  "required": [
@@ -1827,6 +1869,53 @@
1827
1869
  "source_type"
1828
1870
  ]
1829
1871
  },
1872
+ "InstalledMarketplaceBlueprintItem": {
1873
+ "type": "object",
1874
+ "description": "Summary of an installed marketplace blueprint for version tracking",
1875
+ "properties": {
1876
+ "id": {
1877
+ "$ref": "#/components/schemas/BlueprintID"
1878
+ },
1879
+ "slug": {
1880
+ "type": "string",
1881
+ "description": "URL slug of the blueprint from the epilot marketplace",
1882
+ "example": "solar-b2b"
1883
+ },
1884
+ "version": {
1885
+ "type": "string",
1886
+ "description": "Version of the installed blueprint",
1887
+ "example": "v1.0.0"
1888
+ },
1889
+ "created_at": {
1890
+ "type": "string",
1891
+ "format": "date-time"
1892
+ },
1893
+ "created_by": {
1894
+ "$ref": "#/components/schemas/CallerIdentity"
1895
+ },
1896
+ "updated_at": {
1897
+ "type": "string",
1898
+ "format": "date-time"
1899
+ },
1900
+ "updated_by": {
1901
+ "$ref": "#/components/schemas/CallerIdentity"
1902
+ },
1903
+ "has_update_available": {
1904
+ "type": "boolean",
1905
+ "description": "Whether a newer version is available in the marketplace",
1906
+ "example": true
1907
+ },
1908
+ "latest_marketplace_version": {
1909
+ "type": "string",
1910
+ "description": "The latest version available in the marketplace",
1911
+ "example": "v2.0.0"
1912
+ }
1913
+ },
1914
+ "required": [
1915
+ "id",
1916
+ "slug"
1917
+ ]
1918
+ },
1830
1919
  "DeployedBlueprint": {
1831
1920
  "allOf": [
1832
1921
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/blueprint-manifest-client",
3
- "version": "3.6.4",
3
+ "version": "3.8.0",
4
4
  "description": "Client for epilot Terraform Blueprint Manifest API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",