firebase-tools-with-isolate 12.9.1-1

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 (594) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +48 -0
  3. package/lib/accountExporter.js +207 -0
  4. package/lib/accountImporter.js +305 -0
  5. package/lib/api.js +84 -0
  6. package/lib/apiv2.js +353 -0
  7. package/lib/appdistribution/client.js +193 -0
  8. package/lib/appdistribution/distribution.js +51 -0
  9. package/lib/appdistribution/options-parser-util.js +51 -0
  10. package/lib/archiveDirectory.js +120 -0
  11. package/lib/auth.js +535 -0
  12. package/lib/bin/firebase.js +132 -0
  13. package/lib/checkMinRequiredVersion.js +14 -0
  14. package/lib/checkValidTargetFilters.js +46 -0
  15. package/lib/command.js +250 -0
  16. package/lib/commands/appdistribution-distribute.js +121 -0
  17. package/lib/commands/appdistribution-group-create.js +19 -0
  18. package/lib/commands/appdistribution-group-delete.js +24 -0
  19. package/lib/commands/appdistribution-testers-add.js +24 -0
  20. package/lib/commands/appdistribution-testers-remove.js +40 -0
  21. package/lib/commands/apps-android-sha-create.js +29 -0
  22. package/lib/commands/apps-android-sha-delete.js +16 -0
  23. package/lib/commands/apps-android-sha-list.js +42 -0
  24. package/lib/commands/apps-create.js +166 -0
  25. package/lib/commands/apps-list.js +53 -0
  26. package/lib/commands/apps-sdkconfig.js +103 -0
  27. package/lib/commands/auth-export.js +44 -0
  28. package/lib/commands/auth-import.js +114 -0
  29. package/lib/commands/crashlytics-mappingfile-generateid.js +26 -0
  30. package/lib/commands/crashlytics-mappingfile-upload.js +46 -0
  31. package/lib/commands/crashlytics-symbols-upload.js +78 -0
  32. package/lib/commands/database-get.js +122 -0
  33. package/lib/commands/database-import.js +85 -0
  34. package/lib/commands/database-instances-create.js +29 -0
  35. package/lib/commands/database-instances-list.js +53 -0
  36. package/lib/commands/database-profile.js +46 -0
  37. package/lib/commands/database-push.js +63 -0
  38. package/lib/commands/database-remove.js +42 -0
  39. package/lib/commands/database-rules-canary.js +24 -0
  40. package/lib/commands/database-rules-get.js +22 -0
  41. package/lib/commands/database-rules-list.js +36 -0
  42. package/lib/commands/database-rules-release.js +24 -0
  43. package/lib/commands/database-rules-stage.js +26 -0
  44. package/lib/commands/database-set.js +68 -0
  45. package/lib/commands/database-settings-get.js +44 -0
  46. package/lib/commands/database-settings-set.js +46 -0
  47. package/lib/commands/database-update.js +69 -0
  48. package/lib/commands/deploy.js +101 -0
  49. package/lib/commands/emulators-exec.js +19 -0
  50. package/lib/commands/emulators-export.js +14 -0
  51. package/lib/commands/emulators-start.js +115 -0
  52. package/lib/commands/experimental-functions-shell.js +13 -0
  53. package/lib/commands/experiments-describe.js +31 -0
  54. package/lib/commands/experiments-disable.js +28 -0
  55. package/lib/commands/experiments-enable.js +28 -0
  56. package/lib/commands/experiments-list.js +29 -0
  57. package/lib/commands/ext-configure.js +110 -0
  58. package/lib/commands/ext-dev-deprecate.js +68 -0
  59. package/lib/commands/ext-dev-init.js +148 -0
  60. package/lib/commands/ext-dev-list.js +47 -0
  61. package/lib/commands/ext-dev-publish.js +32 -0
  62. package/lib/commands/ext-dev-register.js +50 -0
  63. package/lib/commands/ext-dev-undeprecate.js +57 -0
  64. package/lib/commands/ext-dev-upload.js +88 -0
  65. package/lib/commands/ext-dev-usage.js +141 -0
  66. package/lib/commands/ext-export.js +68 -0
  67. package/lib/commands/ext-info.js +118 -0
  68. package/lib/commands/ext-install.js +167 -0
  69. package/lib/commands/ext-list.js +18 -0
  70. package/lib/commands/ext-uninstall.js +29 -0
  71. package/lib/commands/ext-update.js +105 -0
  72. package/lib/commands/ext.js +41 -0
  73. package/lib/commands/firestore-databases-create.js +55 -0
  74. package/lib/commands/firestore-databases-delete.js +39 -0
  75. package/lib/commands/firestore-databases-get.js +25 -0
  76. package/lib/commands/firestore-databases-list.js +24 -0
  77. package/lib/commands/firestore-databases-update.js +59 -0
  78. package/lib/commands/firestore-delete.js +88 -0
  79. package/lib/commands/firestore-indexes-list.js +38 -0
  80. package/lib/commands/firestore-locations.js +24 -0
  81. package/lib/commands/frameworks-backends-create.js +14 -0
  82. package/lib/commands/frameworks-backends-delete.js +98 -0
  83. package/lib/commands/frameworks-backends-get.js +80 -0
  84. package/lib/commands/frameworks-backends-list.js +68 -0
  85. package/lib/commands/functions-config-clone.js +53 -0
  86. package/lib/commands/functions-config-export.js +118 -0
  87. package/lib/commands/functions-config-get.js +35 -0
  88. package/lib/commands/functions-config-set.js +43 -0
  89. package/lib/commands/functions-config-unset.js +42 -0
  90. package/lib/commands/functions-delete.js +95 -0
  91. package/lib/commands/functions-deletegcfartifacts.js +44 -0
  92. package/lib/commands/functions-list.js +47 -0
  93. package/lib/commands/functions-log.js +34 -0
  94. package/lib/commands/functions-secrets-access.js +22 -0
  95. package/lib/commands/functions-secrets-destroy.js +64 -0
  96. package/lib/commands/functions-secrets-get.js +28 -0
  97. package/lib/commands/functions-secrets-prune.js +57 -0
  98. package/lib/commands/functions-secrets-set.js +108 -0
  99. package/lib/commands/functions-shell.js +15 -0
  100. package/lib/commands/help.js +27 -0
  101. package/lib/commands/hosting-channel-create.js +78 -0
  102. package/lib/commands/hosting-channel-delete.js +47 -0
  103. package/lib/commands/hosting-channel-deploy.js +146 -0
  104. package/lib/commands/hosting-channel-list.js +40 -0
  105. package/lib/commands/hosting-channel-open.js +48 -0
  106. package/lib/commands/hosting-clone.js +103 -0
  107. package/lib/commands/hosting-disable.js +31 -0
  108. package/lib/commands/hosting-sites-create.js +34 -0
  109. package/lib/commands/hosting-sites-delete.js +39 -0
  110. package/lib/commands/hosting-sites-get.js +27 -0
  111. package/lib/commands/hosting-sites-list.js +28 -0
  112. package/lib/commands/index.js +191 -0
  113. package/lib/commands/init.js +195 -0
  114. package/lib/commands/internaltesting-frameworks-compose.js +22 -0
  115. package/lib/commands/internaltesting-functions-discover.js +25 -0
  116. package/lib/commands/login-add.js +32 -0
  117. package/lib/commands/login-ci.js +25 -0
  118. package/lib/commands/login-list.js +28 -0
  119. package/lib/commands/login-use.js +24 -0
  120. package/lib/commands/login.js +57 -0
  121. package/lib/commands/logout.js +76 -0
  122. package/lib/commands/open.js +100 -0
  123. package/lib/commands/projects-addfirebase.js +19 -0
  124. package/lib/commands/projects-create.js +37 -0
  125. package/lib/commands/projects-list.js +61 -0
  126. package/lib/commands/remoteconfig-get.js +68 -0
  127. package/lib/commands/remoteconfig-rollback.js +48 -0
  128. package/lib/commands/remoteconfig-versions-list.js +34 -0
  129. package/lib/commands/serve.js +60 -0
  130. package/lib/commands/setup-emulators-database.js +12 -0
  131. package/lib/commands/setup-emulators-firestore.js +12 -0
  132. package/lib/commands/setup-emulators-pubsub.js +12 -0
  133. package/lib/commands/setup-emulators-storage.js +12 -0
  134. package/lib/commands/setup-emulators-ui.js +12 -0
  135. package/lib/commands/target-apply.js +24 -0
  136. package/lib/commands/target-clear.js +20 -0
  137. package/lib/commands/target-remove.js +20 -0
  138. package/lib/commands/target.js +34 -0
  139. package/lib/commands/use.js +162 -0
  140. package/lib/config.js +227 -0
  141. package/lib/configstore.js +6 -0
  142. package/lib/crashlytics/buildToolsJarHelper.js +51 -0
  143. package/lib/database/api.js +19 -0
  144. package/lib/database/import.js +218 -0
  145. package/lib/database/listRemote.js +37 -0
  146. package/lib/database/metadata.js +67 -0
  147. package/lib/database/remove.js +88 -0
  148. package/lib/database/removeRemote.js +51 -0
  149. package/lib/database/rulesConfig.js +79 -0
  150. package/lib/database/settings.js +62 -0
  151. package/lib/defaultCredentials.js +80 -0
  152. package/lib/deploy/database/deploy.js +5 -0
  153. package/lib/deploy/database/index.js +9 -0
  154. package/lib/deploy/database/prepare.js +54 -0
  155. package/lib/deploy/database/release.js +30 -0
  156. package/lib/deploy/extensions/args.js +2 -0
  157. package/lib/deploy/extensions/deploy.js +49 -0
  158. package/lib/deploy/extensions/deploymentSummary.js +56 -0
  159. package/lib/deploy/extensions/errors.js +31 -0
  160. package/lib/deploy/extensions/index.js +9 -0
  161. package/lib/deploy/extensions/planner.js +157 -0
  162. package/lib/deploy/extensions/prepare.js +110 -0
  163. package/lib/deploy/extensions/release.js +57 -0
  164. package/lib/deploy/extensions/secrets.js +150 -0
  165. package/lib/deploy/extensions/tasks.js +156 -0
  166. package/lib/deploy/extensions/v2FunctionHelper.js +53 -0
  167. package/lib/deploy/extensions/validate.js +17 -0
  168. package/lib/deploy/firestore/deploy.js +44 -0
  169. package/lib/deploy/firestore/index.js +9 -0
  170. package/lib/deploy/firestore/prepare.js +59 -0
  171. package/lib/deploy/firestore/release.js +22 -0
  172. package/lib/deploy/functions/args.js +2 -0
  173. package/lib/deploy/functions/backend.js +316 -0
  174. package/lib/deploy/functions/build.js +311 -0
  175. package/lib/deploy/functions/cache/applyHash.js +22 -0
  176. package/lib/deploy/functions/cache/hash.js +30 -0
  177. package/lib/deploy/functions/cel.js +365 -0
  178. package/lib/deploy/functions/checkIam.js +183 -0
  179. package/lib/deploy/functions/containerCleaner.js +305 -0
  180. package/lib/deploy/functions/deploy.js +108 -0
  181. package/lib/deploy/functions/ensure.js +105 -0
  182. package/lib/deploy/functions/ensureCloudBuildEnabled.js +1 -0
  183. package/lib/deploy/functions/functionsDeployHelper.js +134 -0
  184. package/lib/deploy/functions/index.js +9 -0
  185. package/lib/deploy/functions/params.js +517 -0
  186. package/lib/deploy/functions/prepare.js +304 -0
  187. package/lib/deploy/functions/prepareFunctionsUpload.js +113 -0
  188. package/lib/deploy/functions/pricing.js +171 -0
  189. package/lib/deploy/functions/prompts.js +157 -0
  190. package/lib/deploy/functions/release/executor.js +51 -0
  191. package/lib/deploy/functions/release/fabricator.js +584 -0
  192. package/lib/deploy/functions/release/index.js +93 -0
  193. package/lib/deploy/functions/release/planner.js +205 -0
  194. package/lib/deploy/functions/release/reporter.js +196 -0
  195. package/lib/deploy/functions/release/sourceTokenScraper.js +67 -0
  196. package/lib/deploy/functions/release/timer.js +14 -0
  197. package/lib/deploy/functions/runtimes/discovery/index.js +85 -0
  198. package/lib/deploy/functions/runtimes/discovery/mockDiscoveryServer.js +14 -0
  199. package/lib/deploy/functions/runtimes/discovery/parsing.js +95 -0
  200. package/lib/deploy/functions/runtimes/discovery/v1alpha1.js +296 -0
  201. package/lib/deploy/functions/runtimes/index.js +59 -0
  202. package/lib/deploy/functions/runtimes/node/extractTriggers.js +23 -0
  203. package/lib/deploy/functions/runtimes/node/index.js +173 -0
  204. package/lib/deploy/functions/runtimes/node/parseRuntimeAndValidateSDK.js +57 -0
  205. package/lib/deploy/functions/runtimes/node/parseTriggers.js +332 -0
  206. package/lib/deploy/functions/runtimes/node/triggerParser.js +72 -0
  207. package/lib/deploy/functions/runtimes/node/validate.js +34 -0
  208. package/lib/deploy/functions/runtimes/node/versioning.js +95 -0
  209. package/lib/deploy/functions/runtimes/python/index.js +154 -0
  210. package/lib/deploy/functions/services/auth.js +95 -0
  211. package/lib/deploy/functions/services/database.js +14 -0
  212. package/lib/deploy/functions/services/firebaseAlerts.js +14 -0
  213. package/lib/deploy/functions/services/firestore.js +17 -0
  214. package/lib/deploy/functions/services/index.js +117 -0
  215. package/lib/deploy/functions/services/remoteConfig.js +14 -0
  216. package/lib/deploy/functions/services/storage.js +44 -0
  217. package/lib/deploy/functions/services/testLab.js +14 -0
  218. package/lib/deploy/functions/triggerRegionHelper.js +16 -0
  219. package/lib/deploy/functions/validate.js +198 -0
  220. package/lib/deploy/hosting/args.js +2 -0
  221. package/lib/deploy/hosting/context.js +2 -0
  222. package/lib/deploy/hosting/convertConfig.js +181 -0
  223. package/lib/deploy/hosting/deploy.js +85 -0
  224. package/lib/deploy/hosting/hashcache.js +48 -0
  225. package/lib/deploy/hosting/index.js +9 -0
  226. package/lib/deploy/hosting/prepare.js +162 -0
  227. package/lib/deploy/hosting/release.js +40 -0
  228. package/lib/deploy/hosting/uploader.js +207 -0
  229. package/lib/deploy/index.js +127 -0
  230. package/lib/deploy/lifecycleHooks.js +151 -0
  231. package/lib/deploy/remoteconfig/deploy.js +4 -0
  232. package/lib/deploy/remoteconfig/functions.js +69 -0
  233. package/lib/deploy/remoteconfig/index.js +9 -0
  234. package/lib/deploy/remoteconfig/prepare.js +23 -0
  235. package/lib/deploy/remoteconfig/release.js +14 -0
  236. package/lib/deploy/storage/deploy.js +12 -0
  237. package/lib/deploy/storage/index.js +9 -0
  238. package/lib/deploy/storage/prepare.js +52 -0
  239. package/lib/deploy/storage/release.js +27 -0
  240. package/lib/deploymentTool.js +22 -0
  241. package/lib/detectProjectRoot.js +28 -0
  242. package/lib/downloadUtils.js +37 -0
  243. package/lib/dynamicImport.js +22 -0
  244. package/lib/emulator/ExpressBasedEmulator.js +92 -0
  245. package/lib/emulator/adminSdkConfig.js +65 -0
  246. package/lib/emulator/auth/apiSpec.js +8138 -0
  247. package/lib/emulator/auth/cloudFunctions.js +70 -0
  248. package/lib/emulator/auth/errors.js +77 -0
  249. package/lib/emulator/auth/handlers.js +281 -0
  250. package/lib/emulator/auth/index.js +146 -0
  251. package/lib/emulator/auth/operations.js +2145 -0
  252. package/lib/emulator/auth/schema.js +2 -0
  253. package/lib/emulator/auth/server.js +474 -0
  254. package/lib/emulator/auth/state.js +668 -0
  255. package/lib/emulator/auth/types.js +2 -0
  256. package/lib/emulator/auth/utils.js +84 -0
  257. package/lib/emulator/auth/widget_ui.js +620 -0
  258. package/lib/emulator/commandUtils.js +380 -0
  259. package/lib/emulator/constants.js +111 -0
  260. package/lib/emulator/controller.js +654 -0
  261. package/lib/emulator/databaseEmulator.js +172 -0
  262. package/lib/emulator/dns.js +49 -0
  263. package/lib/emulator/download.js +88 -0
  264. package/lib/emulator/downloadableEmulators.js +384 -0
  265. package/lib/emulator/emulatorLogger.js +237 -0
  266. package/lib/emulator/env.js +37 -0
  267. package/lib/emulator/eventarcEmulator.js +143 -0
  268. package/lib/emulator/eventarcEmulatorUtils.js +62 -0
  269. package/lib/emulator/events/types.js +28 -0
  270. package/lib/emulator/extensions/postinstall.js +41 -0
  271. package/lib/emulator/extensions/validation.js +72 -0
  272. package/lib/emulator/extensionsEmulator.js +254 -0
  273. package/lib/emulator/firestoreEmulator.js +96 -0
  274. package/lib/emulator/functionsEmulator.js +1038 -0
  275. package/lib/emulator/functionsEmulatorRuntime.js +730 -0
  276. package/lib/emulator/functionsEmulatorShared.js +322 -0
  277. package/lib/emulator/functionsEmulatorShell.js +88 -0
  278. package/lib/emulator/functionsEmulatorUtils.js +91 -0
  279. package/lib/emulator/functionsRuntimeWorker.js +314 -0
  280. package/lib/emulator/hostingEmulator.js +40 -0
  281. package/lib/emulator/hub.js +162 -0
  282. package/lib/emulator/hubClient.js +53 -0
  283. package/lib/emulator/hubExport.js +208 -0
  284. package/lib/emulator/loggingEmulator.js +118 -0
  285. package/lib/emulator/portUtils.js +323 -0
  286. package/lib/emulator/pubsubEmulator.js +186 -0
  287. package/lib/emulator/registry.js +122 -0
  288. package/lib/emulator/shared/request.js +19 -0
  289. package/lib/emulator/storage/apis/firebase.js +500 -0
  290. package/lib/emulator/storage/apis/gcloud.js +405 -0
  291. package/lib/emulator/storage/apis/shared.js +44 -0
  292. package/lib/emulator/storage/cloudFunctions.js +88 -0
  293. package/lib/emulator/storage/crc.js +33 -0
  294. package/lib/emulator/storage/errors.js +9 -0
  295. package/lib/emulator/storage/files.js +410 -0
  296. package/lib/emulator/storage/index.js +98 -0
  297. package/lib/emulator/storage/metadata.js +349 -0
  298. package/lib/emulator/storage/multipart.js +63 -0
  299. package/lib/emulator/storage/persistence.js +92 -0
  300. package/lib/emulator/storage/rules/config.js +53 -0
  301. package/lib/emulator/storage/rules/expressionValue.js +2 -0
  302. package/lib/emulator/storage/rules/manager.js +88 -0
  303. package/lib/emulator/storage/rules/runtime.js +363 -0
  304. package/lib/emulator/storage/rules/types.js +19 -0
  305. package/lib/emulator/storage/rules/utils.js +60 -0
  306. package/lib/emulator/storage/server.js +113 -0
  307. package/lib/emulator/storage/upload.js +143 -0
  308. package/lib/emulator/types.js +200 -0
  309. package/lib/emulator/ui.js +52 -0
  310. package/lib/emulator/workQueue.js +114 -0
  311. package/lib/ensureApiEnabled.js +110 -0
  312. package/lib/ensureCloudResourceLocation.js +12 -0
  313. package/lib/error.js +29 -0
  314. package/lib/errorOut.js +23 -0
  315. package/lib/experiments.js +153 -0
  316. package/lib/extensions/askUserForEventsConfig.js +97 -0
  317. package/lib/extensions/askUserForParam.js +338 -0
  318. package/lib/extensions/billingMigrationHelper.js +61 -0
  319. package/lib/extensions/change-log.js +95 -0
  320. package/lib/extensions/checkProjectBilling.js +82 -0
  321. package/lib/extensions/diagnose.js +56 -0
  322. package/lib/extensions/displayExtensionInfo.js +175 -0
  323. package/lib/extensions/emulator/optionsHelper.js +73 -0
  324. package/lib/extensions/emulator/specHelper.js +102 -0
  325. package/lib/extensions/emulator/triggerHelper.js +105 -0
  326. package/lib/extensions/etags.js +28 -0
  327. package/lib/extensions/export.js +64 -0
  328. package/lib/extensions/extensionsApi.js +361 -0
  329. package/lib/extensions/extensionsHelper.js +862 -0
  330. package/lib/extensions/listExtensions.js +53 -0
  331. package/lib/extensions/localHelper.js +67 -0
  332. package/lib/extensions/manifest.js +205 -0
  333. package/lib/extensions/metricsTypeDef.js +2 -0
  334. package/lib/extensions/metricsUtils.js +98 -0
  335. package/lib/extensions/paramHelper.js +140 -0
  336. package/lib/extensions/provisioningHelper.js +109 -0
  337. package/lib/extensions/publishHelpers.js +8 -0
  338. package/lib/extensions/publisherApi.js +214 -0
  339. package/lib/extensions/refs.js +67 -0
  340. package/lib/extensions/resolveSource.js +24 -0
  341. package/lib/extensions/secretsUtils.js +60 -0
  342. package/lib/extensions/tos.js +90 -0
  343. package/lib/extensions/types.js +25 -0
  344. package/lib/extensions/updateHelper.js +127 -0
  345. package/lib/extensions/utils.js +63 -0
  346. package/lib/extensions/versionHelper.js +14 -0
  347. package/lib/extensions/warnings.js +44 -0
  348. package/lib/fetchMOTD.js +46 -0
  349. package/lib/fetchWebSetup.js +75 -0
  350. package/lib/filterTargets.js +34 -0
  351. package/lib/firebaseConfig.js +2 -0
  352. package/lib/firebaseConfigValidate.js +29 -0
  353. package/lib/firestore/api-sort.js +118 -0
  354. package/lib/firestore/api-spec.js +2 -0
  355. package/lib/firestore/api-types.js +60 -0
  356. package/lib/firestore/api.js +566 -0
  357. package/lib/firestore/checkDatabaseType.js +18 -0
  358. package/lib/firestore/delete.js +347 -0
  359. package/lib/firestore/encodeFirestoreValue.js +59 -0
  360. package/lib/firestore/fsConfig.js +74 -0
  361. package/lib/firestore/options.js +2 -0
  362. package/lib/firestore/util.js +39 -0
  363. package/lib/firestore/validator.js +38 -0
  364. package/lib/frameworks/angular/index.js +193 -0
  365. package/lib/frameworks/angular/interfaces.js +2 -0
  366. package/lib/frameworks/angular/utils.js +431 -0
  367. package/lib/frameworks/astro/index.js +73 -0
  368. package/lib/frameworks/astro/utils.js +40 -0
  369. package/lib/frameworks/compose/discover/filesystem.js +52 -0
  370. package/lib/frameworks/compose/discover/frameworkMatcher.js +76 -0
  371. package/lib/frameworks/compose/discover/frameworkSpec.js +39 -0
  372. package/lib/frameworks/compose/discover/index.js +32 -0
  373. package/lib/frameworks/compose/discover/runtime/node.js +149 -0
  374. package/lib/frameworks/compose/discover/types.js +2 -0
  375. package/lib/frameworks/compose/driver/docker.js +187 -0
  376. package/lib/frameworks/compose/driver/hooks.js +22 -0
  377. package/lib/frameworks/compose/driver/index.js +16 -0
  378. package/lib/frameworks/compose/driver/local.js +51 -0
  379. package/lib/frameworks/compose/index.js +31 -0
  380. package/lib/frameworks/compose/interfaces.js +21 -0
  381. package/lib/frameworks/constants.js +40 -0
  382. package/lib/frameworks/docs/index.js +2 -0
  383. package/lib/frameworks/express/index.js +102 -0
  384. package/lib/frameworks/flutter/constants.js +72 -0
  385. package/lib/frameworks/flutter/index.js +58 -0
  386. package/lib/frameworks/flutter/utils.js +11 -0
  387. package/lib/frameworks/frameworks.js +31 -0
  388. package/lib/frameworks/index.js +421 -0
  389. package/lib/frameworks/interfaces.js +2 -0
  390. package/lib/frameworks/lit/index.js +23 -0
  391. package/lib/frameworks/next/constants.js +12 -0
  392. package/lib/frameworks/next/index.js +403 -0
  393. package/lib/frameworks/next/interfaces.js +2 -0
  394. package/lib/frameworks/next/utils.js +197 -0
  395. package/lib/frameworks/nuxt/index.js +92 -0
  396. package/lib/frameworks/nuxt/interfaces.js +2 -0
  397. package/lib/frameworks/nuxt/utils.js +23 -0
  398. package/lib/frameworks/nuxt2/index.js +79 -0
  399. package/lib/frameworks/preact/index.js +23 -0
  400. package/lib/frameworks/react/index.js +23 -0
  401. package/lib/frameworks/svelte/index.js +23 -0
  402. package/lib/frameworks/sveltekit/index.js +54 -0
  403. package/lib/frameworks/sveltekit/interfaces.js +2 -0
  404. package/lib/frameworks/utils.js +260 -0
  405. package/lib/frameworks/vite/index.js +99 -0
  406. package/lib/fsAsync.js +43 -0
  407. package/lib/fsutils.js +35 -0
  408. package/lib/functional.js +87 -0
  409. package/lib/functions/constants.js +14 -0
  410. package/lib/functions/ensureTargeted.js +21 -0
  411. package/lib/functions/env.js +246 -0
  412. package/lib/functions/events/index.js +7 -0
  413. package/lib/functions/events/v1.js +6 -0
  414. package/lib/functions/events/v2.js +25 -0
  415. package/lib/functions/functionslog.js +35 -0
  416. package/lib/functions/projectConfig.js +68 -0
  417. package/lib/functions/python.js +23 -0
  418. package/lib/functions/runtimeConfigExport.js +141 -0
  419. package/lib/functions/secrets.js +239 -0
  420. package/lib/functionsConfig.js +157 -0
  421. package/lib/functionsConfigClone.js +68 -0
  422. package/lib/functionsShellCommandAction.js +112 -0
  423. package/lib/gcp/artifactregistry.js +16 -0
  424. package/lib/gcp/auth.js +16 -0
  425. package/lib/gcp/cloudbilling.js +25 -0
  426. package/lib/gcp/cloudbuild.js +50 -0
  427. package/lib/gcp/cloudfunctions.js +351 -0
  428. package/lib/gcp/cloudfunctionsv2.js +389 -0
  429. package/lib/gcp/cloudlogging.js +25 -0
  430. package/lib/gcp/cloudmonitoring.js +77 -0
  431. package/lib/gcp/cloudscheduler.js +155 -0
  432. package/lib/gcp/cloudtasks.js +162 -0
  433. package/lib/gcp/docker.js +80 -0
  434. package/lib/gcp/eventarc.js +42 -0
  435. package/lib/gcp/firestore.js +47 -0
  436. package/lib/gcp/frameworks.js +40 -0
  437. package/lib/gcp/iam.js +76 -0
  438. package/lib/gcp/identityPlatform.js +44 -0
  439. package/lib/gcp/index.js +11 -0
  440. package/lib/gcp/location.js +44 -0
  441. package/lib/gcp/proto.js +130 -0
  442. package/lib/gcp/pubsub.js +34 -0
  443. package/lib/gcp/resourceManager.js +74 -0
  444. package/lib/gcp/rules.js +156 -0
  445. package/lib/gcp/run.js +157 -0
  446. package/lib/gcp/runtimeconfig.js +127 -0
  447. package/lib/gcp/secretManager.js +207 -0
  448. package/lib/gcp/serviceusage.js +24 -0
  449. package/lib/gcp/storage.js +111 -0
  450. package/lib/getDefaultDatabaseInstance.js +10 -0
  451. package/lib/getDefaultHostingSite.js +32 -0
  452. package/lib/getProjectNumber.js +15 -0
  453. package/lib/handlePreviewToggles.js +38 -0
  454. package/lib/hosting/api.js +289 -0
  455. package/lib/hosting/cloudRunProxy.js +52 -0
  456. package/lib/hosting/config.js +189 -0
  457. package/lib/hosting/expireUtils.js +33 -0
  458. package/lib/hosting/functionsProxy.js +42 -0
  459. package/lib/hosting/implicitInit.js +58 -0
  460. package/lib/hosting/initMiddleware.js +63 -0
  461. package/lib/hosting/interactive.js +75 -0
  462. package/lib/hosting/options.js +3 -0
  463. package/lib/hosting/proxy.js +143 -0
  464. package/lib/hosting/runTags.js +114 -0
  465. package/lib/index.js +71 -0
  466. package/lib/init/features/account.js +62 -0
  467. package/lib/init/features/database.js +133 -0
  468. package/lib/init/features/emulators.js +102 -0
  469. package/lib/init/features/extensions/index.js +16 -0
  470. package/lib/init/features/firestore/index.js +36 -0
  471. package/lib/init/features/firestore/indexes.js +71 -0
  472. package/lib/init/features/firestore/rules.js +80 -0
  473. package/lib/init/features/frameworks/constants.js +7 -0
  474. package/lib/init/features/frameworks/index.js +116 -0
  475. package/lib/init/features/frameworks/repo.js +125 -0
  476. package/lib/init/features/functions/index.js +165 -0
  477. package/lib/init/features/functions/javascript.js +46 -0
  478. package/lib/init/features/functions/npm-dependencies.js +37 -0
  479. package/lib/init/features/functions/python.js +48 -0
  480. package/lib/init/features/functions/typescript.js +61 -0
  481. package/lib/init/features/hosting/github.js +397 -0
  482. package/lib/init/features/hosting/index.js +183 -0
  483. package/lib/init/features/index.js +27 -0
  484. package/lib/init/features/project.js +101 -0
  485. package/lib/init/features/remoteconfig.js +32 -0
  486. package/lib/init/features/storage.js +27 -0
  487. package/lib/init/index.js +45 -0
  488. package/lib/listFiles.js +15 -0
  489. package/lib/loadCJSON.js +17 -0
  490. package/lib/localFunction.js +222 -0
  491. package/lib/logError.js +29 -0
  492. package/lib/logger.js +31 -0
  493. package/lib/management/apps.js +280 -0
  494. package/lib/management/database.js +184 -0
  495. package/lib/management/projects.js +312 -0
  496. package/lib/metaprogramming.js +2 -0
  497. package/lib/monospace/index.js +82 -0
  498. package/lib/monospace/interfaces.js +2 -0
  499. package/lib/operation-poller.js +59 -0
  500. package/lib/options.js +2 -0
  501. package/lib/parseBoltRules.js +29 -0
  502. package/lib/profileReport.js +577 -0
  503. package/lib/profiler.js +99 -0
  504. package/lib/projectPath.js +16 -0
  505. package/lib/projectUtils.js +59 -0
  506. package/lib/prompt.js +50 -0
  507. package/lib/rc.js +165 -0
  508. package/lib/remoteconfig/get.js +49 -0
  509. package/lib/remoteconfig/interfaces.js +17 -0
  510. package/lib/remoteconfig/rollback.js +22 -0
  511. package/lib/remoteconfig/versionslist.js +33 -0
  512. package/lib/requireAuth.js +81 -0
  513. package/lib/requireConfig.js +13 -0
  514. package/lib/requireDatabaseInstance.js +26 -0
  515. package/lib/requireHostingSite.js +12 -0
  516. package/lib/requireInteractive.js +12 -0
  517. package/lib/requirePermissions.js +30 -0
  518. package/lib/responseToError.js +58 -0
  519. package/lib/rtdb.js +35 -0
  520. package/lib/rulesDeploy.js +180 -0
  521. package/lib/scopes.js +10 -0
  522. package/lib/serve/functions.js +64 -0
  523. package/lib/serve/hosting.js +115 -0
  524. package/lib/serve/index.js +53 -0
  525. package/lib/shortenUrl.js +29 -0
  526. package/lib/throttler/errors/retries-exhausted-error.js +11 -0
  527. package/lib/throttler/errors/task-error.js +9 -0
  528. package/lib/throttler/errors/timeout-error.js +9 -0
  529. package/lib/throttler/queue.js +23 -0
  530. package/lib/throttler/stack.js +28 -0
  531. package/lib/throttler/throttler.js +230 -0
  532. package/lib/track.js +196 -0
  533. package/lib/unzip.js +126 -0
  534. package/lib/utils.js +488 -0
  535. package/package.json +239 -0
  536. package/schema/extension-yaml.json +432 -0
  537. package/schema/firebase-config.json +2619 -0
  538. package/standalone/check.js +6 -0
  539. package/standalone/config.template.js +19 -0
  540. package/standalone/firepit.js +1074 -0
  541. package/standalone/package-lock.json +7019 -0
  542. package/standalone/package.json +36 -0
  543. package/standalone/runtime.js +122 -0
  544. package/standalone/welcome.js +178 -0
  545. package/templates/_gitignore +66 -0
  546. package/templates/banner.txt +6 -0
  547. package/templates/emulators/default_storage.rules +8 -0
  548. package/templates/extensions/CL-template.md +2 -0
  549. package/templates/extensions/POSTINSTALL.md +29 -0
  550. package/templates/extensions/PREINSTALL.md +22 -0
  551. package/templates/extensions/extension.yaml +61 -0
  552. package/templates/extensions/integration-test.env +2 -0
  553. package/templates/extensions/integration-test.json +14 -0
  554. package/templates/extensions/javascript/WELCOME.md +18 -0
  555. package/templates/extensions/javascript/_gitignore +1 -0
  556. package/templates/extensions/javascript/index.js +25 -0
  557. package/templates/extensions/javascript/integration-test.js +13 -0
  558. package/templates/extensions/javascript/package.lint.json +25 -0
  559. package/templates/extensions/javascript/package.nolint.json +19 -0
  560. package/templates/extensions/typescript/WELCOME.md +22 -0
  561. package/templates/extensions/typescript/_gitignore +8 -0
  562. package/templates/extensions/typescript/_mocharc +10 -0
  563. package/templates/extensions/typescript/index.ts +26 -0
  564. package/templates/extensions/typescript/integration-test.ts +13 -0
  565. package/templates/extensions/typescript/package.lint.json +31 -0
  566. package/templates/extensions/typescript/package.nolint.json +24 -0
  567. package/templates/extensions/typescript/tsconfig.dev.json +5 -0
  568. package/templates/extensions/typescript/tsconfig.json +15 -0
  569. package/templates/firebase.json +9 -0
  570. package/templates/hosting/init.js +36 -0
  571. package/templates/init/firestore/firestore.indexes.json +26 -0
  572. package/templates/init/firestore/firestore.rules +16 -0
  573. package/templates/init/functions/javascript/_eslintrc +28 -0
  574. package/templates/init/functions/javascript/_gitignore +1 -0
  575. package/templates/init/functions/javascript/index.js +19 -0
  576. package/templates/init/functions/javascript/package.lint.json +26 -0
  577. package/templates/init/functions/javascript/package.nolint.json +23 -0
  578. package/templates/init/functions/python/_gitignore +0 -0
  579. package/templates/init/functions/python/main.py +13 -0
  580. package/templates/init/functions/python/requirements.txt +1 -0
  581. package/templates/init/functions/typescript/_eslintrc +32 -0
  582. package/templates/init/functions/typescript/_gitignore +9 -0
  583. package/templates/init/functions/typescript/index.ts +19 -0
  584. package/templates/init/functions/typescript/package.lint.json +31 -0
  585. package/templates/init/functions/typescript/package.nolint.json +25 -0
  586. package/templates/init/functions/typescript/tsconfig.dev.json +5 -0
  587. package/templates/init/functions/typescript/tsconfig.json +15 -0
  588. package/templates/init/hosting/404.html +33 -0
  589. package/templates/init/hosting/index.html +89 -0
  590. package/templates/init/storage/storage.rules +12 -0
  591. package/templates/loginFailure.html +34 -0
  592. package/templates/loginSuccess.html +32 -0
  593. package/templates/loginSuccessGithub.html +32 -0
  594. package/templates/setup/web.js +5 -0
