@webiny/project 6.6.0-alpha.1 → 6.6.0-alpha.10

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 (229) hide show
  1. package/abstractions/features/GetAppStackOutput.d.ts +3 -2
  2. package/abstractions/features/GetAppStackOutput.js.map +1 -1
  3. package/components/FeatureFlag.d.ts +9 -4
  4. package/components/FeatureFlag.js +6 -7
  5. package/components/FeatureFlag.js.map +1 -1
  6. package/createProjectSdkContainer.js +22 -9
  7. package/createProjectSdkContainer.js.map +1 -1
  8. package/decorators/GetFeatureFlagsWithLicense.js +1 -0
  9. package/decorators/GetFeatureFlagsWithLicense.js.map +1 -1
  10. package/defineExtension/createExtensionReactComponent.js +9 -1
  11. package/defineExtension/createExtensionReactComponent.js.map +1 -1
  12. package/defineExtension/types.d.ts +6 -1
  13. package/extensions/AdminApiUrl.js +2 -1
  14. package/extensions/AdminApiUrl.js.map +1 -1
  15. package/extensions/AdminBuildParam.js +5 -5
  16. package/extensions/AdminBuildParam.js.map +1 -1
  17. package/extensions/AdminExtension.d.ts +1 -1
  18. package/extensions/AdminExtension.js +6 -5
  19. package/extensions/AdminExtension.js.map +1 -1
  20. package/extensions/AdminWebsocketsUrl.d.ts +1 -1
  21. package/extensions/AdminWebsocketsUrl.js +2 -1
  22. package/extensions/AdminWebsocketsUrl.js.map +1 -1
  23. package/extensions/ApiBuildParam.js +11 -10
  24. package/extensions/ApiBuildParam.js.map +1 -1
  25. package/extensions/ApiExtension.d.ts +1 -1
  26. package/extensions/ApiExtension.js +8 -5
  27. package/extensions/ApiExtension.js.map +1 -1
  28. package/extensions/BugReporter.d.ts +6 -0
  29. package/extensions/BugReporter.js +34 -0
  30. package/extensions/BugReporter.js.map +1 -0
  31. package/extensions/DatabaseSetup.js +2 -1
  32. package/extensions/DatabaseSetup.js.map +1 -1
  33. package/extensions/EnvVar.js +2 -1
  34. package/extensions/EnvVar.js.map +1 -1
  35. package/extensions/ExtensionDefinitions.js +2 -1
  36. package/extensions/ExtensionDefinitions.js.map +1 -1
  37. package/extensions/FeatureFlags.d.ts +7 -1
  38. package/extensions/FeatureFlags.js +12 -2
  39. package/extensions/FeatureFlags.js.map +1 -1
  40. package/extensions/Project/WcpInjectTelemetryClientAfterBuild.js.map +1 -1
  41. package/extensions/Project/showConfigChangeNotice.d.ts +1 -1
  42. package/extensions/Project/showConfigChangeNotice.js.map +1 -1
  43. package/extensions/ProjectDecorator.js +2 -1
  44. package/extensions/ProjectDecorator.js.map +1 -1
  45. package/extensions/ProjectId.js +2 -1
  46. package/extensions/ProjectId.js.map +1 -1
  47. package/extensions/ProjectImplementation.js +2 -1
  48. package/extensions/ProjectImplementation.js.map +1 -1
  49. package/extensions/Telemetry.js +2 -1
  50. package/extensions/Telemetry.js.map +1 -1
  51. package/extensions/api/BackgroundTasks.d.ts +4 -0
  52. package/extensions/api/BackgroundTasks.js +25 -0
  53. package/extensions/api/BackgroundTasks.js.map +1 -0
  54. package/extensions/api/Cms/ModelFieldCompression.d.ts +4 -0
  55. package/extensions/api/Cms/ModelFieldCompression.js +25 -0
  56. package/extensions/api/Cms/ModelFieldCompression.js.map +1 -0
  57. package/extensions/api/Mailer/Smtp.d.ts +8 -0
  58. package/extensions/api/Mailer/Smtp.js +22 -0
  59. package/extensions/api/Mailer/Smtp.js.map +1 -0
  60. package/extensions/api/Mailer/Smtp.test.d.ts +1 -0
  61. package/extensions/api/Mailer/Smtp.test.js +127 -0
  62. package/extensions/api/Mailer/Smtp.test.js.map +1 -0
  63. package/extensions/api/Mailer/SmtpParamsSchema.d.ts +9 -0
  64. package/extensions/api/Mailer/SmtpParamsSchema.js +17 -0
  65. package/extensions/api/Mailer/SmtpParamsSchema.js.map +1 -0
  66. package/extensions/api/index.d.ts +4 -0
  67. package/extensions/api/index.js +4 -0
  68. package/extensions/hasDefaultExport.d.ts +2 -0
  69. package/extensions/hasDefaultExport.js +17 -0
  70. package/extensions/hasDefaultExport.js.map +1 -0
  71. package/extensions/hooks/AdminAfterBuild.js +2 -1
  72. package/extensions/hooks/AdminAfterBuild.js.map +1 -1
  73. package/extensions/hooks/AdminAfterDeploy.js +2 -1
  74. package/extensions/hooks/AdminAfterDeploy.js.map +1 -1
  75. package/extensions/hooks/AdminBeforeBuild.js +2 -1
  76. package/extensions/hooks/AdminBeforeBuild.js.map +1 -1
  77. package/extensions/hooks/AdminBeforeDeploy.js +2 -1
  78. package/extensions/hooks/AdminBeforeDeploy.js.map +1 -1
  79. package/extensions/hooks/AdminBeforeWatch.js +2 -1
  80. package/extensions/hooks/AdminBeforeWatch.js.map +1 -1
  81. package/extensions/hooks/AfterBuild.js +2 -1
  82. package/extensions/hooks/AfterBuild.js.map +1 -1
  83. package/extensions/hooks/AfterDeploy.js +2 -1
  84. package/extensions/hooks/AfterDeploy.js.map +1 -1
  85. package/extensions/hooks/ApiAfterBuild.js +2 -1
  86. package/extensions/hooks/ApiAfterBuild.js.map +1 -1
  87. package/extensions/hooks/ApiAfterDeploy.js +2 -1
  88. package/extensions/hooks/ApiAfterDeploy.js.map +1 -1
  89. package/extensions/hooks/ApiBeforeBuild.js +2 -1
  90. package/extensions/hooks/ApiBeforeBuild.js.map +1 -1
  91. package/extensions/hooks/ApiBeforeDeploy.js +2 -1
  92. package/extensions/hooks/ApiBeforeDeploy.js.map +1 -1
  93. package/extensions/hooks/ApiBeforeWatch.js +2 -1
  94. package/extensions/hooks/ApiBeforeWatch.js.map +1 -1
  95. package/extensions/hooks/BeforeBuild.js +2 -1
  96. package/extensions/hooks/BeforeBuild.js.map +1 -1
  97. package/extensions/hooks/BeforeDeploy.js +2 -1
  98. package/extensions/hooks/BeforeDeploy.js.map +1 -1
  99. package/extensions/hooks/BeforeWatch.js +2 -1
  100. package/extensions/hooks/BeforeWatch.js.map +1 -1
  101. package/extensions/hooks/CoreAfterBuild.js +2 -1
  102. package/extensions/hooks/CoreAfterBuild.js.map +1 -1
  103. package/extensions/hooks/CoreAfterDeploy.js +2 -1
  104. package/extensions/hooks/CoreAfterDeploy.js.map +1 -1
  105. package/extensions/hooks/CoreBeforeBuild.js +2 -1
  106. package/extensions/hooks/CoreBeforeBuild.js.map +1 -1
  107. package/extensions/hooks/CoreBeforeDeploy.js +2 -1
  108. package/extensions/hooks/CoreBeforeDeploy.js.map +1 -1
  109. package/extensions/hooks/CoreBeforeWatch.js +2 -1
  110. package/extensions/hooks/CoreBeforeWatch.js.map +1 -1
  111. package/extensions/hosting/assertHostingType.d.ts +13 -0
  112. package/extensions/hosting/assertHostingType.js +12 -0
  113. package/extensions/hosting/assertHostingType.js.map +1 -0
  114. package/extensions/hosting/extensionImplementations.d.ts +12 -0
  115. package/extensions/hosting/extensionImplementations.js +4 -0
  116. package/extensions/hosting/extensionImplementations.js.map +1 -0
  117. package/extensions/hosting/getExtensionImplementation.d.ts +1 -0
  118. package/extensions/hosting/getExtensionImplementation.js +9 -0
  119. package/extensions/hosting/getExtensionImplementation.js.map +1 -0
  120. package/extensions/hosting/hostingType.d.ts +2 -0
  121. package/extensions/hosting/hostingType.js +0 -0
  122. package/extensions/hosting/index.d.ts +4 -0
  123. package/extensions/hosting/index.js +4 -0
  124. package/extensions/hosting/registerExtensionImplementation.d.ts +12 -0
  125. package/extensions/hosting/registerExtensionImplementation.js +13 -0
  126. package/extensions/hosting/registerExtensionImplementation.js.map +1 -0
  127. package/extensions/index.d.ts +27 -29
  128. package/extensions/index.js +8 -11
  129. package/extensions/index.js.map +1 -1
  130. package/extensions/infra/Env.js +5 -0
  131. package/extensions/infra/Env.js.map +1 -1
  132. package/extensions/pulumi/ProductionEnvironments.js +2 -1
  133. package/extensions/pulumi/ProductionEnvironments.js.map +1 -1
  134. package/extensions/pulumi/PulumiResourceNamePrefix.js +2 -1
  135. package/extensions/pulumi/PulumiResourceNamePrefix.js.map +1 -1
  136. package/extensions/pulumi/index.d.ts +0 -3
  137. package/extensions/pulumi/index.js +0 -3
  138. package/features/Serve/Serve.d.ts +1 -1
  139. package/features/Serve/Serve.js.map +1 -1
  140. package/features/Watch/watchers/worker.js +3 -0
  141. package/features/Watch/watchers/worker.js.map +1 -1
  142. package/package.json +34 -33
  143. package/services/GetProjectConfigService/ConfigRenderErrorBoundary.d.ts +15 -0
  144. package/services/GetProjectConfigService/ConfigRenderErrorBoundary.js +23 -0
  145. package/services/GetProjectConfigService/ConfigRenderErrorBoundary.js.map +1 -0
  146. package/services/GetProjectConfigService/EnvContext.d.ts +3 -2
  147. package/services/GetProjectConfigService/EnvContext.js +4 -6
  148. package/services/GetProjectConfigService/EnvContext.js.map +1 -1
  149. package/services/GetProjectConfigService/GetProjectConfigService.js +14 -11
  150. package/services/GetProjectConfigService/GetProjectConfigService.js.map +1 -1
  151. package/services/GetProjectConfigService/LicenseDecoratedFeatureFlags.js +1 -0
  152. package/services/GetProjectConfigService/LicenseDecoratedFeatureFlags.js.map +1 -1
  153. package/services/GetProjectConfigService/WcpProjectLicenseContext.d.ts +1 -0
  154. package/services/GetProjectConfigService/WcpProjectLicenseContext.js +1 -0
  155. package/services/GetProjectConfigService/WcpProjectLicenseContext.js.map +1 -1
  156. package/services/GetProjectConfigService/getRenderCacheKey.d.ts +1 -0
  157. package/services/GetProjectConfigService/getRenderCacheKey.js +13 -0
  158. package/services/GetProjectConfigService/getRenderCacheKey.js.map +1 -0
  159. package/services/GetProjectConfigService/nullRenderer.d.ts +4 -0
  160. package/services/GetProjectConfigService/nullRenderer.js +83 -0
  161. package/services/GetProjectConfigService/nullRenderer.js.map +1 -0
  162. package/services/GetProjectConfigService/renderConfig.d.ts +3 -12
  163. package/services/GetProjectConfigService/renderConfig.js +10 -35
  164. package/services/GetProjectConfigService/renderConfig.js.map +1 -1
  165. package/services/GetProjectConfigService/renderExtensions.d.ts +8 -0
  166. package/services/GetProjectConfigService/renderExtensions.js +52 -0
  167. package/services/GetProjectConfigService/renderExtensions.js.map +1 -0
  168. package/services/InitProjectSdkService/InitProjectSdkService.js +5 -8
  169. package/services/InitProjectSdkService/InitProjectSdkService.js.map +1 -1
  170. package/services/InitProjectSdkService/applyWcpEnvVars.js +27 -9
  171. package/services/InitProjectSdkService/applyWcpEnvVars.js.map +1 -1
  172. package/services/ValidateProjectConfigService/ValidateProjectConfigService.js +10 -7
  173. package/services/ValidateProjectConfigService/ValidateProjectConfigService.js.map +1 -1
  174. package/services/WcpService/GetProjectEnvironment.js +16 -5
  175. package/services/WcpService/GetProjectEnvironment.js.map +1 -1
  176. package/services/WcpService/WcpGqlClient.js +2 -2
  177. package/services/WcpService/WcpGqlClient.js.map +1 -1
  178. package/services/WcpService/fetchProjectEnvironmentByApiKey.d.ts +8 -0
  179. package/services/WcpService/fetchProjectEnvironmentByApiKey.js +21 -0
  180. package/services/WcpService/fetchProjectEnvironmentByApiKey.js.map +1 -0
  181. package/utils/ExtensionSrcResolver.js +2 -2
  182. package/utils/ExtensionSrcResolver.js.map +1 -1
  183. package/utils/apiRuntimeEnv.d.ts +2 -2
  184. package/utils/apiRuntimeEnv.js.map +1 -1
  185. package/utils/index.d.ts +1 -0
  186. package/utils/index.js +1 -0
  187. package/utils/trace/TraceRecorder.d.ts +17 -0
  188. package/utils/trace/TraceRecorder.js +51 -0
  189. package/utils/trace/TraceRecorder.js.map +1 -0
  190. package/utils/trace/formatTraceReport.d.ts +2 -0
  191. package/utils/trace/formatTraceReport.js +53 -0
  192. package/utils/trace/formatTraceReport.js.map +1 -0
  193. package/utils/trace/index.d.ts +6 -0
  194. package/utils/trace/index.js +6 -0
  195. package/utils/trace/isTraceRequested.d.ts +1 -0
  196. package/utils/trace/isTraceRequested.js +12 -0
  197. package/utils/trace/isTraceRequested.js.map +1 -0
  198. package/utils/trace/startTrace.d.ts +1 -0
  199. package/utils/trace/startTrace.js +19 -0
  200. package/utils/trace/startTrace.js.map +1 -0
  201. package/utils/trace/trace.d.ts +1 -0
  202. package/utils/trace/trace.js +13 -0
  203. package/utils/trace/trace.js.map +1 -0
  204. package/utils/trace/traceAsync.d.ts +1 -0
  205. package/utils/trace/traceAsync.js +13 -0
  206. package/utils/trace/traceAsync.js.map +1 -0
  207. package/extensions/ApiMaxBundleSize.d.ts +0 -4
  208. package/extensions/ApiMaxBundleSize.js +0 -23
  209. package/extensions/ApiMaxBundleSize.js.map +0 -1
  210. package/extensions/infra/Encryption.d.ts +0 -10
  211. package/extensions/infra/Encryption.js +0 -36
  212. package/extensions/infra/Encryption.js.map +0 -1
  213. package/extensions/infra/Hashing.d.ts +0 -5
  214. package/extensions/infra/Hashing.js +0 -27
  215. package/extensions/infra/Hashing.js.map +0 -1
  216. package/extensions/pulumi/AdminStackOutputValue.d.ts +0 -5
  217. package/extensions/pulumi/AdminStackOutputValue.js +0 -18
  218. package/extensions/pulumi/AdminStackOutputValue.js.map +0 -1
  219. package/extensions/pulumi/ApiStackOutputValue.d.ts +0 -5
  220. package/extensions/pulumi/ApiStackOutputValue.js +0 -18
  221. package/extensions/pulumi/ApiStackOutputValue.js.map +0 -1
  222. package/extensions/pulumi/CoreStackOutputValue.d.ts +0 -5
  223. package/extensions/pulumi/CoreStackOutputValue.js +0 -18
  224. package/extensions/pulumi/CoreStackOutputValue.js.map +0 -1
  225. package/rslib-runtime.js +0 -14
  226. package/rslib-runtime.js.map +0 -1
  227. package/services/GetProjectConfigService/renderConfigWorker.d.ts +0 -1
  228. package/services/GetProjectConfigService/renderConfigWorker.js +0 -64
  229. package/services/GetProjectConfigService/renderConfigWorker.js.map +0 -1
