@epilot/blueprint-manifest-client 2.5.4 → 2.5.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/openapi.d.ts CHANGED
@@ -21,7 +21,34 @@ declare namespace Components {
21
21
  JobID?: Parameters.JobID;
22
22
  }
23
23
  namespace Schemas {
24
+ export interface CallerIdentity {
25
+ /**
26
+ * a human readable name of the caller (e.g. user name, token name or email address)
27
+ * example:
28
+ * manifest@epilot.cloud
29
+ */
30
+ name?: any;
31
+ /**
32
+ * epilot organization id
33
+ * example:
34
+ * 911690
35
+ */
36
+ org_id: string;
37
+ /**
38
+ * epilot user id, when called by a user
39
+ * example:
40
+ * 11001045
41
+ */
42
+ user_id?: string;
43
+ /**
44
+ * token id, when called by API token
45
+ * example:
46
+ * api_5ZugdRXasLfWBypHi93Fk
47
+ */
48
+ token_id?: string;
49
+ }
24
50
  export interface CommonImportFields {
51
+ source_type?: ManifestSource;
25
52
  /**
26
53
  * An array of tree-like JSON objects or a singular tree-like JSON object representing the resources to import
27
54
  */
@@ -57,10 +84,18 @@ declare namespace Components {
57
84
  * 1.0.0
58
85
  */
59
86
  source_blueprint_version?: string;
87
+ /**
88
+ * A URL to download the source blueprint file used to import the blueprint
89
+ * example:
90
+ * https://blueprint-manifest-prod.s3.eu-central-1.amazonaws.com/manifest.zip
91
+ */
92
+ source_blueprint_file?: string;
60
93
  /**
61
94
  * Whether the manifest comes from a trusted source and is signed by epilot
62
95
  */
63
96
  is_verified?: boolean;
97
+ created_by?: CallerIdentity;
98
+ updated_by?: CallerIdentity;
64
99
  }
65
100
  export interface CommonMarkdownFields {
66
101
  /**
@@ -162,6 +197,7 @@ declare namespace Components {
162
197
  */
163
198
  is_verified?: boolean;
164
199
  errors?: FormattedError[];
200
+ source_type?: ManifestSource;
165
201
  /**
166
202
  * An array of tree-like JSON objects or a singular tree-like JSON object representing the resources to import
167
203
  */
@@ -221,6 +257,14 @@ declare namespace Components {
221
257
  * 1.0.0
222
258
  */
223
259
  source_blueprint_version?: string;
260
+ /**
261
+ * A URL to download the source blueprint file used to import the blueprint
262
+ * example:
263
+ * https://blueprint-manifest-prod.s3.eu-central-1.amazonaws.com/manifest.zip
264
+ */
265
+ source_blueprint_file?: string;
266
+ created_by?: CallerIdentity;
267
+ updated_by?: CallerIdentity;
224
268
  }
225
269
  /**
226
270
  * ID of an import or export job (state machine)
@@ -259,10 +303,18 @@ declare namespace Components {
259
303
  * 1.0.0
260
304
  */
261
305
  source_blueprint_version?: string;
306
+ /**
307
+ * A URL to download the source blueprint file used to import the blueprint
308
+ * example:
309
+ * https://blueprint-manifest-prod.s3.eu-central-1.amazonaws.com/manifest.zip
310
+ */
311
+ source_blueprint_file?: string;
262
312
  /**
263
313
  * Whether the manifest comes from a trusted source and is signed by epilot
264
314
  */
265
315
  is_verified?: boolean;
316
+ created_by?: CallerIdentity;
317
+ updated_by?: CallerIdentity;
266
318
  /**
267
319
  * Markdown content part of a manifest file
268
320
  */
@@ -289,6 +341,7 @@ declare namespace Components {
289
341
  */
290
342
  postinstall?: string;
291
343
  };
344
+ source_type?: ManifestSource;
292
345
  /**
293
346
  * An array of tree-like JSON objects or a singular tree-like JSON object representing the resources to import
294
347
  */
@@ -338,10 +391,18 @@ declare namespace Components {
338
391
  * 1.0.0
339
392
  */
340
393
  source_blueprint_version?: string;
394
+ /**
395
+ * A URL to download the source blueprint file used to import the blueprint
396
+ * example:
397
+ * https://blueprint-manifest-prod.s3.eu-central-1.amazonaws.com/manifest.zip
398
+ */
399
+ source_blueprint_file?: string;
341
400
  /**
342
401
  * Whether the manifest comes from a trusted source and is signed by epilot
343
402
  */
344
403
  is_verified?: boolean;
404
+ created_by?: CallerIdentity;
405
+ updated_by?: CallerIdentity;
345
406
  /**
346
407
  * When the manifest was first installed (applied)
347
408
  */
@@ -351,6 +412,7 @@ declare namespace Components {
351
412
  */
352
413
  updated_at?: string; // date-time
353
414
  }
415
+ export type ManifestSource = "file" | "marketplace" | "sandbox";
354
416
  export interface ManifestTimestampFields {
355
417
  /**
356
418
  * When the manifest was first installed (applied)
@@ -479,10 +541,11 @@ declare namespace Paths {
479
541
  }
480
542
  export interface RequestBody {
481
543
  /**
544
+ * This is no longer used
482
545
  * example:
483
546
  * example.tf
484
547
  */
485
- manifestFilePath?: string;
548
+ manifestFilePath?: string | null;
486
549
  }
487
550
  namespace Responses {
488
551
  export interface $200 {
@@ -570,6 +633,10 @@ declare namespace Paths {
570
633
  * c2d6cac8-bdd5-4ea2-8a6c-1cbdbe77b341
571
634
  */
572
635
  manifest_id?: string;
636
+ /**
637
+ * Source of the manifest
638
+ */
639
+ source?: "file" | "marketplace" | "sandbox";
573
640
  } | {
574
641
  /**
575
642
  * Manifest s3 key uploaded via `uploadManifest`
@@ -581,6 +648,10 @@ declare namespace Paths {
581
648
  * c2d6cac8-bdd5-4ea2-8a6c-1cbdbe77b341
582
649
  */
583
650
  manifest_id?: string;
651
+ /**
652
+ * Source of the manifest
653
+ */
654
+ source?: "file" | "marketplace" | "sandbox";
584
655
  };
585
656
  namespace Responses {
586
657
  export interface $200 {
@@ -929,6 +1000,7 @@ export interface PathsDictionary {
929
1000
 
930
1001
  export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
931
1002
 
1003
+ export type CallerIdentity = Components.Schemas.CallerIdentity;
932
1004
  export type CommonImportFields = Components.Schemas.CommonImportFields;
933
1005
  export type CommonManifestFields = Components.Schemas.CommonManifestFields;
934
1006
  export type CommonMarkdownFields = Components.Schemas.CommonMarkdownFields;
@@ -942,6 +1014,7 @@ export type JobStatus = Components.Schemas.JobStatus;
942
1014
  export type Manifest = Components.Schemas.Manifest;
943
1015
  export type ManifestID = Components.Schemas.ManifestID;
944
1016
  export type ManifestItem = Components.Schemas.ManifestItem;
1017
+ export type ManifestSource = Components.Schemas.ManifestSource;
945
1018
  export type ManifestTimestampFields = Components.Schemas.ManifestTimestampFields;
946
1019
  export type PlanChanges = Components.Schemas.PlanChanges;
947
1020
  export type ResourceNode = Components.Schemas.ResourceNode;
package/dist/openapi.json CHANGED
@@ -262,6 +262,16 @@
262
262
  "$ref": "#/components/schemas/ManifestID"
263
263
  }
264
264
  ]
265
+ },
266
+ "source": {
267
+ "allOf": [
268
+ {
269
+ "description": "Source of the manifest"
270
+ },
271
+ {
272
+ "$ref": "#/components/schemas/ManifestSource"
273
+ }
274
+ ]
265
275
  }
266
276
  },
267
277
  "required": [
@@ -286,6 +296,16 @@
286
296
  "$ref": "#/components/schemas/ManifestID"
287
297
  }
288
298
  ]
299
+ },
300
+ "source": {
301
+ "allOf": [
302
+ {
303
+ "description": "Source of the manifest"
304
+ },
305
+ {
306
+ "$ref": "#/components/schemas/ManifestSource"
307
+ }
308
+ ]
289
309
  }
290
310
  },
291
311
  "required": [
@@ -337,8 +357,11 @@
337
357
  "type": "object",
338
358
  "properties": {
339
359
  "manifestFilePath": {
360
+ "description": "This is no longer used",
340
361
  "type": "string",
341
- "example": "example.tf"
362
+ "example": "example.tf",
363
+ "deprecated": true,
364
+ "nullable": true
342
365
  }
343
366
  }
344
367
  }
@@ -473,6 +496,14 @@
473
496
  "description": "ID of an import or export job (state machine)",
474
497
  "example": "4854bb2a-94f9-424d-a968-3fb17fb0bf89"
475
498
  },
499
+ "ManifestSource": {
500
+ "type": "string",
501
+ "enum": [
502
+ "file",
503
+ "marketplace",
504
+ "sandbox"
505
+ ]
506
+ },
476
507
  "Manifest": {
477
508
  "allOf": [
478
509
  {
@@ -810,9 +841,20 @@
810
841
  "description": "Version of the blueprint (semver)",
811
842
  "example": "1.0.0"
812
843
  },
844
+ "source_blueprint_file": {
845
+ "type": "string",
846
+ "description": "A URL to download the source blueprint file used to import the blueprint",
847
+ "example": "https://blueprint-manifest-prod.s3.eu-central-1.amazonaws.com/manifest.zip"
848
+ },
813
849
  "is_verified": {
814
850
  "type": "boolean",
815
851
  "description": "Whether the manifest comes from a trusted source and is signed by epilot"
852
+ },
853
+ "created_by": {
854
+ "$ref": "#/components/schemas/CallerIdentity"
855
+ },
856
+ "updated_by": {
857
+ "$ref": "#/components/schemas/CallerIdentity"
816
858
  }
817
859
  }
818
860
  },
@@ -834,6 +876,9 @@
834
876
  "CommonImportFields": {
835
877
  "type": "object",
836
878
  "properties": {
879
+ "source_type": {
880
+ "$ref": "#/components/schemas/ManifestSource"
881
+ },
837
882
  "imported_resources": {
838
883
  "description": "An array of tree-like JSON objects or a singular tree-like JSON object representing the resources to import",
839
884
  "oneOf": [
@@ -937,6 +982,33 @@
937
982
  "$ref": "#/components/schemas/FormattedErrorData"
938
983
  }
939
984
  }
985
+ },
986
+ "CallerIdentity": {
987
+ "type": "object",
988
+ "properties": {
989
+ "name": {
990
+ "description": "a human readable name of the caller (e.g. user name, token name or email address)",
991
+ "example": "manifest@epilot.cloud"
992
+ },
993
+ "org_id": {
994
+ "description": "epilot organization id",
995
+ "type": "string",
996
+ "example": "911690"
997
+ },
998
+ "user_id": {
999
+ "description": "epilot user id, when called by a user",
1000
+ "type": "string",
1001
+ "example": "11001045"
1002
+ },
1003
+ "token_id": {
1004
+ "description": "token id, when called by API token",
1005
+ "type": "string",
1006
+ "example": "api_5ZugdRXasLfWBypHi93Fk"
1007
+ }
1008
+ },
1009
+ "required": [
1010
+ "org_id"
1011
+ ]
940
1012
  }
941
1013
  },
942
1014
  "parameters": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/blueprint-manifest-client",
3
- "version": "2.5.4",
3
+ "version": "2.5.6",
4
4
  "description": "Client for epilot Terraform Blueprint Manifest API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -24,7 +24,7 @@
24
24
  "test": "jest",
25
25
  "bundle-definition": "webpack",
26
26
  "openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/blueprint-manifest.yaml",
27
- "openapi:local": "node ../../scripts/update-openapi.js ../../../blueprint-manifest-api/lambda/TerraformHandlerFunction/openapi.yml",
27
+ "openapi:local": "node ../../scripts/update-openapi.js ../../../blueprints-api/lambda/TerraformHandlerFunction/openapi.yml",
28
28
  "typegen": "openapi typegen src/openapi.json --client -b '/* eslint-disable */' > src/openapi.d.ts",
29
29
  "build": "tsc && npm run build:patch && npm run bundle-definition",
30
30
  "build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",