@epilot/blueprint-manifest-client 2.5.3 → 2.5.5

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,6 +21,32 @@ 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 {
25
51
  /**
26
52
  * An array of tree-like JSON objects or a singular tree-like JSON object representing the resources to import
@@ -57,10 +83,18 @@ declare namespace Components {
57
83
  * 1.0.0
58
84
  */
59
85
  source_blueprint_version?: string;
86
+ /**
87
+ * A URL to download the source blueprint file used to import the blueprint
88
+ * example:
89
+ * https://blueprint-manifest-prod.s3.eu-central-1.amazonaws.com/manifest.zip
90
+ */
91
+ source_blueprint_file?: string;
60
92
  /**
61
93
  * Whether the manifest comes from a trusted source and is signed by epilot
62
94
  */
63
95
  is_verified?: boolean;
96
+ created_by?: CallerIdentity;
97
+ updated_by?: CallerIdentity;
64
98
  }
65
99
  export interface CommonMarkdownFields {
66
100
  /**
@@ -119,7 +153,7 @@ declare namespace Components {
119
153
  code?: FormattedErrorCodes;
120
154
  data?: FormattedErrorData;
121
155
  }
122
- export type FormattedErrorCodes = "dependency_extraction" | "resource_not_found" | "resource_fetch_api_error" | "resource_fetch_unknown_error" | "terraform_cli_process_error" | "terraform_import_block_process_error";
156
+ export type FormattedErrorCodes = "dependency_extraction" | "resource_not_found" | "resource_fetch_api_error" | "resource_fetch_unknown_error" | "terraform_cli_process_error" | "terraform_import_block_process_error" | "terraform_init_error" | "terraform_plan_error" | "terraform_apply_error" | "terraform_show_error";
123
157
  export interface FormattedErrorData {
124
158
  resource?: {
125
159
  id?: string;
@@ -221,6 +255,14 @@ declare namespace Components {
221
255
  * 1.0.0
222
256
  */
223
257
  source_blueprint_version?: string;
258
+ /**
259
+ * A URL to download the source blueprint file used to import the blueprint
260
+ * example:
261
+ * https://blueprint-manifest-prod.s3.eu-central-1.amazonaws.com/manifest.zip
262
+ */
263
+ source_blueprint_file?: string;
264
+ created_by?: CallerIdentity;
265
+ updated_by?: CallerIdentity;
224
266
  }
225
267
  /**
226
268
  * ID of an import or export job (state machine)
@@ -259,10 +301,18 @@ declare namespace Components {
259
301
  * 1.0.0
260
302
  */
261
303
  source_blueprint_version?: string;
304
+ /**
305
+ * A URL to download the source blueprint file used to import the blueprint
306
+ * example:
307
+ * https://blueprint-manifest-prod.s3.eu-central-1.amazonaws.com/manifest.zip
308
+ */
309
+ source_blueprint_file?: string;
262
310
  /**
263
311
  * Whether the manifest comes from a trusted source and is signed by epilot
264
312
  */
265
313
  is_verified?: boolean;
314
+ created_by?: CallerIdentity;
315
+ updated_by?: CallerIdentity;
266
316
  /**
267
317
  * Markdown content part of a manifest file
268
318
  */