@@ -5,7 +5,8 @@ import { z } from "zod";
5
5
  const BeforeWatch_BeforeWatch = defineExtension({
6
6
  type: "Project/BeforeWatch",
7
7
  tags: {
8
- runtimeContext: "project"
8
+ runtimeContext: "project",
9
+ hosting: "all"
9
10
  },
10
11
  description: "Add custom logic to be executed before the project watch process.",
11
12
  multiple: true,
@@ -1 +1 @@
1
- {"version":3,"file":"extensions/hooks/BeforeWatch.js","sources":["../../../src/extensions/hooks/BeforeWatch.ts"],"sourcesContent":["import { defineExtension } from \"~/defineExtension/index.js\";\nimport { zodSrcPath } from \"~/defineExtension/zodTypes/zodSrcPath.js\";\nimport { BeforeWatch as BeforeWatchAbstraction } from \"~/abstractions/index.js\";\nimport { z } from \"zod\";\n\nexport const BeforeWatch = defineExtension({\n type: \"Project/BeforeWatch\",\n tags: { runtimeContext: \"project\" },\n description: \"Add custom logic to be executed before the project watch process.\",\n multiple: true,\n paramsSchema: ({ project }) => {\n return z.object({\n src: zodSrcPath({ project, abstraction: BeforeWatchAbstraction })\n });\n }\n});\n"],"names":["BeforeWatch","defineExtension","project","z","zodSrcPath","BeforeWatchAbstraction"],"mappings":";;;;AAKO,MAAMA,0BAAcC,gBAAgB;IACvC,MAAM;IACN,MAAM;QAAE,gBAAgB;IAAU;IAClC,aAAa;IACb,UAAU;IACV,cAAc,CAAC,EAAEC,OAAO,EAAE,GACfC,EAAE,MAAM,CAAC;YACZ,KAAKC,WAAW;gBAAEF;gBAAS,aAAaG;YAAuB;QACnE;AAER"}
1
+ {"version":3,"file":"extensions/hooks/BeforeWatch.js","sources":["../../../src/extensions/hooks/BeforeWatch.ts"],"sourcesContent":["import { defineExtension } from \"~/defineExtension/index.js\";\nimport { zodSrcPath } from \"~/defineExtension/zodTypes/zodSrcPath.js\";\nimport { BeforeWatch as BeforeWatchAbstraction } from \"~/abstractions/index.js\";\nimport { z } from \"zod\";\n\nexport const BeforeWatch = defineExtension({\n type: \"Project/BeforeWatch\",\n tags: { runtimeContext: \"project\", hosting: \"all\" },\n description: \"Add custom logic to be executed before the project watch process.\",\n multiple: true,\n paramsSchema: ({ project }) => {\n return z.object({\n src: zodSrcPath({ project, abstraction: BeforeWatchAbstraction })\n });\n }\n});\n"],"names":["BeforeWatch","defineExtension","project","z","zodSrcPath","BeforeWatchAbstraction"],"mappings":";;;;AAKO,MAAMA,0BAAcC,gBAAgB;IACvC,MAAM;IACN,MAAM;QAAE,gBAAgB;QAAW,SAAS;IAAM;IAClD,aAAa;IACb,UAAU;IACV,cAAc,CAAC,EAAEC,OAAO,EAAE,GACfC,EAAE,MAAM,CAAC;YACZ,KAAKC,WAAW;gBAAEF;gBAAS,aAAaG;YAAuB;QACnE;AAER"}
@@ -6,7 +6,8 @@ const CoreAfterBuild_CoreAfterBuild = defineExtension({
6
6
  type: "Core/AfterBuild",
7
7
  tags: {
8
8
  runtimeContext: "project",
9
- application: "core"
9
+ application: "core",
10
+ hosting: "aws"
10
11
  },
11
12
  description: "Add custom logic to be executed after the CORE build process.",
12
13
  multiple: true,
@@ -1 +1 @@
1
- {"version":3,"file":"extensions/hooks/CoreAfterBuild.js","sources":["../../../src/extensions/hooks/CoreAfterBuild.ts"],"sourcesContent":["import { defineExtension } from \"~/defineExtension/index.js\";\nimport { zodSrcPath } from \"~/defineExtension/zodTypes/zodSrcPath.js\";\nimport { CoreAfterBuild as CoreAfterBuildAbstraction } from \"~/abstractions/index.js\";\nimport { z } from \"zod\";\n\nexport const CoreAfterBuild = defineExtension({\n type: \"Core/AfterBuild\",\n tags: { runtimeContext: \"project\", application: \"core\" },\n description: \"Add custom logic to be executed after the CORE build process.\",\n multiple: true,\n paramsSchema: ({ project }) => {\n return z.object({\n src: zodSrcPath({ project, abstraction: CoreAfterBuildAbstraction })\n });\n }\n});\n"],"names":["CoreAfterBuild","defineExtension","project","z","zodSrcPath","CoreAfterBuildAbstraction"],"mappings":";;;;AAKO,MAAMA,gCAAiBC,gBAAgB;IAC1C,MAAM;IACN,MAAM;QAAE,gBAAgB;QAAW,aAAa;IAAO;IACvD,aAAa;IACb,UAAU;IACV,cAAc,CAAC,EAAEC,OAAO,EAAE,GACfC,EAAE,MAAM,CAAC;YACZ,KAAKC,WAAW;gBAAEF;gBAAS,aAAaG;YAA0B;QACtE;AAER"}
1
+ {"version":3,"file":"extensions/hooks/CoreAfterBuild.js","sources":["../../../src/extensions/hooks/CoreAfterBuild.ts"],"sourcesContent":["import { defineExtension } from \"~/defineExtension/index.js\";\nimport { zodSrcPath } from \"~/defineExtension/zodTypes/zodSrcPath.js\";\nimport { CoreAfterBuild as CoreAfterBuildAbstraction } from \"~/abstractions/index.js\";\nimport { z } from \"zod\";\n\nexport const CoreAfterBuild = defineExtension({\n type: \"Core/AfterBuild\",\n tags: { runtimeContext: \"project\", application: \"core\", hosting: \"aws\" },\n description: \"Add custom logic to be executed after the CORE build process.\",\n multiple: true,\n paramsSchema: ({ project }) => {\n return z.object({\n src: zodSrcPath({ project, abstraction: CoreAfterBuildAbstraction })\n });\n }\n});\n"],"names":["CoreAfterBuild","defineExtension","project","z","zodSrcPath","CoreAfterBuildAbstraction"],"mappings":";;;;AAKO,MAAMA,gCAAiBC,gBAAgB;IAC1C,MAAM;IACN,MAAM;QAAE,gBAAgB;QAAW,aAAa;QAAQ,SAAS;IAAM;IACvE,aAAa;IACb,UAAU;IACV,cAAc,CAAC,EAAEC,OAAO,EAAE,GACfC,EAAE,MAAM,CAAC;YACZ,KAAKC,WAAW;gBAAEF;gBAAS,aAAaG;YAA0B;QACtE;AAER"}
@@ -6,7 +6,8 @@ const CoreAfterDeploy_CoreAfterDeploy = defineExtension({
6
6
  type: "Core/AfterDeploy",
7
7
  tags: {
8
8
  runtimeContext: "project",
9
- application: "core"
9
+ application: "core",
10
+ hosting: "aws"
10
11
  },
11
12
  description: "Add custom logic to be executed after the CORE deployment process.",
12
13
  multiple: true,
@@ -1 +1 @@
1
- {"version":3,"file":"extensions/hooks/CoreAfterDeploy.js","sources":["../../../src/extensions/hooks/CoreAfterDeploy.ts"],"sourcesContent":["import { defineExtension } from \"~/defineExtension/index.js\";\nimport { zodSrcPath } from \"~/defineExtension/zodTypes/zodSrcPath.js\";\nimport { CoreAfterDeploy as CoreAfterDeployAbstraction } from \"~/abstractions/index.js\";\nimport { z } from \"zod\";\n\nexport const CoreAfterDeploy = defineExtension({\n type: \"Core/AfterDeploy\",\n tags: { runtimeContext: \"project\", application: \"core\" },\n description: \"Add custom logic to be executed after the CORE deployment process.\",\n multiple: true,\n paramsSchema: ({ project }) => {\n return z.object({\n src: zodSrcPath({ project, abstraction: CoreAfterDeployAbstraction })\n });\n }\n});\n"],"names":["CoreAfterDeploy","defineExtension","project","z","zodSrcPath","CoreAfterDeployAbstraction"],"mappings":";;;;AAKO,MAAMA,kCAAkBC,gBAAgB;IAC3C,MAAM;IACN,MAAM;QAAE,gBAAgB;QAAW,aAAa;IAAO;IACvD,aAAa;IACb,UAAU;IACV,cAAc,CAAC,EAAEC,OAAO,EAAE,GACfC,EAAE,MAAM,CAAC;YACZ,KAAKC,WAAW;gBAAEF;gBAAS,aAAaG;YAA2B;QACvE;AAER"}
1
+ {"version":3,"file":"extensions/hooks/CoreAfterDeploy.js","sources":["../../../src/extensions/hooks/CoreAfterDeploy.ts"],"sourcesContent":["import { defineExtension } from \"~/defineExtension/index.js\";\nimport { zodSrcPath } from \"~/defineExtension/zodTypes/zodSrcPath.js\";\nimport { CoreAfterDeploy as CoreAfterDeployAbstraction } from \"~/abstractions/index.js\";\nimport { z } from \"zod\";\n\nexport const CoreAfterDeploy = defineExtension({\n type: \"Core/AfterDeploy\",\n tags: { runtimeContext: \"project\", application: \"core\", hosting: \"aws\" },\n description: \"Add custom logic to be executed after the CORE deployment process.\",\n multiple: true,\n paramsSchema: ({ project }) => {\n return z.object({\n src: zodSrcPath({ project, abstraction: CoreAfterDeployAbstraction })\n });\n }\n});\n"],"names":["CoreAfterDeploy","defineExtension","project","z","zodSrcPath","CoreAfterDeployAbstraction"],"mappings":";;;;AAKO,MAAMA,kCAAkBC,gBAAgB;IAC3C,MAAM;IACN,MAAM;QAAE,gBAAgB;QAAW,aAAa;QAAQ,SAAS;IAAM;IACvE,aAAa;IACb,UAAU;IACV,cAAc,CAAC,EAAEC,OAAO,EAAE,GACfC,EAAE,MAAM,CAAC;YACZ,KAAKC,WAAW;gBAAEF;gBAAS,aAAaG;YAA2B;QACvE;AAER"}
@@ -6,7 +6,8 @@ const CoreBeforeBuild_CoreBeforeBuild = defineExtension({
6
6
  type: "Core/BeforeBuild",
7
7
  tags: {
8
8
  runtimeContext: "project",
9
- application: "core"
9
+ application: "core",
10
+ hosting: "aws"
10
11
  },
11
12
  description: "Add custom logic to be executed before the CORE build process.",
12
13
  multiple: true,
@@ -1 +1 @@
1
- {"version":3,"file":"extensions/hooks/CoreBeforeBuild.js","sources":["../../../src/extensions/hooks/CoreBeforeBuild.ts"],"sourcesContent":["import { defineExtension } from \"~/defineExtension/index.js\";\nimport { zodSrcPath } from \"~/defineExtension/zodTypes/zodSrcPath.js\";\nimport { CoreBeforeBuild as CoreBeforeBuildAbstraction } from \"~/abstractions/index.js\";\nimport { z } from \"zod\";\n\nexport const CoreBeforeBuild = defineExtension({\n type: \"Core/BeforeBuild\",\n tags: { runtimeContext: \"project\", application: \"core\" },\n description: \"Add custom logic to be executed before the CORE build process.\",\n multiple: true,\n paramsSchema: ({ project }) => {\n return z.object({\n src: zodSrcPath({ project, abstraction: CoreBeforeBuildAbstraction })\n });\n }\n});\n"],"names":["CoreBeforeBuild","defineExtension","project","z","zodSrcPath","CoreBeforeBuildAbstraction"],"mappings":";;;;AAKO,MAAMA,kCAAkBC,gBAAgB;IAC3C,MAAM;IACN,MAAM;QAAE,gBAAgB;QAAW,aAAa;IAAO;IACvD,aAAa;IACb,UAAU;IACV,cAAc,CAAC,EAAEC,OAAO,EAAE,GACfC,EAAE,MAAM,CAAC;YACZ,KAAKC,WAAW;gBAAEF;gBAAS,aAAaG;YAA2B;QACvE;AAER"}
1
+ {"version":3,"file":"extensions/hooks/CoreBeforeBuild.js","sources":["../../../src/extensions/hooks/CoreBeforeBuild.ts"],"sourcesContent":["import { defineExtension } from \"~/defineExtension/index.js\";\nimport { zodSrcPath } from \"~/defineExtension/zodTypes/zodSrcPath.js\";\nimport { CoreBeforeBuild as CoreBeforeBuildAbstraction } from \"~/abstractions/index.js\";\nimport { z } from \"zod\";\n\nexport const CoreBeforeBuild = defineExtension({\n type: \"Core/BeforeBuild\",\n tags: { runtimeContext: \"project\", application: \"core\", hosting: \"aws\" },\n description: \"Add custom logic to be executed before the CORE build process.\",\n multiple: true,\n paramsSchema: ({ project }) => {\n return z.object({\n src: zodSrcPath({ project, abstraction: CoreBeforeBuildAbstraction })\n });\n }\n});\n"],"names":["CoreBeforeBuild","defineExtension","project","z","zodSrcPath","CoreBeforeBuildAbstraction"],"mappings":";;;;AAKO,MAAMA,kCAAkBC,gBAAgB;IAC3C,MAAM;IACN,MAAM;QAAE,gBAAgB;QAAW,aAAa;QAAQ,SAAS;IAAM;IACvE,aAAa;IACb,UAAU;IACV,cAAc,CAAC,EAAEC,OAAO,EAAE,GACfC,EAAE,MAAM,CAAC;YACZ,KAAKC,WAAW;gBAAEF;gBAAS,aAAaG;YAA2B;QACvE;AAER"}
@@ -6,7 +6,8 @@ const CoreBeforeDeploy_CoreBeforeDeploy = defineExtension({
6
6
  type: "Core/BeforeDeploy",
7
7
  tags: {
8
8
  runtimeContext: "project",
9
- application: "core"
9
+ application: "core",
10
+ hosting: "aws"
10
11
  },
11
12
  description: "Add custom logic to be executed before the CORE deployment process.",
12
13
  multiple: true,
@@ -1 +1 @@
1
- {"version":3,"file":"extensions/hooks/CoreBeforeDeploy.js","sources":["../../../src/extensions/hooks/CoreBeforeDeploy.ts"],"sourcesContent":["import { defineExtension } from \"~/defineExtension/index.js\";\nimport { zodSrcPath } from \"~/defineExtension/zodTypes/zodSrcPath.js\";\nimport { CoreBeforeDeploy as CoreBeforeDeployAbstraction } from \"~/abstractions/index.js\";\nimport { z } from \"zod\";\n\nexport const CoreBeforeDeploy = defineExtension({\n type: \"Core/BeforeDeploy\",\n tags: { runtimeContext: \"project\", application: \"core\" },\n description: \"Add custom logic to be executed before the CORE deployment process.\",\n multiple: true,\n paramsSchema: ({ project }) => {\n return z.object({\n src: zodSrcPath({ project, abstraction: CoreBeforeDeployAbstraction })\n });\n }\n});\n"],"names":["CoreBeforeDeploy","defineExtension","project","z","zodSrcPath","CoreBeforeDeployAbstraction"],"mappings":";;;;AAKO,MAAMA,oCAAmBC,gBAAgB;IAC5C,MAAM;IACN,MAAM;QAAE,gBAAgB;QAAW,aAAa;IAAO;IACvD,aAAa;IACb,UAAU;IACV,cAAc,CAAC,EAAEC,OAAO,EAAE,GACfC,EAAE,MAAM,CAAC;YACZ,KAAKC,WAAW;gBAAEF;gBAAS,aAAaG;YAA4B;QACxE;AAER"}
1
+ {"version":3,"file":"extensions/hooks/CoreBeforeDeploy.js","sources":["../../../src/extensions/hooks/CoreBeforeDeploy.ts"],"sourcesContent":["import { defineExtension } from \"~/defineExtension/index.js\";\nimport { zodSrcPath } from \"~/defineExtension/zodTypes/zodSrcPath.js\";\nimport { CoreBeforeDeploy as CoreBeforeDeployAbstraction } from \"~/abstractions/index.js\";\nimport { z } from \"zod\";\n\nexport const CoreBeforeDeploy = defineExtension({\n type: \"Core/BeforeDeploy\",\n tags: { runtimeContext: \"project\", application: \"core\", hosting: \"aws\" },\n description: \"Add custom logic to be executed before the CORE deployment process.\",\n multiple: true,\n paramsSchema: ({ project }) => {\n return z.object({\n src: zodSrcPath({ project, abstraction: CoreBeforeDeployAbstraction })\n });\n }\n});\n"],"names":["CoreBeforeDeploy","defineExtension","project","z","zodSrcPath","CoreBeforeDeployAbstraction"],"mappings":";;;;AAKO,MAAMA,oCAAmBC,gBAAgB;IAC5C,MAAM;IACN,MAAM;QAAE,gBAAgB;QAAW,aAAa;QAAQ,SAAS;IAAM;IACvE,aAAa;IACb,UAAU;IACV,cAAc,CAAC,EAAEC,OAAO,EAAE,GACfC,EAAE,MAAM,CAAC;YACZ,KAAKC,WAAW;gBAAEF;gBAAS,aAAaG;YAA4B;QACxE;AAER"}
@@ -6,7 +6,8 @@ const CoreBeforeWatch_CoreBeforeWatch = defineExtension({
6
6
  type: "Core/BeforeWatch",
7
7
  tags: {
8
8
  runtimeContext: "project",
9
- application: "core"
9
+ application: "core",
10
+ hosting: "aws"
10
11
  },
11
12
  description: "Add custom logic to be executed before the CORE watch process.",
12
13
  multiple: true,
@@ -1 +1 @@
1
- {"version":3,"file":"extensions/hooks/CoreBeforeWatch.js","sources":["../../../src/extensions/hooks/CoreBeforeWatch.ts"],"sourcesContent":["import { defineExtension } from \"~/defineExtension/index.js\";\nimport { zodSrcPath } from \"~/defineExtension/zodTypes/zodSrcPath.js\";\nimport { CoreBeforeWatch as CoreBeforeWatchAbstraction } from \"~/abstractions/index.js\";\nimport { z } from \"zod\";\n\nexport const CoreBeforeWatch = defineExtension({\n type: \"Core/BeforeWatch\",\n tags: { runtimeContext: \"project\", application: \"core\" },\n description: \"Add custom logic to be executed before the CORE watch process.\",\n multiple: true,\n paramsSchema: ({ project }) => {\n return z.object({\n src: zodSrcPath({ project, abstraction: CoreBeforeWatchAbstraction })\n });\n }\n});\n"],"names":["CoreBeforeWatch","defineExtension","project","z","zodSrcPath","CoreBeforeWatchAbstraction"],"mappings":";;;;AAKO,MAAMA,kCAAkBC,gBAAgB;IAC3C,MAAM;IACN,MAAM;QAAE,gBAAgB;QAAW,aAAa;IAAO;IACvD,aAAa;IACb,UAAU;IACV,cAAc,CAAC,EAAEC,OAAO,EAAE,GACfC,EAAE,MAAM,CAAC;YACZ,KAAKC,WAAW;gBAAEF;gBAAS,aAAaG;YAA2B;QACvE;AAER"}
1
+ {"version":3,"file":"extensions/hooks/CoreBeforeWatch.js","sources":["../../../src/extensions/hooks/CoreBeforeWatch.ts"],"sourcesContent":["import { defineExtension } from \"~/defineExtension/index.js\";\nimport { zodSrcPath } from \"~/defineExtension/zodTypes/zodSrcPath.js\";\nimport { CoreBeforeWatch as CoreBeforeWatchAbstraction } from \"~/abstractions/index.js\";\nimport { z } from \"zod\";\n\nexport const CoreBeforeWatch = defineExtension({\n type: \"Core/BeforeWatch\",\n tags: { runtimeContext: \"project\", application: \"core\", hosting: \"aws\" },\n description: \"Add custom logic to be executed before the CORE watch process.\",\n multiple: true,\n paramsSchema: ({ project }) => {\n return z.object({\n src: zodSrcPath({ project, abstraction: CoreBeforeWatchAbstraction })\n });\n }\n});\n"],"names":["CoreBeforeWatch","defineExtension","project","z","zodSrcPath","CoreBeforeWatchAbstraction"],"mappings":";;;;AAKO,MAAMA,kCAAkBC,gBAAgB;IAC3C,MAAM;IACN,MAAM;QAAE,gBAAgB;QAAW,aAAa;QAAQ,SAAS;IAAM;IACvE,aAAa;IACb,UAAU;IACV,cAAc,CAAC,EAAEC,OAAO,EAAE,GACfC,EAAE,MAAM,CAAC;YACZ,KAAKC,WAAW;gBAAEF;gBAAS,aAAaG;YAA2B;QACvE;AAER"}
@@ -0,0 +1,13 @@
1
+ import type { ExtensionHosting } from "./hostingType.js";
2
+ /**
3
+ * Throws if the project's hosting type is not the one an extension is for.
4
+ *
5
+ * `webiny/extensions` exposes one set of namespaces for every project, so `Infra.Vpc` can be
6
+ * imported in a standalone project and `Infra.Sqlite` in an AWS one. Rendering either in the
7
+ * wrong project throws, instead of the extension being skipped because the hosting package never
8
+ * registered its definition.
9
+ *
10
+ * The current hosting type comes from `WEBINY_HOSTING_TYPE`, which the `webiny` bin of
11
+ * `@webiny/cli-aws` and `@webiny/cli-standalone` sets. When it isn't set, nothing is checked.
12
+ */
13
+ export declare const assertHostingType: (name: string, hosting: ExtensionHosting) => void;
@@ -0,0 +1,12 @@
1
+ const HOSTING_TYPE_LABELS = {
2
+ aws: "AWS",
3
+ standalone: "standalone"
4
+ };
5
+ const assertHostingType = (name, hosting)=>{
6
+ const current = process.env.WEBINY_HOSTING_TYPE;
7
+ if ("all" === hosting || !current || current === hosting) return;
8
+ throw new Error(`"${name}" is only available in ${HOSTING_TYPE_LABELS[hosting]} projects. This project's hosting type is "${current}".`);
9
+ };
10
+ export { assertHostingType };
11
+
12
+ //# sourceMappingURL=assertHostingType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extensions/hosting/assertHostingType.js","sources":["../../../src/extensions/hosting/assertHostingType.ts"],"sourcesContent":["import type { ExtensionHosting } from \"./hostingType.js\";\nimport type { HostingType } from \"./hostingType.js\";\n\nconst HOSTING_TYPE_LABELS: Record<HostingType, string> = {\n aws: \"AWS\",\n standalone: \"standalone\"\n};\n\n/**\n * Throws if the project's hosting type is not the one an extension is for.\n *\n * `webiny/extensions` exposes one set of namespaces for every project, so `Infra.Vpc` can be\n * imported in a standalone project and `Infra.Sqlite` in an AWS one. Rendering either in the\n * wrong project throws, instead of the extension being skipped because the hosting package never\n * registered its definition.\n *\n * The current hosting type comes from `WEBINY_HOSTING_TYPE`, which the `webiny` bin of\n * `@webiny/cli-aws` and `@webiny/cli-standalone` sets. When it isn't set, nothing is checked.\n */\nexport const assertHostingType = (name: string, hosting: ExtensionHosting) => {\n const current = process.env.WEBINY_HOSTING_TYPE;\n if (hosting === \"all\" || !current || current === hosting) {\n return;\n }\n\n throw new Error(\n `\"${name}\" is only available in ${HOSTING_TYPE_LABELS[hosting]} projects. This project's hosting type is \"${current}\".`\n );\n};\n"],"names":["HOSTING_TYPE_LABELS","assertHostingType","name","hosting","current","process","Error"],"mappings":"AAGA,MAAMA,sBAAmD;IACrD,KAAK;IACL,YAAY;AAChB;AAaO,MAAMC,oBAAoB,CAACC,MAAcC;IAC5C,MAAMC,UAAUC,QAAQ,GAAG,CAAC,mBAAmB;IAC/C,IAAIF,AAAY,UAAZA,WAAqB,CAACC,WAAWA,YAAYD,SAC7C;IAGJ,MAAM,IAAIG,MACN,CAAC,CAAC,EAAEJ,KAAK,uBAAuB,EAAEF,mBAAmB,CAACG,QAAQ,CAAC,2CAA2C,EAAEC,QAAQ,EAAE,CAAC;AAE/H"}
@@ -0,0 +1,12 @@
1
+ import type React from "react";
2
+ /**
3
+ * Some extensions need code from a hosting package when they render. For example,
4
+ * `Infra.OpenSearch` renders Pulumi hooks that live in `@webiny/project-aws`, which the shared
5
+ * namespaces can't depend on. The hosting package registers its component for the extension type
6
+ * (`registerExtensionImplementation`), and every component created with `defineExtension` for that
7
+ * type renders the registered one in projects of that hosting type (`getExtensionImplementation`).
8
+ *
9
+ * Keyed by hosting type and extension type: a type can have a registered implementation in one
10
+ * hosting type and none in the other, e.g. `Project/OpenSearch` in AWS only.
11
+ */
12
+ export declare const extensionImplementations: Map<string, React.ComponentType<any>>;
@@ -0,0 +1,4 @@
1
+ const extensionImplementations = new Map();
2
+ export { extensionImplementations };
3
+
4
+ //# sourceMappingURL=extensionImplementations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extensions/hosting/extensionImplementations.js","sources":["../../../src/extensions/hosting/extensionImplementations.ts"],"sourcesContent":["import type React from \"react\";\n\n/**\n * Some extensions need code from a hosting package when they render. For example,\n * `Infra.OpenSearch` renders Pulumi hooks that live in `@webiny/project-aws`, which the shared\n * namespaces can't depend on. The hosting package registers its component for the extension type\n * (`registerExtensionImplementation`), and every component created with `defineExtension` for that\n * type renders the registered one in projects of that hosting type (`getExtensionImplementation`).\n *\n * Keyed by hosting type and extension type: a type can have a registered implementation in one\n * hosting type and none in the other, e.g. `Project/OpenSearch` in AWS only.\n */\nexport const extensionImplementations = new Map<string, React.ComponentType<any>>();\n"],"names":["extensionImplementations","Map"],"mappings":"AAYO,MAAMA,2BAA2B,IAAIC"}
@@ -0,0 +1 @@
1
+ export declare const getExtensionImplementation: (type: string) => import("react").ComponentType<any> | undefined;
@@ -0,0 +1,9 @@
1
+ import { extensionImplementations } from "./extensionImplementations.js";
2
+ const getExtensionImplementation = (type)=>{
3
+ const hostingType = process.env.WEBINY_HOSTING_TYPE;
4
+ if (!hostingType) return;
5
+ return extensionImplementations.get(`${hostingType}:${type}`);
6
+ };
7
+ export { getExtensionImplementation };
8
+
9
+ //# sourceMappingURL=getExtensionImplementation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extensions/hosting/getExtensionImplementation.js","sources":["../../../src/extensions/hosting/getExtensionImplementation.ts"],"sourcesContent":["import { extensionImplementations } from \"./extensionImplementations.js\";\n\nexport const getExtensionImplementation = (type: string) => {\n const hostingType = process.env.WEBINY_HOSTING_TYPE;\n if (!hostingType) {\n return undefined;\n }\n return extensionImplementations.get(`${hostingType}:${type}`);\n};\n"],"names":["getExtensionImplementation","type","hostingType","process","extensionImplementations"],"mappings":";AAEO,MAAMA,6BAA6B,CAACC;IACvC,MAAMC,cAAcC,QAAQ,GAAG,CAAC,mBAAmB;IACnD,IAAI,CAACD,aACD;IAEJ,OAAOE,yBAAyB,GAAG,CAAC,GAAGF,YAAY,CAAC,EAAED,MAAM;AAChE"}
@@ -0,0 +1,2 @@
1
+ export type HostingType = "aws" | "standalone";
2
+ export type ExtensionHosting = HostingType | "all";
File without changes
@@ -0,0 +1,4 @@
1
+ export * from "./assertHostingType.js";
2
+ export * from "./getExtensionImplementation.js";
3
+ export * from "./hostingType.js";
4
+ export * from "./registerExtensionImplementation.js";
@@ -0,0 +1,4 @@
1
+ export * from "./assertHostingType.js";
2
+ export * from "./getExtensionImplementation.js";
3
+ export * from "./hostingType.js";
4
+ export * from "./registerExtensionImplementation.js";
@@ -0,0 +1,12 @@
1
+ import type React from "react";
2
+ import type { HostingType } from "./hostingType.js";
3
+ type ExtensionComponent = React.ComponentType<any> & {
4
+ def?: {
5
+ type: string;
6
+ };
7
+ };
8
+ /**
9
+ * Returns a function that removes the registration again.
10
+ */
11
+ export declare const registerExtensionImplementation: (hostingType: HostingType, spec: ExtensionComponent, implementation: React.ComponentType<any>) => () => void;
12
+ export {};
@@ -0,0 +1,13 @@
1
+ import { extensionImplementations } from "./extensionImplementations.js";
2
+ const registerExtensionImplementation = (hostingType, spec, implementation)=>{
3
+ const type = spec.def?.type;
4
+ if (!type) throw new Error('Only components created with "defineExtension" can have a registered implementation.');
5
+ const key = `${hostingType}:${type}`;
6
+ extensionImplementations.set(key, implementation);
7
+ return ()=>{
8
+ extensionImplementations["delete"](key);
9
+ };
10
+ };
11
+ export { registerExtensionImplementation };
12
+
13
+ //# sourceMappingURL=registerExtensionImplementation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extensions/hosting/registerExtensionImplementation.js","sources":["../../../src/extensions/hosting/registerExtensionImplementation.ts"],"sourcesContent":["import type React from \"react\";\nimport type { HostingType } from \"./hostingType.js\";\nimport { extensionImplementations } from \"./extensionImplementations.js\";\n\ntype ExtensionComponent = React.ComponentType<any> & { def?: { type: string } };\n\n/**\n * Returns a function that removes the registration again.\n */\nexport const registerExtensionImplementation = (\n hostingType: HostingType,\n spec: ExtensionComponent,\n implementation: React.ComponentType<any>\n) => {\n const type = spec.def?.type;\n if (!type) {\n throw new Error(\n `Only components created with \"defineExtension\" can have a registered implementation.`\n );\n }\n const key = `${hostingType}:${type}`;\n extensionImplementations.set(key, implementation);\n\n return () => {\n extensionImplementations.delete(key);\n };\n};\n"],"names":["registerExtensionImplementation","hostingType","spec","implementation","type","Error","key","extensionImplementations"],"mappings":";AASO,MAAMA,kCAAkC,CAC3CC,aACAC,MACAC;IAEA,MAAMC,OAAOF,KAAK,GAAG,EAAE;IACvB,IAAI,CAACE,MACD,MAAM,IAAIC,MACN;IAGR,MAAMC,MAAM,GAAGL,YAAY,CAAC,EAAEG,MAAM;IACpCG,yBAAyB,GAAG,CAACD,KAAKH;IAElC,OAAO;QACHI,wBAAwB,CAAxBA,SAA+B,CAACD;IACpC;AACJ"}
@@ -6,17 +6,15 @@ import { Telemetry } from "./Telemetry.js";
6
6
  import { EnvVar } from "./EnvVar.js";
7
7
  import { DatabaseSetup } from "./DatabaseSetup.js";
8
8
  import { FeatureFlags } from "./FeatureFlags.js";
9
+ import { BugReporter } from "./BugReporter.js";
9
10
  import { BuildParam } from "./ApiBuildParam.js";
10
11
  import { AdminBuildParam } from "./AdminBuildParam.js";
11
12
  import { AdminApiUrl } from "./AdminApiUrl.js";
12
13
  import { AdminWebsocketsUrl } from "./AdminWebsocketsUrl.js";
13
14
  import { AdminExtension } from "./AdminExtension.js";
14
15
  import { ApiExtension } from "./ApiExtension.js";
15
- import { ApiMaxBundleSize } from "./ApiMaxBundleSize.js";
16
- import { Encryption } from "./infra/Encryption.js";
17
- import { Hashing } from "./infra/Hashing.js";
18
16
  import { AdminAfterBuild, AdminAfterDeploy, AdminBeforeBuild, AdminBeforeDeploy, AdminBeforeWatch, AfterBuild, AfterDeploy, BeforeDeploy, BeforeWatch, ApiAfterBuild, ApiAfterDeploy, ApiBeforeBuild, ApiBeforeDeploy, ApiBeforeWatch, BeforeBuild, CoreAfterBuild, CoreAfterDeploy, CoreBeforeBuild, CoreBeforeDeploy, CoreBeforeWatch } from "./hooks/index.js";
19
- import { ProductionEnvironments, PulumiResourceNamePrefix, CoreStackOutputValue, ApiStackOutputValue, AdminStackOutputValue } from "./pulumi/index.js";
17
+ import { ProductionEnvironments, PulumiResourceNamePrefix } from "./pulumi/index.js";
20
18
  export { Telemetry };
21
19
  export { ProjectId };
22
20
  export { ProjectDecorator };
@@ -24,6 +22,7 @@ export { ProjectImplementation };
24
22
  export { ExtensionDefinitions };
25
23
  export { EnvVar };
26
24
  export { FeatureFlags };
25
+ export { BugReporter };
27
26
  export { DatabaseSetup };
28
27
  export { BuildParam };
29
28
  export { AdminBuildParam };
@@ -31,9 +30,6 @@ export { AdminApiUrl };
31
30
  export { AdminWebsocketsUrl };
32
31
  export { AdminExtension };
33
32
  export { ApiExtension };
34
- export { ApiMaxBundleSize };
35
- export { Encryption };
36
- export { Hashing };
37
33
  export { BeforeBuild };
38
34
  export { BeforeDeploy };
39
35
  export { BeforeWatch };
@@ -56,16 +52,10 @@ export { CoreAfterBuild };
56
52
  export { CoreAfterDeploy };
57
53
  export { PulumiResourceNamePrefix };
58
54
  export { ProductionEnvironments };
59
- export { CoreStackOutputValue };
60
- export { ApiStackOutputValue };
61
- export { AdminStackOutputValue };
62
55
  export declare const definitions: (import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
63
- key: import("zod").ZodString;
64
- value: import("zod").ZodAny;
56
+ prefix: import("zod").ZodString;
65
57
  }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
66
58
  environments: import("zod").ZodArray<import("zod").ZodString>;
67
- }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
68
- prefix: import("zod").ZodString;
69
59
  }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
70
60
  enabled: import("zod").ZodDefault<import("zod").ZodBoolean>;
71
61
  }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
@@ -74,6 +64,7 @@ export declare const definitions: (import("./index.js").ExtensionDefinitionModel
74
64
  }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
75
65
  features: import("zod").ZodObject<{
76
66
  multiTenancy: import("zod").ZodOptional<import("zod").ZodBoolean>;
67
+ languages: import("zod").ZodOptional<import("zod").ZodBoolean>;
77
68
  advancedPublishingWorkflow: import("zod").ZodOptional<import("zod").ZodBoolean>;
78
69
  advancedAccessControlLayer: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodBoolean, import("zod").ZodObject<{
79
70
  teams: import("zod").ZodOptional<import("zod").ZodBoolean>;
@@ -95,6 +86,7 @@ export declare const definitions: (import("./index.js").ExtensionDefinitionModel
95
86
  imageEnrichment: import("zod").ZodOptional<import("zod").ZodBoolean>;
96
87
  }, import("zod/v4/core").$strip>>;
97
88
  lexicalGeneration: import("zod").ZodOptional<import("zod").ZodBoolean>;
89
+ adminAssistant: import("zod").ZodOptional<import("zod").ZodBoolean>;
98
90
  cms: import("zod").ZodOptional<import("zod").ZodObject<{
99
91
  entryGeneration: import("zod").ZodOptional<import("zod").ZodBoolean>;
100
92
  entryComparison: import("zod").ZodOptional<import("zod").ZodBoolean>;
@@ -102,21 +94,25 @@ export declare const definitions: (import("./index.js").ExtensionDefinitionModel
102
94
  }, import("zod/v4/core").$strip>>;
103
95
  }, import("zod/v4/core").$strip>]>>;
104
96
  abTesting: import("zod").ZodOptional<import("zod").ZodBoolean>;
105
- remoteComponents: import("zod").ZodOptional<import("zod").ZodBoolean>;
97
+ collaboration: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodBoolean, import("zod").ZodObject<{
98
+ comments: import("zod").ZodOptional<import("zod").ZodBoolean>;
99
+ activityLog: import("zod").ZodOptional<import("zod").ZodBoolean>;
100
+ }, import("zod/v4/core").$strip>]>>;
101
+ webhooks: import("zod").ZodOptional<import("zod").ZodBoolean>;
106
102
  }, import("zod/v4/core").$strip>;
103
+ }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
104
+ src: import("zod").ZodString;
107
105
  }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
108
106
  id: import("zod").ZodString;
109
107
  }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
110
108
  src: import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<string, string>>;
111
- }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
112
- url: import("zod").ZodString;
113
109
  }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
114
110
  varName: import("zod").ZodString;
115
111
  value: import("zod").ZodString;
116
112
  }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
117
- size: import("zod").ZodNumber;
118
- }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
119
- src: import("zod").ZodString;
113
+ token: import("zod").ZodOptional<import("zod").ZodString>;
114
+ repository: import("zod").ZodOptional<import("zod").ZodString>;
115
+ labels: import("zod").ZodOptional<import("zod").ZodString>;
120
116
  }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
