@epilot/blueprint-manifest-client 3.0.4 → 3.0.6
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 +6 -0
- package/dist/openapi.d.ts +50 -28
- package/dist/openapi.json +43 -28
- package/package.json +1 -1
package/dist/definition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={
|
|
1
|
+
(()=>{"use strict";var e={466:e=>{e.exports=JSON.parse('{"openapi":"3.1.0","info":{"title":"","version":""},"servers":[{"url":"https://blueprint-manifest.sls.epilot.io"}],"paths":{"/v1/blueprint-manifest/jobs/{job_id}":{"get":{"operationId":"getJob","parameters":[{"$ref":"#/components/parameters/JobID"}],"responses":{}}},"/v1/blueprint-manifest/jobs:createExport":{"post":{"operationId":"createExport","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/blueprint-manifest/jobs/{job_id}:exportManifest":{"post":{"operationId":"exportManifest","parameters":[{"$ref":"#/components/parameters/JobID"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/blueprint-manifest:uploadManifest":{"post":{"operationId":"uploadManifest","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/blueprint-manifest/jobs:createPlan":{"post":{"operationId":"createPlan","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/blueprint-manifest/jobs/{job_id}:applyPlan":{"post":{"operationId":"applyPlan","parameters":[{"$ref":"#/components/parameters/JobID"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/blueprint-manifest/manifests":{"get":{"operationId":"listInstalledManifests","responses":{}}},"/v1/blueprint-manifest/manifests/{manifest_id}":{"get":{"operationId":"getManifest","parameters":[{"in":"path","required":true,"name":"manifest_id"}],"responses":{}},"put":{"operationId":"updateManifest","parameters":[{"in":"path","required":true,"name":"manifest_id"}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteManifest","parameters":[{"in":"path","required":true,"name":"manifest_id"}],"responses":{}}},"/v2/blueprint-manifest/blueprints":{"get":{"operationId":"listBlueprints","responses":{}},"post":{"operationId":"createBlueprint","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/blueprint-manifest/blueprint:install":{"post":{"operationId":"installBlueprint","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v2/blueprint-manifest/blueprints/{blueprint_id}":{"get":{"operationId":"getBlueprint","parameters":[{"in":"path","required":true,"name":"blueprint_id"}],"responses":{}},"put":{"operationId":"updateBlueprint","parameters":[{"in":"path","required":true,"name":"blueprint_id"}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteBlueprint","parameters":[{"in":"path","required":true,"name":"blueprint_id"}],"responses":{}}},"/v2/blueprint-manifest/blueprints/{blueprint_id}:export":{"post":{"operationId":"exportBlueprint","parameters":[{"in":"path","required":true,"name":"blueprint_id"}],"requestBody":{"required":false,"content":{"application/json":{}}},"responses":{}}},"/v2/blueprint-manifest/blueprints/{blueprint_id}/resources":{"post":{"operationId":"addBlueprintResource","parameters":[{"in":"path","required":true,"name":"blueprint_id"},{"in":"query","name":"add_dependencies"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/blueprint-manifest/blueprints/{blueprint_id}/resources:syncDependencies":{"post":{"operationId":"syncDependencies","parameters":[{"in":"path","required":true,"name":"blueprint_id"}],"responses":{}}},"/v2/blueprint-manifest/blueprints/{blueprint_id}/resources/bulk":{"post":{"operationId":"bulkAddBlueprintResources","parameters":[{"in":"path","required":true,"name":"blueprint_id"},{"in":"query","name":"add_dependencies"}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"put":{"operationId":"bulkUpdateBlueprintResources","parameters":[{"in":"path","required":true,"name":"blueprint_id"}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"bulkDeleteBlueprintResources","parameters":[{"in":"path","required":true,"name":"blueprint_id"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/blueprint-manifest/blueprints/{blueprint_id}/resources/{resource_id}":{"put":{"operationId":"updateBlueprintResource","parameters":[{"in":"path","required":true,"name":"blueprint_id"},{"in":"path","required":true,"name":"resource_id"}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteBlueprintResource","parameters":[{"in":"path","required":true,"name":"blueprint_id"},{"in":"path","required":true,"name":"resource_id"}],"responses":{}}},"/v2/blueprint-manifest/jobs":{"get":{"operationId":"listBlueprintJobs","responses":{}}},"/v2/blueprint-manifest/jobs/{job_id}":{"get":{"operationId":"getBlueprintJob","parameters":[{"in":"path","required":true,"name":"job_id"}],"responses":{}}},"/v2/blueprint-manifest/jobs/{job_id}:continue":{"post":{"operationId":"continueInstallationJob","parameters":[{"in":"path","required":true,"name":"job_id"}],"requestBody":{"required":false,"content":{"application/json":{}}},"responses":{}}},"/v2/blueprint-manifest/jobs/{job_id}:cancel":{"post":{"operationId":"cancelBlueprintJob","parameters":[{"in":"path","required":true,"name":"job_id"}],"responses":{}}}},"components":{"parameters":{"JobID":{"name":"job_id","in":"path","required":true}}}}')},757: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}},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}(757),n=exports;for(var s in r)n[s]=r[s];r.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
|
package/dist/openapi.d.ts
CHANGED
|
@@ -48,6 +48,13 @@ declare namespace Components {
|
|
|
48
48
|
};
|
|
49
49
|
version?: string;
|
|
50
50
|
latest_download_file?: S3Reference;
|
|
51
|
+
deployments?: {
|
|
52
|
+
source_org_id?: string;
|
|
53
|
+
source_blueprint_id?: string;
|
|
54
|
+
destination_org_id?: string;
|
|
55
|
+
destination_blueprint_id?: string;
|
|
56
|
+
triggered_at?: string; // date-time
|
|
57
|
+
}[];
|
|
51
58
|
/**
|
|
52
59
|
* Whether the blueprint is verified by epilot
|
|
53
60
|
*/
|
|
@@ -245,6 +252,13 @@ declare namespace Components {
|
|
|
245
252
|
};
|
|
246
253
|
version?: string;
|
|
247
254
|
latest_download_file?: S3Reference;
|
|
255
|
+
deployments?: {
|
|
256
|
+
source_org_id?: string;
|
|
257
|
+
source_blueprint_id?: string;
|
|
258
|
+
destination_org_id?: string;
|
|
259
|
+
destination_blueprint_id?: string;
|
|
260
|
+
triggered_at?: string; // date-time
|
|
261
|
+
}[];
|
|
248
262
|
/**
|
|
249
263
|
* Whether the blueprint is verified by epilot
|
|
250
264
|
*/
|
|
@@ -303,7 +317,6 @@ declare namespace Components {
|
|
|
303
317
|
* 1.0.0
|
|
304
318
|
*/
|
|
305
319
|
source_blueprint_version?: string;
|
|
306
|
-
pre_install_requirements?: /* List of pre-installation requirements for the blueprint */ PreInstallRequirements;
|
|
307
320
|
/**
|
|
308
321
|
* A URL to download the source blueprint file used to import the blueprint
|
|
309
322
|
* example:
|
|
@@ -458,6 +471,13 @@ declare namespace Components {
|
|
|
458
471
|
};
|
|
459
472
|
version?: string;
|
|
460
473
|
latest_download_file?: S3Reference;
|
|
474
|
+
deployments?: {
|
|
475
|
+
source_org_id?: string;
|
|
476
|
+
source_blueprint_id?: string;
|
|
477
|
+
destination_org_id?: string;
|
|
478
|
+
destination_blueprint_id?: string;
|
|
479
|
+
triggered_at?: string; // date-time
|
|
480
|
+
}[];
|
|
461
481
|
/**
|
|
462
482
|
* Whether the blueprint is verified by epilot
|
|
463
483
|
*/
|
|
@@ -496,6 +516,13 @@ declare namespace Components {
|
|
|
496
516
|
};
|
|
497
517
|
version?: string;
|
|
498
518
|
latest_download_file?: S3Reference;
|
|
519
|
+
deployments?: {
|
|
520
|
+
source_org_id?: string;
|
|
521
|
+
source_blueprint_id?: string;
|
|
522
|
+
destination_org_id?: string;
|
|
523
|
+
destination_blueprint_id?: string;
|
|
524
|
+
triggered_at?: string; // date-time
|
|
525
|
+
}[];
|
|
499
526
|
/**
|
|
500
527
|
* Whether the blueprint is verified by epilot
|
|
501
528
|
*/
|
|
@@ -534,6 +561,13 @@ declare namespace Components {
|
|
|
534
561
|
};
|
|
535
562
|
version?: string;
|
|
536
563
|
latest_download_file?: S3Reference;
|
|
564
|
+
deployments?: {
|
|
565
|
+
source_org_id?: string;
|
|
566
|
+
source_blueprint_id?: string;
|
|
567
|
+
destination_org_id?: string;
|
|
568
|
+
destination_blueprint_id?: string;
|
|
569
|
+
triggered_at?: string; // date-time
|
|
570
|
+
}[];
|
|
537
571
|
/**
|
|
538
572
|
* Whether the blueprint is verified by epilot
|
|
539
573
|
*/
|
|
@@ -660,7 +694,6 @@ declare namespace Components {
|
|
|
660
694
|
* 1.0.0
|
|
661
695
|
*/
|
|
662
696
|
source_blueprint_version?: string;
|
|
663
|
-
pre_install_requirements?: /* List of pre-installation requirements for the blueprint */ PreInstallRequirements;
|
|
664
697
|
/**
|
|
665
698
|
* A URL to download the source blueprint file used to import the blueprint
|
|
666
699
|
* example:
|
|
@@ -783,7 +816,6 @@ declare namespace Components {
|
|
|
783
816
|
* 1.0.0
|
|
784
817
|
*/
|
|
785
818
|
source_blueprint_version?: string;
|
|
786
|
-
pre_install_requirements?: /* List of pre-installation requirements for the blueprint */ PreInstallRequirements;
|
|
787
819
|
/**
|
|
788
820
|
* A URL to download the source blueprint file used to import the blueprint
|
|
789
821
|
* example:
|
|
@@ -939,7 +971,6 @@ declare namespace Components {
|
|
|
939
971
|
* 1.0.0
|
|
940
972
|
*/
|
|
941
973
|
source_blueprint_version?: string;
|
|
942
|
-
pre_install_requirements?: /* List of pre-installation requirements for the blueprint */ PreInstallRequirements;
|
|
943
974
|
/**
|
|
944
975
|
* A URL to download the source blueprint file used to import the blueprint
|
|
945
976
|
* example:
|
|
@@ -1066,6 +1097,13 @@ declare namespace Components {
|
|
|
1066
1097
|
};
|
|
1067
1098
|
version?: string;
|
|
1068
1099
|
latest_download_file?: S3Reference;
|
|
1100
|
+
deployments?: {
|
|
1101
|
+
source_org_id?: string;
|
|
1102
|
+
source_blueprint_id?: string;
|
|
1103
|
+
destination_org_id?: string;
|
|
1104
|
+
destination_blueprint_id?: string;
|
|
1105
|
+
triggered_at?: string; // date-time
|
|
1106
|
+
}[];
|
|
1069
1107
|
/**
|
|
1070
1108
|
* Whether the blueprint is verified by epilot
|
|
1071
1109
|
*/
|
|
@@ -1082,27 +1120,6 @@ declare namespace Components {
|
|
|
1082
1120
|
resources?: BlueprintResource[];
|
|
1083
1121
|
}
|
|
1084
1122
|
export type PlanChanges = ("create" | "update" | "internal-update" | "no-op" | "delete")[];
|
|
1085
|
-
/**
|
|
1086
|
-
* List of pre-installation requirements for the blueprint
|
|
1087
|
-
*/
|
|
1088
|
-
export type PreInstallRequirements = {
|
|
1089
|
-
/**
|
|
1090
|
-
* Requirement Name
|
|
1091
|
-
* example:
|
|
1092
|
-
* billing_enabled
|
|
1093
|
-
*/
|
|
1094
|
-
name?: string;
|
|
1095
|
-
/**
|
|
1096
|
-
* Human-readable description of the requirement
|
|
1097
|
-
* example:
|
|
1098
|
-
* Billing must be enabled in your epilot organization
|
|
1099
|
-
*/
|
|
1100
|
-
description?: string;
|
|
1101
|
-
/**
|
|
1102
|
-
* Whether this requirement has been completed
|
|
1103
|
-
*/
|
|
1104
|
-
completed?: boolean;
|
|
1105
|
-
}[];
|
|
1106
1123
|
export interface PutManifestPayload {
|
|
1107
1124
|
/**
|
|
1108
1125
|
* Name of the source blueprint
|
|
@@ -1633,6 +1650,10 @@ declare namespace Paths {
|
|
|
1633
1650
|
export interface PathParameters {
|
|
1634
1651
|
blueprint_id: Parameters.BlueprintId;
|
|
1635
1652
|
}
|
|
1653
|
+
export interface RequestBody {
|
|
1654
|
+
destination_org_id?: string;
|
|
1655
|
+
destination_blueprint_id?: string;
|
|
1656
|
+
}
|
|
1636
1657
|
namespace Responses {
|
|
1637
1658
|
export interface $202 {
|
|
1638
1659
|
job_id?: /**
|
|
@@ -1931,6 +1952,7 @@ declare namespace Paths {
|
|
|
1931
1952
|
}
|
|
1932
1953
|
}
|
|
1933
1954
|
|
|
1955
|
+
|
|
1934
1956
|
export interface OperationMethods {
|
|
1935
1957
|
/**
|
|
1936
1958
|
* getJob - getJob
|
|
@@ -2112,7 +2134,7 @@ export interface OperationMethods {
|
|
|
2112
2134
|
*/
|
|
2113
2135
|
'exportBlueprint'(
|
|
2114
2136
|
parameters?: Parameters<Paths.ExportBlueprint.PathParameters> | null,
|
|
2115
|
-
data?:
|
|
2137
|
+
data?: Paths.ExportBlueprint.RequestBody,
|
|
2116
2138
|
config?: AxiosRequestConfig
|
|
2117
2139
|
): OperationResponse<Paths.ExportBlueprint.Responses.$202>
|
|
2118
2140
|
/**
|
|
@@ -2431,7 +2453,7 @@ export interface PathsDictionary {
|
|
|
2431
2453
|
*/
|
|
2432
2454
|
'post'(
|
|
2433
2455
|
parameters?: Parameters<Paths.ExportBlueprint.PathParameters> | null,
|
|
2434
|
-
data?:
|
|
2456
|
+
data?: Paths.ExportBlueprint.RequestBody,
|
|
2435
2457
|
config?: AxiosRequestConfig
|
|
2436
2458
|
): OperationResponse<Paths.ExportBlueprint.Responses.$202>
|
|
2437
2459
|
}
|
|
@@ -2565,6 +2587,7 @@ export interface PathsDictionary {
|
|
|
2565
2587
|
|
|
2566
2588
|
export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|
|
2567
2589
|
|
|
2590
|
+
|
|
2568
2591
|
export type AppBlueprint = Components.Schemas.AppBlueprint;
|
|
2569
2592
|
export type Blueprint = Components.Schemas.Blueprint;
|
|
2570
2593
|
export type BlueprintExportJob = Components.Schemas.BlueprintExportJob;
|
|
@@ -2600,7 +2623,6 @@ export type ManifestSource = Components.Schemas.ManifestSource;
|
|
|
2600
2623
|
export type ManifestTimestampFields = Components.Schemas.ManifestTimestampFields;
|
|
2601
2624
|
export type MarketplaceBlueprint = Components.Schemas.MarketplaceBlueprint;
|
|
2602
2625
|
export type PlanChanges = Components.Schemas.PlanChanges;
|
|
2603
|
-
export type PreInstallRequirements = Components.Schemas.PreInstallRequirements;
|
|
2604
2626
|
export type PutManifestPayload = Components.Schemas.PutManifestPayload;
|
|
2605
2627
|
export type ResourceNode = Components.Schemas.ResourceNode;
|
|
2606
2628
|
export type ResourceNodeType = Components.Schemas.ResourceNodeType;
|
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": "2.
|
|
5
|
+
"version": "2.1.1",
|
|
6
6
|
"description": "Service to create and install Blueprint Manifest files"
|
|
7
7
|
},
|
|
8
8
|
"tags": [
|
|
@@ -950,6 +950,24 @@
|
|
|
950
950
|
}
|
|
951
951
|
}
|
|
952
952
|
],
|
|
953
|
+
"requestBody": {
|
|
954
|
+
"required": false,
|
|
955
|
+
"content": {
|
|
956
|
+
"application/json": {
|
|
957
|
+
"schema": {
|
|
958
|
+
"type": "object",
|
|
959
|
+
"properties": {
|
|
960
|
+
"destination_org_id": {
|
|
961
|
+
"type": "string"
|
|
962
|
+
},
|
|
963
|
+
"destination_blueprint_id": {
|
|
964
|
+
"type": "string"
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
},
|
|
953
971
|
"responses": {
|
|
954
972
|
"202": {
|
|
955
973
|
"description": "Blueprint export job started",
|
|
@@ -1525,6 +1543,30 @@
|
|
|
1525
1543
|
"latest_download_file": {
|
|
1526
1544
|
"$ref": "#/components/schemas/S3Reference"
|
|
1527
1545
|
},
|
|
1546
|
+
"deployments": {
|
|
1547
|
+
"type": "array",
|
|
1548
|
+
"items": {
|
|
1549
|
+
"type": "object",
|
|
1550
|
+
"properties": {
|
|
1551
|
+
"source_org_id": {
|
|
1552
|
+
"type": "string"
|
|
1553
|
+
},
|
|
1554
|
+
"source_blueprint_id": {
|
|
1555
|
+
"type": "string"
|
|
1556
|
+
},
|
|
1557
|
+
"destination_org_id": {
|
|
1558
|
+
"type": "string"
|
|
1559
|
+
},
|
|
1560
|
+
"destination_blueprint_id": {
|
|
1561
|
+
"type": "string"
|
|
1562
|
+
},
|
|
1563
|
+
"triggered_at": {
|
|
1564
|
+
"type": "string",
|
|
1565
|
+
"format": "date-time"
|
|
1566
|
+
}
|
|
1567
|
+
}
|
|
1568
|
+
}
|
|
1569
|
+
},
|
|
1528
1570
|
"is_verified": {
|
|
1529
1571
|
"type": "boolean",
|
|
1530
1572
|
"description": "Whether the blueprint is verified by epilot"
|
|
@@ -2314,9 +2356,6 @@
|
|
|
2314
2356
|
"description": "Version of the blueprint (semver)",
|
|
2315
2357
|
"example": "1.0.0"
|
|
2316
2358
|
},
|
|
2317
|
-
"pre_install_requirements": {
|
|
2318
|
-
"$ref": "#/components/schemas/PreInstallRequirements"
|
|
2319
|
-
},
|
|
2320
2359
|
"source_blueprint_file": {
|
|
2321
2360
|
"type": "string",
|
|
2322
2361
|
"deprecated": true,
|
|
@@ -2490,30 +2529,6 @@
|
|
|
2490
2529
|
}
|
|
2491
2530
|
}
|
|
2492
2531
|
},
|
|
2493
|
-
"PreInstallRequirements": {
|
|
2494
|
-
"type": "array",
|
|
2495
|
-
"description": "List of pre-installation requirements for the blueprint",
|
|
2496
|
-
"items": {
|
|
2497
|
-
"type": "object",
|
|
2498
|
-
"properties": {
|
|
2499
|
-
"name": {
|
|
2500
|
-
"type": "string",
|
|
2501
|
-
"description": "Requirement Name",
|
|
2502
|
-
"example": "billing_enabled"
|
|
2503
|
-
},
|
|
2504
|
-
"description": {
|
|
2505
|
-
"type": "string",
|
|
2506
|
-
"description": "Human-readable description of the requirement",
|
|
2507
|
-
"example": "Billing must be enabled in your epilot organization"
|
|
2508
|
-
},
|
|
2509
|
-
"completed": {
|
|
2510
|
-
"type": "boolean",
|
|
2511
|
-
"description": "Whether this requirement has been completed",
|
|
2512
|
-
"default": false
|
|
2513
|
-
}
|
|
2514
|
-
}
|
|
2515
|
-
}
|
|
2516
|
-
},
|
|
2517
2532
|
"BlueprintInstallStatus": {
|
|
2518
2533
|
"type": "string",
|
|
2519
2534
|
"enum": [
|