@webiny/project-aws 6.4.12-beta.5 → 6.5.0-beta.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.
Files changed (33) hide show
  1. package/_templates/appTemplates/api/graphql/package.json +10 -0
  2. package/_templates/appTemplates/api/graphql/src/index.ts +20 -9
  3. package/_templates/extensions/OpenSearch/api/graphql/src/index.ts +23 -14
  4. package/_templates/extensions/OpenSearch/coreDdbToEsHandler/dynamoToElastic/src/index.ts +7 -6
  5. package/_templates/extensions/sqlite/api/graphql/src/index.ts +90 -0
  6. package/api.d.ts +4 -4
  7. package/apps/createAdminApp.d.ts +1 -1
  8. package/apps/createCoreApp.d.ts +13 -13
  9. package/extensions/ApiRoute.d.ts +4 -4
  10. package/extensions/ProjectAws/AutoInstall/AutoInstallAfterApiDeploy.d.ts +1 -1
  11. package/extensions/ProjectAws/AutoInstall/AutoInstallAfterApiDeploy.js +2 -1
  12. package/extensions/ProjectAws/AutoInstall/AutoInstallAfterApiDeploy.js.map +1 -1
  13. package/extensions/ProjectAws/EnsureAwsCredentialsBeforeDeploy.js +1 -1
  14. package/extensions/ProjectAws/EnsureAwsCredentialsBeforeDeploy.js.map +1 -1
  15. package/extensions/definitions.d.ts +1 -1
  16. package/extensions/definitions.js.map +1 -1
  17. package/infra.d.ts +2 -2
  18. package/package.json +18 -18
  19. package/project.d.ts +12 -0
  20. package/pulumi/apps/admin/createAdminPulumiApp.d.ts +1 -1
  21. package/pulumi/apps/api/ApiCloudfront.js +1 -2
  22. package/pulumi/apps/api/ApiCloudfront.js.map +1 -1
  23. package/pulumi/apps/awsUtils.d.ts +1 -1
  24. package/pulumi/apps/blueGreen/domains/resolveDomains.js +1 -1
  25. package/pulumi/apps/blueGreen/domains/resolveDomains.js.map +1 -1
  26. package/pulumi/apps/core/CoreOpenSearch.d.ts +1 -1
  27. package/pulumi/apps/core/createCorePulumiApp.d.ts +13 -13
  28. package/pulumi/apps/core/webinyWatchCommand/handler.d.ts +1 -1
  29. package/pulumi/apps/extensions/getVpcConfigFromExtension.d.ts +4 -4
  30. package/pulumi/apps/react/createReactPulumiApp.d.ts +1 -1
  31. package/pulumi/extensions/AdminCustomDomains.d.ts +1 -1
  32. package/pulumi/extensions/ApiCustomDomains.d.ts +1 -1
  33. package/pulumi/extensions/index.d.ts +3 -3
@@ -5,7 +5,11 @@
5
5
  "scripts": {},