121
117
  setupName: import("zod").ZodEnum<{
122
118
  ddb: "ddb";
@@ -124,16 +120,18 @@ export declare const definitions: (import("./index.js").ExtensionDefinitionModel
124
120
  "ddb+os": "ddb+os";
125
121
  }>;
126
122
  }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
127
- passphrase: import("zod").ZodString;
128
- salt: import("zod").ZodOptional<import("zod").ZodString>;
129
- algorithm: import("zod").ZodOptional<import("zod").ZodEnum<{
130
- "aes-128-gcm": "aes-128-gcm";
131
- "aes-192-gcm": "aes-192-gcm";
132
- "aes-256-gcm": "aes-256-gcm";
133
- }>>;
123
+ url: import("zod").ZodString;
124
+ }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
125
+ retentionDays: import("zod").ZodNumber;
126
+ }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
127
+ enabled: import("zod").ZodBoolean;
134
128
  }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
135
- pepper: import("zod").ZodOptional<import("zod").ZodString>;
136
- cost: import("zod").ZodOptional<import("zod").ZodNumber>;
129
+ host: import("zod").ZodString;
130
+ port: import("zod").ZodNumber;
131
+ user: import("zod").ZodString;
132
+ password: import("zod").ZodString;
133
+ from: import("zod").ZodString;
134
+ replyTo: import("zod").ZodOptional<import("zod").ZodString>;
137
135
  }, import("zod/v4/core").$strip>>)[];