@@ -0,0 +1,2619 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "additionalProperties": false,
4
+ "definitions": {
5
+ "ExtensionsConfig": {
6
+ "additionalProperties": false,
7
+ "type": "object"
8
+ },
9
+ "FrameworksBackendOptions": {
10
+ "additionalProperties": false,
11
+ "properties": {
12
+ "concurrency": {
13
+ "description": "Number of requests a function can serve at once.",
14
+ "type": "number"
15
+ },
16
+ "cors": {
17
+ "description": "If true, allows CORS on requests to this function.\nIf this is a `string` or `RegExp`, allows requests from domains that match the provided value.\nIf this is an `Array`, allows requests from domains matching at least one entry of the array.\nDefaults to true for {@link https.CallableFunction} and false otherwise.",
18
+ "type": [
19
+ "string",
20
+ "boolean"
21
+ ]
22
+ },
23
+ "cpu": {
24
+ "anyOf": [
25
+ {
26
+ "enum": [
27
+ "gcf_gen1"
28
+ ],
29
+ "type": "string"
30
+ },
31
+ {
32
+ "type": "number"
33
+ }
34
+ ],
35
+ "description": "Fractional number of CPUs to allocate to a function."
36
+ },
37
+ "enforceAppCheck": {
38
+ "description": "Determines whether Firebase AppCheck is enforced. Defaults to false.",
39
+ "type": "boolean"
40
+ },
41
+ "ingressSettings": {
42
+ "description": "Ingress settings which control where this function can be called from.",
43
+ "enum": [
44
+ "ALLOW_ALL",
45
+ "ALLOW_INTERNAL_AND_GCLB",
46
+ "ALLOW_INTERNAL_ONLY"
47
+ ],
48
+ "type": "string"
49
+ },
50
+ "invoker": {
51
+ "description": "Invoker to set access control on https functions.",
52
+ "enum": [
53
+ "public"
54
+ ],
55
+ "type": "string"
56
+ },
57
+ "labels": {
58
+ "$ref": "#/definitions/Record<string,string>",
59
+ "description": "User labels to set on the function."
60
+ },
61
+ "maxInstances": {
62
+ "description": "Max number of instances to be running in parallel.",
63
+ "type": "number"
64
+ },
65
+ "memory": {
66
+ "description": "Amount of memory to allocate to a function.",
67
+ "enum": [
68
+ "128MiB",
69
+ "16GiB",
70
+ "1GiB",
71
+ "256MiB",
72
+ "2GiB",
73
+ "32GiB",
74
+ "4GiB",
75
+ "512MiB",
76
+ "8GiB"
77
+ ],
78
+ "type": "string"
79
+ },
80
+ "minInstances": {
81
+ "description": "Min number of actual instances to be running at a given time.",
82
+ "type": "number"
83
+ },
84
+ "omit": {
85
+ "description": "If true, do not deploy or emulate this function.",
86
+ "type": "boolean"
87
+ },
88
+ "preserveExternalChanges": {
89
+ "description": "Controls whether function configuration modified outside of function source is preserved. Defaults to false.",
90
+ "type": "boolean"
91
+ },
92
+ "region": {
93
+ "description": "HTTP functions can override global options and can specify multiple regions to deploy to.",
94
+ "type": "string"
95
+ },
96
+ "secrets": {
97
+ "items": {
98
+ "type": "string"
99
+ },
100
+ "type": "array"
101
+ },
102
+ "serviceAccount": {
103
+ "description": "Specific service account for the function to run as.",
104
+ "type": "string"
105
+ },
106
+ "timeoutSeconds": {
107
+ "description": "Timeout for the function in seconds, possible values are 0 to 540.\nHTTPS functions can specify a higher timeout.",
108
+ "type": "number"
109
+ },
110
+ "vpcConnector": {
111
+ "description": "Connect cloud function to specified VPC connector.",
112
+ "type": "string"
113
+ },
114
+ "vpcConnectorEgressSettings": {
115
+ "description": "Egress settings for VPC connector.",
116
+ "enum": [
117
+ "ALL_TRAFFIC",
118
+ "PRIVATE_RANGES_ONLY"
119
+ ],
120
+ "type": "string"
121
+ }
122
+ },
123
+ "type": "object"
124
+ },
125
+ "Record<string,string>": {
126
+ "additionalProperties": false,
127
+ "type": "object"
128
+ }
129
+ },
130
+ "properties": {
131
+ "$schema": {
132
+ "format": "uri",
133
+ "type": "string"
134
+ },
135
+ "database": {
136
+ "anyOf": [
137
+ {
138
+ "additionalProperties": false,
139
+ "properties": {
140
+ "postdeploy": {
141
+ "anyOf": [
142
+ {
143
+ "items": {
144
+ "type": "string"
145
+ },
146
+ "type": "array"
147
+ },
148
+ {
149
+ "type": "string"
150
+ }
151
+ ]
152
+ },
153
+ "predeploy": {
154
+ "anyOf": [
155
+ {
156
+ "items": {
157
+ "type": "string"
158
+ },
159
+ "type": "array"
160
+ },
161
+ {
162
+ "type": "string"
163
+ }
164
+ ]
165
+ },
166
+ "rules": {
167
+ "type": "string"
168
+ }
169
+ },
170
+ "required": [
171
+ "rules"
172
+ ],
173
+ "type": "object"
174
+ },
175
+ {
176
+ "items": {
177
+ "anyOf": [
178
+ {
179
+ "additionalProperties": false,
180
+ "properties": {
181
+ "instance": {
182
+ "type": "string"
183
+ },
184
+ "postdeploy": {
185
+ "anyOf": [
186
+ {
187
+ "items": {
188
+ "type": "string"
189
+ },
190
+ "type": "array"
191
+ },
192
+ {
193
+ "type": "string"
194
+ }
195
+ ]
196
+ },
197
+ "predeploy": {
198
+ "anyOf": [
199
+ {
200
+ "items": {
201
+ "type": "string"
202
+ },
203
+ "type": "array"
204
+ },
205
+ {
206
+ "type": "string"
207
+ }
208
+ ]
209
+ },
210
+ "rules": {
211
+ "type": "string"
212
+ },
213
+ "target": {
214
+ "type": "string"
215
+ }
216
+ },
217
+ "required": [
218
+ "instance",
219
+ "rules"
220
+ ],
221
+ "type": "object"
222
+ },
223
+ {
224
+ "additionalProperties": false,
225
+ "properties": {
226
+ "instance": {
227
+ "type": "string"
228
+ },
229
+ "postdeploy": {
230
+ "anyOf": [
231
+ {
232
+ "items": {
233
+ "type": "string"
234
+ },
235
+ "type": "array"
236
+ },
237
+ {
238
+ "type": "string"
239
+ }
240
+ ]
241
+ },
242
+ "predeploy": {
243
+ "anyOf": [
244
+ {
245
+ "items": {
246
+ "type": "string"
247
+ },
248
+ "type": "array"
249
+ },
250
+ {
251
+ "type": "string"
252
+ }
253
+ ]
254
+ },
255
+ "rules": {
256
+ "type": "string"
257
+ },
258
+ "target": {
259
+ "type": "string"
260
+ }
261
+ },
262
+ "required": [
263
+ "rules",
264
+ "target"
265
+ ],
266
+ "type": "object"
267
+ }
268
+ ]
269
+ },
270
+ "type": "array"
271
+ }
272
+ ]
273
+ },
274
+ "emulators": {
275
+ "additionalProperties": false,
276
+ "properties": {
277
+ "auth": {
278
+ "additionalProperties": false,
279
+ "properties": {
280
+ "host": {
281
+ "type": "string"
282
+ },
283
+ "port": {
284
+ "type": "number"
285
+ }
286
+ },
287
+ "type": "object"
288
+ },
289
+ "database": {
290
+ "additionalProperties": false,
291
+ "properties": {
292
+ "host": {
293
+ "type": "string"
294
+ },
295
+ "port": {
296
+ "type": "number"
297
+ }
298
+ },
299
+ "type": "object"
300
+ },
301
+ "eventarc": {
302
+ "additionalProperties": false,
303
+ "properties": {
304
+ "host": {
305
+ "type": "string"
306
+ },
307
+ "port": {
308
+ "type": "number"
309
+ }
310
+ },
311
+ "type": "object"
312
+ },
313
+ "extensions": {
314
+ "properties": {
315
+ },
316
+ "type": "object"
317
+ },
318
+ "firestore": {
319
+ "additionalProperties": false,
320
+ "properties": {
321
+ "host": {
322
+ "type": "string"
323
+ },
324
+ "port": {
325
+ "type": "number"
326
+ },
327
+ "websocketPort": {
328
+ "type": "number"
329
+ }
330
+ },
331
+ "type": "object"
332
+ },
333
+ "functions": {
334
+ "additionalProperties": false,
335
+ "properties": {
336
+ "host": {
337
+ "type": "string"
338
+ },
339
+ "port": {
340
+ "type": "number"
341
+ }
342
+ },
343
+ "type": "object"
344
+ },
345
+ "hosting": {
346
+ "additionalProperties": false,
347
+ "properties": {
348
+ "host": {
349
+ "type": "string"
350
+ },
351
+ "port": {
352
+ "type": "number"
353
+ }
354
+ },
355
+ "type": "object"
356
+ },
357
+ "hub": {
358
+ "additionalProperties": false,
359
+ "properties": {
360
+ "host": {
361
+ "type": "string"
362
+ },
363
+ "port": {
364
+ "type": "number"
365
+ }
366
+ },
367
+ "type": "object"
368
+ },
369
+ "logging": {
370
+ "additionalProperties": false,
371
+ "properties": {
372
+ "host": {
373
+ "type": "string"
374
+ },
375
+ "port": {
376
+ "type": "number"
377
+ }
378
+ },
379
+ "type": "object"
380
+ },
381
+ "pubsub": {
382
+ "additionalProperties": false,
383
+ "properties": {
384
+ "host": {
385
+ "type": "string"
386
+ },
387
+ "port": {
388
+ "type": "number"
389
+ }
390
+ },
391
+ "type": "object"
392
+ },
393
+ "singleProjectMode": {
394
+ "type": "boolean"
395
+ },
396
+ "storage": {
397
+ "additionalProperties": false,
398
+ "properties": {
399
+ "host": {
400
+ "type": "string"
401
+ },
402
+ "port": {
403
+ "type": "number"
404
+ }
405
+ },
406
+ "type": "object"
407
+ },
408
+ "ui": {
409
+ "additionalProperties": false,
410
+ "properties": {
411
+ "enabled": {
412
+ "type": "boolean"
413
+ },
414
+ "host": {
415
+ "type": "string"
416
+ },
417
+ "port": {
418
+ "type": [
419
+ "string",
420
+ "number"
421
+ ]
422
+ }
423
+ },
424
+ "type": "object"
425
+ }
426
+ },
427
+ "type": "object"
428
+ },
429
+ "extensions": {
430
+ "$ref": "#/definitions/ExtensionsConfig"
431
+ },
432
+ "firestore": {
433
+ "anyOf": [
434
+ {
435
+ "additionalProperties": false,
436
+ "properties": {
437
+ "database": {
438
+ "type": "string"
439
+ },
440
+ "indexes": {
441
+ "type": "string"
442
+ },
443
+ "postdeploy": {
444
+ "anyOf": [
445
+ {
446
+ "items": {
447
+ "type": "string"
448
+ },
449
+ "type": "array"
450
+ },
451
+ {
452
+ "type": "string"
453
+ }
454
+ ]
455
+ },
456
+ "predeploy": {
457
+ "anyOf": [
458
+ {
459
+ "items": {
460
+ "type": "string"
461
+ },
462
+ "type": "array"
463
+ },
464
+ {
465
+ "type": "string"
466
+ }
467
+ ]
468
+ },
469
+ "rules": {
470
+ "type": "string"
471
+ }
472
+ },
473
+ "type": "object"
474
+ },
475
+ {
476
+ "items": {
477
+ "anyOf": [
478
+ {
479
+ "additionalProperties": false,
480
+ "properties": {
481
+ "database": {
482
+ "type": "string"
483
+ },
484
+ "indexes": {
485
+ "type": "string"
486
+ },
487
+ "postdeploy": {
488
+ "anyOf": [
489
+ {
490
+ "items": {
491
+ "type": "string"
492
+ },
493
+ "type": "array"
494
+ },
495
+ {
496
+ "type": "string"
497
+ }
498
+ ]
499
+ },
500
+ "predeploy": {
501
+ "anyOf": [
502
+ {
503
+ "items": {
504
+ "type": "string"
505
+ },
506
+ "type": "array"
507
+ },
508
+ {
509
+ "type": "string"
510
+ }
511
+ ]
512
+ },
513
+ "rules": {
514
+ "type": "string"
515
+ },
516
+ "target": {
517
+ "type": "string"
518
+ }
519
+ },
520
+ "required": [
521
+ "target"
522
+ ],
523
+ "type": "object"
524
+ },
525
+ {
526
+ "additionalProperties": false,
527
+ "properties": {
528
+ "database": {
529
+ "type": "string"
530
+ },
531
+ "indexes": {
532
+ "type": "string"
533
+ },
534
+ "postdeploy": {
535
+ "anyOf": [
536
+ {
537
+ "items": {
538
+ "type": "string"
539
+ },
540
+ "type": "array"
541
+ },
542
+ {
543
+ "type": "string"
544
+ }
545
+ ]
546
+ },
547
+ "predeploy": {
548
+ "anyOf": [
549
+ {
550
+ "items": {
551
+ "type": "string"
552
+ },
553
+ "type": "array"
554
+ },
555
+ {
556
+ "type": "string"
557
+ }
558
+ ]
559
+ },
560
+ "rules": {
561
+ "type": "string"
562
+ },
563
+ "target": {
564
+ "type": "string"
565
+ }
566
+ },
567
+ "required": [
568
+ "database"
569
+ ],
570
+ "type": "object"
571
+ }
572
+ ]
573
+ },
574
+ "type": "array"
575
+ }
576
+ ]
577
+ },
578
+ "functions": {
579
+ "anyOf": [
580
+ {
581
+ "additionalProperties": false,
582
+ "properties": {
583
+ "codebase": {
584
+ "type": "string"
585
+ },
586
+ "ignore": {
587
+ "items": {
588
+ "type": "string"
589
+ },
590
+ "type": "array"
591
+ },
592
+ "postdeploy": {
593
+ "anyOf": [
594
+ {
595
+ "items": {
596
+ "type": "string"
597
+ },
598
+ "type": "array"
599
+ },
600
+ {
601
+ "type": "string"
602
+ }
603
+ ]
604
+ },
605
+ "predeploy": {
606
+ "anyOf": [
607
+ {
608
+ "items": {
609
+ "type": "string"
610
+ },
611
+ "type": "array"
612
+ },
613
+ {
614
+ "type": "string"
615
+ }
616
+ ]
617
+ },
618
+ "runtime": {
619
+ "enum": [
620
+ "nodejs10",
621
+ "nodejs12",
622
+ "nodejs14",
623
+ "nodejs16",
624
+ "nodejs18",
625
+ "nodejs20"
626
+ ],
627
+ "type": "string"
628
+ },
629
+ "source": {
630
+ "type": "string"
631
+ }
632
+ },
633
+ "type": "object"
634
+ },
635
+ {
636
+ "items": {
637
+ "additionalProperties": false,
638
+ "properties": {
639
+ "codebase": {
640
+ "type": "string"
641
+ },
642
+ "ignore": {
643
+ "items": {
644
+ "type": "string"
645
+ },
646
+ "type": "array"
647
+ },
648
+ "postdeploy": {
649
+ "anyOf": [
650
+ {
651
+ "items": {
652
+ "type": "string"
653
+ },
654
+ "type": "array"
655
+ },
656
+ {
657
+ "type": "string"
658
+ }
659
+ ]
660
+ },
661
+ "predeploy": {
662
+ "anyOf": [
663
+ {
664
+ "items": {
665
+ "type": "string"
666
+ },
667
+ "type": "array"
668
+ },
669
+ {
670
+ "type": "string"
671
+ }
672
+ ]
673
+ },
674
+ "runtime": {
675
+ "enum": [
676
+ "nodejs10",
677
+ "nodejs12",
678
+ "nodejs14",
679
+ "nodejs16",
680
+ "nodejs18",
681
+ "nodejs20"
682
+ ],
683
+ "type": "string"
684
+ },
685
+ "source": {
686
+ "type": "string"
687
+ }
688
+ },
689
+ "type": "object"
690
+ },
691
+ "type": "array"
692
+ }
693
+ ]
694
+ },
695
+ "hosting": {
696
+ "anyOf": [
697
+ {
698
+ "additionalProperties": false,
699
+ "properties": {
700
+ "appAssociation": {
701
+ "enum": [
702
+ "AUTO",
703
+ "NONE"
704
+ ],
705
+ "type": "string"
706
+ },
707
+ "cleanUrls": {
708
+ "type": "boolean"
709
+ },
710
+ "frameworksBackend": {
711
+ "$ref": "#/definitions/FrameworksBackendOptions"
712
+ },
713
+ "headers": {
714
+ "items": {
715
+ "anyOf": [
716
+ {
717
+ "additionalProperties": false,
718
+ "properties": {
719
+ "glob": {
720
+ "type": "string"
721
+ },
722
+ "headers": {
723
+ "items": {
724
+ "additionalProperties": false,
725
+ "properties": {
726
+ "key": {
727
+ "type": "string"
728
+ },
729
+ "value": {
730
+ "type": "string"
731
+ }
732
+ },
733
+ "required": [
734
+ "key",
735
+ "value"
736
+ ],
737
+ "type": "object"
738
+ },
739
+ "type": "array"
740
+ }
741
+ },
742
+ "required": [
743
+ "glob",
744
+ "headers"
745
+ ],
746
+ "type": "object"
747
+ },
748
+ {
749
+ "additionalProperties": false,
750
+ "properties": {
751
+ "headers": {
752
+ "items": {
753
+ "additionalProperties": false,
754
+ "properties": {
755
+ "key": {
756
+ "type": "string"
757
+ },
758
+ "value": {
759
+ "type": "string"
760
+ }
761
+ },
762
+ "required": [
763
+ "key",
764
+ "value"
765
+ ],
766
+ "type": "object"
767
+ },
768
+ "type": "array"
769
+ },
770
+ "source": {
771
+ "type": "string"
772
+ }
773
+ },
774
+ "required": [
775
+ "headers",
776
+ "source"
777
+ ],
778
+ "type": "object"
779
+ },
780
+ {
781
+ "additionalProperties": false,
782
+ "properties": {
783
+ "headers": {
784
+ "items": {
785
+ "additionalProperties": false,
786
+ "properties": {
787
+ "key": {
788
+ "type": "string"
789
+ },
790
+ "value": {
791
+ "type": "string"
792
+ }
793
+ },
794
+ "required": [
795
+ "key",
796
+ "value"
797
+ ],
798
+ "type": "object"
799
+ },
800
+ "type": "array"
801
+ },
802
+ "regex": {
803
+ "type": "string"
804
+ }
805
+ },
806
+ "required": [
807
+ "headers",
808
+ "regex"
809
+ ],
810
+ "type": "object"
811
+ }
812
+ ]
813
+ },
814
+ "type": "array"
815
+ },
816
+ "i18n": {
817
+ "additionalProperties": false,
818
+ "properties": {
819
+ "root": {
820
+ "type": "string"
821
+ }
822
+ },
823
+ "required": [
824
+ "root"
825
+ ],
826
+ "type": "object"
827
+ },
828
+ "ignore": {
829
+ "items": {
830
+ "type": "string"
831
+ },
832
+ "type": "array"
833
+ },
834
+ "postdeploy": {
835
+ "anyOf": [
836
+ {
837
+ "items": {
838
+ "type": "string"
839
+ },
840
+ "type": "array"
841
+ },
842
+ {
843
+ "type": "string"
844
+ }
845
+ ]
846
+ },
847
+ "predeploy": {
848
+ "anyOf": [
849
+ {
850
+ "items": {
851
+ "type": "string"
852
+ },
853
+ "type": "array"
854
+ },
855
+ {
856
+ "type": "string"
857
+ }
858
+ ]
859
+ },
860
+ "public": {
861
+ "type": "string"
862
+ },
863
+ "redirects": {
864
+ "items": {
865
+ "anyOf": [
866
+ {
867
+ "additionalProperties": false,
868
+ "properties": {
869
+ "destination": {
870
+ "type": "string"
871
+ },
872
+ "glob": {
873
+ "type": "string"
874
+ },
875
+ "type": {
876
+ "type": "number"
877
+ }
878
+ },
879
+ "required": [
880
+ "destination",
881
+ "glob"
882
+ ],
883
+ "type": "object"
884
+ },
885
+ {
886
+ "additionalProperties": false,
887
+ "properties": {
888
+ "destination": {
889
+ "type": "string"
890
+ },
891
+ "source": {
892
+ "type": "string"
893
+ },
894
+ "type": {
895
+ "type": "number"
896
+ }
897
+ },
898
+ "required": [
899
+ "destination",
900
+ "source"
901
+ ],
902
+ "type": "object"
903
+ },
904
+ {
905
+ "additionalProperties": false,
906
+ "properties": {
907
+ "destination": {
908
+ "type": "string"
909
+ },
910
+ "regex": {
911
+ "type": "string"
912
+ },
913
+ "type": {
914
+ "type": "number"
915
+ }
916
+ },
917
+ "required": [
918
+ "destination",
919
+ "regex"
920
+ ],
921
+ "type": "object"
922
+ }
923
+ ]
924
+ },
925
+ "type": "array"
926
+ },
927
+ "rewrites": {
928
+ "items": {
929
+ "anyOf": [
930
+ {
931
+ "additionalProperties": false,
932
+ "properties": {
933
+ "destination": {
934
+ "type": "string"
935
+ },
936
+ "glob": {
937
+ "type": "string"
938
+ }
939
+ },
940
+ "required": [
941
+ "destination",
942
+ "glob"
943
+ ],
944
+ "type": "object"
945
+ },
946
+ {
947
+ "additionalProperties": false,
948
+ "properties": {
949
+ "function": {
950
+ "type": "string"
951
+ },
952
+ "glob": {
953
+ "type": "string"
954
+ },
955
+ "region": {
956
+ "type": "string"
957
+ }
958
+ },
959
+ "required": [
960
+ "function",
961
+ "glob"
962
+ ],
963
+ "type": "object"
964
+ },
965
+ {
966
+ "additionalProperties": false,
967
+ "properties": {
968
+ "function": {
969
+ "additionalProperties": false,
970
+ "properties": {
971
+ "functionId": {
972
+ "type": "string"
973
+ },
974
+ "pinTag": {
975
+ "type": "boolean"
976
+ },
977
+ "region": {
978
+ "type": "string"
979
+ }
980
+ },
981
+ "required": [
982
+ "functionId"
983
+ ],
984
+ "type": "object"
985
+ },
986
+ "glob": {
987
+ "type": "string"
988
+ }
989
+ },
990
+ "required": [
991
+ "function",
992
+ "glob"
993
+ ],
994
+ "type": "object"
995
+ },
996
+ {
997
+ "additionalProperties": false,
998
+ "properties": {
999
+ "glob": {
1000
+ "type": "string"
1001
+ },
1002
+ "run": {
1003
+ "additionalProperties": false,
1004
+ "properties": {
1005
+ "pinTag": {
1006
+ "type": "boolean"
1007
+ },
1008
+ "region": {
1009
+ "type": "string"
1010
+ },
1011
+ "serviceId": {
1012
+ "type": "string"
1013
+ }
1014
+ },
1015
+ "required": [
1016
+ "serviceId"
1017
+ ],
1018
+ "type": "object"
1019
+ }
1020
+ },
1021
+ "required": [
1022
+ "glob",
1023
+ "run"
1024
+ ],
1025
+ "type": "object"
1026
+ },
1027
+ {
1028
+ "additionalProperties": false,
1029
+ "properties": {
1030
+ "dynamicLinks": {
1031
+ "type": "boolean"
1032
+ },
1033
+ "glob": {
1034
+ "type": "string"
1035
+ }
1036
+ },
1037
+ "required": [
1038
+ "dynamicLinks",
1039
+ "glob"
1040
+ ],
1041
+ "type": "object"
1042
+ },
1043
+ {
1044
+ "additionalProperties": false,
1045
+ "properties": {
1046
+ "destination": {
1047
+ "type": "string"
1048
+ },
1049
+ "source": {
1050
+ "type": "string"
1051
+ }
1052
+ },
1053
+ "required": [
1054
+ "destination",
1055
+ "source"
1056
+ ],
1057
+ "type": "object"
1058
+ },
1059
+ {
1060
+ "additionalProperties": false,
1061
+ "properties": {
1062
+ "function": {
1063
+ "type": "string"
1064
+ },
1065
+ "region": {
1066
+ "type": "string"
1067
+ },
1068
+ "source": {
1069
+ "type": "string"
1070
+ }
1071
+ },
1072
+ "required": [
1073
+ "function",
1074
+ "source"
1075
+ ],
1076
+ "type": "object"
1077
+ },
1078
+ {
1079
+ "additionalProperties": false,
1080
+ "properties": {
1081
+ "function": {
1082
+ "additionalProperties": false,
1083
+ "properties": {
1084
+ "functionId": {
1085
+ "type": "string"
1086
+ },
1087
+ "pinTag": {
1088
+ "type": "boolean"
1089
+ },
1090
+ "region": {
1091
+ "type": "string"
1092
+ }
1093
+ },
1094
+ "required": [
1095
+ "functionId"
1096
+ ],
1097
+ "type": "object"
1098
+ },
1099
+ "source": {
1100
+ "type": "string"
1101
+ }
1102
+ },
1103
+ "required": [
1104
+ "function",
1105
+ "source"
1106
+ ],
1107
+ "type": "object"
1108
+ },
1109
+ {
1110
+ "additionalProperties": false,
1111
+ "properties": {
1112
+ "run": {
1113
+ "additionalProperties": false,
1114
+ "properties": {
1115
+ "pinTag": {
1116
+ "type": "boolean"
1117
+ },
1118
+ "region": {
1119
+ "type": "string"
1120
+ },
1121
+ "serviceId": {
1122
+ "type": "string"
1123
+ }
1124
+ },
1125
+ "required": [
1126
+ "serviceId"
1127
+ ],
1128
+ "type": "object"
1129
+ },
1130
+ "source": {
1131
+ "type": "string"
1132
+ }
1133
+ },
1134
+ "required": [
1135
+ "run",
1136
+ "source"
1137
+ ],
1138
+ "type": "object"
1139
+ },
1140
+ {
1141
+ "additionalProperties": false,
1142
+ "properties": {
1143
+ "dynamicLinks": {
1144
+ "type": "boolean"
1145
+ },
1146
+ "source": {
1147
+ "type": "string"
1148
+ }
1149
+ },
1150
+ "required": [
1151
+ "dynamicLinks",
1152
+ "source"
1153
+ ],
1154
+ "type": "object"
1155
+ },
1156
+ {
1157
+ "additionalProperties": false,
1158
+ "properties": {
1159
+ "destination": {
1160
+ "type": "string"
1161
+ },
1162
+ "regex": {
1163
+ "type": "string"
1164
+ }
1165
+ },
1166
+ "required": [
1167
+ "destination",
1168
+ "regex"
1169
+ ],
1170
+ "type": "object"
1171
+ },
1172
+ {
1173
+ "additionalProperties": false,
1174
+ "properties": {
1175
+ "function": {
1176
+ "type": "string"
1177
+ },
1178
+ "regex": {
1179
+ "type": "string"
1180
+ },
1181
+ "region": {
1182
+ "type": "string"
1183
+ }
1184
+ },
1185
+ "required": [
1186
+ "function",
1187
+ "regex"
1188
+ ],
1189
+ "type": "object"
1190
+ },
1191
+ {
1192
+ "additionalProperties": false,
1193
+ "properties": {
1194
+ "function": {
1195
+ "additionalProperties": false,
1196
+ "properties": {
1197
+ "functionId": {
1198
+ "type": "string"
1199
+ },
1200
+ "pinTag": {
1201
+ "type": "boolean"
1202
+ },
1203
+ "region": {
1204
+ "type": "string"
1205
+ }
1206
+ },
1207
+ "required": [
1208
+ "functionId"
1209
+ ],
1210
+ "type": "object"
1211
+ },
1212
+ "regex": {
1213
+ "type": "string"
1214
+ }
1215
+ },
1216
+ "required": [
1217
+ "function",
1218
+ "regex"
1219
+ ],
1220
+ "type": "object"
1221
+ },
1222
+ {
1223
+ "additionalProperties": false,
1224
+ "properties": {
1225
+ "regex": {
1226
+ "type": "string"
1227
+ },
1228
+ "run": {
1229
+ "additionalProperties": false,
1230
+ "properties": {
1231
+ "pinTag": {
1232
+ "type": "boolean"
1233
+ },
1234
+ "region": {
1235
+ "type": "string"
1236
+ },
1237
+ "serviceId": {
1238
+ "type": "string"
1239
+ }
1240
+ },
1241
+ "required": [
1242
+ "serviceId"
1243
+ ],
1244
+ "type": "object"
1245
+ }
1246
+ },
1247
+ "required": [
1248
+ "regex",
1249
+ "run"
1250
+ ],
1251
+ "type": "object"
1252
+ },
1253
+ {
1254
+ "additionalProperties": false,
1255
+ "properties": {
1256
+ "dynamicLinks": {
1257
+ "type": "boolean"
1258
+ },
1259
+ "regex": {
1260
+ "type": "string"
1261
+ }
1262
+ },
1263
+ "required": [
1264
+ "dynamicLinks",
1265
+ "regex"
1266
+ ],
1267
+ "type": "object"
1268
+ }
1269
+ ]
1270
+ },
1271
+ "type": "array"
1272
+ },
1273
+ "site": {
1274
+ "type": "string"
1275
+ },
1276
+ "source": {
1277
+ "type": "string"
1278
+ },
1279
+ "target": {
1280
+ "type": "string"
1281
+ },
1282
+ "trailingSlash": {
1283
+ "type": "boolean"
1284
+ }
1285
+ },
1286
+ "type": "object"
1287
+ },
1288
+ {
1289
+ "items": {
1290
+ "anyOf": [
1291
+ {
1292
+ "additionalProperties": false,
1293
+ "properties": {
1294
+ "appAssociation": {
1295
+ "enum": [
1296
+ "AUTO",
1297
+ "NONE"
1298
+ ],
1299
+ "type": "string"
1300
+ },
1301
+ "cleanUrls": {
1302
+ "type": "boolean"
1303
+ },
1304
+ "frameworksBackend": {
1305
+ "$ref": "#/definitions/FrameworksBackendOptions"
1306
+ },
1307
+ "headers": {
1308
+ "items": {
1309
+ "anyOf": [
1310
+ {
1311
+ "additionalProperties": false,
1312
+ "properties": {
1313
+ "glob": {
1314
+ "type": "string"
1315
+ },
1316
+ "headers": {
1317
+ "items": {
1318
+ "additionalProperties": false,
1319
+ "properties": {
1320
+ "key": {
1321
+ "type": "string"
1322
+ },
1323
+ "value": {
1324
+ "type": "string"
1325
+ }
1326
+ },
1327
+ "required": [
1328
+ "key",
1329
+ "value"
1330
+ ],
1331
+ "type": "object"
1332
+ },
1333
+ "type": "array"
1334
+ }
1335
+ },
1336
+ "required": [
1337
+ "glob",
1338
+ "headers"
1339
+ ],
1340
+ "type": "object"
1341
+ },
1342
+ {
1343
+ "additionalProperties": false,
1344
+ "properties": {
1345
+ "headers": {
1346
+ "items": {
1347
+ "additionalProperties": false,
1348
+ "properties": {
1349
+ "key": {
1350
+ "type": "string"
1351
+ },
1352
+ "value": {
1353
+ "type": "string"
1354
+ }
1355
+ },
1356
+ "required": [
1357
+ "key",
1358
+ "value"
1359
+ ],
1360
+ "type": "object"
1361
+ },
1362
+ "type": "array"
1363
+ },
1364
+ "source": {
1365
+ "type": "string"
1366
+ }
1367
+ },
1368
+ "required": [
1369
+ "headers",
1370
+ "source"
1371
+ ],
1372
+ "type": "object"
1373
+ },
1374
+ {
1375
+ "additionalProperties": false,
1376
+ "properties": {
1377
+ "headers": {
1378
+ "items": {
1379
+ "additionalProperties": false,
1380
+ "properties": {
1381
+ "key": {
1382
+ "type": "string"
1383
+ },
1384
+ "value": {
1385
+ "type": "string"
1386
+ }
1387
+ },
1388
+ "required": [
1389
+ "key",
1390
+ "value"
1391
+ ],
1392
+ "type": "object"
1393
+ },
1394
+ "type": "array"
1395
+ },
1396
+ "regex": {
1397
+ "type": "string"
1398
+ }
1399
+ },
1400
+ "required": [
1401
+ "headers",
1402
+ "regex"
1403
+ ],
1404
+ "type": "object"
1405
+ }
1406
+ ]
1407
+ },
1408
+ "type": "array"
1409
+ },
1410
+ "i18n": {
1411
+ "additionalProperties": false,
1412
+ "properties": {
1413
+ "root": {
1414
+ "type": "string"
1415
+ }
1416
+ },
1417
+ "required": [
1418
+ "root"
1419
+ ],
1420
+ "type": "object"
1421
+ },
1422
+ "ignore": {
1423
+ "items": {
1424
+ "type": "string"
1425
+ },
1426
+ "type": "array"
1427
+ },
1428
+ "postdeploy": {
1429
+ "anyOf": [
1430
+ {
1431
+ "items": {
1432
+ "type": "string"
1433
+ },
1434
+ "type": "array"
1435
+ },
1436
+ {
1437
+ "type": "string"
1438
+ }
1439
+ ]
1440
+ },
1441
+ "predeploy": {
1442
+ "anyOf": [
1443
+ {
1444
+ "items": {
1445
+ "type": "string"
1446
+ },
1447
+ "type": "array"
1448
+ },
1449
+ {
1450
+ "type": "string"
1451
+ }
1452
+ ]
1453
+ },
1454
+ "public": {
1455
+ "type": "string"
1456
+ },
1457
+ "redirects": {
1458
+ "items": {
1459
+ "anyOf": [
1460
+ {
1461
+ "additionalProperties": false,
1462
+ "properties": {
1463
+ "destination": {
1464
+ "type": "string"
1465
+ },
1466
+ "glob": {
1467
+ "type": "string"
1468
+ },
1469
+ "type": {
1470
+ "type": "number"
1471
+ }
1472
+ },
1473
+ "required": [
1474
+ "destination",
1475
+ "glob"
1476
+ ],
1477
+ "type": "object"
1478
+ },
1479
+ {
1480
+ "additionalProperties": false,
1481
+ "properties": {
1482
+ "destination": {
1483
+ "type": "string"
1484
+ },
1485
+ "source": {
1486
+ "type": "string"
1487
+ },
1488
+ "type": {
1489
+ "type": "number"
1490
+ }
1491
+ },
1492
+ "required": [
1493
+ "destination",
1494
+ "source"
1495
+ ],
1496
+ "type": "object"
1497
+ },
1498
+ {
1499
+ "additionalProperties": false,
1500
+ "properties": {
1501
+ "destination": {
1502
+ "type": "string"
1503
+ },
1504
+ "regex": {
1505
+ "type": "string"
1506
+ },
1507
+ "type": {
1508
+ "type": "number"
1509
+ }
1510
+ },
1511
+ "required": [
1512
+ "destination",
1513
+ "regex"
1514
+ ],
1515
+ "type": "object"
1516
+ }
1517
+ ]
1518
+ },
1519
+ "type": "array"
1520
+ },
1521
+ "rewrites": {
1522
+ "items": {
1523
+ "anyOf": [
1524
+ {
1525
+ "additionalProperties": false,
1526
+ "properties": {
1527
+ "destination": {
1528
+ "type": "string"
1529
+ },
1530
+ "glob": {
1531
+ "type": "string"
1532
+ }
1533
+ },
1534
+ "required": [
1535
+ "destination",
1536
+ "glob"
1537
+ ],
1538
+ "type": "object"
1539
+ },
1540
+ {
1541
+ "additionalProperties": false,
1542
+ "properties": {
1543
+ "function": {
1544
+ "type": "string"
1545
+ },
1546
+ "glob": {
1547
+ "type": "string"
1548
+ },
1549
+ "region": {
1550
+ "type": "string"
1551
+ }
1552
+ },
1553
+ "required": [
1554
+ "function",
1555
+ "glob"
1556
+ ],
1557
+ "type": "object"
1558
+ },
1559
+ {
1560
+ "additionalProperties": false,
1561
+ "properties": {
1562
+ "function": {
1563
+ "additionalProperties": false,
1564
+ "properties": {
1565
+ "functionId": {
1566
+ "type": "string"
1567
+ },
1568
+ "pinTag": {
1569
+ "type": "boolean"
1570
+ },
1571
+ "region": {
1572
+ "type": "string"
1573
+ }
1574
+ },
1575
+ "required": [
1576
+ "functionId"
1577
+ ],
1578
+ "type": "object"
1579
+ },
1580
+ "glob": {
1581
+ "type": "string"
1582
+ }
1583
+ },
1584
+ "required": [
1585
+ "function",
1586
+ "glob"
1587
+ ],
1588
+ "type": "object"
1589
+ },
1590
+ {
1591
+ "additionalProperties": false,
1592
+ "properties": {
1593
+ "glob": {
1594
+ "type": "string"
1595
+ },
1596
+ "run": {
1597
+ "additionalProperties": false,
1598
+ "properties": {
1599
+ "pinTag": {
1600
+ "type": "boolean"
1601
+ },
1602
+ "region": {
1603
+ "type": "string"
1604
+ },
1605
+ "serviceId": {
1606
+ "type": "string"
1607
+ }
1608
+ },
1609
+ "required": [
1610
+ "serviceId"
1611
+ ],
1612
+ "type": "object"
1613
+ }
1614
+ },
1615
+ "required": [
1616
+ "glob",
1617
+ "run"
1618
+ ],
1619
+ "type": "object"
1620
+ },
1621
+ {
1622
+ "additionalProperties": false,
1623
+ "properties": {
1624
+ "dynamicLinks": {
1625
+ "type": "boolean"
1626
+ },
1627
+ "glob": {
1628
+ "type": "string"
1629
+ }
1630
+ },
1631
+ "required": [
1632
+ "dynamicLinks",
1633
+ "glob"
1634
+ ],
1635
+ "type": "object"
1636
+ },
1637
+ {
1638
+ "additionalProperties": false,
1639
+ "properties": {
1640
+ "destination": {
1641
+ "type": "string"
1642
+ },
1643
+ "source": {
1644
+ "type": "string"
1645
+ }
1646
+ },
1647
+ "required": [
1648
+ "destination",
1649
+ "source"
1650
+ ],
1651
+ "type": "object"
1652
+ },
1653
+ {
1654
+ "additionalProperties": false,
1655
+ "properties": {
1656
+ "function": {
1657
+ "type": "string"
1658
+ },
1659
+ "region": {
1660
+ "type": "string"
1661
+ },
1662
+ "source": {
1663
+ "type": "string"
1664
+ }
1665
+ },
1666
+ "required": [
1667
+ "function",
1668
+ "source"
1669
+ ],
1670
+ "type": "object"
1671
+ },
1672
+ {
1673
+ "additionalProperties": false,
1674
+ "properties": {
1675
+ "function": {
1676
+ "additionalProperties": false,
1677
+ "properties": {
1678
+ "functionId": {
1679
+ "type": "string"
1680
+ },
1681
+ "pinTag": {
1682
+ "type": "boolean"
1683
+ },
1684
+ "region": {
1685
+ "type": "string"
1686
+ }
1687
+ },
1688
+ "required": [
1689
+ "functionId"
1690
+ ],
1691
+ "type": "object"
1692
+ },
1693
+ "source": {
1694
+ "type": "string"
1695
+ }
1696
+ },
1697
+ "required": [
1698
+ "function",
1699
+ "source"
1700
+ ],
1701
+ "type": "object"
1702
+ },
1703
+ {
1704
+ "additionalProperties": false,
1705
+ "properties": {
1706
+ "run": {
1707
+ "additionalProperties": false,
1708
+ "properties": {
1709
+ "pinTag": {
1710
+ "type": "boolean"
1711
+ },
1712
+ "region": {
1713
+ "type": "string"
1714
+ },
1715
+ "serviceId": {
1716
+ "type": "string"
1717
+ }
1718
+ },
1719
+ "required": [
1720
+ "serviceId"
1721
+ ],
1722
+ "type": "object"
1723
+ },
1724
+ "source": {
1725
+ "type": "string"
1726
+ }
1727
+ },
1728
+ "required": [
1729
+ "run",
1730
+ "source"
1731
+ ],
1732
+ "type": "object"
1733
+ },
1734
+ {
1735
+ "additionalProperties": false,
1736
+ "properties": {
1737
+ "dynamicLinks": {
1738
+ "type": "boolean"
1739
+ },
1740
+ "source": {
1741
+ "type": "string"
1742
+ }
1743
+ },
1744
+ "required": [
1745
+ "dynamicLinks",
1746
+ "source"
1747
+ ],
1748
+ "type": "object"
1749
+ },
1750
+ {
1751
+ "additionalProperties": false,
1752
+ "properties": {
1753
+ "destination": {
1754
+ "type": "string"
1755
+ },
1756
+ "regex": {
1757
+ "type": "string"
1758
+ }
1759
+ },
1760
+ "required": [
1761
+ "destination",
1762
+ "regex"
1763
+ ],
1764
+ "type": "object"
1765
+ },
1766
+ {
1767
+ "additionalProperties": false,
1768
+ "properties": {
1769
+ "function": {
1770
+ "type": "string"
1771
+ },
1772
+ "regex": {
1773
+ "type": "string"
1774
+ },
1775
+ "region": {
1776
+ "type": "string"
1777
+ }
1778
+ },
1779
+ "required": [
1780
+ "function",
1781
+ "regex"
1782
+ ],
1783
+ "type": "object"
1784
+ },
1785
+ {
1786
+ "additionalProperties": false,
1787
+ "properties": {
1788
+ "function": {
1789
+ "additionalProperties": false,
1790
+ "properties": {
1791
+ "functionId": {
1792
+ "type": "string"
1793
+ },
1794
+ "pinTag": {
1795
+ "type": "boolean"
1796
+ },
1797
+ "region": {
1798
+ "type": "string"
1799
+ }
1800
+ },
1801
+ "required": [
1802
+ "functionId"
1803
+ ],
1804
+ "type": "object"
1805
+ },
1806
+ "regex": {
1807
+ "type": "string"
1808
+ }
1809
+ },
1810
+ "required": [
1811
+ "function",
1812
+ "regex"
1813
+ ],
1814
+ "type": "object"
1815
+ },
1816
+ {
1817
+ "additionalProperties": false,
1818
+ "properties": {
1819
+ "regex": {
1820
+ "type": "string"
1821
+ },
1822
+ "run": {
1823
+ "additionalProperties": false,
1824
+ "properties": {
1825
+ "pinTag": {
1826
+ "type": "boolean"
1827
+ },
1828
+ "region": {
1829
+ "type": "string"
1830
+ },
1831
+ "serviceId": {
1832
+ "type": "string"
1833
+ }
1834
+ },
1835
+ "required": [
1836
+ "serviceId"
1837
+ ],
1838
+ "type": "object"
1839
+ }
1840
+ },
1841
+ "required": [
1842
+ "regex",
1843
+ "run"
1844
+ ],
1845
+ "type": "object"
1846
+ },
1847
+ {
1848
+ "additionalProperties": false,
1849
+ "properties": {
1850
+ "dynamicLinks": {
1851
+ "type": "boolean"
1852
+ },
1853
+ "regex": {
1854
+ "type": "string"
1855
+ }
1856
+ },
1857
+ "required": [
1858
+ "dynamicLinks",
1859
+ "regex"
1860
+ ],
1861
+ "type": "object"
1862
+ }
1863
+ ]
1864
+ },
1865
+ "type": "array"
1866
+ },
1867
+ "site": {
1868
+ "type": "string"
1869
+ },
1870
+ "source": {
1871
+ "type": "string"
1872
+ },
1873
+ "target": {
1874
+ "type": "string"
1875
+ },
1876
+ "trailingSlash": {
1877
+ "type": "boolean"
1878
+ }
1879
+ },
1880
+ "required": [
1881
+ "target"
1882
+ ],
1883
+ "type": "object"
1884
+ },
1885
+ {
1886
+ "additionalProperties": false,
1887
+ "properties": {
1888
+ "appAssociation": {
1889
+ "enum": [
1890
+ "AUTO",
1891
+ "NONE"
1892
+ ],
1893
+ "type": "string"
1894
+ },
1895
+ "cleanUrls": {
1896
+ "type": "boolean"
1897
+ },
1898
+ "frameworksBackend": {
1899
+ "$ref": "#/definitions/FrameworksBackendOptions"
1900
+ },
1901
+ "headers": {
1902
+ "items": {
1903
+ "anyOf": [
1904
+ {
1905
+ "additionalProperties": false,
1906
+ "properties": {
1907
+ "glob": {
1908
+ "type": "string"
1909
+ },
1910
+ "headers": {
1911
+ "items": {
1912
+ "additionalProperties": false,
1913
+ "properties": {
1914
+ "key": {
1915
+ "type": "string"
1916
+ },
1917
+ "value": {
1918
+ "type": "string"
1919
+ }
1920
+ },
1921
+ "required": [
1922
+ "key",
1923
+ "value"
1924
+ ],
1925
+ "type": "object"
1926
+ },
1927
+ "type": "array"
1928
+ }
1929
+ },
1930
+ "required": [
1931
+ "glob",
1932
+ "headers"
1933
+ ],
1934
+ "type": "object"
1935
+ },
1936
+ {
1937
+ "additionalProperties": false,
1938
+ "properties": {
1939
+ "headers": {
1940
+ "items": {
1941
+ "additionalProperties": false,
1942
+ "properties": {
1943
+ "key": {
1944
+ "type": "string"
1945
+ },
1946
+ "value": {
1947
+ "type": "string"
1948
+ }
1949
+ },
1950
+ "required": [
1951
+ "key",
1952
+ "value"
1953
+ ],
1954
+ "type": "object"
1955
+ },
1956
+ "type": "array"
1957
+ },
1958
+ "source": {
1959
+ "type": "string"
1960
+ }
1961
+ },
1962
+ "required": [
1963
+ "headers",
1964
+ "source"
1965
+ ],
1966
+ "type": "object"
1967
+ },
1968
+ {
1969
+ "additionalProperties": false,
1970
+ "properties": {
1971
+ "headers": {
1972
+ "items": {
1973
+ "additionalProperties": false,
1974
+ "properties": {
1975
+ "key": {
1976
+ "type": "string"
1977
+ },
1978
+ "value": {
1979
+ "type": "string"
1980
+ }
1981
+ },
1982
+ "required": [
1983
+ "key",
1984
+ "value"
1985
+ ],
1986
+ "type": "object"
1987
+ },
1988
+ "type": "array"
1989
+ },
1990
+ "regex": {
1991
+ "type": "string"
1992
+ }
1993
+ },
1994
+ "required": [
1995
+ "headers",
1996
+ "regex"
1997
+ ],
1998
+ "type": "object"
1999
+ }
2000
+ ]
2001
+ },
2002
+ "type": "array"
2003
+ },
2004
+ "i18n": {
2005
+ "additionalProperties": false,
2006
+ "properties": {
2007
+ "root": {
2008
+ "type": "string"
2009
+ }
2010
+ },
2011
+ "required": [
2012
+ "root"
2013
+ ],
2014
+ "type": "object"
2015
+ },
2016
+ "ignore": {
2017
+ "items": {
2018
+ "type": "string"
2019
+ },
2020
+ "type": "array"
2021
+ },
2022
+ "postdeploy": {
2023
+ "anyOf": [
2024
+ {
2025
+ "items": {
2026
+ "type": "string"
2027
+ },
2028
+ "type": "array"
2029
+ },
2030
+ {
2031
+ "type": "string"
2032
+ }
2033
+ ]
2034
+ },
2035
+ "predeploy": {
2036
+ "anyOf": [
2037
+ {
2038
+ "items": {
2039
+ "type": "string"
2040
+ },
2041
+ "type": "array"
2042
+ },
2043
+ {
2044
+ "type": "string"
2045
+ }
2046
+ ]
2047
+ },
2048
+ "public": {
2049
+ "type": "string"
2050
+ },
2051
+ "redirects": {
2052
+ "items": {
2053
+ "anyOf": [
2054
+ {
2055
+ "additionalProperties": false,
2056
+ "properties": {
2057
+ "destination": {
2058
+ "type": "string"
2059
+ },
2060
+ "glob": {
2061
+ "type": "string"
2062
+ },
2063
+ "type": {
2064
+ "type": "number"
2065
+ }
2066
+ },
2067
+ "required": [
2068
+ "destination",
2069
+ "glob"
2070
+ ],
2071
+ "type": "object"
2072
+ },
2073
+ {
2074
+ "additionalProperties": false,
2075
+ "properties": {
2076
+ "destination": {
2077
+ "type": "string"
2078
+ },
2079
+ "source": {
2080
+ "type": "string"
2081
+ },
2082
+ "type": {
2083
+ "type": "number"
2084
+ }
2085
+ },
2086
+ "required": [
2087
+ "destination",
2088
+ "source"
2089
+ ],
2090
+ "type": "object"
2091
+ },
2092
+ {
2093
+ "additionalProperties": false,
2094
+ "properties": {
2095
+ "destination": {
2096
+ "type": "string"
2097
+ },
2098
+ "regex": {
2099
+ "type": "string"
2100
+ },
2101
+ "type": {
2102
+ "type": "number"
2103
+ }
2104
+ },
2105
+ "required": [
2106
+ "destination",
2107
+ "regex"
2108
+ ],
2109
+ "type": "object"
2110
+ }
2111
+ ]
2112
+ },
2113
+ "type": "array"
2114
+ },
2115
+ "rewrites": {
2116
+ "items": {
2117
+ "anyOf": [
2118
+ {
2119
+ "additionalProperties": false,
2120
+ "properties": {
2121
+ "destination": {
2122
+ "type": "string"
2123
+ },
2124
+ "glob": {
2125
+ "type": "string"
2126
+ }
2127
+ },
2128
+ "required": [
2129
+ "destination",
2130
+ "glob"
2131
+ ],
2132
+ "type": "object"
2133
+ },
2134
+ {
2135
+ "additionalProperties": false,
2136
+ "properties": {
2137
+ "function": {
2138
+ "type": "string"
2139
+ },
2140
+ "glob": {
2141
+ "type": "string"
2142
+ },
2143
+ "region": {
2144
+ "type": "string"
2145
+ }
2146
+ },
2147
+ "required": [
2148
+ "function",
2149
+ "glob"
2150
+ ],
2151
+ "type": "object"
2152
+ },
2153
+ {
2154
+ "additionalProperties": false,
2155
+ "properties": {
2156
+ "function": {
2157
+ "additionalProperties": false,
2158
+ "properties": {
2159
+ "functionId": {
2160
+ "type": "string"
2161
+ },
2162
+ "pinTag": {
2163
+ "type": "boolean"
2164
+ },
2165
+ "region": {
2166
+ "type": "string"
2167
+ }
2168
+ },
2169
+ "required": [
2170
+ "functionId"
2171
+ ],
2172
+ "type": "object"
2173
+ },
2174
+ "glob": {
2175
+ "type": "string"
2176
+ }
2177
+ },
2178
+ "required": [
2179
+ "function",
2180
+ "glob"
2181
+ ],
2182
+ "type": "object"
2183
+ },
2184
+ {
2185
+ "additionalProperties": false,
2186
+ "properties": {
2187
+ "glob": {
2188
+ "type": "string"
2189
+ },
2190
+ "run": {
2191
+ "additionalProperties": false,
2192
+ "properties": {
2193
+ "pinTag": {
2194
+ "type": "boolean"
2195
+ },
2196
+ "region": {
2197
+ "type": "string"
2198
+ },
2199
+ "serviceId": {
2200
+ "type": "string"
2201
+ }
2202
+ },
2203
+ "required": [
2204
+ "serviceId"
2205
+ ],
2206
+ "type": "object"
2207
+ }
2208
+ },
2209
+ "required": [
2210
+ "glob",
2211
+ "run"
2212
+ ],
2213
+ "type": "object"
2214
+ },
2215
+ {
2216
+ "additionalProperties": false,
2217
+ "properties": {
2218
+ "dynamicLinks": {
2219
+ "type": "boolean"
2220
+ },
2221
+ "glob": {
2222
+ "type": "string"
2223
+ }
2224
+ },
2225
+ "required": [
2226
+ "dynamicLinks",
2227
+ "glob"
2228
+ ],
2229
+ "type": "object"
2230
+ },
2231
+ {
2232
+ "additionalProperties": false,
2233
+ "properties": {
2234
+ "destination": {
2235
+ "type": "string"
2236
+ },
2237
+ "source": {
2238
+ "type": "string"
2239
+ }
2240
+ },
2241
+ "required": [
2242
+ "destination",
2243
+ "source"
2244
+ ],
2245
+ "type": "object"
2246
+ },
2247
+ {
2248
+ "additionalProperties": false,
2249
+ "properties": {
2250
+ "function": {
2251
+ "type": "string"
2252
+ },
2253
+ "region": {
2254
+ "type": "string"
2255
+ },
2256
+ "source": {
2257
+ "type": "string"
2258
+ }
2259
+ },
2260
+ "required": [
2261
+ "function",
2262
+ "source"
2263
+ ],
2264
+ "type": "object"
2265
+ },
2266
+ {
2267
+ "additionalProperties": false,
2268
+ "properties": {
2269
+ "function": {
2270
+ "additionalProperties": false,
2271
+ "properties": {
2272
+ "functionId": {
2273
+ "type": "string"
2274
+ },
2275
+ "pinTag": {
2276
+ "type": "boolean"
2277
+ },
2278
+ "region": {
2279
+ "type": "string"
2280
+ }
2281
+ },
2282
+ "required": [
2283
+ "functionId"
2284
+ ],
2285
+ "type": "object"
2286
+ },
2287
+ "source": {
2288
+ "type": "string"
2289
+ }
2290
+ },
2291
+ "required": [
2292
+ "function",
2293
+ "source"
2294
+ ],
2295
+ "type": "object"
2296
+ },
2297
+ {
2298
+ "additionalProperties": false,
2299
+ "properties": {
2300
+ "run": {
2301
+ "additionalProperties": false,
2302
+ "properties": {
2303
+ "pinTag": {
2304
+ "type": "boolean"
2305
+ },
2306
+ "region": {
2307
+ "type": "string"
2308
+ },
2309
+ "serviceId": {
2310
+ "type": "string"
2311
+ }
2312
+ },
2313
+ "required": [
2314
+ "serviceId"
2315
+ ],
2316
+ "type": "object"
2317
+ },
2318
+ "source": {
2319
+ "type": "string"
2320
+ }
2321
+ },
2322
+ "required": [
2323
+ "run",
2324
+ "source"
2325
+ ],
2326
+ "type": "object"
2327
+ },
2328
+ {
2329
+ "additionalProperties": false,
2330
+ "properties": {
2331
+ "dynamicLinks": {
2332
+ "type": "boolean"
2333
+ },
2334
+ "source": {
2335
+ "type": "string"
2336
+ }
2337
+ },
2338
+ "required": [
2339
+ "dynamicLinks",
2340
+ "source"
2341
+ ],
2342
+ "type": "object"
2343
+ },
2344
+ {
2345
+ "additionalProperties": false,
2346
+ "properties": {
2347
+ "destination": {
2348
+ "type": "string"
2349
+ },
2350
+ "regex": {
2351
+ "type": "string"
2352
+ }
2353
+ },
2354
+ "required": [
2355
+ "destination",
2356
+ "regex"
2357
+ ],
2358
+ "type": "object"
2359
+ },
2360
+ {
2361
+ "additionalProperties": false,
2362
+ "properties": {
2363
+ "function": {
2364
+ "type": "string"
2365
+ },
2366
+ "regex": {
2367
+ "type": "string"
2368
+ },
2369
+ "region": {
2370
+ "type": "string"
2371
+ }
2372
+ },
2373
+ "required": [
2374
+ "function",
2375
+ "regex"
2376
+ ],
2377
+ "type": "object"
2378
+ },
2379
+ {
2380
+ "additionalProperties": false,
2381
+ "properties": {
2382
+ "function": {
2383
+ "additionalProperties": false,
2384
+ "properties": {
2385
+ "functionId": {
2386
+ "type": "string"
2387
+ },
2388
+ "pinTag": {
2389
+ "type": "boolean"
2390
+ },
2391
+ "region": {
2392
+ "type": "string"
2393
+ }
2394
+ },
2395
+ "required": [
2396
+ "functionId"
2397
+ ],
2398
+ "type": "object"
2399
+ },
2400
+ "regex": {
2401
+ "type": "string"
2402
+ }
2403
+ },
2404
+ "required": [
2405
+ "function",
2406
+ "regex"
2407
+ ],
2408
+ "type": "object"
2409
+ },
2410
+ {
2411
+ "additionalProperties": false,
2412
+ "properties": {
2413
+ "regex": {
2414
+ "type": "string"
2415
+ },
2416
+ "run": {
2417
+ "additionalProperties": false,
2418
+ "properties": {
2419
+ "pinTag": {
2420
+ "type": "boolean"
2421
+ },
2422
+ "region": {
2423
+ "type": "string"
2424
+ },
2425
+ "serviceId": {
2426
+ "type": "string"
2427
+ }
2428
+ },
2429
+ "required": [
2430
+ "serviceId"
2431
+ ],
2432
+ "type": "object"
2433
+ }
2434
+ },
2435
+ "required": [
2436
+ "regex",
2437
+ "run"
2438
+ ],
2439
+ "type": "object"
2440
+ },
2441
+ {
2442
+ "additionalProperties": false,
2443
+ "properties": {
2444
+ "dynamicLinks": {
2445
+ "type": "boolean"
2446
+ },
2447
+ "regex": {
2448
+ "type": "string"
2449
+ }
2450
+ },
2451
+ "required": [
2452
+ "dynamicLinks",
2453
+ "regex"
2454
+ ],
2455
+ "type": "object"
2456
+ }
2457
+ ]
2458
+ },
2459
+ "type": "array"
2460
+ },
2461
+ "site": {
2462
+ "type": "string"
2463
+ },
2464
+ "source": {
2465
+ "type": "string"
2466
+ },
2467
+ "target": {
2468
+ "type": "string"
2469
+ },
2470
+ "trailingSlash": {
2471
+ "type": "boolean"
2472
+ }
2473
+ },
2474
+ "required": [
2475
+ "site"
2476
+ ],
2477
+ "type": "object"
2478
+ }
2479
+ ]
2480
+ },
2481
+ "type": "array"
2482
+ }
2483
+ ]
2484
+ },
2485
+ "remoteconfig": {
2486
+ "additionalProperties": false,
2487
+ "properties": {
2488
+ "postdeploy": {
2489
+ "anyOf": [
2490
+ {
2491
+ "items": {
2492
+ "type": "string"
2493
+ },
2494
+ "type": "array"
2495
+ },
2496
+ {
2497
+ "type": "string"
2498
+ }
2499
+ ]
2500
+ },
2501
+ "predeploy": {
2502
+ "anyOf": [
2503
+ {
2504
+ "items": {
2505
+ "type": "string"
2506
+ },
2507
+ "type": "array"
2508
+ },
2509
+ {
2510
+ "type": "string"
2511
+ }
2512
+ ]
2513
+ },
2514
+ "template": {
2515
+ "type": "string"
2516
+ }
2517
+ },
2518
+ "required": [
2519
+ "template"
2520
+ ],
2521
+ "type": "object"
2522
+ },
2523
+ "storage": {
2524
+ "anyOf": [
2525
+ {
2526
+ "additionalProperties": false,
2527
+ "properties": {
2528
+ "postdeploy": {
2529
+ "anyOf": [
2530
+ {
2531
+ "items": {
2532
+ "type": "string"
2533
+ },
2534
+ "type": "array"
2535
+ },
2536
+ {
2537
+ "type": "string"
2538
+ }
2539
+ ]
2540
+ },
2541
+ "predeploy": {
2542
+ "anyOf": [
2543
+ {
2544
+ "items": {
2545
+ "type": "string"
2546
+ },
2547
+ "type": "array"
2548
+ },
2549
+ {
2550
+ "type": "string"
2551
+ }
2552
+ ]
2553
+ },
2554
+ "rules": {
2555
+ "type": "string"
2556
+ },
2557
+ "target": {
2558
+ "type": "string"
2559
+ }
2560
+ },
2561
+ "required": [
2562
+ "rules"
2563
+ ],
2564
+ "type": "object"
2565
+ },
2566
+ {
2567
+ "items": {
2568
+ "additionalProperties": false,
2569
+ "properties": {
2570
+ "bucket": {
2571
+ "type": "string"
2572
+ },
2573
+ "postdeploy": {
2574
+ "anyOf": [
2575
+ {
2576
+ "items": {
2577
+ "type": "string"
2578
+ },
2579
+ "type": "array"
2580
+ },
2581
+ {
2582
+ "type": "string"
2583
+ }
2584
+ ]
2585
+ },
2586
+ "predeploy": {
2587
+ "anyOf": [
2588
+ {
2589
+ "items": {
2590
+ "type": "string"
2591
+ },
2592
+ "type": "array"
2593
+ },
2594
+ {
2595
+ "type": "string"
2596
+ }
2597
+ ]
2598
+ },
2599
+ "rules": {
2600
+ "type": "string"
2601
+ },
2602
+ "target": {
2603
+ "type": "string"
2604
+ }
2605
+ },
2606
+ "required": [
2607
+ "bucket",
2608
+ "rules"
2609
+ ],
2610
+ "type": "object"
2611
+ },
2612
+ "type": "array"
2613
+ }
2614
+ ]
2615
+ }
2616
+ },
2617
+ "type": "object"
2618
+ }
2619
+