@epilot/blueprint-manifest-client 4.5.1 → 4.6.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/client.d.ts +1 -1
- package/dist/definition.js +1 -1
- package/dist/openapi-runtime.json +18 -0
- package/dist/openapi.d.ts +105 -2
- package/dist/openapi.json +111 -1
- package/package.json +4 -7
package/dist/client.d.ts
CHANGED
package/dist/definition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={330(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","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","parameters":[{"name":"archived","in":"query","required":false}],"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}/validate":{"post":{"operationId":"validateBlueprint","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}:format-description":{"post":{"operationId":"formatBlueprintDescription","parameters":[{"in":"path","required":true,"name":"blueprint_id"}],"requestBody":{"required":true,"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 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}(330),n=exports;for(var i in r)n[i]=r[i];r.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
|
|
1
|
+
(()=>{"use strict";var e={330(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","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","parameters":[{"name":"archived","in":"query","required":false}],"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}/validate":{"post":{"operationId":"validateBlueprint","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/marketplace/slugs":{"get":{"operationId":"listMarketplaceSlugs","responses":{}}},"/v2/blueprint-manifest/blueprints:publish":{"post":{"operationId":"publishBlueprint","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v2/blueprint-manifest/blueprints/{blueprint_id}:format-description":{"post":{"operationId":"formatBlueprintDescription","parameters":[{"in":"path","required":true,"name":"blueprint_id"}],"requestBody":{"required":true,"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 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}(330),n=exports;for(var i in r)n[i]=r[i];r.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
|
|
@@ -277,6 +277,24 @@
|
|
|
277
277
|
"responses": {}
|
|
278
278
|
}
|
|
279
279
|
},
|
|
280
|
+
"/v2/blueprint-manifest/marketplace/slugs": {
|
|
281
|
+
"get": {
|
|
282
|
+
"operationId": "listMarketplaceSlugs",
|
|
283
|
+
"responses": {}
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
"/v2/blueprint-manifest/blueprints:publish": {
|
|
287
|
+
"post": {
|
|
288
|
+
"operationId": "publishBlueprint",
|
|
289
|
+
"requestBody": {
|
|
290
|
+
"required": true,
|
|
291
|
+
"content": {
|
|
292
|
+
"application/json": {}
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
"responses": {}
|
|
296
|
+
}
|
|
297
|
+
},
|
|
280
298
|
"/v2/blueprint-manifest/blueprints/{blueprint_id}:format-description": {
|
|
281
299
|
"post": {
|
|
282
300
|
"operationId": "formatBlueprintDescription",
|
package/dist/openapi.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
|
|
3
1
|
import type {
|
|
4
2
|
OpenAPIClient,
|
|
5
3
|
Parameters,
|
|
@@ -2108,6 +2106,10 @@ declare namespace Paths {
|
|
|
2108
2106
|
export interface RequestBody {
|
|
2109
2107
|
destination_org_id?: string;
|
|
2110
2108
|
destination_blueprint_id?: string;
|
|
2109
|
+
/**
|
|
2110
|
+
* When true, run terraform validate before creating the export zip. If validation fails, the job will be marked as FAILED with errors.
|
|
2111
|
+
*/
|
|
2112
|
+
validate?: boolean;
|
|
2111
2113
|
}
|
|
2112
2114
|
namespace Responses {
|
|
2113
2115
|
export interface $202 {
|
|
@@ -2377,6 +2379,29 @@ declare namespace Paths {
|
|
|
2377
2379
|
}
|
|
2378
2380
|
}
|
|
2379
2381
|
}
|
|
2382
|
+
namespace ListMarketplaceSlugs {
|
|
2383
|
+
namespace Responses {
|
|
2384
|
+
export interface $200 {
|
|
2385
|
+
results?: {
|
|
2386
|
+
/**
|
|
2387
|
+
* example:
|
|
2388
|
+
* wallbox_b2c
|
|
2389
|
+
*/
|
|
2390
|
+
slug?: string;
|
|
2391
|
+
/**
|
|
2392
|
+
* example:
|
|
2393
|
+
* v1.0.0
|
|
2394
|
+
*/
|
|
2395
|
+
version?: string;
|
|
2396
|
+
/**
|
|
2397
|
+
* example:
|
|
2398
|
+
* https://portal.epilot.cloud/app/blueprints/install/marketplace/wallbox_b2c?s3Ref=https://example.com/blueprint.zip
|
|
2399
|
+
*/
|
|
2400
|
+
installation_link?: string;
|
|
2401
|
+
}[];
|
|
2402
|
+
}
|
|
2403
|
+
}
|
|
2404
|
+
}
|
|
2380
2405
|
namespace PreInstallBlueprint {
|
|
2381
2406
|
export interface RequestBody {
|
|
2382
2407
|
/**
|
|
@@ -2393,6 +2418,34 @@ declare namespace Paths {
|
|
|
2393
2418
|
export type $200 = /* Preview data for a blueprint before installation. Stored temporarily with TTL. */ Components.Schemas.BlueprintPreview;
|
|
2394
2419
|
}
|
|
2395
2420
|
}
|
|
2421
|
+
namespace PublishBlueprint {
|
|
2422
|
+
export interface RequestBody {
|
|
2423
|
+
blueprint_id: /**
|
|
2424
|
+
* ID of a blueprint
|
|
2425
|
+
* example:
|
|
2426
|
+
* c2d6cac8-bdd5-4ea2-8a6c-1cbdbe77b341
|
|
2427
|
+
*/
|
|
2428
|
+
Components.Schemas.BlueprintID;
|
|
2429
|
+
/**
|
|
2430
|
+
* The marketplace installation slug for the Webflow CMS item
|
|
2431
|
+
*/
|
|
2432
|
+
slug: string;
|
|
2433
|
+
/**
|
|
2434
|
+
* The version string to set on the marketplace CMS item (e.g. "1.0.0")
|
|
2435
|
+
*/
|
|
2436
|
+
version?: string;
|
|
2437
|
+
}
|
|
2438
|
+
namespace Responses {
|
|
2439
|
+
export interface $202 {
|
|
2440
|
+
job_id?: /**
|
|
2441
|
+
* ID of a job
|
|
2442
|
+
* example:
|
|
2443
|
+
* c2d6cac8-bdd5-4ea2-8a6c-1cbdbe77b341
|
|
2444
|
+
*/
|
|
2445
|
+
Components.Schemas.BlueprintJobID;
|
|
2446
|
+
}
|
|
2447
|
+
}
|
|
2448
|
+
}
|
|
2396
2449
|
namespace SyncDependencies {
|
|
2397
2450
|
namespace Parameters {
|
|
2398
2451
|
export type BlueprintId = /**
|
|
@@ -2745,6 +2798,29 @@ export interface OperationMethods {
|
|
|
2745
2798
|
data?: Paths.ExportBlueprint.RequestBody,
|
|
2746
2799
|
config?: AxiosRequestConfig
|
|
2747
2800
|
): OperationResponse<Paths.ExportBlueprint.Responses.$202>
|
|
2801
|
+
/**
|
|
2802
|
+
* listMarketplaceSlugs - listMarketplaceSlugs
|
|
2803
|
+
*
|
|
2804
|
+
* List all available marketplace blueprint slugs from Webflow CMS.
|
|
2805
|
+
* Returns cached results when available.
|
|
2806
|
+
*
|
|
2807
|
+
*/
|
|
2808
|
+
'listMarketplaceSlugs'(
|
|
2809
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
2810
|
+
data?: any,
|
|
2811
|
+
config?: AxiosRequestConfig
|
|
2812
|
+
): OperationResponse<Paths.ListMarketplaceSlugs.Responses.$200>
|
|
2813
|
+
/**
|
|
2814
|
+
* publishBlueprint - publishBlueprint
|
|
2815
|
+
*
|
|
2816
|
+
* Publish a blueprint to the marketplace. Exports the blueprint, uploads it to file-api with public access, and updates the Webflow CMS listing.
|
|
2817
|
+
*
|
|
2818
|
+
*/
|
|
2819
|
+
'publishBlueprint'(
|
|
2820
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
2821
|
+
data?: Paths.PublishBlueprint.RequestBody,
|
|
2822
|
+
config?: AxiosRequestConfig
|
|
2823
|
+
): OperationResponse<Paths.PublishBlueprint.Responses.$202>
|
|
2748
2824
|
/**
|
|
2749
2825
|
* formatBlueprintDescription - formatBlueprintDescription
|
|
2750
2826
|
*
|
|
@@ -3128,6 +3204,33 @@ export interface PathsDictionary {
|
|
|
3128
3204
|
config?: AxiosRequestConfig
|
|
3129
3205
|
): OperationResponse<Paths.ExportBlueprint.Responses.$202>
|
|
3130
3206
|
}
|
|
3207
|
+
['/v2/blueprint-manifest/marketplace/slugs']: {
|
|
3208
|
+
/**
|
|
3209
|
+
* listMarketplaceSlugs - listMarketplaceSlugs
|
|
3210
|
+
*
|
|
3211
|
+
* List all available marketplace blueprint slugs from Webflow CMS.
|
|
3212
|
+
* Returns cached results when available.
|
|
3213
|
+
*
|
|
3214
|
+
*/
|
|
3215
|
+
'get'(
|
|
3216
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
3217
|
+
data?: any,
|
|
3218
|
+
config?: AxiosRequestConfig
|
|
3219
|
+
): OperationResponse<Paths.ListMarketplaceSlugs.Responses.$200>
|
|
3220
|
+
}
|
|
3221
|
+
['/v2/blueprint-manifest/blueprints:publish']: {
|
|
3222
|
+
/**
|
|
3223
|
+
* publishBlueprint - publishBlueprint
|
|
3224
|
+
*
|
|
3225
|
+
* Publish a blueprint to the marketplace. Exports the blueprint, uploads it to file-api with public access, and updates the Webflow CMS listing.
|
|
3226
|
+
*
|
|
3227
|
+
*/
|
|
3228
|
+
'post'(
|
|
3229
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
3230
|
+
data?: Paths.PublishBlueprint.RequestBody,
|
|
3231
|
+
config?: AxiosRequestConfig
|
|
3232
|
+
): OperationResponse<Paths.PublishBlueprint.Responses.$202>
|
|
3233
|
+
}
|
|
3131
3234
|
['/v2/blueprint-manifest/blueprints/{blueprint_id}:format-description']: {
|
|
3132
3235
|
/**
|
|
3133
3236
|
* formatBlueprintDescription - formatBlueprintDescription
|
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": "4.
|
|
5
|
+
"version": "4.6.0",
|
|
6
6
|
"description": "Service to create and install Blueprint Manifest files"
|
|
7
7
|
},
|
|
8
8
|
"tags": [
|
|
@@ -1154,6 +1154,10 @@
|
|
|
1154
1154
|
},
|
|
1155
1155
|
"destination_blueprint_id": {
|
|
1156
1156
|
"type": "string"
|
|
1157
|
+
},
|
|
1158
|
+
"validate": {
|
|
1159
|
+
"type": "boolean",
|
|
1160
|
+
"description": "When true, run terraform validate before creating the export zip. If validation fails, the job will be marked as FAILED with errors."
|
|
1157
1161
|
}
|
|
1158
1162
|
}
|
|
1159
1163
|
}
|
|
@@ -1187,6 +1191,112 @@
|
|
|
1187
1191
|
}
|
|
1188
1192
|
}
|
|
1189
1193
|
},
|
|
1194
|
+
"/v2/blueprint-manifest/marketplace/slugs": {
|
|
1195
|
+
"get": {
|
|
1196
|
+
"operationId": "listMarketplaceSlugs",
|
|
1197
|
+
"summary": "listMarketplaceSlugs",
|
|
1198
|
+
"description": "List all available marketplace blueprint slugs from Webflow CMS.\nReturns cached results when available.\n",
|
|
1199
|
+
"tags": [
|
|
1200
|
+
"Blueprints"
|
|
1201
|
+
],
|
|
1202
|
+
"responses": {
|
|
1203
|
+
"200": {
|
|
1204
|
+
"description": "List of marketplace slugs",
|
|
1205
|
+
"content": {
|
|
1206
|
+
"application/json": {
|
|
1207
|
+
"schema": {
|
|
1208
|
+
"type": "object",
|
|
1209
|
+
"properties": {
|
|
1210
|
+
"results": {
|
|
1211
|
+
"type": "array",
|
|
1212
|
+
"items": {
|
|
1213
|
+
"type": "object",
|
|
1214
|
+
"properties": {
|
|
1215
|
+
"slug": {
|
|
1216
|
+
"type": "string",
|
|
1217
|
+
"example": "wallbox_b2c"
|
|
1218
|
+
},
|
|
1219
|
+
"version": {
|
|
1220
|
+
"type": "string",
|
|
1221
|
+
"example": "v1.0.0"
|
|
1222
|
+
},
|
|
1223
|
+
"installation_link": {
|
|
1224
|
+
"type": "string",
|
|
1225
|
+
"example": "https://portal.epilot.cloud/app/blueprints/install/marketplace/wallbox_b2c?s3Ref=https://example.com/blueprint.zip"
|
|
1226
|
+
}
|
|
1227
|
+
}
|
|
1228
|
+
}
|
|
1229
|
+
}
|
|
1230
|
+
}
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
},
|
|
1238
|
+
"/v2/blueprint-manifest/blueprints:publish": {
|
|
1239
|
+
"post": {
|
|
1240
|
+
"operationId": "publishBlueprint",
|
|
1241
|
+
"summary": "publishBlueprint",
|
|
1242
|
+
"description": "Publish a blueprint to the marketplace. Exports the blueprint, uploads it to file-api with public access, and updates the Webflow CMS listing.\n",
|
|
1243
|
+
"tags": [
|
|
1244
|
+
"Blueprints"
|
|
1245
|
+
],
|
|
1246
|
+
"requestBody": {
|
|
1247
|
+
"required": true,
|
|
1248
|
+
"content": {
|
|
1249
|
+
"application/json": {
|
|
1250
|
+
"schema": {
|
|
1251
|
+
"type": "object",
|
|
1252
|
+
"required": [
|
|
1253
|
+
"blueprint_id",
|
|
1254
|
+
"slug"
|
|
1255
|
+
],
|
|
1256
|
+
"properties": {
|
|
1257
|
+
"blueprint_id": {
|
|
1258
|
+
"$ref": "#/components/schemas/BlueprintID"
|
|
1259
|
+
},
|
|
1260
|
+
"slug": {
|
|
1261
|
+
"type": "string",
|
|
1262
|
+
"description": "The marketplace installation slug for the Webflow CMS item"
|
|
1263
|
+
},
|
|
1264
|
+
"version": {
|
|
1265
|
+
"type": "string",
|
|
1266
|
+
"description": "The version string to set on the marketplace CMS item (e.g. \"1.0.0\")"
|
|
1267
|
+
}
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1271
|
+
}
|
|
1272
|
+
},
|
|
1273
|
+
"responses": {
|
|
1274
|
+
"202": {
|
|
1275
|
+
"description": "Blueprint publish job started",
|
|
1276
|
+
"headers": {
|
|
1277
|
+
"Location": {
|
|
1278
|
+
"description": "URL to poll the job",
|
|
1279
|
+
"schema": {
|
|
1280
|
+
"type": "string"
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
},
|
|
1284
|
+
"content": {
|
|
1285
|
+
"application/json": {
|
|
1286
|
+
"schema": {
|
|
1287
|
+
"type": "object",
|
|
1288
|
+
"properties": {
|
|
1289
|
+
"job_id": {
|
|
1290
|
+
"$ref": "#/components/schemas/BlueprintJobID"
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
},
|
|
1190
1300
|
"/v2/blueprint-manifest/blueprints/{blueprint_id}:format-description": {
|
|
1191
1301
|
"post": {
|
|
1192
1302
|
"operationId": "formatBlueprintDescription",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/blueprint-manifest-client",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.6.0",
|
|
4
4
|
"description": "Client for epilot Terraform Blueprint Manifest API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -22,16 +22,16 @@
|
|
|
22
22
|
"terraform"
|
|
23
23
|
],
|
|
24
24
|
"scripts": {
|
|
25
|
-
"test": "
|
|
25
|
+
"test": "vitest",
|
|
26
26
|
"bundle-definition": "webpack",
|
|
27
27
|
"openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/blueprint-manifest.yaml",
|
|
28
28
|
"openapi:local": "node ../../scripts/update-openapi.js ../../../blueprint-manifest-api/lambda/TerraformHandlerFunction/openapi.yml",
|
|
29
|
-
"typegen": "openapi typegen src/openapi.json --client
|
|
29
|
+
"typegen": "openapi typegen src/openapi.json --client > src/openapi.d.ts",
|
|
30
30
|
"build": "tsc && npm run build:patch && npm run bundle-definition",
|
|
31
31
|
"build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",
|
|
32
32
|
"build:watch": "npm run build && tsc -w",
|
|
33
33
|
"prepublishOnly": "npm run typegen && npm run build",
|
|
34
|
-
"lint": "
|
|
34
|
+
"lint": "biome check src"
|
|
35
35
|
},
|
|
36
36
|
"files": [
|
|
37
37
|
"*.js",
|
|
@@ -59,13 +59,10 @@
|
|
|
59
59
|
"util": "^0.12.3"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@types/jest": "^26.0.20",
|
|
63
62
|
"axios": "^1.11.0",
|
|
64
63
|
"copy-webpack-plugin": "^7.0.0",
|
|
65
|
-
"jest": "^29.6.2",
|
|
66
64
|
"json-loader": "^0.5.7",
|
|
67
65
|
"openapicmd": "^2.7.0",
|
|
68
|
-
"ts-jest": "^29.4.1",
|
|
69
66
|
"ts-loader": "^8.0.14",
|
|
70
67
|
"ts-node": "^10.9.1",
|
|
71
68
|
"typescript": "^4.1.3",
|