138
136
  export { Project } from "./Project.js";
139
137
  export * from "../defineExtension/index.js";
@@ -6,17 +6,16 @@ import { Telemetry } from "./Telemetry.js";
6
6
  import { EnvVar } from "./EnvVar.js";
7
7
  import { DatabaseSetup } from "./DatabaseSetup.js";
8
8
  import { FeatureFlags } from "./FeatureFlags.js";
9
+ import { BugReporter } from "./BugReporter.js";
9
10
  import { BuildParam } from "./ApiBuildParam.js";
10
11
  import { AdminBuildParam } from "./AdminBuildParam.js";
11
12
  import { AdminApiUrl } from "./AdminApiUrl.js";
12
13
  import { AdminWebsocketsUrl } from "./AdminWebsocketsUrl.js";
13
14
  import { AdminExtension } from "./AdminExtension.js";
14
15
  import { ApiExtension } from "./ApiExtension.js";
15
- import { ApiMaxBundleSize } from "./ApiMaxBundleSize.js";
16
- import { Encryption } from "./infra/Encryption.js";
17
- import { Hashing } from "./infra/Hashing.js";
16
+ import { BackgroundTasks, ModelFieldCompression, Smtp } from "./api/index.js";
18
17
  import { AdminAfterBuild, AdminAfterDeploy, AdminBeforeBuild, AdminBeforeDeploy, AdminBeforeWatch, AfterBuild, AfterDeploy, ApiAfterBuild, ApiAfterDeploy, ApiBeforeBuild, ApiBeforeDeploy, ApiBeforeWatch, BeforeBuild, BeforeDeploy, BeforeWatch, CoreAfterBuild, CoreAfterDeploy, CoreBeforeBuild, CoreBeforeDeploy, CoreBeforeWatch } from "./hooks/index.js";
