@epilot/blueprint-manifest-client 3.0.0-beta.0 → 3.0.0-beta.1
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/definition.js +1 -1
- package/dist/openapi-runtime.json +24 -18
- package/dist/openapi.d.ts +110 -37
- package/dist/openapi.json +129 -61
- package/package.json +1 -1
package/dist/definition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={914:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=r(n(240));t.default=s.default},240: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/{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":{}}},"/v2/blueprint-manifest/blueprints/{blueprint_id}:export":{"post":{"operationId":"exportBlueprint","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/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/
|
|
1
|
+
(()=>{"use strict";var e={914:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=r(n(240));t.default=s.default},240: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/{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"}],"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/installations":{"post":{"operationId":"createInstallationJob","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v2/blueprint-manifest/installations/{job_id}":{"get":{"operationId":"getInstallationJob","parameters":[{"in":"path","required":true,"name":"job_id"}],"responses":{}}},"/v2/blueprint-manifest/installations/{job_id}:continue":{"post":{"operationId":"continueInstallationJob","parameters":[{"in":"path","required":true,"name":"job_id"}],"responses":{}}},"/v2/blueprint-manifest/installations/{job_id}:cancel":{"operationId":"cancelInstallationJob","parameters":[{"in":"path","required":true,"name":"job_id"}],"responses":{"200":{"description":"Installation job cancelled","content":{"application/json":{}}}}},"/v2/blueprint-manifest/installations/{job_id}/events":{"get":{"operationId":"getInstallationJobEvents","parameters":[{"in":"path","required":true,"name":"job_id"}],"responses":{}}}},"components":{"parameters":{"JobID":{"name":"job_id","in":"path","required":true}}}}')}},t={},n=function n(r){var s=t[r];if(void 0!==s)return s.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}(914),r=exports;for(var s in n)r[s]=n[s];n.__esModule&&Object.defineProperty(r,"__esModule",{value:!0})})();
|
|
@@ -174,6 +174,17 @@
|
|
|
174
174
|
}
|
|
175
175
|
},
|
|
176
176
|
"responses": {}
|
|
177
|
+
},
|
|
178
|
+
"delete": {
|
|
179
|
+
"operationId": "deleteBlueprint",
|
|
180
|
+
"parameters": [
|
|
181
|
+
{
|
|
182
|
+
"in": "path",
|
|
183
|
+
"required": true,
|
|
184
|
+
"name": "blueprint_id"
|
|
185
|
+
}
|
|
186
|
+
],
|
|
187
|
+
"responses": {}
|
|
177
188
|
}
|
|
178
189
|
},
|
|
179
190
|
"/v2/blueprint-manifest/blueprints/{blueprint_id}:export": {
|
|
@@ -211,6 +222,19 @@
|
|
|
211
222
|
"responses": {}
|
|
212
223
|
}
|
|
213
224
|
},
|
|
225
|
+
"/v2/blueprint-manifest/blueprints/{blueprint_id}/resources:syncDependencies": {
|
|
226
|
+
"post": {
|
|
227
|
+
"operationId": "syncDependencies",
|
|
228
|
+
"parameters": [
|
|
229
|
+
{
|
|
230
|
+
"in": "path",
|
|
231
|
+
"required": true,
|
|
232
|
+
"name": "blueprint_id"
|
|
233
|
+
}
|
|
234
|
+
],
|
|
235
|
+
"responses": {}
|
|
236
|
+
}
|
|
237
|
+
},
|
|
214
238
|
"/v2/blueprint-manifest/blueprints/{blueprint_id}/resources/bulk": {
|
|
215
239
|
"post": {
|
|
216
240
|
"operationId": "bulkAddBlueprintResources",
|
|
@@ -304,24 +328,6 @@
|
|
|
304
328
|
"responses": {}
|
|
305
329
|
}
|
|
306
330
|
},
|
|
307
|
-
"/v2/blueprint-manifest/blueprints/{blueprint_id}/resources/{resource_id}:syncDependencies": {
|
|
308
|
-
"post": {
|
|
309
|
-
"operationId": "syncDependencies",
|
|
310
|
-
"parameters": [
|
|
311
|
-
{
|
|
312
|
-
"in": "path",
|
|
313
|
-
"required": true,
|
|
314
|
-
"name": "blueprint_id"
|
|
315
|
-
},
|
|
316
|
-
{
|
|
317
|
-
"in": "path",
|
|
318
|
-
"required": true,
|
|
319
|
-
"name": "resource_id"
|
|
320
|
-
}
|
|
321
|
-
],
|
|
322
|
-
"responses": {}
|
|
323
|
-
}
|
|
324
|
-
},
|
|
325
331
|
"/v2/blueprint-manifest/installations": {
|
|
326
332
|
"post": {
|
|
327
333
|
"operationId": "createInstallationJob",
|
package/dist/openapi.d.ts
CHANGED
|
@@ -47,11 +47,15 @@ declare namespace Components {
|
|
|
47
47
|
postinstall?: string;
|
|
48
48
|
};
|
|
49
49
|
version?: string;
|
|
50
|
+
created_at?: string; // date-time
|
|
51
|
+
updated_at?: string; // date-time
|
|
52
|
+
created_by?: CallerIdentity;
|
|
53
|
+
updated_by?: CallerIdentity;
|
|
50
54
|
/**
|
|
51
55
|
* Whether the blueprint is verified by epilot
|
|
52
56
|
*/
|
|
53
57
|
is_verified?: boolean;
|
|
54
|
-
source_type
|
|
58
|
+
source_type: "app";
|
|
55
59
|
resources?: InstalledBlueprintResource[];
|
|
56
60
|
}
|
|
57
61
|
export type Blueprint = CustomBlueprint | FileBlueprint | MarketplaceBlueprint | DeployedBlueprint | AppBlueprint;
|
|
@@ -72,6 +76,10 @@ declare namespace Components {
|
|
|
72
76
|
name?: string;
|
|
73
77
|
type: /* Type of the resource */ ResourceNodeType;
|
|
74
78
|
address?: string;
|
|
79
|
+
/**
|
|
80
|
+
* When a resource is marked as root, we'll be able to keep track of it's dependencies
|
|
81
|
+
*/
|
|
82
|
+
is_root?: boolean;
|
|
75
83
|
/**
|
|
76
84
|
* on EditableBlueprintResources, this indicates if the resource is ready to be exported and on InstalledBlueprintResources, this indicates if the resource is ready to be used
|
|
77
85
|
*/
|
|
@@ -135,6 +143,10 @@ declare namespace Components {
|
|
|
135
143
|
postinstall?: string;
|
|
136
144
|
};
|
|
137
145
|
version?: string;
|
|
146
|
+
created_at?: string; // date-time
|
|
147
|
+
updated_at?: string; // date-time
|
|
148
|
+
created_by?: CallerIdentity;
|
|
149
|
+
updated_by?: CallerIdentity;
|
|
138
150
|
}
|
|
139
151
|
export interface CommonImportFields {
|
|
140
152
|
source_type?: ManifestSource;
|
|
@@ -327,7 +339,12 @@ declare namespace Components {
|
|
|
327
339
|
postinstall?: string;
|
|
328
340
|
};
|
|
329
341
|
version?: string;
|
|
342
|
+
created_at?: string; // date-time
|
|
343
|
+
updated_at?: string; // date-time
|
|
344
|
+
created_by?: CallerIdentity;
|
|
345
|
+
updated_by?: CallerIdentity;
|
|
330
346
|
resources?: EditableBlueprintResource[];
|
|
347
|
+
source_type: "custom";
|
|
331
348
|
}
|
|
332
349
|
export interface DeployedBlueprint {
|
|
333
350
|
id?: /**
|
|
@@ -355,7 +372,11 @@ declare namespace Components {
|
|
|
355
372
|
postinstall?: string;
|
|
356
373
|
};
|
|
357
374
|
version?: string;
|
|
358
|
-
|
|
375
|
+
created_at?: string; // date-time
|
|
376
|
+
updated_at?: string; // date-time
|
|
377
|
+
created_by?: CallerIdentity;
|
|
378
|
+
updated_by?: CallerIdentity;
|
|
379
|
+
source_type: "deploy";
|
|
359
380
|
resources?: InstalledBlueprintResource[];
|
|
360
381
|
}
|
|
361
382
|
export interface EditableBlueprintResource {
|
|
@@ -368,6 +389,10 @@ declare namespace Components {
|
|
|
368
389
|
name?: string;
|
|
369
390
|
type: /* Type of the resource */ ResourceNodeType;
|
|
370
391
|
address?: string;
|
|
392
|
+
/**
|
|
393
|
+
* When a resource is marked as root, we'll be able to keep track of it's dependencies
|
|
394
|
+
*/
|
|
395
|
+
is_root?: boolean;
|
|
371
396
|
/**
|
|
372
397
|
* on EditableBlueprintResources, this indicates if the resource is ready to be exported and on InstalledBlueprintResources, this indicates if the resource is ready to be used
|
|
373
398
|
*/
|
|
@@ -403,11 +428,15 @@ declare namespace Components {
|
|
|
403
428
|
postinstall?: string;
|
|
404
429
|
};
|
|
405
430
|
version?: string;
|
|
431
|
+
created_at?: string; // date-time
|
|
432
|
+
updated_at?: string; // date-time
|
|
433
|
+
created_by?: CallerIdentity;
|
|
434
|
+
updated_by?: CallerIdentity;
|
|
406
435
|
/**
|
|
407
436
|
* Whether the blueprint is verified by epilot
|
|
408
437
|
*/
|
|
409
438
|
is_verified?: boolean;
|
|
410
|
-
source_type
|
|
439
|
+
source_type: "file";
|
|
411
440
|
resources?: InstalledBlueprintResource[];
|
|
412
441
|
}
|
|
413
442
|
export interface FormattedError {
|
|
@@ -476,6 +505,10 @@ declare namespace Components {
|
|
|
476
505
|
name?: string;
|
|
477
506
|
type: /* Type of the resource */ ResourceNodeType;
|
|
478
507
|
address?: string;
|
|
508
|
+
/**
|
|
509
|
+
* When a resource is marked as root, we'll be able to keep track of it's dependencies
|
|
510
|
+
*/
|
|
511
|
+
is_root?: boolean;
|
|
479
512
|
/**
|
|
480
513
|
* on EditableBlueprintResources, this indicates if the resource is ready to be exported and on InstalledBlueprintResources, this indicates if the resource is ready to be used
|
|
481
514
|
*/
|
|
@@ -984,6 +1017,10 @@ declare namespace Components {
|
|
|
984
1017
|
postinstall?: string;
|
|
985
1018
|
};
|
|
986
1019
|
version?: string;
|
|
1020
|
+
created_at?: string; // date-time
|
|
1021
|
+
updated_at?: string; // date-time
|
|
1022
|
+
created_by?: CallerIdentity;
|
|
1023
|
+
updated_by?: CallerIdentity;
|
|
987
1024
|
/**
|
|
988
1025
|
* URL to the blueprint documentation
|
|
989
1026
|
*/
|
|
@@ -992,7 +1029,7 @@ declare namespace Components {
|
|
|
992
1029
|
* Whether the blueprint is verified by epilot
|
|
993
1030
|
*/
|
|
994
1031
|
is_verified?: boolean;
|
|
995
|
-
source_type
|
|
1032
|
+
source_type: "marketplace";
|
|
996
1033
|
resources?: InstalledBlueprintResource[];
|
|
997
1034
|
}
|
|
998
1035
|
export type PlanChanges = ("create" | "update" | "no-op" | "delete")[];
|
|
@@ -1302,9 +1339,9 @@ declare namespace Paths {
|
|
|
1302
1339
|
}
|
|
1303
1340
|
}
|
|
1304
1341
|
namespace CreateBlueprint {
|
|
1305
|
-
export type RequestBody = Components.Schemas.
|
|
1342
|
+
export type RequestBody = Components.Schemas.Blueprint;
|
|
1306
1343
|
namespace Responses {
|
|
1307
|
-
export type $200 = Components.Schemas.
|
|
1344
|
+
export type $200 = Components.Schemas.Blueprint;
|
|
1308
1345
|
}
|
|
1309
1346
|
}
|
|
1310
1347
|
namespace CreateExport {
|
|
@@ -1468,6 +1505,22 @@ declare namespace Paths {
|
|
|
1468
1505
|
}
|
|
1469
1506
|
}
|
|
1470
1507
|
}
|
|
1508
|
+
namespace DeleteBlueprint {
|
|
1509
|
+
namespace Parameters {
|
|
1510
|
+
export type BlueprintId = /**
|
|
1511
|
+
* ID of a blueprint
|
|
1512
|
+
* example:
|
|
1513
|
+
* c2d6cac8-bdd5-4ea2-8a6c-1cbdbe77b341
|
|
1514
|
+
*/
|
|
1515
|
+
Components.Schemas.BlueprintID;
|
|
1516
|
+
}
|
|
1517
|
+
export interface PathParameters {
|
|
1518
|
+
blueprint_id: Parameters.BlueprintId;
|
|
1519
|
+
}
|
|
1520
|
+
namespace Responses {
|
|
1521
|
+
export type $200 = Components.Schemas.Blueprint;
|
|
1522
|
+
}
|
|
1523
|
+
}
|
|
1471
1524
|
namespace DeleteBlueprintResource {
|
|
1472
1525
|
namespace Parameters {
|
|
1473
1526
|
export type BlueprintId = /**
|
|
@@ -1669,7 +1722,14 @@ declare namespace Paths {
|
|
|
1669
1722
|
}
|
|
1670
1723
|
namespace ListBlueprints {
|
|
1671
1724
|
namespace Responses {
|
|
1672
|
-
export
|
|
1725
|
+
export interface $200 {
|
|
1726
|
+
/**
|
|
1727
|
+
* example:
|
|
1728
|
+
* 1
|
|
1729
|
+
*/
|
|
1730
|
+
total?: number;
|
|
1731
|
+
results?: Components.Schemas.Blueprint[];
|
|
1732
|
+
}
|
|
1673
1733
|
}
|
|
1674
1734
|
}
|
|
1675
1735
|
namespace ListInstalledManifests {
|
|
@@ -1692,16 +1752,9 @@ declare namespace Paths {
|
|
|
1692
1752
|
* c2d6cac8-bdd5-4ea2-8a6c-1cbdbe77b341
|
|
1693
1753
|
*/
|
|
1694
1754
|
Components.Schemas.BlueprintID;
|
|
1695
|
-
export type ResourceId = /**
|
|
1696
|
-
* ID of a blueprint resource
|
|
1697
|
-
* example:
|
|
1698
|
-
* c2d6cac8-bdd5-4ea2-8a6c-1cbdbe77b341
|
|
1699
|
-
*/
|
|
1700
|
-
Components.Schemas.BlueprintResourceID;
|
|
1701
1755
|
}
|
|
1702
1756
|
export interface PathParameters {
|
|
1703
1757
|
blueprint_id: Parameters.BlueprintId;
|
|
1704
|
-
resource_id: Parameters.ResourceId;
|
|
1705
1758
|
}
|
|
1706
1759
|
namespace Responses {
|
|
1707
1760
|
export interface $200 {
|
|
@@ -1721,7 +1774,7 @@ declare namespace Paths {
|
|
|
1721
1774
|
export interface PathParameters {
|
|
1722
1775
|
blueprint_id: Parameters.BlueprintId;
|
|
1723
1776
|
}
|
|
1724
|
-
export type RequestBody = Components.Schemas.
|
|
1777
|
+
export type RequestBody = Components.Schemas.Blueprint;
|
|
1725
1778
|
namespace Responses {
|
|
1726
1779
|
export type $200 = Components.Schemas.Blueprint;
|
|
1727
1780
|
}
|
|
@@ -1949,6 +2002,16 @@ export interface OperationMethods {
|
|
|
1949
2002
|
data?: Paths.UpdateBlueprint.RequestBody,
|
|
1950
2003
|
config?: AxiosRequestConfig
|
|
1951
2004
|
): OperationResponse<Paths.UpdateBlueprint.Responses.$200>
|
|
2005
|
+
/**
|
|
2006
|
+
* deleteBlueprint - deleteBlueprint
|
|
2007
|
+
*
|
|
2008
|
+
* Delete a Blueprint
|
|
2009
|
+
*/
|
|
2010
|
+
'deleteBlueprint'(
|
|
2011
|
+
parameters?: Parameters<Paths.DeleteBlueprint.PathParameters> | null,
|
|
2012
|
+
data?: any,
|
|
2013
|
+
config?: AxiosRequestConfig
|
|
2014
|
+
): OperationResponse<Paths.DeleteBlueprint.Responses.$200>
|
|
1952
2015
|
/**
|
|
1953
2016
|
* exportBlueprint - exportBlueprint
|
|
1954
2017
|
*
|
|
@@ -1969,6 +2032,16 @@ export interface OperationMethods {
|
|
|
1969
2032
|
data?: Paths.AddBlueprintResource.RequestBody,
|
|
1970
2033
|
config?: AxiosRequestConfig
|
|
1971
2034
|
): OperationResponse<Paths.AddBlueprintResource.Responses.$200>
|
|
2035
|
+
/**
|
|
2036
|
+
* syncDependencies - syncDependencies
|
|
2037
|
+
*
|
|
2038
|
+
* Sync dependencies of all root resources in a Blueprint
|
|
2039
|
+
*/
|
|
2040
|
+
'syncDependencies'(
|
|
2041
|
+
parameters?: Parameters<Paths.SyncDependencies.PathParameters> | null,
|
|
2042
|
+
data?: any,
|
|
2043
|
+
config?: AxiosRequestConfig
|
|
2044
|
+
): OperationResponse<Paths.SyncDependencies.Responses.$200>
|
|
1972
2045
|
/**
|
|
1973
2046
|
* bulkUpdateBlueprintResources - bulkUpdateBlueprintResources
|
|
1974
2047
|
*
|
|
@@ -2019,16 +2092,6 @@ export interface OperationMethods {
|
|
|
2019
2092
|
data?: any,
|
|
2020
2093
|
config?: AxiosRequestConfig
|
|
2021
2094
|
): OperationResponse<Paths.DeleteBlueprintResource.Responses.$200>
|
|
2022
|
-
/**
|
|
2023
|
-
* syncDependencies - syncDependencies
|
|
2024
|
-
*
|
|
2025
|
-
* Sync dependencies of a resource in a Blueprint
|
|
2026
|
-
*/
|
|
2027
|
-
'syncDependencies'(
|
|
2028
|
-
parameters?: Parameters<Paths.SyncDependencies.PathParameters> | null,
|
|
2029
|
-
data?: any,
|
|
2030
|
-
config?: AxiosRequestConfig
|
|
2031
|
-
): OperationResponse<Paths.SyncDependencies.Responses.$200>
|
|
2032
2095
|
/**
|
|
2033
2096
|
* createInstallationJob - Create Installation Job
|
|
2034
2097
|
*
|
|
@@ -2243,6 +2306,16 @@ export interface PathsDictionary {
|
|
|
2243
2306
|
data?: Paths.UpdateBlueprint.RequestBody,
|
|
2244
2307
|
config?: AxiosRequestConfig
|
|
2245
2308
|
): OperationResponse<Paths.UpdateBlueprint.Responses.$200>
|
|
2309
|
+
/**
|
|
2310
|
+
* deleteBlueprint - deleteBlueprint
|
|
2311
|
+
*
|
|
2312
|
+
* Delete a Blueprint
|
|
2313
|
+
*/
|
|
2314
|
+
'delete'(
|
|
2315
|
+
parameters?: Parameters<Paths.DeleteBlueprint.PathParameters> | null,
|
|
2316
|
+
data?: any,
|
|
2317
|
+
config?: AxiosRequestConfig
|
|
2318
|
+
): OperationResponse<Paths.DeleteBlueprint.Responses.$200>
|
|
2246
2319
|
}
|
|
2247
2320
|
['/v2/blueprint-manifest/blueprints/{blueprint_id}:export']: {
|
|
2248
2321
|
/**
|
|
@@ -2268,6 +2341,18 @@ export interface PathsDictionary {
|
|
|
2268
2341
|
config?: AxiosRequestConfig
|
|
2269
2342
|
): OperationResponse<Paths.AddBlueprintResource.Responses.$200>
|
|
2270
2343
|
}
|
|
2344
|
+
['/v2/blueprint-manifest/blueprints/{blueprint_id}/resources:syncDependencies']: {
|
|
2345
|
+
/**
|
|
2346
|
+
* syncDependencies - syncDependencies
|
|
2347
|
+
*
|
|
2348
|
+
* Sync dependencies of all root resources in a Blueprint
|
|
2349
|
+
*/
|
|
2350
|
+
'post'(
|
|
2351
|
+
parameters?: Parameters<Paths.SyncDependencies.PathParameters> | null,
|
|
2352
|
+
data?: any,
|
|
2353
|
+
config?: AxiosRequestConfig
|
|
2354
|
+
): OperationResponse<Paths.SyncDependencies.Responses.$200>
|
|
2355
|
+
}
|
|
2271
2356
|
['/v2/blueprint-manifest/blueprints/{blueprint_id}/resources/bulk']: {
|
|
2272
2357
|
/**
|
|
2273
2358
|
* bulkAddBlueprintResources - bulkAddBlueprintResources
|
|
@@ -2322,18 +2407,6 @@ export interface PathsDictionary {
|
|
|
2322
2407
|
config?: AxiosRequestConfig
|
|
2323
2408
|
): OperationResponse<Paths.DeleteBlueprintResource.Responses.$200>
|
|
2324
2409
|
}
|
|
2325
|
-
['/v2/blueprint-manifest/blueprints/{blueprint_id}/resources/{resource_id}:syncDependencies']: {
|
|
2326
|
-
/**
|
|
2327
|
-
* syncDependencies - syncDependencies
|
|
2328
|
-
*
|
|
2329
|
-
* Sync dependencies of a resource in a Blueprint
|
|
2330
|
-
*/
|
|
2331
|
-
'post'(
|
|
2332
|
-
parameters?: Parameters<Paths.SyncDependencies.PathParameters> | null,
|
|
2333
|
-
data?: any,
|
|
2334
|
-
config?: AxiosRequestConfig
|
|
2335
|
-
): OperationResponse<Paths.SyncDependencies.Responses.$200>
|
|
2336
|
-
}
|
|
2337
2410
|
['/v2/blueprint-manifest/installations']: {
|
|
2338
2411
|
/**
|
|
2339
2412
|
* createInstallationJob - Create Installation Job
|
package/dist/openapi.json
CHANGED
|
@@ -702,9 +702,18 @@
|
|
|
702
702
|
"content": {
|
|
703
703
|
"application/json": {
|
|
704
704
|
"schema": {
|
|
705
|
-
"type": "
|
|
706
|
-
"
|
|
707
|
-
"
|
|
705
|
+
"type": "object",
|
|
706
|
+
"properties": {
|
|
707
|
+
"total": {
|
|
708
|
+
"type": "integer",
|
|
709
|
+
"example": 1
|
|
710
|
+
},
|
|
711
|
+
"results": {
|
|
712
|
+
"type": "array",
|
|
713
|
+
"items": {
|
|
714
|
+
"$ref": "#/components/schemas/Blueprint"
|
|
715
|
+
}
|
|
716
|
+
}
|
|
708
717
|
}
|
|
709
718
|
}
|
|
710
719
|
}
|
|
@@ -723,7 +732,7 @@
|
|
|
723
732
|
"content": {
|
|
724
733
|
"application/json": {
|
|
725
734
|
"schema": {
|
|
726
|
-
"$ref": "#/components/schemas/
|
|
735
|
+
"$ref": "#/components/schemas/Blueprint"
|
|
727
736
|
}
|
|
728
737
|
}
|
|
729
738
|
}
|
|
@@ -734,7 +743,7 @@
|
|
|
734
743
|
"content": {
|
|
735
744
|
"application/json": {
|
|
736
745
|
"schema": {
|
|
737
|
-
"$ref": "#/components/schemas/
|
|
746
|
+
"$ref": "#/components/schemas/Blueprint"
|
|
738
747
|
}
|
|
739
748
|
}
|
|
740
749
|
}
|
|
@@ -794,7 +803,7 @@
|
|
|
794
803
|
"content": {
|
|
795
804
|
"application/json": {
|
|
796
805
|
"schema": {
|
|
797
|
-
"$ref": "#/components/schemas/
|
|
806
|
+
"$ref": "#/components/schemas/Blueprint"
|
|
798
807
|
}
|
|
799
808
|
}
|
|
800
809
|
}
|
|
@@ -811,6 +820,36 @@
|
|
|
811
820
|
}
|
|
812
821
|
}
|
|
813
822
|
}
|
|
823
|
+
},
|
|
824
|
+
"delete": {
|
|
825
|
+
"operationId": "deleteBlueprint",
|
|
826
|
+
"summary": "deleteBlueprint",
|
|
827
|
+
"description": "Delete a Blueprint",
|
|
828
|
+
"tags": [
|
|
829
|
+
"Blueprints"
|
|
830
|
+
],
|
|
831
|
+
"parameters": [
|
|
832
|
+
{
|
|
833
|
+
"in": "path",
|
|
834
|
+
"required": true,
|
|
835
|
+
"name": "blueprint_id",
|
|
836
|
+
"schema": {
|
|
837
|
+
"$ref": "#/components/schemas/BlueprintID"
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
],
|
|
841
|
+
"responses": {
|
|
842
|
+
"200": {
|
|
843
|
+
"description": "Deleted Blueprint",
|
|
844
|
+
"content": {
|
|
845
|
+
"application/json": {
|
|
846
|
+
"schema": {
|
|
847
|
+
"$ref": "#/components/schemas/Blueprint"
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
}
|
|
814
853
|
}
|
|
815
854
|
},
|
|
816
855
|
"/v2/blueprint-manifest/blueprints/{blueprint_id}:export": {
|
|
@@ -922,6 +961,53 @@
|
|
|
922
961
|
}
|
|
923
962
|
}
|
|
924
963
|
},
|
|
964
|
+
"/v2/blueprint-manifest/blueprints/{blueprint_id}/resources:syncDependencies": {
|
|
965
|
+
"post": {
|
|
966
|
+
"operationId": "syncDependencies",
|
|
967
|
+
"summary": "syncDependencies",
|
|
968
|
+
"description": "Sync dependencies of all root resources in a Blueprint",
|
|
969
|
+
"tags": [
|
|
970
|
+
"Blueprints"
|
|
971
|
+
],
|
|
972
|
+
"parameters": [
|
|
973
|
+
{
|
|
974
|
+
"in": "path",
|
|
975
|
+
"required": true,
|
|
976
|
+
"name": "blueprint_id",
|
|
977
|
+
"schema": {
|
|
978
|
+
"$ref": "#/components/schemas/BlueprintID"
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
],
|
|
982
|
+
"responses": {
|
|
983
|
+
"200": {
|
|
984
|
+
"description": "Synced dependencies of all root resources in a Blueprint",
|
|
985
|
+
"content": {
|
|
986
|
+
"application/json": {
|
|
987
|
+
"schema": {
|
|
988
|
+
"type": "object",
|
|
989
|
+
"properties": {
|
|
990
|
+
"resources": {
|
|
991
|
+
"type": "array",
|
|
992
|
+
"items": {
|
|
993
|
+
"anyOf": [
|
|
994
|
+
{
|
|
995
|
+
"$ref": "#/components/schemas/EditableBlueprintResource"
|
|
996
|
+
},
|
|
997
|
+
{
|
|
998
|
+
"$ref": "#/components/schemas/InstalledBlueprintResource"
|
|
999
|
+
}
|
|
1000
|
+
]
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
1010
|
+
},
|
|
925
1011
|
"/v2/blueprint-manifest/blueprints/{blueprint_id}/resources/bulk": {
|
|
926
1012
|
"post": {
|
|
927
1013
|
"operationId": "bulkAddBlueprintResources",
|
|
@@ -1242,61 +1328,6 @@
|
|
|
1242
1328
|
}
|
|
1243
1329
|
}
|
|
1244
1330
|
},
|
|
1245
|
-
"/v2/blueprint-manifest/blueprints/{blueprint_id}/resources/{resource_id}:syncDependencies": {
|
|
1246
|
-
"post": {
|
|
1247
|
-
"operationId": "syncDependencies",
|
|
1248
|
-
"summary": "syncDependencies",
|
|
1249
|
-
"description": "Sync dependencies of a resource in a Blueprint",
|
|
1250
|
-
"tags": [
|
|
1251
|
-
"Blueprints"
|
|
1252
|
-
],
|
|
1253
|
-
"parameters": [
|
|
1254
|
-
{
|
|
1255
|
-
"in": "path",
|
|
1256
|
-
"required": true,
|
|
1257
|
-
"name": "blueprint_id",
|
|
1258
|
-
"schema": {
|
|
1259
|
-
"$ref": "#/components/schemas/BlueprintID"
|
|
1260
|
-
}
|
|
1261
|
-
},
|
|
1262
|
-
{
|
|
1263
|
-
"in": "path",
|
|
1264
|
-
"required": true,
|
|
1265
|
-
"name": "resource_id",
|
|
1266
|
-
"schema": {
|
|
1267
|
-
"$ref": "#/components/schemas/BlueprintResourceID"
|
|
1268
|
-
}
|
|
1269
|
-
}
|
|
1270
|
-
],
|
|
1271
|
-
"responses": {
|
|
1272
|
-
"200": {
|
|
1273
|
-
"description": "Synced dependencies of a resource in a Blueprint",
|
|
1274
|
-
"content": {
|
|
1275
|
-
"application/json": {
|
|
1276
|
-
"schema": {
|
|
1277
|
-
"type": "object",
|
|
1278
|
-
"properties": {
|
|
1279
|
-
"resources": {
|
|
1280
|
-
"type": "array",
|
|
1281
|
-
"items": {
|
|
1282
|
-
"anyOf": [
|
|
1283
|
-
{
|
|
1284
|
-
"$ref": "#/components/schemas/EditableBlueprintResource"
|
|
1285
|
-
},
|
|
1286
|
-
{
|
|
1287
|
-
"$ref": "#/components/schemas/InstalledBlueprintResource"
|
|
1288
|
-
}
|
|
1289
|
-
]
|
|
1290
|
-
}
|
|
1291
|
-
}
|
|
1292
|
-
}
|
|
1293
|
-
}
|
|
1294
|
-
}
|
|
1295
|
-
}
|
|
1296
|
-
}
|
|
1297
|
-
}
|
|
1298
|
-
}
|
|
1299
|
-
},
|
|
1300
1331
|
"/v2/blueprint-manifest/installations": {
|
|
1301
1332
|
"post": {
|
|
1302
1333
|
"operationId": "createInstallationJob",
|
|
@@ -1574,6 +1605,20 @@
|
|
|
1574
1605
|
},
|
|
1575
1606
|
"version": {
|
|
1576
1607
|
"type": "string"
|
|
1608
|
+
},
|
|
1609
|
+
"created_at": {
|
|
1610
|
+
"type": "string",
|
|
1611
|
+
"format": "date-time"
|
|
1612
|
+
},
|
|
1613
|
+
"updated_at": {
|
|
1614
|
+
"type": "string",
|
|
1615
|
+
"format": "date-time"
|
|
1616
|
+
},
|
|
1617
|
+
"created_by": {
|
|
1618
|
+
"$ref": "#/components/schemas/CallerIdentity"
|
|
1619
|
+
},
|
|
1620
|
+
"updated_by": {
|
|
1621
|
+
"$ref": "#/components/schemas/CallerIdentity"
|
|
1577
1622
|
}
|
|
1578
1623
|
},
|
|
1579
1624
|
"required": [
|
|
@@ -1595,6 +1640,10 @@
|
|
|
1595
1640
|
"address": {
|
|
1596
1641
|
"type": "string"
|
|
1597
1642
|
},
|
|
1643
|
+
"is_root": {
|
|
1644
|
+
"type": "boolean",
|
|
1645
|
+
"description": "When a resource is marked as root, we'll be able to keep track of it's dependencies"
|
|
1646
|
+
},
|
|
1598
1647
|
"is_ready": {
|
|
1599
1648
|
"type": "boolean",
|
|
1600
1649
|
"description": "on EditableBlueprintResources, this indicates if the resource is ready to be exported and on InstalledBlueprintResources, this indicates if the resource is ready to be used"
|
|
@@ -1655,9 +1704,16 @@
|
|
|
1655
1704
|
"items": {
|
|
1656
1705
|
"$ref": "#/components/schemas/EditableBlueprintResource"
|
|
1657
1706
|
}
|
|
1707
|
+
},
|
|
1708
|
+
"source_type": {
|
|
1709
|
+
"type": "string",
|
|
1710
|
+
"const": "custom"
|
|
1658
1711
|
}
|
|
1659
1712
|
}
|
|
1660
1713
|
}
|
|
1714
|
+
],
|
|
1715
|
+
"required": [
|
|
1716
|
+
"source_type"
|
|
1661
1717
|
]
|
|
1662
1718
|
},
|
|
1663
1719
|
"FileBlueprint": {
|
|
@@ -1684,6 +1740,9 @@
|
|
|
1684
1740
|
}
|
|
1685
1741
|
}
|
|
1686
1742
|
}
|
|
1743
|
+
],
|
|
1744
|
+
"required": [
|
|
1745
|
+
"source_type"
|
|
1687
1746
|
]
|
|
1688
1747
|
},
|
|
1689
1748
|
"MarketplaceBlueprint": {
|
|
@@ -1714,6 +1773,9 @@
|
|
|
1714
1773
|
}
|
|
1715
1774
|
}
|
|
1716
1775
|
}
|
|
1776
|
+
],
|
|
1777
|
+
"required": [
|
|
1778
|
+
"source_type"
|
|
1717
1779
|
]
|
|
1718
1780
|
},
|
|
1719
1781
|
"DeployedBlueprint": {
|
|
@@ -1736,6 +1798,9 @@
|
|
|
1736
1798
|
}
|
|
1737
1799
|
}
|
|
1738
1800
|
}
|
|
1801
|
+
],
|
|
1802
|
+
"required": [
|
|
1803
|
+
"source_type"
|
|
1739
1804
|
]
|
|
1740
1805
|
},
|
|
1741
1806
|
"AppBlueprint": {
|
|
@@ -1762,6 +1827,9 @@
|
|
|
1762
1827
|
}
|
|
1763
1828
|
}
|
|
1764
1829
|
}
|
|
1830
|
+
],
|
|
1831
|
+
"required": [
|
|
1832
|
+
"source_type"
|
|
1765
1833
|
]
|
|
1766
1834
|
},
|
|
1767
1835
|
"Blueprint": {
|