@@ -338,10 +388,18 @@ declare namespace Components {
338
388
  * 1.0.0
339
389
  */
340
390
  source_blueprint_version?: string;
391
+ /**
392
+ * A URL to download the source blueprint file used to import the blueprint
393
+ * example:
394
+ * https://blueprint-manifest-prod.s3.eu-central-1.amazonaws.com/manifest.zip
395
+ */
396
+ source_blueprint_file?: string;
341
397
  /**
342
398
  * Whether the manifest comes from a trusted source and is signed by epilot
343
399
  */
344
400
  is_verified?: boolean;
401
+ created_by?: CallerIdentity;
402
+ updated_by?: CallerIdentity;
345
403
  /**
346
404
  * When the manifest was first installed (applied)
347
405
  */
@@ -479,10 +537,11 @@ declare namespace Paths {
479
537
  }
480
538
  export interface RequestBody {
481
539
  /**
540
+ * This is no longer used
482
541
  * example:
483
542
  * example.tf
484
543
  */
485
- manifestFilePath?: string;
544
+ manifestFilePath?: string | null;
486
545
  }
487
546
  namespace Responses {
488
547
  export interface $200 {
@@ -929,6 +988,7 @@ export interface PathsDictionary {
929
988
 
930
989
  export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
931
990
 
991
+ export type CallerIdentity = Components.Schemas.CallerIdentity;
932
992
  export type CommonImportFields = Components.Schemas.CommonImportFields;
933
993
  export type CommonManifestFields = Components.Schemas.CommonManifestFields;
934
994
  export type CommonMarkdownFields = Components.Schemas.CommonMarkdownFields;
package/dist/openapi.json CHANGED
@@ -337,8 +337,11 @@
337
337
  "type": "object",
338
338
  "properties": {
339
339
  "manifestFilePath": {
340
+ "description": "This is no longer used",
340
341
  "type": "string",
341
- "example": "example.tf"
342
+ "example": "example.tf",
343
+ "deprecated": true,
344
+ "nullable": true
342
345
  }
343
346
  }
344
347
  }
@@ -810,9 +813,20 @@
810
813
  "description": "Version of the blueprint (semver)",
811
814
  "example": "1.0.0"
812
815
  },
816
+ "source_blueprint_file": {
817
+ "type": "string",
818
+ "description": "A URL to download the source blueprint file used to import the blueprint",
819
+ "example": "https://blueprint-manifest-prod.s3.eu-central-1.amazonaws.com/manifest.zip"
820
+ },
813
821
  "is_verified": {
814
822
  "type": "boolean",
815
823
  "description": "Whether the manifest comes from a trusted source and is signed by epilot"
824
+ },
825
+ "created_by": {
826
+ "$ref": "#/components/schemas/CallerIdentity"
827
+ },
828
+ "updated_by": {
829
+ "$ref": "#/components/schemas/CallerIdentity"
816
830
  }
817
831
  }
818
832
  },
@@ -891,7 +905,11 @@
891
905
  "resource_fetch_api_error",
892
906
  "resource_fetch_unknown_error",
893
907
  "terraform_cli_process_error",
894
- "terraform_import_block_process_error"
908
+ "terraform_import_block_process_error",
909
+ "terraform_init_error",
910
+ "terraform_plan_error",
911
+ "terraform_apply_error",
912
+ "terraform_show_error"
895
913
  ]
896
914
  },
897
915
  "FormattedErrorData": {
@@ -933,6 +951,33 @@
933
951
  "$ref": "#/components/schemas/FormattedErrorData"
934
952
  }
935
953
  }
954
+ },
955
+ "CallerIdentity": {
956
+ "type": "object",
957
+ "properties": {
958
+ "name": {
959
+ "description": "a human readable name of the caller (e.g. user name, token name or email address)",
960
+ "example": "manifest@epilot.cloud"
961
+ },
962
+ "org_id": {
963
+ "description": "epilot organization id",
964
+ "type": "string",
965
+ "example": "911690"
966
+ },
967
+ "user_id": {
968
+ "description": "epilot user id, when called by a user",
969
+ "type": "string",
970
+ "example": "11001045"
971
+ },
972
+ "token_id": {
973
+ "description": "token id, when called by API token",
974
+ "type": "string",
975
+ "example": "api_5ZugdRXasLfWBypHi93Fk"
976
+ }
977
+ },
978
+ "required": [
979
+ "org_id"
980
+ ]
936
981
  }
937
982
  },
938
983
  "parameters": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/blueprint-manifest-client",
3
- "version": "2.5.3",
3
+ "version": "2.5.5",
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 ../../../blueprints-api/lambda/TerraformHandlerFunction/openapi.yml",
27
+ "openapi:local": "node ../../scripts/update-openapi.js ../../../blueprint-manifest-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",