19
- import { AdminStackOutputValue, ApiStackOutputValue, CoreStackOutputValue, ProductionEnvironments, PulumiResourceNamePrefix } from "./pulumi/index.js";
18
+ import { ProductionEnvironments, PulumiResourceNamePrefix } from "./pulumi/index.js";
20
19
  export * from "../defineExtension/index.js";
21
20
  const definitions = [
22
21
  Telemetry.def,
@@ -26,6 +25,7 @@ const definitions = [
26
25
  ExtensionDefinitions.def,
27
26
  EnvVar.def,
28
27
  FeatureFlags.def,
28
+ BugReporter.def,
29
29
  AdminAfterBuild.def,
30
30
  AdminAfterDeploy.def,
31
31
  BeforeBuild.def,
@@ -48,9 +48,6 @@ const definitions = [
48
48
  CoreBeforeWatch.def,
49
49
  PulumiResourceNamePrefix.def,
50
50
  ProductionEnvironments.def,
51
- CoreStackOutputValue.def,
52
- ApiStackOutputValue.def,
53
- AdminStackOutputValue.def,
54
51
  DatabaseSetup.def,
55
52
  BuildParam.def,
56
53
  AdminBuildParam.def,
@@ -58,11 +55,11 @@ const definitions = [
58
55
  AdminWebsocketsUrl.def,
59
56
  AdminExtension.def,
60
57
  ApiExtension.def,
61
- ApiMaxBundleSize.def,
62
- Encryption.def,
63
- Hashing.def
58
+ BackgroundTasks.def,
59
+ ModelFieldCompression.def,
60
+ Smtp.def
64
61
  ];
65
62
  export { Project } from "./Project.js";
66
- export { AdminAfterBuild, AdminAfterDeploy, AdminApiUrl, AdminBeforeBuild, AdminBeforeDeploy, AdminBeforeWatch, AdminBuildParam, AdminExtension, AdminStackOutputValue, AdminWebsocketsUrl, AfterBuild, AfterDeploy, ApiAfterBuild, ApiAfterDeploy, ApiBeforeBuild, ApiBeforeDeploy, ApiBeforeWatch, ApiExtension, ApiMaxBundleSize, ApiStackOutputValue, BeforeBuild, BeforeDeploy, BeforeWatch, BuildParam, CoreAfterBuild, CoreAfterDeploy, CoreBeforeBuild, CoreBeforeDeploy, CoreBeforeWatch, CoreStackOutputValue, DatabaseSetup, Encryption, EnvVar, ExtensionDefinitions, FeatureFlags, Hashing, ProductionEnvironments, ProjectDecorator, ProjectId, ProjectImplementation, PulumiResourceNamePrefix, Telemetry, definitions };
63
+ export { AdminAfterBuild, AdminAfterDeploy, AdminApiUrl, AdminBeforeBuild, AdminBeforeDeploy, AdminBeforeWatch, AdminBuildParam, AdminExtension, AdminWebsocketsUrl, AfterBuild, AfterDeploy, ApiAfterBuild, ApiAfterDeploy, ApiBeforeBuild, ApiBeforeDeploy, ApiBeforeWatch, ApiExtension, BeforeBuild, BeforeDeploy, BeforeWatch, BugReporter, BuildParam, CoreAfterBuild, CoreAfterDeploy, CoreBeforeBuild, CoreBeforeDeploy, CoreBeforeWatch, DatabaseSetup, EnvVar, ExtensionDefinitions, FeatureFlags, ProductionEnvironments, ProjectDecorator, ProjectId, ProjectImplementation, PulumiResourceNamePrefix, Telemetry, definitions };
67
64
 
68
65
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"extensions/index.js","sources":["../../src/extensions/index.ts"],"sourcesContent":["import { ExtensionDefinitions } from \"./ExtensionDefinitions.js\";\nimport { ProjectDecorator } from \"./ProjectDecorator.js\";\nimport { ProjectImplementation } from \"./ProjectImplementation.js\";\nimport { ProjectId } from \"./ProjectId.js\";\nimport { Telemetry } from \"./Telemetry.js\";\nimport { EnvVar } from \"./EnvVar.js\";\nimport { DatabaseSetup } from \"./DatabaseSetup.js\";\nimport { FeatureFlags } from \"./FeatureFlags.js\";\nimport { BuildParam } from \"./ApiBuildParam.js\";\nimport { AdminBuildParam } from \"./AdminBuildParam.js\";\nimport { AdminApiUrl } from \"./AdminApiUrl.js\";\nimport { AdminWebsocketsUrl } from \"./AdminWebsocketsUrl.js\";\nimport { AdminExtension } from \"./AdminExtension.js\";\nimport { ApiExtension } from \"./ApiExtension.js\";\nimport { ApiMaxBundleSize } from \"./ApiMaxBundleSize.js\";\nimport { Encryption } from \"./infra/Encryption.js\";\nimport { Hashing } from \"./infra/Hashing.js\";\n\n// Hooks.\nimport {\n AdminAfterBuild,\n AdminAfterDeploy,\n AdminBeforeBuild,\n AdminBeforeDeploy,\n AdminBeforeWatch,\n AfterBuild,\n AfterDeploy,\n BeforeDeploy,\n BeforeWatch,\n ApiAfterBuild,\n ApiAfterDeploy,\n ApiBeforeBuild,\n ApiBeforeDeploy,\n ApiBeforeWatch,\n BeforeBuild,\n CoreAfterBuild,\n CoreAfterDeploy,\n CoreBeforeBuild,\n CoreBeforeDeploy,\n CoreBeforeWatch\n} from \"./hooks/index.js\";\n\n// Pulumi (non-app-specific).\nimport {\n ProductionEnvironments,\n PulumiResourceNamePrefix,\n CoreStackOutputValue,\n ApiStackOutputValue,\n AdminStackOutputValue\n} from \"./pulumi/index.js\";\n\n// Exports.\nexport { Telemetry };\nexport { ProjectId };\nexport { ProjectDecorator };\nexport { ProjectImplementation };\nexport { ExtensionDefinitions };\nexport { EnvVar };\nexport { FeatureFlags };\nexport { DatabaseSetup };\nexport { BuildParam };\nexport { AdminBuildParam };\nexport { AdminApiUrl };\nexport { AdminWebsocketsUrl };\nexport { AdminExtension };\nexport { ApiExtension };\nexport { ApiMaxBundleSize };\nexport { Encryption };\nexport { Hashing };\n\n// Hooks.\nexport { BeforeBuild };\nexport { BeforeDeploy };\nexport { BeforeWatch };\nexport { AfterBuild };\nexport { AfterDeploy };\nexport { AdminBeforeBuild };\nexport { AdminBeforeDeploy };\nexport { AdminBeforeWatch };\nexport { AdminAfterBuild };\nexport { AdminAfterDeploy };\nexport { ApiBeforeBuild };\nexport { ApiBeforeDeploy };\nexport { ApiBeforeWatch };\nexport { ApiAfterBuild };\nexport { ApiAfterDeploy };\nexport { CoreBeforeBuild };\nexport { CoreBeforeDeploy };\nexport { CoreBeforeWatch };\nexport { CoreAfterBuild };\nexport { CoreAfterDeploy };\n\n// Pulumi (non-app-specific).\nexport { PulumiResourceNamePrefix };\nexport { ProductionEnvironments };\nexport { CoreStackOutputValue };\nexport { ApiStackOutputValue };\nexport { AdminStackOutputValue };\n\n// Definitions (used internally). 👇\nexport const definitions = [\n Telemetry.def,\n ProjectId.def,\n ProjectDecorator.def,\n ProjectImplementation.def,\n ExtensionDefinitions.def,\n EnvVar.def,\n FeatureFlags.def,\n\n // Hooks.\n AdminAfterBuild.def,\n AdminAfterDeploy.def,\n BeforeBuild.def,\n BeforeDeploy.def,\n BeforeWatch.def,\n AfterBuild.def,\n AfterDeploy.def,\n AdminBeforeBuild.def,\n AdminBeforeDeploy.def,\n AdminBeforeWatch.def,\n ApiAfterBuild.def,\n ApiAfterDeploy.def,\n ApiBeforeBuild.def,\n ApiBeforeDeploy.def,\n ApiBeforeWatch.def,\n CoreAfterBuild.def,\n CoreAfterDeploy.def,\n CoreBeforeBuild.def,\n CoreBeforeDeploy.def,\n CoreBeforeWatch.def,\n\n // Pulumi (non-app-specific).\n PulumiResourceNamePrefix.def,\n ProductionEnvironments.def,\n CoreStackOutputValue.def,\n ApiStackOutputValue.def,\n AdminStackOutputValue.def,\n DatabaseSetup.def,\n BuildParam.def,\n AdminBuildParam.def,\n AdminApiUrl.def,\n AdminWebsocketsUrl.def,\n AdminExtension.def,\n ApiExtension.def,\n ApiMaxBundleSize.def,\n Encryption.def,\n Hashing.def\n];\n\nexport { Project } from \"./Project.js\";\n\nexport * from \"../defineExtension/index.js\";\n"],"names":["definitions","Telemetry","ProjectId","ProjectDecorator","ProjectImplementation","ExtensionDefinitions","EnvVar","FeatureFlags","AdminAfterBuild","AdminAfterDeploy","BeforeBuild","BeforeDeploy","BeforeWatch","AfterBuild","AfterDeploy","AdminBeforeBuild","AdminBeforeDeploy","AdminBeforeWatch","ApiAfterBuild","ApiAfterDeploy","ApiBeforeBuild","ApiBeforeDeploy","ApiBeforeWatch","CoreAfterBuild","CoreAfterDeploy","CoreBeforeBuild","CoreBeforeDeploy","CoreBeforeWatch","PulumiResourceNamePrefix","ProductionEnvironments","CoreStackOutputValue","ApiStackOutputValue","AdminStackOutputValue","DatabaseSetup","BuildParam","AdminBuildParam","AdminApiUrl","AdminWebsocketsUrl","AdminExtension","ApiExtension","ApiMaxBundleSize","Encryption","Hashing"],"mappings":";;;;;;;;;;;;;;;;;;;;AAoGO,MAAMA,cAAc;IACvBC,UAAU,GAAG;IACbC,UAAU,GAAG;IACbC,iBAAiB,GAAG;IACpBC,sBAAsB,GAAG;IACzBC,qBAAqB,GAAG;IACxBC,OAAO,GAAG;IACVC,aAAa,GAAG;IAGhBC,gBAAgB,GAAG;IACnBC,iBAAiB,GAAG;IACpBC,YAAY,GAAG;IACfC,aAAa,GAAG;IAChBC,YAAY,GAAG;IACfC,WAAW,GAAG;IACdC,YAAY,GAAG;IACfC,iBAAiB,GAAG;IACpBC,kBAAkB,GAAG;IACrBC,iBAAiB,GAAG;IACpBC,cAAc,GAAG;IACjBC,eAAe,GAAG;IAClBC,eAAe,GAAG;IAClBC,gBAAgB,GAAG;IACnBC,eAAe,GAAG;IAClBC,eAAe,GAAG;IAClBC,gBAAgB,GAAG;IACnBC,gBAAgB,GAAG;IACnBC,iBAAiB,GAAG;IACpBC,gBAAgB,GAAG;IAGnBC,yBAAyB,GAAG;IAC5BC,uBAAuB,GAAG;IAC1BC,qBAAqB,GAAG;IACxBC,oBAAoB,GAAG;IACvBC,sBAAsB,GAAG;IACzBC,cAAc,GAAG;IACjBC,WAAW,GAAG;IACdC,gBAAgB,GAAG;IACnBC,YAAY,GAAG;IACfC,mBAAmB,GAAG;IACtBC,eAAe,GAAG;IAClBC,aAAa,GAAG;IAChBC,iBAAiB,GAAG;IACpBC,WAAW,GAAG;IACdC,QAAQ,GAAG;CACd"}
1
+ {"version":3,"file":"extensions/index.js","sources":["../../src/extensions/index.ts"],"sourcesContent":["import { ExtensionDefinitions } from \"./ExtensionDefinitions.js\";\nimport { ProjectDecorator } from \"./ProjectDecorator.js\";\nimport { ProjectImplementation } from \"./ProjectImplementation.js\";\nimport { ProjectId } from \"./ProjectId.js\";\nimport { Telemetry } from \"./Telemetry.js\";\nimport { EnvVar } from \"./EnvVar.js\";\nimport { DatabaseSetup } from \"./DatabaseSetup.js\";\nimport { FeatureFlags } from \"./FeatureFlags.js\";\nimport { BugReporter } from \"./BugReporter.js\";\nimport { BuildParam } from \"./ApiBuildParam.js\";\nimport { AdminBuildParam } from \"./AdminBuildParam.js\";\nimport { AdminApiUrl } from \"./AdminApiUrl.js\";\nimport { AdminWebsocketsUrl } from \"./AdminWebsocketsUrl.js\";\nimport { AdminExtension } from \"./AdminExtension.js\";\nimport { ApiExtension } from \"./ApiExtension.js\";\nimport { BackgroundTasks } from \"./api/index.js\";\nimport { ModelFieldCompression } from \"./api/index.js\";\nimport { Smtp } from \"./api/index.js\";\n\n// Hooks.\nimport {\n AdminAfterBuild,\n AdminAfterDeploy,\n AdminBeforeBuild,\n AdminBeforeDeploy,\n AdminBeforeWatch,\n AfterBuild,\n AfterDeploy,\n BeforeDeploy,\n BeforeWatch,\n ApiAfterBuild,\n ApiAfterDeploy,\n ApiBeforeBuild,\n ApiBeforeDeploy,\n ApiBeforeWatch,\n BeforeBuild,\n CoreAfterBuild,\n CoreAfterDeploy,\n CoreBeforeBuild,\n CoreBeforeDeploy,\n CoreBeforeWatch\n} from \"./hooks/index.js\";\n\n// Pulumi (non-app-specific).\nimport { ProductionEnvironments, PulumiResourceNamePrefix } from \"./pulumi/index.js\";\n\n// Exports.\nexport { Telemetry };\nexport { ProjectId };\nexport { ProjectDecorator };\nexport { ProjectImplementation };\nexport { ExtensionDefinitions };\nexport { EnvVar };\nexport { FeatureFlags };\nexport { BugReporter };\nexport { DatabaseSetup };\nexport { BuildParam };\nexport { AdminBuildParam };\nexport { AdminApiUrl };\nexport { AdminWebsocketsUrl };\nexport { AdminExtension };\nexport { ApiExtension };\n\n// Hooks.\nexport { BeforeBuild };\nexport { BeforeDeploy };\nexport { BeforeWatch };\nexport { AfterBuild };\nexport { AfterDeploy };\nexport { AdminBeforeBuild };\nexport { AdminBeforeDeploy };\nexport { AdminBeforeWatch };\nexport { AdminAfterBuild };\nexport { AdminAfterDeploy };\nexport { ApiBeforeBuild };\nexport { ApiBeforeDeploy };\nexport { ApiBeforeWatch };\nexport { ApiAfterBuild };\nexport { ApiAfterDeploy };\nexport { CoreBeforeBuild };\nexport { CoreBeforeDeploy };\nexport { CoreBeforeWatch };\nexport { CoreAfterBuild };\nexport { CoreAfterDeploy };\n\n// Pulumi (non-app-specific).\nexport { PulumiResourceNamePrefix };\nexport { ProductionEnvironments };\n\n// Definitions (used internally). 👇\nexport const definitions = [\n Telemetry.def,\n ProjectId.def,\n ProjectDecorator.def,\n ProjectImplementation.def,\n ExtensionDefinitions.def,\n EnvVar.def,\n FeatureFlags.def,\n BugReporter.def,\n\n // Hooks.\n AdminAfterBuild.def,\n AdminAfterDeploy.def,\n BeforeBuild.def,\n BeforeDeploy.def,\n BeforeWatch.def,\n AfterBuild.def,\n AfterDeploy.def,\n AdminBeforeBuild.def,\n AdminBeforeDeploy.def,\n AdminBeforeWatch.def,\n ApiAfterBuild.def,\n ApiAfterDeploy.def,\n ApiBeforeBuild.def,\n ApiBeforeDeploy.def,\n ApiBeforeWatch.def,\n CoreAfterBuild.def,\n CoreAfterDeploy.def,\n CoreBeforeBuild.def,\n CoreBeforeDeploy.def,\n CoreBeforeWatch.def,\n\n // Pulumi (non-app-specific).\n PulumiResourceNamePrefix.def,\n ProductionEnvironments.def,\n DatabaseSetup.def,\n BuildParam.def,\n AdminBuildParam.def,\n AdminApiUrl.def,\n AdminWebsocketsUrl.def,\n AdminExtension.def,\n ApiExtension.def,\n\n // Api settings that apply to every hosting type.\n BackgroundTasks.def,\n ModelFieldCompression.def,\n Smtp.def\n];\n\nexport { Project } from \"./Project.js\";\n\nexport * from \"../defineExtension/index.js\";\n"],"names":["definitions","Telemetry","ProjectId","ProjectDecorator","ProjectImplementation","ExtensionDefinitions","EnvVar","FeatureFlags","BugReporter","AdminAfterBuild","AdminAfterDeploy","BeforeBuild","BeforeDeploy","BeforeWatch","AfterBuild","AfterDeploy","AdminBeforeBuild","AdminBeforeDeploy","AdminBeforeWatch","ApiAfterBuild","ApiAfterDeploy","ApiBeforeBuild","ApiBeforeDeploy","ApiBeforeWatch","CoreAfterBuild","CoreAfterDeploy","CoreBeforeBuild","CoreBeforeDeploy","CoreBeforeWatch","PulumiResourceNamePrefix","ProductionEnvironments","DatabaseSetup","BuildParam","AdminBuildParam","AdminApiUrl","AdminWebsocketsUrl","AdminExtension","ApiExtension","BackgroundTasks","ModelFieldCompression","Smtp"],"mappings":";;;;;;;;;;;;;;;;;;;AA0FO,MAAMA,cAAc;IACvBC,UAAU,GAAG;IACbC,UAAU,GAAG;IACbC,iBAAiB,GAAG;IACpBC,sBAAsB,GAAG;IACzBC,qBAAqB,GAAG;IACxBC,OAAO,GAAG;IACVC,aAAa,GAAG;IAChBC,YAAY,GAAG;IAGfC,gBAAgB,GAAG;IACnBC,iBAAiB,GAAG;IACpBC,YAAY,GAAG;IACfC,aAAa,GAAG;IAChBC,YAAY,GAAG;IACfC,WAAW,GAAG;IACdC,YAAY,GAAG;IACfC,iBAAiB,GAAG;IACpBC,kBAAkB,GAAG;IACrBC,iBAAiB,GAAG;IACpBC,cAAc,GAAG;IACjBC,eAAe,GAAG;IAClBC,eAAe,GAAG;IAClBC,gBAAgB,GAAG;IACnBC,eAAe,GAAG;IAClBC,eAAe,GAAG;IAClBC,gBAAgB,GAAG;IACnBC,gBAAgB,GAAG;IACnBC,iBAAiB,GAAG;IACpBC,gBAAgB,GAAG;IAGnBC,yBAAyB,GAAG;IAC5BC,uBAAuB,GAAG;IAC1BC,cAAc,GAAG;IACjBC,WAAW,GAAG;IACdC,gBAAgB,GAAG;IACnBC,YAAY,GAAG;IACfC,mBAAmB,GAAG;IACtBC,eAAe,GAAG;IAClBC,aAAa,GAAG;IAGhBC,gBAAgB,GAAG;IACnBC,sBAAsB,GAAG;IACzBC,KAAK,GAAG;CACX"}
@@ -1,6 +1,7 @@
1
1
  import react from "react";
2
2
  import { useEnv, useEnvContext, useRegion, useVariant } from "../../services/GetProjectConfigService/EnvContext.js";
3
3
  import { useProductionEnvironments } from "../../services/GetProjectConfigService/ProductionEnvironmentsContext.js";
4
+ import { assertHostingType } from "../hosting/assertHostingType.js";
4
5
  const matchesValue = (current, allowed)=>{
5
6
  if (!current) return false;
6
7
  const allowedArray = Array.isArray(allowed) ? allowed : [
@@ -9,6 +10,7 @@ const matchesValue = (current, allowed)=>{
9
10
  return allowedArray.includes(current);
10
11
  };
11
12
  const EnvIs = ({ env, variant, region, children })=>{
13
+ assertHostingType("Infra.Env.Is", "aws");
12
14
  const currentEnv = useEnv();
13
15
  const currentVariant = useVariant();
14
16
  const currentRegion = useRegion();
@@ -18,6 +20,7 @@ const EnvIs = ({ env, variant, region, children })=>{
18
20
  return /*#__PURE__*/ react.createElement(react.Fragment, null, children);
19
21
  };
20
22
  const EnvIsNot = ({ env, variant, region, children })=>{
23
+ assertHostingType("Infra.Env.IsNot", "aws");
21
24
  const currentEnv = useEnv();
22
25
  const currentVariant = useVariant();
23
26
  const currentRegion = useRegion();
@@ -27,12 +30,14 @@ const EnvIsNot = ({ env, variant, region, children })=>{
27
30
  return /*#__PURE__*/ react.createElement(react.Fragment, null, children);
28
31
  };
29
32
  const EnvIsProd = ({ children })=>{
33
+ assertHostingType("Infra.Env.IsProd", "aws");
30
34
  const env = useEnv();
31
35
  const prodEnvs = useProductionEnvironments();
32
36
  if (!prodEnvs.includes(env)) return null;
33
37
  return /*#__PURE__*/ react.createElement(react.Fragment, null, children);
34
38
  };
35
39
  const EnvIsNotProd = ({ children })=>{
40
+ assertHostingType("Infra.Env.IsNotProd", "aws");
36
41
  const env = useEnv();
37
42
  const prodEnvs = useProductionEnvironments();
38
43
  if (prodEnvs.includes(env)) return null;
@@ -1 +1 @@
1
- {"version":3,"file":"extensions/infra/Env.js","sources":["../../../src/extensions/infra/Env.tsx"],"sourcesContent":["import React from \"react\";\nimport {\n useEnv,\n useVariant,\n useRegion,\n useEnvContext\n} from \"~/services/GetProjectConfigService/EnvContext.js\";\nimport { useProductionEnvironments } from \"~/services/GetProjectConfigService/ProductionEnvironmentsContext.js\";\n\nexport interface EnvIsProps {\n env?: string | string[];\n variant?: string | string[];\n region?: string | string[];\n children: React.ReactNode;\n}\n\n/**\n * Helper function to check if a value matches any of the allowed values\n */\nconst matchesValue = (current: string | undefined, allowed: string | string[]): boolean => {\n if (!current) {\n return false;\n }\n const allowedArray = Array.isArray(allowed) ? allowed : [allowed];\n return allowedArray.includes(current);\n};\n\n/**\n * Conditionally renders children based on the current environment, variant, or region.\n * Multiple conditions are AND-ed together.\n */\nexport const EnvIs: React.FC<EnvIsProps> = ({ env, variant, region, children }) => {\n const currentEnv = useEnv();\n const currentVariant = useVariant();\n const currentRegion = useRegion();\n\n // Check if env matches\n if (env !== undefined && !matchesValue(currentEnv, env)) {\n return null;\n }\n\n // Check if variant matches\n if (variant !== undefined && !matchesValue(currentVariant, variant)) {\n return null;\n }\n\n // Check if region matches\n if (region !== undefined && !matchesValue(currentRegion, region)) {\n return null;\n }\n\n return <>{children}</>;\n};\n\n/**\n * Conditionally renders children when the current environment, variant, or region does NOT match.\n * Multiple conditions are AND-ed together (renders when NONE of the conditions match).\n */\nexport const EnvIsNot: React.FC<EnvIsProps> = ({ env, variant, region, children }) => {\n const currentEnv = useEnv();\n const currentVariant = useVariant();\n const currentRegion = useRegion();\n\n // Check if env does NOT match\n if (env !== undefined && matchesValue(currentEnv, env)) {\n return null;\n }\n\n // Check if variant does NOT match\n if (variant !== undefined && matchesValue(currentVariant, variant)) {\n return null;\n }\n\n // Check if region does NOT match\n if (region !== undefined && matchesValue(currentRegion, region)) {\n return null;\n }\n\n return <>{children}</>;\n};\n\nexport const EnvIsProd: React.FC<{ children: React.ReactNode }> = ({ children }) => {\n const env = useEnv();\n const prodEnvs = useProductionEnvironments();\n if (!prodEnvs.includes(env)) {\n return null;\n }\n return <>{children}</>;\n};\n\nexport const EnvIsNotProd: React.FC<{ children: React.ReactNode }> = ({ children }) => {\n const env = useEnv();\n const prodEnvs = useProductionEnvironments();\n if (prodEnvs.includes(env)) {\n return null;\n }\n return <>{children}</>;\n};\n\n// Export hooks for direct use\nexport { useEnv, useVariant, useRegion, useEnvContext };\n"],"names":["matchesValue","current","allowed","allowedArray","Array","EnvIs","env","variant","region","children","currentEnv","useEnv","currentVariant","useVariant","currentRegion","useRegion","undefined","EnvIsNot","EnvIsProd","prodEnvs","useProductionEnvironments","EnvIsNotProd"],"mappings":";;;AAmBA,MAAMA,eAAe,CAACC,SAA6BC;IAC/C,IAAI,CAACD,SACD,OAAO;IAEX,MAAME,eAAeC,MAAM,OAAO,CAACF,WAAWA,UAAU;QAACA;KAAQ;IACjE,OAAOC,aAAa,QAAQ,CAACF;AACjC;AAMO,MAAMI,QAA8B,CAAC,EAAEC,GAAG,EAAEC,OAAO,EAAEC,MAAM,EAAEC,QAAQ,EAAE;IAC1E,MAAMC,aAAaC;IACnB,MAAMC,iBAAiBC;IACvB,MAAMC,gBAAgBC;IAGtB,IAAIT,AAAQU,WAARV,OAAqB,CAACN,aAAaU,YAAYJ,MAC/C,OAAO;IAIX,IAAIC,AAAYS,WAAZT,WAAyB,CAACP,aAAaY,gBAAgBL,UACvD,OAAO;IAIX,IAAIC,AAAWQ,WAAXR,UAAwB,CAACR,aAAac,eAAeN,SACrD,OAAO;IAGX,OAAO,WAAP,GAAO,0CAAGC;AACd;AAMO,MAAMQ,WAAiC,CAAC,EAAEX,GAAG,EAAEC,OAAO,EAAEC,MAAM,EAAEC,QAAQ,EAAE;IAC7E,MAAMC,aAAaC;IACnB,MAAMC,iBAAiBC;IACvB,MAAMC,gBAAgBC;IAGtB,IAAIT,AAAQU,WAARV,OAAqBN,aAAaU,YAAYJ,MAC9C,OAAO;IAIX,IAAIC,AAAYS,WAAZT,WAAyBP,aAAaY,gBAAgBL,UACtD,OAAO;IAIX,IAAIC,AAAWQ,WAAXR,UAAwBR,aAAac,eAAeN,SACpD,OAAO;IAGX,OAAO,WAAP,GAAO,0CAAGC;AACd;AAEO,MAAMS,YAAqD,CAAC,EAAET,QAAQ,EAAE;IAC3E,MAAMH,MAAMK;IACZ,MAAMQ,WAAWC;IACjB,IAAI,CAACD,SAAS,QAAQ,CAACb,MACnB,OAAO;IAEX,OAAO,WAAP,GAAO,0CAAGG;AACd;AAEO,MAAMY,eAAwD,CAAC,EAAEZ,QAAQ,EAAE;IAC9E,MAAMH,MAAMK;IACZ,MAAMQ,WAAWC;IACjB,IAAID,SAAS,QAAQ,CAACb,MAClB,OAAO;IAEX,OAAO,WAAP,GAAO,0CAAGG;AACd"}
1
+ {"version":3,"file":"extensions/infra/Env.js","sources":["../../../src/extensions/infra/Env.tsx"],"sourcesContent":["import React from \"react\";\nimport {\n useEnv,\n useVariant,\n useRegion,\n useEnvContext\n} from \"~/services/GetProjectConfigService/EnvContext.js\";\nimport { useProductionEnvironments } from \"~/services/GetProjectConfigService/ProductionEnvironmentsContext.js\";\nimport { assertHostingType } from \"~/extensions/hosting/assertHostingType.js\";\n\nexport interface EnvIsProps {\n env?: string | string[];\n variant?: string | string[];\n region?: string | string[];\n children: React.ReactNode;\n}\n\n/**\n * Helper function to check if a value matches any of the allowed values\n */\nconst matchesValue = (current: string | undefined, allowed: string | string[]): boolean => {\n if (!current) {\n return false;\n }\n const allowedArray = Array.isArray(allowed) ? allowed : [allowed];\n return allowedArray.includes(current);\n};\n\n/**\n * Conditionally renders children based on the current environment, variant, or region.\n * Multiple conditions are AND-ed together.\n */\nexport const EnvIs: React.FC<EnvIsProps> = ({ env, variant, region, children }) => {\n // Deploy environments only exist in AWS projects.\n assertHostingType(\"Infra.Env.Is\", \"aws\");\n const currentEnv = useEnv();\n const currentVariant = useVariant();\n const currentRegion = useRegion();\n\n // Check if env matches\n if (env !== undefined && !matchesValue(currentEnv, env)) {\n return null;\n }\n\n // Check if variant matches\n if (variant !== undefined && !matchesValue(currentVariant, variant)) {\n return null;\n }\n\n // Check if region matches\n if (region !== undefined && !matchesValue(currentRegion, region)) {\n return null;\n }\n\n return <>{children}</>;\n};\n\n/**\n * Conditionally renders children when the current environment, variant, or region does NOT match.\n * Multiple conditions are AND-ed together (renders when NONE of the conditions match).\n */\nexport const EnvIsNot: React.FC<EnvIsProps> = ({ env, variant, region, children }) => {\n assertHostingType(\"Infra.Env.IsNot\", \"aws\");\n const currentEnv = useEnv();\n const currentVariant = useVariant();\n const currentRegion = useRegion();\n\n // Check if env does NOT match\n if (env !== undefined && matchesValue(currentEnv, env)) {\n return null;\n }\n\n // Check if variant does NOT match\n if (variant !== undefined && matchesValue(currentVariant, variant)) {\n return null;\n }\n\n // Check if region does NOT match\n if (region !== undefined && matchesValue(currentRegion, region)) {\n return null;\n }\n\n return <>{children}</>;\n};\n\nexport const EnvIsProd: React.FC<{ children: React.ReactNode }> = ({ children }) => {\n assertHostingType(\"Infra.Env.IsProd\", \"aws\");\n const env = useEnv();\n const prodEnvs = useProductionEnvironments();\n if (!prodEnvs.includes(env)) {\n return null;\n }\n return <>{children}</>;\n};\n\nexport const EnvIsNotProd: React.FC<{ children: React.ReactNode }> = ({ children }) => {\n assertHostingType(\"Infra.Env.IsNotProd\", \"aws\");\n const env = useEnv();\n const prodEnvs = useProductionEnvironments();\n if (prodEnvs.includes(env)) {\n return null;\n }\n return <>{children}</>;\n};\n\n// Export hooks for direct use\nexport { useEnv, useVariant, useRegion, useEnvContext };\n"],"names":["matchesValue","current","allowed","allowedArray","Array","EnvIs","env","variant","region","children","assertHostingType","currentEnv","useEnv","currentVariant","useVariant","currentRegion","useRegion","undefined","EnvIsNot","EnvIsProd","prodEnvs","useProductionEnvironments","EnvIsNotProd"],"mappings":";;;;AAoBA,MAAMA,eAAe,CAACC,SAA6BC;IAC/C,IAAI,CAACD,SACD,OAAO;IAEX,MAAME,eAAeC,MAAM,OAAO,CAACF,WAAWA,UAAU;QAACA;KAAQ;IACjE,OAAOC,aAAa,QAAQ,CAACF;AACjC;AAMO,MAAMI,QAA8B,CAAC,EAAEC,GAAG,EAAEC,OAAO,EAAEC,MAAM,EAAEC,QAAQ,EAAE;IAE1EC,kBAAkB,gBAAgB;IAClC,MAAMC,aAAaC;IACnB,MAAMC,iBAAiBC;IACvB,MAAMC,gBAAgBC;IAGtB,IAAIV,AAAQW,WAARX,OAAqB,CAACN,aAAaW,YAAYL,MAC/C,OAAO;IAIX,IAAIC,AAAYU,WAAZV,WAAyB,CAACP,aAAaa,gBAAgBN,UACvD,OAAO;IAIX,IAAIC,AAAWS,WAAXT,UAAwB,CAACR,aAAae,eAAeP,SACrD,OAAO;IAGX,OAAO,WAAP,GAAO,0CAAGC;AACd;AAMO,MAAMS,WAAiC,CAAC,EAAEZ,GAAG,EAAEC,OAAO,EAAEC,MAAM,EAAEC,QAAQ,EAAE;IAC7EC,kBAAkB,mBAAmB;IACrC,MAAMC,aAAaC;IACnB,MAAMC,iBAAiBC;IACvB,MAAMC,gBAAgBC;IAGtB,IAAIV,AAAQW,WAARX,OAAqBN,aAAaW,YAAYL,MAC9C,OAAO;IAIX,IAAIC,AAAYU,WAAZV,WAAyBP,aAAaa,gBAAgBN,UACtD,OAAO;IAIX,IAAIC,AAAWS,WAAXT,UAAwBR,aAAae,eAAeP,SACpD,OAAO;IAGX,OAAO,WAAP,GAAO,0CAAGC;AACd;AAEO,MAAMU,YAAqD,CAAC,EAAEV,QAAQ,EAAE;IAC3EC,kBAAkB,oBAAoB;IACtC,MAAMJ,MAAMM;IACZ,MAAMQ,WAAWC;IACjB,IAAI,CAACD,SAAS,QAAQ,CAACd,MACnB,OAAO;IAEX,OAAO,WAAP,GAAO,0CAAGG;AACd;AAEO,MAAMa,eAAwD,CAAC,EAAEb,QAAQ,EAAE;IAC9EC,kBAAkB,uBAAuB;IACzC,MAAMJ,MAAMM;IACZ,MAAMQ,WAAWC;IACjB,IAAID,SAAS,QAAQ,CAACd,MAClB,OAAO;IAEX,OAAO,WAAP,GAAO,0CAAGG;AACd"}
@@ -12,7 +12,8 @@ const Registrar = ({ environments })=>{
12
12
  const ProductionEnvironments = defineExtension({
13
13
  type: "Infra/ProductionEnvironments",
14
14
  tags: {
15
- runtimeContext: "project"
15
+ runtimeContext: "project",
16
+ hosting: "aws"
16
17
  },
17
18
  description: "Provide names for environments that are considered production environments.",
18
19
  paramsSchema: z.object({
@@ -1 +1 @@
1
- {"version":3,"file":"extensions/pulumi/ProductionEnvironments.js","sources":["../../../src/extensions/pulumi/ProductionEnvironments.ts"],"sourcesContent":["import React, { useEffect } from \"react\";\nimport { z } from \"zod\";\nimport { defineExtension } from \"~/defineExtension/index.js\";\nimport { useRegisterProductionEnvironments } from \"~/services/GetProjectConfigService/ProductionEnvironmentsContext.js\";\n\ninterface RegistrarProps {\n environments: string[];\n}\n\nconst Registrar: React.FC<RegistrarProps> = ({ environments }) => {\n const setProdEnvs = useRegisterProductionEnvironments();\n useEffect(() => {\n if (setProdEnvs) {\n setProdEnvs(environments);\n }\n }, []);\n return null;\n};\n\nexport const ProductionEnvironments = defineExtension({\n type: \"Infra/ProductionEnvironments\",\n tags: { runtimeContext: \"project\" },\n description: \"Provide names for environments that are considered production environments.\",\n paramsSchema: z.object({\n environments: z.array(\n z.string().superRefine((value, ctx) => {\n if (!value) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message: \"Environment name cannot be empty.\"\n });\n return;\n }\n\n // Must allow only letters, numbers, dashes, and underscores.\n if (!/^[a-zA-Z0-9-_]+$/.test(value)) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message:\n \"Environment name can only contain letters, numbers, dashes, and underscores.\"\n });\n }\n })\n )\n }),\n render: props => React.createElement(Registrar, { environments: props.environments })\n});\n"],"names":["Registrar","environments","setProdEnvs","useRegisterProductionEnvironments","useEffect","ProductionEnvironments","defineExtension","z","value","ctx","props","React"],"mappings":";;;;AASA,MAAMA,YAAsC,CAAC,EAAEC,YAAY,EAAE;IACzD,MAAMC,cAAcC;IACpBC,UAAU;QACN,IAAIF,aACAA,YAAYD;IAEpB,GAAG,EAAE;IACL,OAAO;AACX;AAEO,MAAMI,yBAAyBC,gBAAgB;IAClD,MAAM;IACN,MAAM;QAAE,gBAAgB;IAAU;IAClC,aAAa;IACb,cAAcC,EAAE,MAAM,CAAC;QACnB,cAAcA,EAAE,KAAK,CACjBA,EAAE,MAAM,GAAG,WAAW,CAAC,CAACC,OAAOC;YAC3B,IAAI,CAACD,OAAO,YACRC,IAAI,QAAQ,CAAC;gBACT,MAAMF,EAAE,YAAY,CAAC,MAAM;gBAC3B,SAAS;YACb;YAKJ,IAAI,CAAC,mBAAmB,IAAI,CAACC,QACzBC,IAAI,QAAQ,CAAC;gBACT,MAAMF,EAAE,YAAY,CAAC,MAAM;gBAC3B,SACI;YACR;QAER;IAER;IACA,QAAQG,CAAAA,QAASC,MAAAA,aAAmB,CAACX,WAAW;YAAE,cAAcU,MAAM,YAAY;QAAC;AACvF"}
1
+ {"version":3,"file":"extensions/pulumi/ProductionEnvironments.js","sources":["../../../src/extensions/pulumi/ProductionEnvironments.ts"],"sourcesContent":["import React, { useEffect } from \"react\";\nimport { z } from \"zod\";\nimport { defineExtension } from \"~/defineExtension/index.js\";\nimport { useRegisterProductionEnvironments } from \"~/services/GetProjectConfigService/ProductionEnvironmentsContext.js\";\n\ninterface RegistrarProps {\n environments: string[];\n}\n\nconst Registrar: React.FC<RegistrarProps> = ({ environments }) => {\n const setProdEnvs = useRegisterProductionEnvironments();\n useEffect(() => {\n if (setProdEnvs) {\n setProdEnvs(environments);\n }\n }, []);\n return null;\n};\n\nexport const ProductionEnvironments = defineExtension({\n type: \"Infra/ProductionEnvironments\",\n tags: { runtimeContext: \"project\", hosting: \"aws\" },\n description: \"Provide names for environments that are considered production environments.\",\n paramsSchema: z.object({\n environments: z.array(\n z.string().superRefine((value, ctx) => {\n if (!value) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message: \"Environment name cannot be empty.\"\n });\n return;\n }\n\n // Must allow only letters, numbers, dashes, and underscores.\n if (!/^[a-zA-Z0-9-_]+$/.test(value)) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message:\n \"Environment name can only contain letters, numbers, dashes, and underscores.\"\n });\n }\n })\n )\n }),\n render: props => React.createElement(Registrar, { environments: props.environments })\n});\n"],"names":["Registrar","environments","setProdEnvs","useRegisterProductionEnvironments","useEffect","ProductionEnvironments","defineExtension","z","value","ctx","props","React"],"mappings":";;;;AASA,MAAMA,YAAsC,CAAC,EAAEC,YAAY,EAAE;IACzD,MAAMC,cAAcC;IACpBC,UAAU;QACN,IAAIF,aACAA,YAAYD;IAEpB,GAAG,EAAE;IACL,OAAO;AACX;AAEO,MAAMI,yBAAyBC,gBAAgB;IAClD,MAAM;IACN,MAAM;QAAE,gBAAgB;QAAW,SAAS;IAAM;IAClD,aAAa;IACb,cAAcC,EAAE,MAAM,CAAC;QACnB,cAAcA,EAAE,KAAK,CACjBA,EAAE,MAAM,GAAG,WAAW,CAAC,CAACC,OAAOC;YAC3B,IAAI,CAACD,OAAO,YACRC,IAAI,QAAQ,CAAC;gBACT,MAAMF,EAAE,YAAY,CAAC,MAAM;gBAC3B,SAAS;YACb;YAKJ,IAAI,CAAC,mBAAmB,IAAI,CAACC,QACzBC,IAAI,QAAQ,CAAC;gBACT,MAAMF,EAAE,YAAY,CAAC,MAAM;gBAC3B,SACI;YACR;QAER;IAER;IACA,QAAQG,CAAAA,QAASC,MAAAA,aAAmB,CAACX,WAAW;YAAE,cAAcU,MAAM,YAAY;QAAC;AACvF"}
@@ -3,7 +3,8 @@ import { defineExtension } from "../../defineExtension/index.js";
3
3
  const PulumiResourceNamePrefix = defineExtension({
4
4
  type: "Infra/PulumiResourceNamePrefix",
5
5
  tags: {
6
- runtimeContext: "project"
6
+ runtimeContext: "project",
7
+ hosting: "aws"
7
8
  },
8
9
  description: 'Adjust the prefix for Pulumi resource names (default: "wby-").',
9
10
  paramsSchema: z.object({
@@ -1 +1 @@
1
- {"version":3,"file":"extensions/pulumi/PulumiResourceNamePrefix.js","sources":["../../../src/extensions/pulumi/PulumiResourceNamePrefix.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { defineExtension } from \"~/defineExtension/index.js\";\n\nexport const PulumiResourceNamePrefix = defineExtension({\n type: \"Infra/PulumiResourceNamePrefix\",\n tags: { runtimeContext: \"project\" },\n description: 'Adjust the prefix for Pulumi resource names (default: \"wby-\").',\n paramsSchema: z.object({\n prefix: z.string()\n })\n});\n"],"names":["PulumiResourceNamePrefix","defineExtension","z"],"mappings":";;AAGO,MAAMA,2BAA2BC,gBAAgB;IACpD,MAAM;IACN,MAAM;QAAE,gBAAgB;IAAU;IAClC,aAAa;IACb,cAAcC,EAAE,MAAM,CAAC;QACnB,QAAQA,EAAE,MAAM;IACpB;AACJ"}
1
+ {"version":3,"file":"extensions/pulumi/PulumiResourceNamePrefix.js","sources":["../../../src/extensions/pulumi/PulumiResourceNamePrefix.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { defineExtension } from \"~/defineExtension/index.js\";\n\nexport const PulumiResourceNamePrefix = defineExtension({\n type: \"Infra/PulumiResourceNamePrefix\",\n tags: { runtimeContext: \"project\", hosting: \"aws\" },\n description: 'Adjust the prefix for Pulumi resource names (default: \"wby-\").',\n paramsSchema: z.object({\n prefix: z.string()\n })\n});\n"],"names":["PulumiResourceNamePrefix","defineExtension","z"],"mappings":";;AAGO,MAAMA,2BAA2BC,gBAAgB;IACpD,MAAM;IACN,MAAM;QAAE,gBAAgB;QAAW,SAAS;IAAM;IAClD,aAAa;IACb,cAAcC,EAAE,MAAM,CAAC;QACnB,QAAQA,EAAE,MAAM;IACpB;AACJ"}