6
6
  "dependencies": {
7
7
  "@webiny/api-aco": "latest",
8
+ "@webiny/api-aco-ddb": "latest",
9
+ "@webiny/api-aco-sql": "latest",
8
10
  "@webiny/api-audit-logs": "latest",
11
+ "@webiny/api-audit-logs-ddb": "latest",
12
+ "@webiny/api-audit-logs-sql": "latest",
9
13
  "@webiny/api-background-tasks-ddb": "latest",
10
14
  "@webiny/api-background-tasks-os": "latest",
11
15
  "@webiny/api-core": "latest",
@@ -26,10 +30,16 @@
26
30
  "@webiny/api-mailer": "latest",
27
31
  "@webiny/api-record-locking": "latest",
28
32
  "@webiny/api-scheduler": "latest",
33
+ "@webiny/api-scheduler-aws": "latest",
29
34
  "@webiny/api-website-builder": "latest",
30
35
  "@webiny/api-website-builder-scheduler": "latest",
31
36
  "@webiny/api-website-builder-workflows": "latest",
32
37
  "@webiny/api-websockets": "latest",
38
+ "@webiny/api-websockets-aws": "latest",
39
+ "@webiny/api-websockets-ddb": "latest",
40
+ "@webiny/api-websockets-server": "latest",
41
+ "@webiny/api-websockets-sql": "latest",
42
+
33
43
  "@webiny/api-workflows": "latest",
34
44
  "@webiny/aws-sdk": "latest",
35
45
  "@webiny/build-tools": "latest",
@@ -4,23 +4,28 @@ import graphqlPlugins from "@webiny/handler-graphql";
4
4
  import { createApiCore } from "@webiny/api-core";
5
5
  import { createApiCoreDdb } from "@webiny/api-core-ddb";
6
6
  import dbPlugins from "@webiny/handler-db";
7
- import { DynamoDbDriver } from "@webiny/db-dynamodb";
8
- import { createFileManagerContext, createFileManagerGraphQL } from "@webiny/api-file-manager";
7
+ import { DynamoDbDriver, registerDynamoDBCore } from "@webiny/db-dynamodb";
8
+ import { createFileManagerContext } from "@webiny/api-file-manager";
9
9
  import { createFileManagerAco } from "@webiny/api-file-manager-aco";
10
10
  import { createFileManagerS3, createAssetDelivery } from "@webiny/api-file-manager-s3";
11
- import { createHeadlessCmsContext, createHeadlessCmsGraphQL } from "@webiny/api-headless-cms";
11
+ import { createCmsExtension } from "@webiny/api-headless-cms";
12
12
  import { registerDynamoDbStorageOperations } from "@webiny/api-headless-cms-ddb";
13
13
  import { createHcmsTasks } from "@webiny/api-headless-cms-tasks";
14
14
  import { createAco } from "@webiny/api-aco";
15
+ import { registerAcoDdbStorageOperations } from "@webiny/api-aco-ddb";
15
16
  import { createAcoHcmsContext } from "@webiny/api-headless-cms-aco";
16
17
  import securityPlugins from "./security";
17
18
  import { createWebsiteBuilder } from "@webiny/api-website-builder";
18
19
  import { createAuditLogs } from "@webiny/api-audit-logs";
20
+ import { registerAuditLogsDdbStorageOperations } from "@webiny/api-audit-logs-ddb";
19
21
  import { createBackgroundTasks } from "@webiny/api-background-tasks-ddb";
20
22
  import { createWebsockets } from "@webiny/api-websockets";
23
+ import { createAwsWebsockets } from "@webiny/api-websockets-aws";
24
+ import { registerWebsocketsDdbStorageOperations } from "@webiny/api-websockets-ddb";
21
25
  import { createRecordLocking } from "@webiny/api-record-locking";
22
26
  import { createHeadlessCmsScheduler } from "@webiny/api-headless-cms-scheduler";
23
- import { createScheduler } from "@webiny/api-scheduler";
27
+ import { registerSchedulerExtension } from "@webiny/api-scheduler";
28
+ import { registerSchedulerAwsExtension } from "@webiny/api-scheduler-aws";
24
29
  import { createSchedulerClient } from "@webiny/aws-sdk/client-scheduler/index.js";
25
30
  import { createMailerContext, createMailerGraphQL } from "@webiny/api-mailer";
26
31
  import { createWorkflows } from "@webiny/api-workflows";
@@ -37,6 +42,7 @@ const documentClient = getDocumentClient();
37
42
 
38
43
  export const handler = createHandler({
39
44
  plugins: [
45
+ registerDynamoDBCore({ documentClient }),
40
46
  createApiCore({
41
47
  storageOperations: createApiCoreDdb({ documentClient })
42
48
  }),
@@ -47,27 +53,32 @@ export const handler = createHandler({
47
53
  }),
48
54
  securityPlugins(),
49
55
  createWebsockets(),
56
+ createAwsWebsockets(),
57
+ registerWebsocketsDdbStorageOperations({ documentClient }),
50
58
  registerDynamoDbStorageOperations(),
51
- createHeadlessCmsContext(),
52
- createHeadlessCmsGraphQL(),
59
+ createCmsExtension(),
53
60
  createMailerContext(),
54
61
  createMailerGraphQL(),
55
62
  createWebsiteBuilder(),
56
63
  createRecordLocking(),
57
64
  createBackgroundTasks(),
58
65
  createFileManagerContext(),
59
- createFileManagerGraphQL(),
60
66
  createFileManagerAco(),
61
67
  createAssetDelivery(),
62
68
  createFileManagerS3(),
63
- createAco({ documentClient }),
69
+ registerAcoDdbStorageOperations({ documentClient }),
70
+ createAco(),
64
71
  createWorkflows(),
65
72
  createHeadlessCmsWorkflows(),
66
73
  createWebsiteBuilderWorkflows(),
74
+ registerAuditLogsDdbStorageOperations({
75
+ documentClient,
76
+ }),
67
77
  createAuditLogs(),
68
78
  createAcoHcmsContext(),
69
79
  createHcmsTasks(),
70
- createScheduler({
80
+ registerSchedulerExtension(),
81
+ registerSchedulerAwsExtension({
71
82
  getClient: config => {
72
83
  return createSchedulerClient(config);
73
84
  }
@@ -4,24 +4,29 @@ import graphqlPlugins from "@webiny/handler-graphql";
4
4
  import { createApiCore } from "@webiny/api-core";
5
5
  import { createApiCoreDdb } from "@webiny/api-core-ddb";
6
6
  import dbPlugins from "@webiny/handler-db";
7
- import { DynamoDbDriver } from "@webiny/db-dynamodb";
8
- import { createOpenSearchContext, createOpenSearchClient } from "@webiny/api-opensearch";
9
- import { createFileManagerContext, createFileManagerGraphQL } from "@webiny/api-file-manager";
7
+ import { DynamoDbDriver, registerDynamoDBCore } from "@webiny/db-dynamodb";
8
+ import { OpenSearchClientOptions, registerOpenSearchCore } from "@webiny/api-opensearch";
9
+ import { createFileManagerContext } from "@webiny/api-file-manager";
10
10
  import { createFileManagerAco } from "@webiny/api-file-manager-aco";
11
11
  import { createAssetDelivery, createFileManagerS3 } from "@webiny/api-file-manager-s3";
12
- import { createHeadlessCmsContext, createHeadlessCmsGraphQL } from "@webiny/api-headless-cms";
12
+ import { createCmsExtension } from "@webiny/api-headless-cms";
13
13
  import { registerCmsOpenSearchStorageOperations } from "@webiny/api-headless-cms-ddb-es";
14
14
  import { createHcmsTasks } from "@webiny/api-headless-cms-tasks-ddb-es";
15
15
  import { createAco } from "@webiny/api-aco";
16
+ import { registerAcoDdbStorageOperations } from "@webiny/api-aco-ddb";
16
17
  import { createAcoHcmsContext } from "@webiny/api-headless-cms-aco";
17
18
  import securityPlugins from "./security.js";
18
19
  import { createWebsiteBuilder } from "@webiny/api-website-builder";
20
+ import { registerAuditLogsDdbStorageOperations } from "@webiny/api-audit-logs-ddb";
19
21
  import { createAuditLogs } from "@webiny/api-audit-logs";
20
22
  import { createBackgroundTasks } from "@webiny/api-background-tasks-os";
21
23
  import { createWebsockets } from "@webiny/api-websockets";
24
+ import { createAwsWebsockets } from "@webiny/api-websockets-aws";
25
+ import { registerWebsocketsDdbStorageOperations } from "@webiny/api-websockets-ddb";
22
26
  import { createRecordLocking } from "@webiny/api-record-locking";
23
27
  import { createSchedulerClient } from "@webiny/aws-sdk/client-scheduler/index.js";
24
- import { createScheduler } from "@webiny/api-scheduler";
28
+ import { registerSchedulerExtension } from "@webiny/api-scheduler";
29
+ import { registerSchedulerAwsExtension } from "@webiny/api-scheduler-aws";
25
30
  import { createHeadlessCmsScheduler } from "@webiny/api-headless-cms-scheduler";
26
31
  import { createMailerContext, createMailerGraphQL } from "@webiny/api-mailer";
27
32
  import { createWorkflows } from "@webiny/api-workflows";
@@ -39,49 +44,53 @@ const documentClient = getDocumentClient();
39
44
  const osUsername = process.env.OPENSEARCH_USERNAME;
40
45
  const osPassword = process.env.OPENSEARCH_PASSWORD;
41
46
 
42
- const openSearchClientOptions: Parameters<typeof createOpenSearchClient>[0] = {
47
+ const openSearchClientOptions: OpenSearchClientOptions = {
43
48
  endpoint: `https://${process.env.OPENSEARCH_ENDPOINT}`
44
49
  };
45
50
  if (osUsername && osPassword) {
46
51
  openSearchClientOptions.auth = { username: osUsername, password: osPassword };
47
52
  }
48
53
 
49
- const openSearchClient = createOpenSearchClient(openSearchClientOptions);
50
-
51
54
  export const handler = createHandler({
52
55
  plugins: [
56
+ registerDynamoDBCore({ documentClient }),
57
+ registerOpenSearchCore(openSearchClientOptions),
53
58
  createApiCore({
54
59
  storageOperations: createApiCoreDdb({ documentClient })
55
60
  }),
56
61
  graphqlPlugins({ debug }),
57
- createOpenSearchContext(openSearchClient),
58
62
  dbPlugins({
59
63
  table: process.env.DB_TABLE,
60
64
  driver: new DynamoDbDriver({ documentClient })
61
65
  }),
62
66
  securityPlugins(),
63
67
  createWebsockets(),
68
+ createAwsWebsockets(),
69
+ registerWebsocketsDdbStorageOperations({ documentClient }),
64
70
  registerCmsOpenSearchStorageOperations(),
65
- createHeadlessCmsContext(),
66
- createHeadlessCmsGraphQL(),
71
+ createCmsExtension(),
67
72
  createMailerContext(),
68
73
  createMailerGraphQL(),
69
74
  createWebsiteBuilder(),
70
75
  createRecordLocking(),
71
76
  createBackgroundTasks(),
72
77
  createFileManagerContext(),
73
- createFileManagerGraphQL(),
74
78
  createFileManagerAco(),
75
79
  createAssetDelivery(),
76
80
  createFileManagerS3(),
77
- createAco({ documentClient }),
81
+ registerAcoDdbStorageOperations({ documentClient }),
82
+ createAco(),
78
83
  createWorkflows(),
79
84
  createHeadlessCmsWorkflows(),
80
85
  createWebsiteBuilderWorkflows(),
86
+ registerAuditLogsDdbStorageOperations({
87
+ documentClient
88
+ }),
81
89
  createAuditLogs(),
82
90
  createAcoHcmsContext(),
83
91
  createHcmsTasks(),
84
- createScheduler({
92
+ registerSchedulerExtension(),
93
+ registerSchedulerAwsExtension({
85
94
  getClient: config => {
86
95
  return createSchedulerClient(config);
87
96
  }
@@ -1,21 +1,22 @@
1
1
  import { createHandler } from "@webiny/handler-aws";
2
- import { createOpenSearchClient, createOpenSearchContext } from "@webiny/api-opensearch";
2
+ import { type OpenSearchClientOptions, registerOpenSearchCore } from "@webiny/api-opensearch";
3
3
  import { createEventHandler } from "@webiny/api-dynamodb-to-elasticsearch";
4
4
 
5
5
  const osUsername = process.env.OPENSEARCH_USERNAME;
6
6
  const osPassword = process.env.OPENSEARCH_PASSWORD;
7
7
 
8
- const clientOptions: Parameters<typeof createOpenSearchClient>[0] = {
8
+ const clientOptions: OpenSearchClientOptions = {
9
9
  endpoint: `https://${process.env.OPENSEARCH_ENDPOINT}`
10
10
  };
11
11
  if (osUsername && osPassword) {
12
- clientOptions.auth = { username: osUsername, password: osPassword };
12
+ clientOptions.auth = {
13
+ username: osUsername,
14
+ password: osPassword
15
+ };
13
16
  }
14
17
 
15
- const client = createOpenSearchClient(clientOptions);
16
-
17
18
  export const handler = createHandler({
18
- plugins: [createOpenSearchContext(client), createEventHandler()],
19
+ plugins: [registerOpenSearchCore(clientOptions), createEventHandler()],
19
20
  options: {
20
21
  bodyLimit: 536870912 // 512MB
21
22
  }
@@ -0,0 +1,90 @@
1
+ import { resolve } from "path";
2
+ import knexLib from "knex";
3
+ import { createHandler } from "@webiny/handler-aws";
4
+ import graphqlPlugins from "@webiny/handler-graphql";
5
+ import { createApiCore } from "@webiny/api-core";
6
+ import { createApiCoreSql, registerSQLCore } from "@webiny/api-core-sql";
7
+ import { createFileManagerContext } from "@webiny/api-file-manager";
8
+ import { createFileManagerAco } from "@webiny/api-file-manager-aco";
9
+ import { createAssetDelivery, createFileManagerS3 } from "@webiny/api-file-manager-s3";
10
+ import { createCmsExtension } from "@webiny/api-headless-cms";
11
+ import { registerSqlStorageOperations } from "@webiny/api-headless-cms-sql";
12
+ import { createAco } from "@webiny/api-aco";
13
+ import { registerAcoSqlStorageOperations } from "@webiny/api-aco-sql";
14
+ import { createAcoHcmsContext } from "@webiny/api-headless-cms-aco";
15
+ import securityPlugins from "./security.js";
16
+ import { createWebsiteBuilder } from "@webiny/api-website-builder";
17
+ import { createAuditLogs } from "@webiny/api-audit-logs";
18
+ import { registerAuditLogsSqlStorageOperations } from "@webiny/api-audit-logs-sql";
19
+ import { createBackgroundTasks } from "@webiny/api-background-tasks-os";
20
+ import { createWebsockets } from "@webiny/api-websockets";
21
+ import { createAwsWebsockets } from "@webiny/api-websockets-aws";
22
+ import { registerWebsocketsSqlStorageOperations } from "@webiny/api-websockets-sql";
23
+ import { createRecordLocking } from "@webiny/api-record-locking";
24
+ import { registerSchedulerExtension } from "@webiny/api-scheduler";
25
+ import { registerSchedulerServerExtension } from "@webiny/api-scheduler-server";
26
+ import { createHeadlessCmsScheduler } from "@webiny/api-headless-cms-scheduler";
27
+ import { createMailerContext, createMailerGraphQL } from "@webiny/api-mailer";
28
+ import { createWorkflows } from "@webiny/api-workflows";
29
+ import { createHeadlessCmsWorkflows } from "@webiny/api-headless-cms-workflows";
30
+ import { createWebsiteBuilderWorkflows } from "@webiny/api-website-builder-workflows";
31
+ import { createWebsiteBuilderScheduler } from "@webiny/api-website-builder-scheduler";
32
+ import { createWebhooks } from "@webiny/webhooks/api";
33
+
34
+ import { extensions } from "./extensions";
35
+
36
+ const debug = process.env.DEBUG === "true";
37
+
38
+ const knex = knexLib({
39
+ client: "better-sqlite3",
40
+ connection: {
41
+ filename: resolve(process.cwd(), "db", "webiny.db")
42
+ },
43
+ useNullAsDefault: true
44
+ });
45
+
46
+ export const handler = createHandler({
47
+ plugins: [
48
+ registerSQLCore({
49
+ knex
50
+ }),
51
+ createApiCore({
52
+ storageOperations: createApiCoreSql({ knex })
53
+ }),
54
+ graphqlPlugins({ debug }),
55
+ securityPlugins(),
56
+ createWebsockets(),
57
+ createAwsWebsockets(),
58
+ registerWebsocketsSqlStorageOperations({ knex }),
59
+ registerSqlStorageOperations({
60
+ knex
61
+ }),
62
+ createCmsExtension(),
63
+ createMailerContext(),
64
+ createMailerGraphQL(),
65
+ createWebsiteBuilder(),
66
+ createRecordLocking(),
67
+ createBackgroundTasks(),
68
+ createFileManagerContext(),
69
+ createFileManagerAco(),
70
+ createAssetDelivery(),
71
+ createFileManagerS3(),
72
+ registerAcoSqlStorageOperations({ knex }),
73
+ createAco(),
74
+ createWorkflows(),
75
+ createHeadlessCmsWorkflows(),
76
+ createWebsiteBuilderWorkflows(),
77
+ registerAuditLogsSqlStorageOperations({
78
+ knex
79
+ }),
80
+ createAuditLogs(),
81
+ createAcoHcmsContext(),
82
+ registerSchedulerExtension(),
83
+ registerSchedulerServerExtension(),
84
+ createHeadlessCmsScheduler(),
85
+ createWebsiteBuilderScheduler(),
86
+ createWebhooks(),
87
+ extensions()
88
+ ],
89
+ debug
90
+ });
package/api.d.ts CHANGED
@@ -6,14 +6,14 @@ export declare const Api: {
6
6
  Route: import("@webiny/project/defineExtension/defineExtension.js").ExtensionComponent<import("zod").ZodObject<{
7
7
  path: import("zod").ZodString;
8
8
  method: import("zod").ZodEnum<{
9
- POST: "POST";
9
+ ANY: "ANY";
10
+ DELETE: "DELETE";
10
11
  GET: "GET";
11
- PUT: "PUT";
12
12
  HEAD: "HEAD";
13
13
  OPTIONS: "OPTIONS";
14
14
  PATCH: "PATCH";
15
- DELETE: "DELETE";
16
- ANY: "ANY";
15
+ POST: "POST";
16
+ PUT: "PUT";
17
17
  }>;
18
18
  src: import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<string, string>>;
19
19
  routeName: import("zod").ZodOptional<import("zod").ZodString>;
@@ -3,7 +3,6 @@ export declare function createAdminApp(): {
3
3
  name: string;
4
4
  description: string;
5
5
  getPulumi(): Promise<import("@webiny/pulumi/types").PulumiApp<{
6
- cloudfront: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/cloudfront/distribution").Distribution>;
7
6
  bucket: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/s3/bucket").Bucket>;
8
7
  bucketOwnershipControls: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/s3/bucketOwnershipControls").BucketOwnershipControls>;
9
8
  bucketAcl: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/s3/bucketAcl").BucketAcl>;
@@ -11,5 +10,6 @@ export declare function createAdminApp(): {
11
10
  origin: import("@pulumi/aws/types/input").cloudfront.DistributionOrigin;
12
11
  bucketPublicAccessBlock: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/s3/bucketPublicAccessBlock").BucketPublicAccessBlock>;
13
12
  bucketPolicy: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/s3/bucketPolicy").BucketPolicy>;
13
+ cloudfront: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/cloudfront/distribution").Distribution>;
14
14
  }> & import("../pulumi/utils/withServiceManifest").WithServiceManifest>;
15
15
  };
@@ -4,19 +4,6 @@ export declare function createCoreApp(): {
4
4
  name: string;
5
5
  description: string;
6
6
  getPulumi(): Promise<import("@webiny/pulumi/types").PulumiApp<{
7
- fileManagerBucket: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/s3/bucket").Bucket>;
8
- eventBus: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/cloudwatch/eventBus").EventBus>;
9
- opensearch: {
10
- domain: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<import("@webiny/pulumi/PulumiAppResource").PulumiAppResourceConstructor<import("@pulumi/aws/opensearch/domain").Domain, any>> | import("@webiny/pulumi/PulumiAppRemoteResource").PulumiAppRemoteResource<import("@pulumi/aws/opensearch").GetDomainResult>;
11
- domainPolicy: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/opensearch/domainPolicy").DomainPolicy> | undefined;
12
- table: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/dynamodb/table").Table>;
13
- dynamoToElastic: {
14
- role: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/iam/role").Role>;
15
- policy: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/iam/policy").Policy>;
16
- lambda: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/lambda/function").Function>;
17
- eventSourceMapping: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/lambda/eventSourceMapping").EventSourceMapping>;
18
- };
19
- } | undefined;
20
7
  userPool: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/cognito/userPool").UserPool>;
21
8
  userPoolClient: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/cognito/userPoolClient").UserPoolClient>;
22
9
  dynamoDbTable: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/dynamodb/table").Table>;
@@ -31,5 +18,18 @@ export declare function createCoreApp(): {
31
18
  publicSubnets: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/ec2/routeTable").RouteTable>;
32
19
  };
33
20
  } | null;
21
+ fileManagerBucket: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/s3/bucket").Bucket>;
22
+ eventBus: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/cloudwatch/eventBus").EventBus>;
23
+ opensearch: {
24
+ domain: import("@webiny/pulumi/PulumiAppRemoteResource").PulumiAppRemoteResource<import("@pulumi/aws/opensearch").GetDomainResult> | import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<import("@webiny/pulumi/PulumiAppResource").PulumiAppResourceConstructor<import("@pulumi/aws/opensearch/domain").Domain, any>>;
25
+ domainPolicy: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/opensearch/domainPolicy").DomainPolicy> | undefined;
26
+ table: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/dynamodb/table").Table>;
27
+ dynamoToElastic: {
28
+ role: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/iam/role").Role>;
29
+ policy: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/iam/policy").Policy>;
30
+ lambda: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/lambda/function").Function>;
31
+ eventSourceMapping: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/lambda/eventSourceMapping").EventSourceMapping>;
32
+ };
33
+ } | undefined;
34
34
  }> & import("../pulumi/utils/withServiceManifest").WithServiceManifest>;
35
35
  };
@@ -2,14 +2,14 @@ import { z } from "zod";
2
2
  export declare const ApiRoute: import("@webiny/project/extensions").ExtensionComponent<z.ZodObject<{
3
3
  path: z.ZodString;
4
4
  method: z.ZodEnum<{
5
- POST: "POST";
5
+ ANY: "ANY";
6
+ DELETE: "DELETE";
6
7
  GET: "GET";
7
- PUT: "PUT";
8
8
  HEAD: "HEAD";
9
9
  OPTIONS: "OPTIONS";
10
10
  PATCH: "PATCH";
11
- DELETE: "DELETE";
12
- ANY: "ANY";
11
+ POST: "POST";
12
+ PUT: "PUT";
13
13
  }>;
14
14
  src: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
15
15
  routeName: z.ZodOptional<z.ZodString>;
@@ -1,7 +1,7 @@
1
1
  import { ApiAfterDeploy } from "@webiny/project/abstractions/index.js";
2
2
  import { UiService } from "@webiny/project/abstractions/services/UiService.js";
3
3
  import { LoggerService } from "@webiny/project/abstractions/services/LoggerService.js";
4
- import { GetProjectConfigService } from "@webiny/project/abstractions/index.js";
4
+ import { GetProjectConfigService } from "@webiny/project/abstractions";
5
5
  import { ApiGqlClient } from "../../../abstractions/ApiGqlClient.js";
6
6
  declare class AutoInstallAfterApiDeployImpl implements ApiAfterDeploy.Interface {
7
7
  private apiGqlClient;
@@ -1,6 +1,7 @@
1
- import { ApiAfterDeploy, GetProjectConfigService } from "@webiny/project/abstractions/index.js";
1
+ import { ApiAfterDeploy } from "@webiny/project/abstractions/index.js";
2
2
  import { UiService } from "@webiny/project/abstractions/services/UiService.js";
3
3
  import { LoggerService } from "@webiny/project/abstractions/services/LoggerService.js";
4
+ import { GetProjectConfigService } from "@webiny/project/abstractions";
4
5
  import { ApiGqlClient } from "../../../abstractions/ApiGqlClient.js";
5
6
  const IS_INSTALLED_QUERY = `
6
7
  query IsSystemInstalled {
@@ -1 +1 @@
1
- {"version":3,"file":"extensions/ProjectAws/AutoInstall/AutoInstallAfterApiDeploy.js","sources":["../../../../src/extensions/ProjectAws/AutoInstall/AutoInstallAfterApiDeploy.ts"],"sourcesContent":["import { ApiAfterDeploy } from \"@webiny/project/abstractions/index.js\";\nimport { UiService } from \"@webiny/project/abstractions/services/UiService.js\";\nimport { LoggerService } from \"@webiny/project/abstractions/services/LoggerService.js\";\nimport { GetProjectConfigService } from \"@webiny/project/abstractions/index.js\";\nimport { ApiGqlClient } from \"~/abstractions/ApiGqlClient.js\";\n\nconst IS_INSTALLED_QUERY = `\n query IsSystemInstalled {\n system {\n isSystemInstalled {\n data\n error {\n message\n code\n }\n }\n }\n }\n`;\n\nconst INSTALL_MUTATION = `\n mutation InstallSystem($installationInput: JSON!) {\n system {\n installSystem(installationInput: $installationInput) {\n data\n error {\n message\n code\n }\n }\n }\n }\n`;\n\ninterface IsInstalledResponse {\n system: {\n isSystemInstalled: {\n data: boolean;\n error?: {\n message: string;\n code: string;\n };\n };\n };\n}\n\ninterface InstallResponse {\n system: {\n installSystem: {\n data: boolean;\n error?: {\n message: string;\n code: string;\n };\n };\n };\n}\n\nclass AutoInstallAfterApiDeployImpl implements ApiAfterDeploy.Interface {\n constructor(\n private apiGqlClient: ApiGqlClient.Interface,\n private ui: UiService.Interface,\n private getProjectConfig: GetProjectConfigService.Interface,\n private logger: LoggerService.Interface\n ) {}\n\n async execute(params: ApiAfterDeploy.Params): Promise<void> {\n if (params.preview) {\n // Skip auto-install on preview deployments\n return;\n }\n\n const projectConfig = await this.getProjectConfig.execute();\n const adminAutoInstallExtensions = projectConfig.extensionsByType(\"Project/AutoInstall\");\n\n if (adminAutoInstallExtensions.length === 0) {\n return;\n }\n\n const config = adminAutoInstallExtensions[0].params;\n\n // Check if system is already installed\n this.ui.info(\"Checking if system is already installed...\");\n\n try {\n const isInstalledResponse = await this.apiGqlClient.query<IsInstalledResponse>({\n query: IS_INSTALLED_QUERY\n });\n\n if (isInstalledResponse.data?.system.isSystemInstalled.data === true) {\n this.ui.info(\"System is already installed, skipping auto-install.\");\n return;\n }\n } catch (error: any) {\n this.logger.error(\"Failed to check installation status\", { error });\n this.ui.warning(`Could not check installation status: ${error.message}`);\n return;\n }\n\n this.ui.info(\"Auto-installing...\");\n /**\n * Type Error introduced with Zod v4. V3 had any type.\n */\n // @ts-expect-error\n const adminUser = config.adminUser || {\n firstName: \"John\",\n lastName: \"Smith\",\n email: \"admin@webiny.com\",\n password: \"12345678\"\n };\n\n const variables = {\n installationInput: [\n {\n app: \"Cognito\",\n data: adminUser\n }\n ]\n };\n\n const installResponse = await this.apiGqlClient.mutation<InstallResponse>({\n mutation: INSTALL_MUTATION,\n variables\n });\n\n if (installResponse.data?.system.installSystem.error) {\n const { message, code } = installResponse.data.system.installSystem.error;\n this.logger.error(\"Installation failed\", { message, code });\n this.ui.error(`Installation failed: ${message} (${code})`);\n throw new Error(message);\n }\n\n this.ui.success(\"System installed successfully!\");\n this.ui.info(\"Admin credentials:\");\n this.ui.info(` Email: ${adminUser.email}`);\n this.ui.info(` Password: ${adminUser.password}`);\n }\n}\n\nexport const AutoInstallAfterApiDeploy = ApiAfterDeploy.createImplementation({\n implementation: AutoInstallAfterApiDeployImpl,\n dependencies: [ApiGqlClient, UiService, GetProjectConfigService, LoggerService]\n});\n"],"names":["IS_INSTALLED_QUERY","INSTALL_MUTATION","AutoInstallAfterApiDeployImpl","apiGqlClient","ui","getProjectConfig","logger","params","projectConfig","adminAutoInstallExtensions","config","isInstalledResponse","error","adminUser","variables","installResponse","message","code","Error","AutoInstallAfterApiDeploy","ApiAfterDeploy","ApiGqlClient","UiService","GetProjectConfigService","LoggerService"],"mappings":";;;;AAMA,MAAMA,qBAAqB,CAAC;;;;;;;;;;;;AAY5B,CAAC;AAED,MAAMC,mBAAmB,CAAC;;;;;;;;;;;;AAY1B,CAAC;AA0BD,MAAMC;IACF,YACYC,YAAoC,EACpCC,EAAuB,EACvBC,gBAAmD,EACnDC,MAA+B,CACzC;aAJUH,YAAY,GAAZA;aACAC,EAAE,GAAFA;aACAC,gBAAgB,GAAhBA;aACAC,MAAM,GAANA;IACT;IAEH,MAAM,QAAQC,MAA6B,EAAiB;QACxD,IAAIA,OAAO,OAAO,EAEd;QAGJ,MAAMC,gBAAgB,MAAM,IAAI,CAAC,gBAAgB,CAAC,OAAO;QACzD,MAAMC,6BAA6BD,cAAc,gBAAgB,CAAC;QAElE,IAAIC,AAAsC,MAAtCA,2BAA2B,MAAM,EACjC;QAGJ,MAAMC,SAASD,0BAA0B,CAAC,EAAE,CAAC,MAAM;QAGnD,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC;QAEb,IAAI;YACA,MAAME,sBAAsB,MAAM,IAAI,CAAC,YAAY,CAAC,KAAK,CAAsB;gBAC3E,OAAOX;YACX;YAEA,IAAIW,oBAAoB,IAAI,EAAE,OAAO,kBAAkB,SAAS,MAAM,YAClE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC;QAGrB,EAAE,OAAOC,OAAY;YACjB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,uCAAuC;gBAAEA;YAAM;YACjE,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,qCAAqC,EAAEA,MAAM,OAAO,EAAE;YACvE;QACJ;QAEA,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC;QAKb,MAAMC,YAAYH,OAAO,SAAS,IAAI;YAClC,WAAW;YACX,UAAU;YACV,OAAO;YACP,UAAU;QACd;QAEA,MAAMI,YAAY;YACd,mBAAmB;gBACf;oBACI,KAAK;oBACL,MAAMD;gBACV;aACH;QACL;QAEA,MAAME,kBAAkB,MAAM,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAkB;YACtE,UAAUd;YACVa;QACJ;QAEA,IAAIC,gBAAgB,IAAI,EAAE,OAAO,cAAc,OAAO;YAClD,MAAM,EAAEC,OAAO,EAAEC,IAAI,EAAE,GAAGF,gBAAgB,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK;YACzE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,uBAAuB;gBAAEC;gBAASC;YAAK;YACzD,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,qBAAqB,EAAED,QAAQ,EAAE,EAAEC,KAAK,CAAC,CAAC;YACzD,MAAM,IAAIC,MAAMF;QACpB;QAEA,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC;QAChB,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC;QACb,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAEH,UAAU,KAAK,EAAE;QACzC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,WAAW,EAAEA,UAAU,QAAQ,EAAE;IACnD;AACJ;AAEO,MAAMM,4BAA4BC,eAAe,oBAAoB,CAAC;IACzE,gBAAgBlB;IAChB,cAAc;QAACmB;QAAcC;QAAWC;QAAyBC;KAAc;AACnF"}
1
+ {"version":3,"file":"extensions/ProjectAws/AutoInstall/AutoInstallAfterApiDeploy.js","sources":["../../../../src/extensions/ProjectAws/AutoInstall/AutoInstallAfterApiDeploy.ts"],"sourcesContent":["import { ApiAfterDeploy } from \"@webiny/project/abstractions/index.js\";\nimport { UiService } from \"@webiny/project/abstractions/services/UiService.js\";\nimport { LoggerService } from \"@webiny/project/abstractions/services/LoggerService.js\";\nimport { GetProjectConfigService } from \"@webiny/project/abstractions\";\nimport { ApiGqlClient } from \"~/abstractions/ApiGqlClient.js\";\n\nconst IS_INSTALLED_QUERY = `\n query IsSystemInstalled {\n system {\n isSystemInstalled {\n data\n error {\n message\n code\n }\n }\n }\n }\n`;\n\nconst INSTALL_MUTATION = `\n mutation InstallSystem($installationInput: JSON!) {\n system {\n installSystem(installationInput: $installationInput) {\n data\n error {\n message\n code\n }\n }\n }\n }\n`;\n\ninterface IsInstalledResponse {\n system: {\n isSystemInstalled: {\n data: boolean;\n error?: {\n message: string;\n code: string;\n };\n };\n };\n}\n\ninterface InstallResponse {\n system: {\n installSystem: {\n data: boolean;\n error?: {\n message: string;\n code: string;\n };\n };\n };\n}\n\nclass AutoInstallAfterApiDeployImpl implements ApiAfterDeploy.Interface {\n constructor(\n private apiGqlClient: ApiGqlClient.Interface,\n private ui: UiService.Interface,\n private getProjectConfig: GetProjectConfigService.Interface,\n private logger: LoggerService.Interface\n ) {}\n\n async execute(params: ApiAfterDeploy.Params): Promise<void> {\n if (params.preview) {\n // Skip auto-install on preview deployments\n return;\n }\n\n const projectConfig = await this.getProjectConfig.execute();\n const adminAutoInstallExtensions = projectConfig.extensionsByType(\"Project/AutoInstall\");\n\n if (adminAutoInstallExtensions.length === 0) {\n return;\n }\n\n const config = adminAutoInstallExtensions[0].params;\n\n // Check if system is already installed\n this.ui.info(\"Checking if system is already installed...\");\n\n try {\n const isInstalledResponse = await this.apiGqlClient.query<IsInstalledResponse>({\n query: IS_INSTALLED_QUERY\n });\n\n if (isInstalledResponse.data?.system.isSystemInstalled.data === true) {\n this.ui.info(\"System is already installed, skipping auto-install.\");\n return;\n }\n } catch (error: any) {\n this.logger.error(\"Failed to check installation status\", { error });\n this.ui.warning(`Could not check installation status: ${error.message}`);\n return;\n }\n\n this.ui.info(\"Auto-installing...\");\n /**\n * Type Error introduced with Zod v4. V3 had any type.\n */\n // @ts-expect-error\n const adminUser = config.adminUser || {\n firstName: \"John\",\n lastName: \"Smith\",\n email: \"admin@webiny.com\",\n password: \"12345678\"\n };\n\n const variables = {\n installationInput: [\n {\n app: \"Cognito\",\n data: adminUser\n }\n ]\n };\n\n const installResponse = await this.apiGqlClient.mutation<InstallResponse>({\n mutation: INSTALL_MUTATION,\n variables\n });\n\n if (installResponse.data?.system.installSystem.error) {\n const { message, code } = installResponse.data.system.installSystem.error;\n this.logger.error(\"Installation failed\", { message, code });\n this.ui.error(`Installation failed: ${message} (${code})`);\n throw new Error(message);\n }\n\n this.ui.success(\"System installed successfully!\");\n this.ui.info(\"Admin credentials:\");\n this.ui.info(` Email: ${adminUser.email}`);\n this.ui.info(` Password: ${adminUser.password}`);\n }\n}\n\nexport const AutoInstallAfterApiDeploy = ApiAfterDeploy.createImplementation({\n implementation: AutoInstallAfterApiDeployImpl,\n dependencies: [ApiGqlClient, UiService, GetProjectConfigService, LoggerService]\n});\n"],"names":["IS_INSTALLED_QUERY","INSTALL_MUTATION","AutoInstallAfterApiDeployImpl","apiGqlClient","ui","getProjectConfig","logger","params","projectConfig","adminAutoInstallExtensions","config","isInstalledResponse","error","adminUser","variables","installResponse","message","code","Error","AutoInstallAfterApiDeploy","ApiAfterDeploy","ApiGqlClient","UiService","GetProjectConfigService","LoggerService"],"mappings":";;;;;AAMA,MAAMA,qBAAqB,CAAC;;;;;;;;;;;;AAY5B,CAAC;AAED,MAAMC,mBAAmB,CAAC;;;;;;;;;;;;AAY1B,CAAC;AA0BD,MAAMC;IACF,YACYC,YAAoC,EACpCC,EAAuB,EACvBC,gBAAmD,EACnDC,MAA+B,CACzC;aAJUH,YAAY,GAAZA;aACAC,EAAE,GAAFA;aACAC,gBAAgB,GAAhBA;aACAC,MAAM,GAANA;IACT;IAEH,MAAM,QAAQC,MAA6B,EAAiB;QACxD,IAAIA,OAAO,OAAO,EAEd;QAGJ,MAAMC,gBAAgB,MAAM,IAAI,CAAC,gBAAgB,CAAC,OAAO;QACzD,MAAMC,6BAA6BD,cAAc,gBAAgB,CAAC;QAElE,IAAIC,AAAsC,MAAtCA,2BAA2B,MAAM,EACjC;QAGJ,MAAMC,SAASD,0BAA0B,CAAC,EAAE,CAAC,MAAM;QAGnD,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC;QAEb,IAAI;YACA,MAAME,sBAAsB,MAAM,IAAI,CAAC,YAAY,CAAC,KAAK,CAAsB;gBAC3E,OAAOX;YACX;YAEA,IAAIW,oBAAoB,IAAI,EAAE,OAAO,kBAAkB,SAAS,MAAM,YAClE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC;QAGrB,EAAE,OAAOC,OAAY;YACjB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,uCAAuC;gBAAEA;YAAM;YACjE,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,qCAAqC,EAAEA,MAAM,OAAO,EAAE;YACvE;QACJ;QAEA,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC;QAKb,MAAMC,YAAYH,OAAO,SAAS,IAAI;YAClC,WAAW;YACX,UAAU;YACV,OAAO;YACP,UAAU;QACd;QAEA,MAAMI,YAAY;YACd,mBAAmB;gBACf;oBACI,KAAK;oBACL,MAAMD;gBACV;aACH;QACL;QAEA,MAAME,kBAAkB,MAAM,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAkB;YACtE,UAAUd;YACVa;QACJ;QAEA,IAAIC,gBAAgB,IAAI,EAAE,OAAO,cAAc,OAAO;YAClD,MAAM,EAAEC,OAAO,EAAEC,IAAI,EAAE,GAAGF,gBAAgB,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK;YACzE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,uBAAuB;gBAAEC;gBAASC;YAAK;YACzD,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,qBAAqB,EAAED,QAAQ,EAAE,EAAEC,KAAK,CAAC,CAAC;YACzD,MAAM,IAAIC,MAAMF;QACpB;QAEA,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC;QAChB,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC;QACb,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAEH,UAAU,KAAK,EAAE;QACzC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,WAAW,EAAEA,UAAU,QAAQ,EAAE;IACnD;AACJ;AAEO,MAAMM,4BAA4BC,eAAe,oBAAoB,CAAC;IACzE,gBAAgBlB;IAChB,cAAc;QAACmB;QAAcC;QAAWC;QAAyBC;KAAc;AACnF"}
@@ -1,6 +1,6 @@
1
1
  import { BeforeDeploy, LoggerService } from "@webiny/project/abstractions/index.js";
2
2
  import { GracefulError } from "@webiny/project";
3
- import { STS } from "@webiny/aws-sdk/client-sts/index.js";
3
+ import { STS } from "@webiny/aws-sdk/client-sts";
4
4
  class EnsureAwsCredentialsBeforeDeployImpl {
5
5
  constructor(loggerService){
6
6
  this.loggerService = loggerService;
@@ -1 +1 @@
1
- {"version":3,"file":"extensions/ProjectAws/EnsureAwsCredentialsBeforeDeploy.js","sources":["../../../src/extensions/ProjectAws/EnsureAwsCredentialsBeforeDeploy.ts"],"sourcesContent":["import { BeforeDeploy, LoggerService } from \"@webiny/project/abstractions/index.js\";\nimport { GracefulError } from \"@webiny/project\";\nimport { STS } from \"@webiny/aws-sdk/client-sts/index.js\";\n\nclass EnsureAwsCredentialsBeforeDeployImpl implements BeforeDeploy.Interface {\n constructor(private loggerService: LoggerService.Interface) {}\n\n async execute() {\n process.env.AWS_SDK_LOAD_CONFIG = \"true\";\n const sts = new STS({});\n\n try {\n await sts.getCallerIdentity({});\n } catch (err) {\n this.loggerService.debug({ err }, \"AWS credentials error.\");\n throw GracefulError.from(\n new Error(\"AWS credentials are not configured correctly.\"),\n 'No valid AWS credentials were found. Run \"aws configure\" or set the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables before deploying. Learn more: https://webiny.link/aws-credentials'\n );\n }\n\n const region = await sts.config.region();\n if (!region) {\n throw GracefulError.from(\n new Error(\"AWS region is not defined.\"),\n \"No AWS region is set. Define the AWS_REGION environment variable or set a default region in your AWS profile. Learn more: https://webiny.link/aws-region\"\n );\n }\n\n process.env.AWS_REGION = region;\n\n const { accessKeyId } = await sts.config.credentials();\n const profile = process.env.AWS_PROFILE;\n\n if (profile) {\n this.loggerService.info(`Using profile \"${profile}\" in \"${region}\" region.`);\n } else {\n this.loggerService.info(`Using access key ID \"${accessKeyId}\" in \"${region}\" region.`);\n }\n }\n}\n\nexport const EnsureAwsCredentialsBeforeDeploy = BeforeDeploy.createImplementation({\n implementation: EnsureAwsCredentialsBeforeDeployImpl,\n dependencies: [LoggerService]\n});\n"],"names":["EnsureAwsCredentialsBeforeDeployImpl","loggerService","process","sts","STS","err","GracefulError","Error","region","accessKeyId","profile","EnsureAwsCredentialsBeforeDeploy","BeforeDeploy","LoggerService"],"mappings":";;;AAIA,MAAMA;IACF,YAAoBC,aAAsC,CAAE;aAAxCA,aAAa,GAAbA;IAAyC;IAE7D,MAAM,UAAU;QACZC,QAAQ,GAAG,CAAC,mBAAmB,GAAG;QAClC,MAAMC,MAAM,IAAIC,IAAI,CAAC;QAErB,IAAI;YACA,MAAMD,IAAI,iBAAiB,CAAC,CAAC;QACjC,EAAE,OAAOE,KAAK;YACV,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC;gBAAEA;YAAI,GAAG;YAClC,MAAMC,cAAc,IAAI,CACpB,IAAIC,MAAM,kDACV;QAER;QAEA,MAAMC,SAAS,MAAML,IAAI,MAAM,CAAC,MAAM;QACtC,IAAI,CAACK,QACD,MAAMF,cAAc,IAAI,CACpB,IAAIC,MAAM,+BACV;QAIRL,QAAQ,GAAG,CAAC,UAAU,GAAGM;QAEzB,MAAM,EAAEC,WAAW,EAAE,GAAG,MAAMN,IAAI,MAAM,CAAC,WAAW;QACpD,MAAMO,UAAUR,QAAQ,GAAG,CAAC,WAAW;QAEvC,IAAIQ,SACA,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,eAAe,EAAEA,QAAQ,MAAM,EAAEF,OAAO,SAAS,CAAC;aAE3E,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,qBAAqB,EAAEC,YAAY,MAAM,EAAED,OAAO,SAAS,CAAC;IAE7F;AACJ;AAEO,MAAMG,mCAAmCC,aAAa,oBAAoB,CAAC;IAC9E,gBAAgBZ;IAChB,cAAc;QAACa;KAAc;AACjC"}
1
+ {"version":3,"file":"extensions/ProjectAws/EnsureAwsCredentialsBeforeDeploy.js","sources":["../../../src/extensions/ProjectAws/EnsureAwsCredentialsBeforeDeploy.ts"],"sourcesContent":["import { BeforeDeploy, LoggerService } from \"@webiny/project/abstractions/index.js\";\nimport { GracefulError } from \"@webiny/project\";\nimport { STS } from \"@webiny/aws-sdk/client-sts\";\n\nclass EnsureAwsCredentialsBeforeDeployImpl implements BeforeDeploy.Interface {\n constructor(private loggerService: LoggerService.Interface) {}\n\n async execute() {\n process.env.AWS_SDK_LOAD_CONFIG = \"true\";\n const sts = new STS({});\n\n try {\n await sts.getCallerIdentity({});\n } catch (err) {\n this.loggerService.debug({ err }, \"AWS credentials error.\");\n throw GracefulError.from(\n new Error(\"AWS credentials are not configured correctly.\"),\n 'No valid AWS credentials were found. Run \"aws configure\" or set the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables before deploying. Learn more: https://webiny.link/aws-credentials'\n );\n }\n\n const region = await sts.config.region();\n if (!region) {\n throw GracefulError.from(\n new Error(\"AWS region is not defined.\"),\n \"No AWS region is set. Define the AWS_REGION environment variable or set a default region in your AWS profile. Learn more: https://webiny.link/aws-region\"\n );\n }\n\n process.env.AWS_REGION = region;\n\n const { accessKeyId } = await sts.config.credentials();\n const profile = process.env.AWS_PROFILE;\n\n if (profile) {\n this.loggerService.info(`Using profile \"${profile}\" in \"${region}\" region.`);\n } else {\n this.loggerService.info(`Using access key ID \"${accessKeyId}\" in \"${region}\" region.`);\n }\n }\n}\n\nexport const EnsureAwsCredentialsBeforeDeploy = BeforeDeploy.createImplementation({\n implementation: EnsureAwsCredentialsBeforeDeployImpl,\n dependencies: [LoggerService]\n});\n"],"names":["EnsureAwsCredentialsBeforeDeployImpl","loggerService","process","sts","STS","err","GracefulError","Error","region","accessKeyId","profile","EnsureAwsCredentialsBeforeDeploy","BeforeDeploy","LoggerService"],"mappings":";;;AAIA,MAAMA;IACF,YAAoBC,aAAsC,CAAE;aAAxCA,aAAa,GAAbA;IAAyC;IAE7D,MAAM,UAAU;QACZC,QAAQ,GAAG,CAAC,mBAAmB,GAAG;QAClC,MAAMC,MAAM,IAAIC,IAAI,CAAC;QAErB,IAAI;YACA,MAAMD,IAAI,iBAAiB,CAAC,CAAC;QACjC,EAAE,OAAOE,KAAK;YACV,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC;gBAAEA;YAAI,GAAG;YAClC,MAAMC,cAAc,IAAI,CACpB,IAAIC,MAAM,kDACV;QAER;QAEA,MAAMC,SAAS,MAAML,IAAI,MAAM,CAAC,MAAM;QACtC,IAAI,CAACK,QACD,MAAMF,cAAc,IAAI,CACpB,IAAIC,MAAM,+BACV;QAIRL,QAAQ,GAAG,CAAC,UAAU,GAAGM;QAEzB,MAAM,EAAEC,WAAW,EAAE,GAAG,MAAMN,IAAI,MAAM,CAAC,WAAW;QACpD,MAAMO,UAAUR,QAAQ,GAAG,CAAC,WAAW;QAEvC,IAAIQ,SACA,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,eAAe,EAAEA,QAAQ,MAAM,EAAEF,OAAO,SAAS,CAAC;aAE3E,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,qBAAqB,EAAEC,YAAY,MAAM,EAAED,OAAO,SAAS,CAAC;IAE7F;AACJ;AAEO,MAAMG,mCAAmCC,aAAa,oBAAoB,CAAC;IAC9E,gBAAgBZ;IAChB,cAAc;QAACa;KAAc;AACjC"}
@@ -1,3 +1,3 @@
1
- import { type ExtensionDefinitionModel } from "@webiny/project/defineExtension/index.js";
1
+ import { type ExtensionDefinitionModel } from "@webiny/project/defineExtension";
2
2
  declare const definitions: ExtensionDefinitionModel<any>[];
3
3
  export default definitions;
@@ -1 +1 @@
1
- {"version":3,"file":"extensions/definitions.js","sources":["../../src/extensions/definitions.ts"],"sourcesContent":["import { ApiLambdaFunction } from \"./ApiLambdaFunction.js\";\nimport { ApiRoute } from \"./ApiRoute.js\";\nimport { OpenSearch } from \"./OpenSearch.js\";\nimport { Encryption } from \"./Encryption.js\";\nimport { Smtp as MailerSmtp } from \"./Mailer/Smtp.js\";\nimport { type ExtensionDefinitionModel } from \"@webiny/project/defineExtension/index.js\";\n\nconst definitions = [\n ApiLambdaFunction.def,\n ApiRoute.def,\n OpenSearch.def,\n Encryption.def,\n MailerSmtp.def\n] as unknown as ExtensionDefinitionModel<any>[];\n\nexport default definitions;\n"],"names":["definitions","ApiLambdaFunction","ApiRoute","OpenSearch","Encryption","MailerSmtp"],"mappings":";;;;;AAOA,MAAMA,cAAc;IAChBC,kBAAkB,GAAG;IACrBC,SAAS,GAAG;IACZC,WAAW,GAAG;IACdC,WAAW,GAAG;IACdC,KAAAA,GAAc;CACjB;AAED,+BAAeL"}
1
+ {"version":3,"file":"extensions/definitions.js","sources":["../../src/extensions/definitions.ts"],"sourcesContent":["import { ApiLambdaFunction } from \"./ApiLambdaFunction.js\";\nimport { ApiRoute } from \"./ApiRoute.js\";\nimport { OpenSearch } from \"./OpenSearch.js\";\nimport { Encryption } from \"./Encryption.js\";\nimport { Smtp as MailerSmtp } from \"./Mailer/Smtp.js\";\nimport { type ExtensionDefinitionModel } from \"@webiny/project/defineExtension\";\n\nconst definitions = [\n ApiLambdaFunction.def,\n ApiRoute.def,\n OpenSearch.def,\n Encryption.def,\n MailerSmtp.def\n] as unknown as ExtensionDefinitionModel<any>[];\n\nexport default definitions;\n"],"names":["definitions","ApiLambdaFunction","ApiRoute","OpenSearch","Encryption","MailerSmtp"],"mappings":";;;;;AAOA,MAAMA,cAAc;IAChBC,kBAAkB,GAAG;IACrBC,SAAS,GAAG;IACZC,WAAW,GAAG;IACdC,WAAW,GAAG;IACdC,KAAAA,GAAc;CACjB;AAED,+BAAeL"}
package/infra.d.ts CHANGED
@@ -118,11 +118,11 @@ export declare const Infra: {
118
118
  minimumProtocolVersion: import("zod").ZodOptional<import("zod").ZodEnum<{
119
119
  SSLv3: "SSLv3";
120
120
  TLSv1: "TLSv1";
121
- TLSv1_2016: "TLSv1_2016";
122
121
  "TLSv1.1_2016": "TLSv1.1_2016";
123
122
  "TLSv1.2_2018": "TLSv1.2_2018";
124
123
  "TLSv1.2_2019": "TLSv1.2_2019";
125
124
  "TLSv1.2_2021": "TLSv1.2_2021";
125
+ TLSv1_2016: "TLSv1_2016";
126
126
  }>>;
127
127
  }, import("zod/v4/core").$strip>>;
128
128
  StackOutputValue: import("@webiny/project/defineExtension/defineExtension.js").ExtensionComponent<import("zod").ZodObject<{
@@ -159,11 +159,11 @@ export declare const Infra: {
159
159
  minimumProtocolVersion: import("zod").ZodOptional<import("zod").ZodEnum<{
160
160
  SSLv3: "SSLv3";
161
161
  TLSv1: "TLSv1";
162
- TLSv1_2016: "TLSv1_2016";
163
162
  "TLSv1.1_2016": "TLSv1.1_2016";
164
163
  "TLSv1.2_2018": "TLSv1.2_2018";
165
164
  "TLSv1.2_2019": "TLSv1.2_2019";
166
165
  "TLSv1.2_2021": "TLSv1.2_2021";
166
+ TLSv1_2016: "TLSv1_2016";
167
167
  }>>;
168
168
  }, import("zod/v4/core").$strip>>;
169
169
  StackOutputValue: import("@webiny/project/defineExtension/defineExtension.js").ExtensionComponent<import("zod").ZodObject<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/project-aws",
3
- "version": "6.4.12-beta.5",
3
+ "version": "6.5.0-beta.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./index.js",
@@ -17,18 +17,18 @@
17
17
  "access": "public"
18
18
  },
19
19
  "dependencies": {
20
- "@pulumi/aws": "^7.47.0",
21
- "@pulumi/pulumi": "^3.263.0",
22
- "@pulumi/random": "4.21.2",
23
- "@webiny/api-headless-cms": "6.4.12-beta.5",
24
- "@webiny/aws-layers": "6.4.12-beta.5",
25
- "@webiny/aws-sdk": "6.4.12-beta.5",
26
- "@webiny/cli-core": "6.4.12-beta.5",
27
- "@webiny/di": "1.1.0",
28
- "@webiny/project": "6.4.12-beta.5",
29
- "@webiny/pulumi": "6.4.12-beta.5",
30
- "@webiny/utils": "6.4.12-beta.5",
31
- "chalk": "6.0.0",
20
+ "@pulumi/aws": "^7.38.0",
21
+ "@pulumi/pulumi": "^3.253.0",
22
+ "@pulumi/random": "4.21.0",
23
+ "@webiny/api-headless-cms": "6.5.0-beta.0",
24
+ "@webiny/aws-layers": "6.5.0-beta.0",
25
+ "@webiny/aws-sdk": "6.5.0-beta.0",
26
+ "@webiny/cli-core": "6.5.0-beta.0",
27
+ "@webiny/di": "1.0.2",
28
+ "@webiny/project": "6.5.0-beta.0",
29
+ "@webiny/pulumi": "6.5.0-beta.0",
30
+ "@webiny/utils": "6.5.0-beta.0",
31
+ "chalk": "5.6.2",
32
32
  "email-addresses": "5.0.0",
33
33
  "find-up": "8.0.0",
34
34
  "invariant": "2.2.4",
@@ -37,14 +37,14 @@
37
37
  "react": "18.3.1",
38
38
  "replace-in-path": "1.1.0",
39
39
  "ts-morph": "28.0.0",
40
- "zod": "4.6.5"
40
+ "zod": "4.4.3"
41
41
  },
42
42
  "devDependencies": {
43
- "@types/lodash": "4.17.25",
43
+ "@types/lodash": "4.17.24",
44
44
  "@types/ncp": "2.0.8",
45
- "@webiny/build-tools": "6.4.12-beta.5",
46
- "typescript": "6.0.3",
47
- "vitest": "5.0.1"
45
+ "@webiny/build-tools": "6.5.0-beta.0",
46
+ "typescript": "7.0.2",
47
+ "vitest": "4.1.10"
48
48
  },
49
49
  "adio": {
50
50
  "ignoreDirs": [
package/project.d.ts CHANGED
@@ -33,13 +33,25 @@ export declare const Project: {
33
33
  options: import("zod").ZodOptional<import("zod").ZodObject<{
34
34
  websiteBuilder: import("zod").ZodOptional<import("zod").ZodObject<{
35
35
  pageGeneration: import("zod").ZodOptional<import("zod").ZodBoolean>;
36
+ pageTranslation: import("zod").ZodOptional<import("zod").ZodBoolean>;
36
37
  }, import("zod/v4/core").$strip>>;
37
38
  fileManager: import("zod").ZodOptional<import("zod").ZodObject<{
38
39
  imageEnrichment: import("zod").ZodOptional<import("zod").ZodBoolean>;
39
40
  }, import("zod/v4/core").$strip>>;
40
41
  lexicalGeneration: import("zod").ZodOptional<import("zod").ZodBoolean>;
42
+ remoteComponents: import("zod").ZodOptional<import("zod").ZodBoolean>;
43
+ cms: import("zod").ZodOptional<import("zod").ZodObject<{
44
+ entryGeneration: import("zod").ZodOptional<import("zod").ZodBoolean>;
45
+ entryComparison: import("zod").ZodOptional<import("zod").ZodBoolean>;
46
+ entryTranslation: import("zod").ZodOptional<import("zod").ZodBoolean>;
47
+ }, import("zod/v4/core").$strip>>;
41
48
  }, import("zod/v4/core").$strip>>;
42
49
  }, import("zod/v4/core").$strip>>;
50
+ abTesting: import("zod").ZodOptional<import("zod").ZodBoolean>;
51
+ collaboration: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodBoolean, import("zod").ZodObject<{
52
+ comments: import("zod").ZodOptional<import("zod").ZodBoolean>;
53
+ activityLog: import("zod").ZodOptional<import("zod").ZodBoolean>;
54
+ }, import("zod/v4/core").$strip>]>>;
43
55
  }, import("zod/v4/core").$strip>;
44
56
  }, import("zod/v4/core").$strip>>;
45
57
  };
@@ -1,7 +1,6 @@
1
1
  import { createReactPulumiApp } from "../../../pulumi/apps/index.js";
2
2
  export type AdminPulumiApp = ReturnType<typeof createReactPulumiApp>;
3
3
  export declare const createAdminPulumiApp: () => Promise<import("@webiny/pulumi/types").PulumiApp<{
4
- cloudfront: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/cloudfront/distribution").Distribution>;
5
4
  bucket: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/s3/bucket").Bucket>;
6
5
  bucketOwnershipControls: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/s3/bucketOwnershipControls").BucketOwnershipControls>;
7
6
  bucketAcl: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/s3/bucketAcl").BucketAcl>;
@@ -9,4 +8,5 @@ export declare const createAdminPulumiApp: () => Promise<import("@webiny/pulumi/
9
8
  origin: import("@pulumi/aws/types/input").cloudfront.DistributionOrigin;
10
9
  bucketPublicAccessBlock: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/s3/bucketPublicAccessBlock").BucketPublicAccessBlock>;
11
10
  bucketPolicy: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/s3/bucketPolicy").BucketPolicy>;
11
+ cloudfront: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/cloudfront/distribution").Distribution>;
12
12
  }> & import("../../utils/withServiceManifest").WithServiceManifest>;
@@ -17,8 +17,7 @@ const ApiCloudfront = createAppModule({
17
17
  "Accept",
18
18
  "Accept-Language",
19
19
  "X-Tenant",
20
- "X-Webiny-Sdk",
21
- "X-Webiny-Debug"
20
+ "X-Webiny-Sdk"
22
21
  ];
23
22
  return app.addResource(__rspack_external__pulumi_aws_9e2bee2d.cloudfront.Distribution, {
24
23
  name: "api-cloudfront",
@@ -1 +1 @@
1
- {"version":3,"file":"pulumi/apps/api/ApiCloudfront.js","sources":["../../../../src/pulumi/apps/api/ApiCloudfront.ts"],"sourcesContent":["import * as aws from \"@pulumi/aws\";\nimport type { PulumiApp, PulumiAppModule } from \"@webiny/pulumi\";\nimport { createAppModule } from \"@webiny/pulumi\";\n\nimport { ApiGateway } from \"./ApiGateway.js\";\n\nexport type ApiCloudfront = PulumiAppModule<typeof ApiCloudfront>;\n\nexport const ApiCloudfront = createAppModule({\n name: \"ApiCloudfront\",\n config(app: PulumiApp) {\n const gateway = app.getModule(ApiGateway);\n\n const cookies = {\n forward: \"whitelist\",\n whitelistedNames: [\"wby-id-token\"]\n };\n\n const forwardHeaders = [\n \"Origin\",\n \"Authorization\",\n \"Accept\",\n \"Accept-Language\",\n \"X-Tenant\",\n \"X-Webiny-Sdk\",\n \"X-Webiny-Debug\"\n ];\n\n return app.addResource(aws.cloudfront.Distribution, {\n name: \"api-cloudfront\",\n config: {\n httpVersion: \"http2and3\",\n waitForDeployment: false,\n isIpv6Enabled: true,\n enabled: true,\n defaultCacheBehavior: {\n compress: true,\n allowedMethods: [\"GET\", \"HEAD\", \"OPTIONS\", \"PUT\", \"POST\", \"PATCH\", \"DELETE\"],\n cachedMethods: [\"GET\", \"HEAD\", \"OPTIONS\"],\n forwardedValues: {\n cookies,\n headers: forwardHeaders,\n queryString: true\n },\n // MinTTL <= DefaultTTL <= MaxTTL\n minTtl: 0,\n defaultTtl: 0,\n maxTtl: 86400,\n targetOriginId: gateway.api.output.name,\n viewerProtocolPolicy: \"allow-all\"\n },\n orderedCacheBehaviors: [\n {\n compress: true,\n allowedMethods: [\n \"GET\",\n \"HEAD\",\n \"OPTIONS\",\n \"PUT\",\n \"POST\",\n \"PATCH\",\n \"DELETE\"\n ],\n cachedMethods: [\"GET\", \"HEAD\", \"OPTIONS\"],\n forwardedValues: {\n cookies: {\n forward: \"none\"\n },\n headers: forwardHeaders,\n queryString: true\n },\n pathPattern: \"/cms*\",\n viewerProtocolPolicy: \"allow-all\",\n targetOriginId: gateway.api.output.name\n },\n {\n compress: true,\n allowedMethods: [\n \"GET\",\n \"HEAD\",\n \"OPTIONS\",\n \"PUT\",\n \"POST\",\n \"PATCH\",\n \"DELETE\"\n ],\n cachedMethods: [\"GET\", \"HEAD\", \"OPTIONS\"],\n forwardedValues: {\n cookies: {\n forward: \"none\"\n },\n headers: forwardHeaders,\n queryString: true\n },\n pathPattern: \"/wb/*\",\n viewerProtocolPolicy: \"allow-all\",\n targetOriginId: gateway.api.output.name\n },\n {\n allowedMethods: [\"HEAD\", \"GET\", \"OPTIONS\"],\n cachedMethods: [\"HEAD\", \"GET\", \"OPTIONS\"],\n forwardedValues: {\n cookies: {\n forward: \"none\"\n },\n headers: forwardHeaders,\n queryString: true\n },\n // MinTTL <= DefaultTTL <= MaxTTL\n minTtl: 0,\n defaultTtl: 0,\n maxTtl: 2592000,\n pathPattern: \"/files/*\",\n viewerProtocolPolicy: \"allow-all\",\n targetOriginId: gateway.api.output.name\n },\n {\n allowedMethods: [\"HEAD\", \"GET\", \"OPTIONS\"],\n cachedMethods: [\"HEAD\", \"GET\", \"OPTIONS\"],\n forwardedValues: {\n cookies: cookies,\n headers: forwardHeaders,\n queryString: true\n },\n // MinTTL <= DefaultTTL <= MaxTTL\n minTtl: 0,\n defaultTtl: 0,\n maxTtl: 2592000,\n pathPattern: \"/private/*\",\n viewerProtocolPolicy: \"allow-all\",\n targetOriginId: gateway.api.output.name\n }\n ],\n origins: [\n {\n domainName: gateway.stage.output.invokeUrl.apply(\n (url: string) => new URL(url).hostname\n ),\n originPath: gateway.stage.output.invokeUrl.apply(\n (url: string) => new URL(url).pathname\n ),\n originId: gateway.api.output.name,\n customOriginConfig: {\n httpPort: 80,\n httpsPort: 443,\n originProtocolPolicy: \"https-only\",\n originSslProtocols: [\"TLSv1.2\"]\n }\n }\n ],\n restrictions: {\n geoRestriction: {\n restrictionType: \"none\"\n }\n },\n viewerCertificate: {\n cloudfrontDefaultCertificate: true\n }\n },\n opts: {\n // We are ignoring changes to the \"staging\" property. This is because of the following.\n // With the 5.41.0 release of Webiny, we also upgraded Pulumi to v6. This introduced a change\n // with how Cloudfront distributions are deployed, where Pulumi now also controls the new\n // `staging` property.\n // If not set, Pulumi will default it to `false`. Which is fine, but, the problem is\n // that, because this property did not exist before, it will always be considered as a change\n // upon deployment.\n // We might think this is fine, but, the problem is that a change in this property causes\n // a full replacement of the Cloudfront distribution, which is not acceptable. Especially\n // if a custom domain has already been associated with the distribution. This then would\n // require the user to disassociate the domain, wait for the distribution to be replaced,\n // and then re-associate the domain. This is not a good experience.\n ignoreChanges: [\"staging\"]\n }\n });\n }\n});\n"],"names":["ApiCloudfront","createAppModule","app","gateway","ApiGateway","cookies","forwardHeaders","aws","url","URL"],"mappings":"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"}
1
+ {"version":3,"file":"pulumi/apps/api/ApiCloudfront.js","sources":["../../../../src/pulumi/apps/api/ApiCloudfront.ts"],"sourcesContent":["import * as aws from \"@pulumi/aws\";\nimport type { PulumiApp, PulumiAppModule } from \"@webiny/pulumi\";\nimport { createAppModule } from \"@webiny/pulumi\";\n\nimport { ApiGateway } from \"./ApiGateway.js\";\n\nexport type ApiCloudfront = PulumiAppModule<typeof ApiCloudfront>;\n\nexport const ApiCloudfront = createAppModule({\n name: \"ApiCloudfront\",\n config(app: PulumiApp) {\n const gateway = app.getModule(ApiGateway);\n\n const cookies = {\n forward: \"whitelist\",\n whitelistedNames: [\"wby-id-token\"]\n };\n\n const forwardHeaders = [\n \"Origin\",\n \"Authorization\",\n \"Accept\",\n \"Accept-Language\",\n \"X-Tenant\",\n \"X-Webiny-Sdk\"\n ];\n\n return app.addResource(aws.cloudfront.Distribution, {\n name: \"api-cloudfront\",\n config: {\n httpVersion: \"http2and3\",\n waitForDeployment: false,\n isIpv6Enabled: true,\n enabled: true,\n defaultCacheBehavior: {\n compress: true,\n allowedMethods: [\"GET\", \"HEAD\", \"OPTIONS\", \"PUT\", \"POST\", \"PATCH\", \"DELETE\"],\n cachedMethods: [\"GET\", \"HEAD\", \"OPTIONS\"],\n forwardedValues: {\n cookies,\n headers: forwardHeaders,\n queryString: true\n },\n // MinTTL <= DefaultTTL <= MaxTTL\n minTtl: 0,\n defaultTtl: 0,\n maxTtl: 86400,\n targetOriginId: gateway.api.output.name,\n viewerProtocolPolicy: \"allow-all\"\n },\n orderedCacheBehaviors: [\n {\n compress: true,\n allowedMethods: [\n \"GET\",\n \"HEAD\",\n \"OPTIONS\",\n \"PUT\",\n \"POST\",\n \"PATCH\",\n \"DELETE\"\n ],\n cachedMethods: [\"GET\", \"HEAD\", \"OPTIONS\"],\n forwardedValues: {\n cookies: {\n forward: \"none\"\n },\n headers: forwardHeaders,\n queryString: true\n },\n pathPattern: \"/cms*\",\n viewerProtocolPolicy: \"allow-all\",\n targetOriginId: gateway.api.output.name\n },\n {\n compress: true,\n allowedMethods: [\n \"GET\",\n \"HEAD\",\n \"OPTIONS\",\n \"PUT\",\n \"POST\",\n \"PATCH\",\n \"DELETE\"\n ],\n cachedMethods: [\"GET\", \"HEAD\", \"OPTIONS\"],\n forwardedValues: {\n cookies: {\n forward: \"none\"\n },\n headers: forwardHeaders,\n queryString: true\n },\n pathPattern: \"/wb/*\",\n viewerProtocolPolicy: \"allow-all\",\n targetOriginId: gateway.api.output.name\n },\n {\n allowedMethods: [\"HEAD\", \"GET\", \"OPTIONS\"],\n cachedMethods: [\"HEAD\", \"GET\", \"OPTIONS\"],\n forwardedValues: {\n cookies: {\n forward: \"none\"\n },\n headers: forwardHeaders,\n queryString: true\n },\n // MinTTL <= DefaultTTL <= MaxTTL\n minTtl: 0,\n defaultTtl: 0,\n maxTtl: 2592000,\n pathPattern: \"/files/*\",\n viewerProtocolPolicy: \"allow-all\",\n targetOriginId: gateway.api.output.name\n },\n {\n allowedMethods: [\"HEAD\", \"GET\", \"OPTIONS\"],\n cachedMethods: [\"HEAD\", \"GET\", \"OPTIONS\"],\n forwardedValues: {\n cookies: cookies,\n headers: forwardHeaders,\n queryString: true\n },\n // MinTTL <= DefaultTTL <= MaxTTL\n minTtl: 0,\n defaultTtl: 0,\n maxTtl: 2592000,\n pathPattern: \"/private/*\",\n viewerProtocolPolicy: \"allow-all\",\n targetOriginId: gateway.api.output.name\n }\n ],\n origins: [\n {\n domainName: gateway.stage.output.invokeUrl.apply(\n (url: string) => new URL(url).hostname\n ),\n originPath: gateway.stage.output.invokeUrl.apply(\n (url: string) => new URL(url).pathname\n ),\n originId: gateway.api.output.name,\n customOriginConfig: {\n httpPort: 80,\n httpsPort: 443,\n originProtocolPolicy: \"https-only\",\n originSslProtocols: [\"TLSv1.2\"]\n }\n }\n ],\n restrictions: {\n geoRestriction: {\n restrictionType: \"none\"\n }\n },\n viewerCertificate: {\n cloudfrontDefaultCertificate: true\n }\n },\n opts: {\n // We are ignoring changes to the \"staging\" property. This is because of the following.\n // With the 5.41.0 release of Webiny, we also upgraded Pulumi to v6. This introduced a change\n // with how Cloudfront distributions are deployed, where Pulumi now also controls the new\n // `staging` property.\n // If not set, Pulumi will default it to `false`. Which is fine, but, the problem is\n // that, because this property did not exist before, it will always be considered as a change\n // upon deployment.\n // We might think this is fine, but, the problem is that a change in this property causes\n // a full replacement of the Cloudfront distribution, which is not acceptable. Especially\n // if a custom domain has already been associated with the distribution. This then would\n // require the user to disassociate the domain, wait for the distribution to be replaced,\n // and then re-associate the domain. This is not a good experience.\n ignoreChanges: [\"staging\"]\n }\n });\n }\n});\n"],"names":["ApiCloudfront","createAppModule","app","gateway","ApiGateway","cookies","forwardHeaders","aws","url","URL"],"mappings":"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"}
@@ -1,5 +1,5 @@
1
1
  import { type PulumiApp } from "@webiny/pulumi";
2
2
  import { type AppName } from "@webiny/project";
3
3
  export declare function getAwsAccountId(app: PulumiApp): import("@pulumi/pulumi").Output<string>;
4
- export declare function getAwsRegion(app: PulumiApp): import("@pulumi/pulumi").Output<"af-south-1" | "ap-east-1" | "ap-east-2" | "ap-northeast-1" | "ap-northeast-2" | "ap-northeast-3" | "ap-south-1" | "ap-south-2" | "ap-southeast-1" | "ap-southeast-2" | "ap-southeast-3" | "ap-southeast-4" | "ap-southeast-5" | "ap-southeast-6" | "ap-southeast-7" | "ca-central-1" | "ca-west-1" | "eu-central-1" | "eu-central-2" | "eu-north-1" | "eu-south-1" | "eu-south-2" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "il-central-1" | "me-central-1" | "me-south-1" | "mx-central-1" | "sa-east-1" | "us-east-1" | "us-east-2" | "us-west-1" | "us-west-2" | "cn-north-1" | "cn-northwest-1" | "eusc-de-east-1" | "us-gov-east-1" | "us-gov-west-1" | "us-iso-east-1" | "us-iso-west-1" | "us-isob-east-1" | "us-isob-west-1" | "eu-isoe-west-1" | "us-isof-east-1" | "us-isof-south-1">;
4
+ export declare function getAwsRegion(app: PulumiApp): import("@pulumi/pulumi").Output<"af-south-1" | "ap-east-1" | "ap-east-2" | "ap-northeast-1" | "ap-northeast-2" | "ap-northeast-3" | "ap-south-1" | "ap-south-2" | "ap-southeast-1" | "ap-southeast-2" | "ap-southeast-3" | "ap-southeast-4" | "ap-southeast-5" | "ap-southeast-7" | "ca-central-1" | "ca-west-1" | "cn-north-1" | "cn-northwest-1" | "eu-central-1" | "eu-central-2" | "eu-isoe-west-1" | "eu-north-1" | "eu-south-1" | "eu-south-2" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "il-central-1" | "me-central-1" | "me-south-1" | "mx-central-1" | "sa-east-1" | "us-east-1" | "us-east-2" | "us-gov-east-1" | "us-gov-west-1" | "us-iso-east-1" | "us-iso-west-1" | "us-isob-east-1" | "us-west-1" | "us-west-2">;
5
5
  export declare function applyAwsResourceTags(appName: AppName): Promise<void>;
@@ -6,7 +6,7 @@ const resolveDomains = (params)=>{
6
6
  return types.reduce((output, type)=>{
7
7
  const value = domains[type];
8
8
  if (!value) return output;
9
- else if (0 === value.length) throw new Error(`Missing domains for "${type}" deployment.`);
9
+ if (0 === value.length) throw new Error(`Missing domains for "${type}" deployment.`);
10
10
  for (const domain of deploymentsDomains){
11
11
  const target = domain.domains[type];
12
12
  if (!target) throw new Error(`Missing "${type}" domain in deployment "${domain.name}".`);
@@ -1 +1 @@
1
- {"version":3,"file":"pulumi/apps/blueGreen/domains/resolveDomains.js","sources":["../../../../../src/pulumi/apps/blueGreen/domains/resolveDomains.ts"],"sourcesContent":["import type {\n IAttachedDomainKey,\n IAttachedDomains,\n IDeploymentsDomains,\n IResolvedDomains\n} from \"../types.js\";\n\nexport interface IResolveDomainsParams {\n attachedDomains: IAttachedDomains;\n deploymentsDomains: IDeploymentsDomains;\n}\n\nexport const resolveDomains = (params: IResolveDomainsParams): IResolvedDomains => {\n const { attachedDomains, deploymentsDomains } = params;\n\n const domains = attachedDomains.domains;\n\n if (!domains) {\n return [];\n }\n const types = Object.keys(domains).filter(key => {\n return !!domains[key as IAttachedDomainKey];\n }) as IAttachedDomainKey[];\n\n return types.reduce<IResolvedDomains>((output, type) => {\n const value = domains[type];\n /**\n * Should not happen because we are filtering out undefined values when creating the `types` array.\n */\n if (!value) {\n return output;\n } else if (value.length === 0) {\n throw new Error(`Missing domains for \"${type}\" deployment.`);\n }\n for (const domain of deploymentsDomains) {\n const target = domain.domains[type];\n if (!target) {\n throw new Error(`Missing \"${type}\" domain in deployment \"${domain.name}\".`);\n }\n\n output.push({\n type,\n env: domain.env,\n variant: domain.variant,\n name: domain.name,\n sources: value,\n target\n });\n }\n\n return output;\n }, []);\n};\n"],"names":["resolveDomains","params","attachedDomains","deploymentsDomains","domains","types","Object","key","output","type","value","Error","domain","target"],"mappings":"AAYO,MAAMA,iBAAiB,CAACC;IAC3B,MAAM,EAAEC,eAAe,EAAEC,kBAAkB,EAAE,GAAGF;IAEhD,MAAMG,UAAUF,gBAAgB,OAAO;IAEvC,IAAI,CAACE,SACD,OAAO,EAAE;IAEb,MAAMC,QAAQC,OAAO,IAAI,CAACF,SAAS,MAAM,CAACG,CAAAA,MAC/B,CAAC,CAACH,OAAO,CAACG,IAA0B;IAG/C,OAAOF,MAAM,MAAM,CAAmB,CAACG,QAAQC;QAC3C,MAAMC,QAAQN,OAAO,CAACK,KAAK;QAI3B,IAAI,CAACC,OACD,OAAOF;aACJ,IAAIE,AAAiB,MAAjBA,MAAM,MAAM,EACnB,MAAM,IAAIC,MAAM,CAAC,qBAAqB,EAAEF,KAAK,aAAa,CAAC;QAE/D,KAAK,MAAMG,UAAUT,mBAAoB;YACrC,MAAMU,SAASD,OAAO,OAAO,CAACH,KAAK;YACnC,IAAI,CAACI,QACD,MAAM,IAAIF,MAAM,CAAC,SAAS,EAAEF,KAAK,wBAAwB,EAAEG,OAAO,IAAI,CAAC,EAAE,CAAC;YAG9EJ,OAAO,IAAI,CAAC;gBACRC;gBACA,KAAKG,OAAO,GAAG;gBACf,SAASA,OAAO,OAAO;gBACvB,MAAMA,OAAO,IAAI;gBACjB,SAASF;gBACTG;YACJ;QACJ;QAEA,OAAOL;IACX,GAAG,EAAE;AACT"}
1
+ {"version":3,"file":"pulumi/apps/blueGreen/domains/resolveDomains.js","sources":["../../../../../src/pulumi/apps/blueGreen/domains/resolveDomains.ts"],"sourcesContent":["import type {\n IAttachedDomainKey,\n IAttachedDomains,\n IDeploymentsDomains,\n IResolvedDomains\n} from \"../types.js\";\n\nexport interface IResolveDomainsParams {\n attachedDomains: IAttachedDomains;\n deploymentsDomains: IDeploymentsDomains;\n}\n\nexport const resolveDomains = (params: IResolveDomainsParams): IResolvedDomains => {\n const { attachedDomains, deploymentsDomains } = params;\n\n const domains = attachedDomains.domains;\n\n if (!domains) {\n return [];\n }\n const types = Object.keys(domains).filter(key => {\n return !!domains[key as IAttachedDomainKey];\n }) as IAttachedDomainKey[];\n\n return types.reduce<IResolvedDomains>((output, type) => {\n const value = domains[type];\n /**\n * Should not happen because we are filtering out undefined values when creating the `types` array.\n */\n if (!value) {\n return output;\n } else if (value.length === 0) {\n throw new Error(`Missing domains for \"${type}\" deployment.`);\n }\n for (const domain of deploymentsDomains) {\n const target = domain.domains[type];\n if (!target) {\n throw new Error(`Missing \"${type}\" domain in deployment \"${domain.name}\".`);\n }\n\n output.push({\n type,\n env: domain.env,\n variant: domain.variant,\n name: domain.name,\n sources: value,\n target\n });\n }\n\n return output;\n }, []);\n};\n"],"names":["resolveDomains","params","attachedDomains","deploymentsDomains","domains","types","Object","key","output","type","value","Error","domain","target"],"mappings":"AAYO,MAAMA,iBAAiB,CAACC;IAC3B,MAAM,EAAEC,eAAe,EAAEC,kBAAkB,EAAE,GAAGF;IAEhD,MAAMG,UAAUF,gBAAgB,OAAO;IAEvC,IAAI,CAACE,SACD,OAAO,EAAE;IAEb,MAAMC,QAAQC,OAAO,IAAI,CAACF,SAAS,MAAM,CAACG,CAAAA,MAC/B,CAAC,CAACH,OAAO,CAACG,IAA0B;IAG/C,OAAOF,MAAM,MAAM,CAAmB,CAACG,QAAQC;QAC3C,MAAMC,QAAQN,OAAO,CAACK,KAAK;QAI3B,IAAI,CAACC,OACD,OAAOF;QACJ,IAAIE,AAAiB,MAAjBA,MAAM,MAAM,EACnB,MAAM,IAAIC,MAAM,CAAC,qBAAqB,EAAEF,KAAK,aAAa,CAAC;QAE/D,KAAK,MAAMG,UAAUT,mBAAoB;YACrC,MAAMU,SAASD,OAAO,OAAO,CAACH,KAAK;YACnC,IAAI,CAACI,QACD,MAAM,IAAIF,MAAM,CAAC,SAAS,EAAEF,KAAK,wBAAwB,EAAEG,OAAO,IAAI,CAAC,EAAE,CAAC;YAG9EJ,OAAO,IAAI,CAAC;gBACRC;gBACA,KAAKG,OAAO,GAAG;gBACf,SAASA,OAAO,OAAO;gBACvB,MAAMA,OAAO,IAAI;gBACjB,SAASF;gBACTG;YACJ;QACJ;QAEA,OAAOL;IACX,GAAG,EAAE;AACT"}
@@ -6,7 +6,7 @@ export interface OpenSearchParams {
6
6
  prevDomainName: string | undefined;
7
7
  }
8
8
  export declare const OpenSearch: import("@webiny/pulumi").PulumiAppModuleDefinition<{
9
- domain: PulumiAppResource<PulumiAppResourceConstructor<import("@pulumi/aws/opensearch/domain.js").Domain, any>> | PulumiAppRemoteResource<aws.opensearch.GetDomainResult>;
9
+ domain: PulumiAppRemoteResource<aws.opensearch.GetDomainResult> | PulumiAppResource<PulumiAppResourceConstructor<import("@pulumi/aws/opensearch/domain.js").Domain, any>>;
10
10
  domainPolicy: PulumiAppResource<typeof import("@pulumi/aws/opensearch/domainPolicy.js").DomainPolicy> | undefined;
11
11
  table: PulumiAppResource<typeof import("@pulumi/aws/dynamodb/table.js").Table>;
12
12
  dynamoToElastic: {
@@ -1,19 +1,6 @@
1
1
  import * as aws from "@pulumi/aws";
2
2
  export type CorePulumiApp = ReturnType<typeof createCorePulumiApp>;
3
3
  export declare function createCorePulumiApp(): import("@webiny/pulumi").PulumiApp<{
4
- fileManagerBucket: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/s3/bucket.js").Bucket>;
5
- eventBus: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/cloudwatch/eventBus.js").EventBus>;
6
- opensearch: {
7
- domain: import("@webiny/pulumi").PulumiAppResource<import("@webiny/pulumi").PulumiAppResourceConstructor<import("@pulumi/aws/opensearch/domain.js").Domain, any>> | import("@webiny/pulumi").PulumiAppRemoteResource<aws.opensearch.GetDomainResult>;
8
- domainPolicy: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/opensearch/domainPolicy.js").DomainPolicy> | undefined;
9
- table: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/dynamodb/table.js").Table>;
10
- dynamoToElastic: {
11
- role: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/iam/role.js").Role>;
12
- policy: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/iam/policy.js").Policy>;
13
- lambda: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/lambda/function.js").Function>;
14
- eventSourceMapping: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/lambda/eventSourceMapping.js").EventSourceMapping>;
15
- };
16
- } | undefined;
17
4
  userPool: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/cognito/userPool.js").UserPool>;
18
5
  userPoolClient: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/cognito/userPoolClient.js").UserPoolClient>;
19
6
  dynamoDbTable: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/dynamodb/table.js").Table>;
@@ -28,4 +15,17 @@ export declare function createCorePulumiApp(): import("@webiny/pulumi").PulumiAp
28
15
  publicSubnets: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/ec2/routeTable.js").RouteTable>;
29
16
  };
30
17
  } | null;
18
+ fileManagerBucket: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/s3/bucket.js").Bucket>;
19
+ eventBus: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/cloudwatch/eventBus.js").EventBus>;
20
+ opensearch: {
21
+ domain: import("@webiny/pulumi").PulumiAppRemoteResource<aws.opensearch.GetDomainResult> | import("@webiny/pulumi").PulumiAppResource<import("@webiny/pulumi").PulumiAppResourceConstructor<import("@pulumi/aws/opensearch/domain.js").Domain, any>>;
22
+ domainPolicy: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/opensearch/domainPolicy.js").DomainPolicy> | undefined;
23
+ table: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/dynamodb/table.js").Table>;
24
+ dynamoToElastic: {
25
+ role: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/iam/role.js").Role>;
26
+ policy: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/iam/policy.js").Policy>;
27
+ lambda: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/lambda/function.js").Function>;
28
+ eventSourceMapping: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/lambda/eventSourceMapping.js").EventSourceMapping>;
29
+ };
30
+ } | undefined;
31
31
  }> & import("~/pulumi/utils/withServiceManifest.js").WithServiceManifest;
@@ -1,4 +1,4 @@
1
- export function handler(event: any): Promise<{
1
+ export declare var handler: (event: any) => Promise<{
2
2
  isAuthenticated: boolean;
3
3
  principalId?: undefined;
4
4
  policyDocuments?: undefined;
@@ -3,13 +3,13 @@ export declare const getVpcConfigFromExtension: (projectConfig: IProjectConfigMo
3
3
  enabled: boolean;
4
4
  useVpcEndpoints?: boolean | undefined;
5
5
  useExistingVpc?: {
6
- lambdaFunctionsVpcConfig: {
7
- securityGroupIds: string[];
8
- subnetIds: string[];
9
- };
10
6
  openSearchDomainVpcConfig?: {
11
7
  securityGroupIds: string[];
12
8
  subnetIds: string[];
13
9
  } | undefined;
10
+ lambdaFunctionsVpcConfig: {
11
+ securityGroupIds: string[];
12
+ subnetIds: string[];
13
+ };
14
14
  } | undefined;
15
15
  }, "enabled"> | undefined;
@@ -21,7 +21,6 @@ export interface CreateReactPulumiAppParams {
21
21
  pulumi?: (app: ReactPulumiApp) => void | Promise<void>;
22
22
  }
23
23
  export declare const createReactPulumiApp: (projectAppParams: CreateReactPulumiAppParams) => import("@webiny/pulumi").PulumiApp<{
24
- cloudfront: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/cloudfront/distribution.js").Distribution>;
25
24
  bucket: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/s3/bucket.js").Bucket>;
26
25
  bucketOwnershipControls: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/s3/bucketOwnershipControls.js").BucketOwnershipControls>;
27
26
  bucketAcl: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/s3/bucketAcl.js").BucketAcl>;
@@ -29,4 +28,5 @@ export declare const createReactPulumiApp: (projectAppParams: CreateReactPulumiA
29
28
  origin: aws.types.input.cloudfront.DistributionOrigin;
30
29
  bucketPublicAccessBlock: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/s3/bucketPublicAccessBlock.js").BucketPublicAccessBlock>;
31
30
  bucketPolicy: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/s3/bucketPolicy.js").BucketPolicy>;
31
+ cloudfront: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/cloudfront/distribution.js").Distribution>;
32
32
  }> & import("~/pulumi/utils/withServiceManifest.js").WithServiceManifest;
@@ -9,10 +9,10 @@ export declare const AdminCustomDomains: import("@webiny/project/extensions").Ex
9
9
  minimumProtocolVersion: z.ZodOptional<z.ZodEnum<{
10
10
  SSLv3: "SSLv3";
11
11
  TLSv1: "TLSv1";
12
- TLSv1_2016: "TLSv1_2016";
13
12
  "TLSv1.1_2016": "TLSv1.1_2016";
14
13
  "TLSv1.2_2018": "TLSv1.2_2018";
15
14
  "TLSv1.2_2019": "TLSv1.2_2019";
16
15
  "TLSv1.2_2021": "TLSv1.2_2021";
16
+ TLSv1_2016: "TLSv1_2016";
17
17
  }>>;
18
18
  }, z.core.$strip>>;
@@ -9,10 +9,10 @@ export declare const ApiCustomDomains: import("@webiny/project/extensions").Exte
9
9
  minimumProtocolVersion: z.ZodOptional<z.ZodEnum<{
10
10
  SSLv3: "SSLv3";
11
11
  TLSv1: "TLSv1";
12
- TLSv1_2016: "TLSv1_2016";
13
12
  "TLSv1.1_2016": "TLSv1.1_2016";
14
13
  "TLSv1.2_2018": "TLSv1.2_2018";
15
14
  "TLSv1.2_2019": "TLSv1.2_2019";
16
15
  "TLSv1.2_2021": "TLSv1.2_2021";
16
+ TLSv1_2016: "TLSv1_2016";
17
17
  }>>;
18
18
  }, z.core.$strip>>;
@@ -17,8 +17,6 @@ export { CorePulumi };
17
17
  export { ApiPulumi };
18
18
  export { AdminPulumi };
19
19
  export declare const definitions: (import("@webiny/project/defineExtension/index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
20
- tags: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
21
- }, import("zod/v4/core").$strip>> | import("@webiny/project/defineExtension/index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
22
20
  enabled: import("zod").ZodDefault<import("zod").ZodBoolean>;
23
21
  useVpcEndpoints: import("zod").ZodOptional<import("zod").ZodBoolean>;
24
22
  useExistingVpc: import("zod").ZodOptional<import("zod").ZodObject<{
@@ -31,6 +29,8 @@ export declare const definitions: (import("@webiny/project/defineExtension/index
31
29
  subnetIds: import("zod").ZodArray<import("zod").ZodString>;
32
30
  }, import("zod/v4/core").$strip>;
33
31
  }, import("zod/v4/core").$strip>>;
32
+ }, import("zod/v4/core").$strip>> | import("@webiny/project/defineExtension/index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
33
+ tags: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
34
34
  }, import("zod/v4/core").$strip>> | import("@webiny/project/defineExtension/index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
35
35
  enabled: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
36
36
  domainName: import("zod").ZodOptional<import("zod").ZodString>;
@@ -49,11 +49,11 @@ export declare const definitions: (import("@webiny/project/defineExtension/index
49
49
  minimumProtocolVersion: import("zod").ZodOptional<import("zod").ZodEnum<{
50
50
  SSLv3: "SSLv3";
51
51
  TLSv1: "TLSv1";
52
- TLSv1_2016: "TLSv1_2016";
53
52
  "TLSv1.1_2016": "TLSv1.1_2016";
54
53
  "TLSv1.2_2018": "TLSv1.2_2018";
55
54
  "TLSv1.2_2019": "TLSv1.2_2019";
56
55
  "TLSv1.2_2021": "TLSv1.2_2021";
56
+ TLSv1_2016: "TLSv1_2016";
57
57
  }>>;
58
58
  }, import("zod/v4/core").$strip>> | import("@webiny/project/defineExtension/index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
59
59
  enabled: import("zod").ZodDefault<import("zod").ZodBoolean>;