@baseplate-dev/project-builder-lib 0.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 (569) hide show
  1. package/LICENSE +390 -0
  2. package/dist/compiler/admin-crud-input-spec.d.ts +26 -0
  3. package/dist/compiler/admin-crud-input-spec.d.ts.map +1 -0
  4. package/dist/compiler/admin-crud-input-spec.js +29 -0
  5. package/dist/compiler/admin-crud-input-spec.js.map +1 -0
  6. package/dist/compiler/app-compiler-spec.d.ts +36 -0
  7. package/dist/compiler/app-compiler-spec.d.ts.map +1 -0
  8. package/dist/compiler/app-compiler-spec.js +42 -0
  9. package/dist/compiler/app-compiler-spec.js.map +1 -0
  10. package/dist/compiler/index.d.ts +5 -0
  11. package/dist/compiler/index.d.ts.map +1 -0
  12. package/dist/compiler/index.js +4 -0
  13. package/dist/compiler/index.js.map +1 -0
  14. package/dist/compiler/model-transformer-compiler-spec.d.ts +25 -0
  15. package/dist/compiler/model-transformer-compiler-spec.d.ts.map +1 -0
  16. package/dist/compiler/model-transformer-compiler-spec.js +29 -0
  17. package/dist/compiler/model-transformer-compiler-spec.js.map +1 -0
  18. package/dist/compiler/types.d.ts +2 -0
  19. package/dist/compiler/types.d.ts.map +1 -0
  20. package/dist/compiler/types.js +2 -0
  21. package/dist/compiler/types.js.map +1 -0
  22. package/dist/constants/colors.d.ts +294 -0
  23. package/dist/constants/colors.d.ts.map +1 -0
  24. package/dist/constants/colors.js +307 -0
  25. package/dist/constants/colors.js.map +1 -0
  26. package/dist/constants/index.d.ts +3 -0
  27. package/dist/constants/index.d.ts.map +1 -0
  28. package/dist/constants/index.js +3 -0
  29. package/dist/constants/index.js.map +1 -0
  30. package/dist/constants/theme-colors.d.ts +397 -0
  31. package/dist/constants/theme-colors.d.ts.map +1 -0
  32. package/dist/constants/theme-colors.js +247 -0
  33. package/dist/constants/theme-colors.js.map +1 -0
  34. package/dist/definition/apps/app-utils.d.ts +11 -0
  35. package/dist/definition/apps/app-utils.d.ts.map +1 -0
  36. package/dist/definition/apps/app-utils.js +30 -0
  37. package/dist/definition/apps/app-utils.js.map +1 -0
  38. package/dist/definition/feature/feature-utils.d.ts +27 -0
  39. package/dist/definition/feature/feature-utils.d.ts.map +1 -0
  40. package/dist/definition/feature/feature-utils.js +81 -0
  41. package/dist/definition/feature/feature-utils.js.map +1 -0
  42. package/dist/definition/index.d.ts +10 -0
  43. package/dist/definition/index.d.ts.map +1 -0
  44. package/dist/definition/index.js +10 -0
  45. package/dist/definition/index.js.map +1 -0
  46. package/dist/definition/model/enum-utils.d.ts +9 -0
  47. package/dist/definition/model/enum-utils.d.ts.map +1 -0
  48. package/dist/definition/model/enum-utils.js +15 -0
  49. package/dist/definition/model/enum-utils.js.map +1 -0
  50. package/dist/definition/model/model-field-utils.d.ts +17 -0
  51. package/dist/definition/model/model-field-utils.d.ts.map +1 -0
  52. package/dist/definition/model/model-field-utils.js +85 -0
  53. package/dist/definition/model/model-field-utils.js.map +1 -0
  54. package/dist/definition/model/model-transformer-utils.d.ts +11 -0
  55. package/dist/definition/model/model-transformer-utils.d.ts.map +1 -0
  56. package/dist/definition/model/model-transformer-utils.js +13 -0
  57. package/dist/definition/model/model-transformer-utils.js.map +1 -0
  58. package/dist/definition/model/model-utils.d.ts +32 -0
  59. package/dist/definition/model/model-utils.d.ts.map +1 -0
  60. package/dist/definition/model/model-utils.js +59 -0
  61. package/dist/definition/model/model-utils.js.map +1 -0
  62. package/dist/definition/plugins/index.d.ts +2 -0
  63. package/dist/definition/plugins/index.d.ts.map +1 -0
  64. package/dist/definition/plugins/index.js +2 -0
  65. package/dist/definition/plugins/index.js.map +1 -0
  66. package/dist/definition/plugins/plugin-utils.d.ts +14 -0
  67. package/dist/definition/plugins/plugin-utils.d.ts.map +1 -0
  68. package/dist/definition/plugins/plugin-utils.js +44 -0
  69. package/dist/definition/plugins/plugin-utils.js.map +1 -0
  70. package/dist/definition/project-definition-container.d.ts +65 -0
  71. package/dist/definition/project-definition-container.d.ts.map +1 -0
  72. package/dist/definition/project-definition-container.js +118 -0
  73. package/dist/definition/project-definition-container.js.map +1 -0
  74. package/dist/definition/project-definition-container.test-helper.d.ts +5 -0
  75. package/dist/definition/project-definition-container.test-helper.d.ts.map +1 -0
  76. package/dist/definition/project-definition-container.test-helper.js +36 -0
  77. package/dist/definition/project-definition-container.test-helper.js.map +1 -0
  78. package/dist/feature-flags/flags.d.ts +3 -0
  79. package/dist/feature-flags/flags.d.ts.map +1 -0
  80. package/dist/feature-flags/flags.js +2 -0
  81. package/dist/feature-flags/flags.js.map +1 -0
  82. package/dist/feature-flags/index.d.ts +2 -0
  83. package/dist/feature-flags/index.d.ts.map +1 -0
  84. package/dist/feature-flags/index.js +2 -0
  85. package/dist/feature-flags/index.js.map +1 -0
  86. package/dist/index.d.ts +14 -0
  87. package/dist/index.js +13 -0
  88. package/dist/index.js.map +1 -0
  89. package/dist/migrations/index.d.ts +15 -0
  90. package/dist/migrations/index.d.ts.map +1 -0
  91. package/dist/migrations/index.js +68 -0
  92. package/dist/migrations/index.js.map +1 -0
  93. package/dist/migrations/migration-005-primaryUniqueRefs.d.ts +37 -0
  94. package/dist/migrations/migration-005-primaryUniqueRefs.d.ts.map +1 -0
  95. package/dist/migrations/migration-005-primaryUniqueRefs.js +40 -0
  96. package/dist/migrations/migration-005-primaryUniqueRefs.js.map +1 -0
  97. package/dist/migrations/migration-006-individual-service-controllers.d.ts +42 -0
  98. package/dist/migrations/migration-006-individual-service-controllers.d.ts.map +1 -0
  99. package/dist/migrations/migration-006-individual-service-controllers.js +31 -0
  100. package/dist/migrations/migration-006-individual-service-controllers.js.map +1 -0
  101. package/dist/migrations/migration-007-model-graphql.d.ts +59 -0
  102. package/dist/migrations/migration-007-model-graphql.d.ts.map +1 -0
  103. package/dist/migrations/migration-007-model-graphql.js +62 -0
  104. package/dist/migrations/migration-007-model-graphql.js.map +1 -0
  105. package/dist/migrations/migration-008-anonymous-public-role.d.ts +22 -0
  106. package/dist/migrations/migration-008-anonymous-public-role.d.ts.map +1 -0
  107. package/dist/migrations/migration-008-anonymous-public-role.js +52 -0
  108. package/dist/migrations/migration-008-anonymous-public-role.js.map +1 -0
  109. package/dist/migrations/migration-009-rename-refs.d.ts +2 -0
  110. package/dist/migrations/migration-009-rename-refs.d.ts.map +1 -0
  111. package/dist/migrations/migration-009-rename-refs.js +59 -0
  112. package/dist/migrations/migration-009-rename-refs.js.map +1 -0
  113. package/dist/migrations/migration-010-hex-to-oklch.d.ts +2 -0
  114. package/dist/migrations/migration-010-hex-to-oklch.d.ts.map +1 -0
  115. package/dist/migrations/migration-010-hex-to-oklch.js +24 -0
  116. package/dist/migrations/migration-010-hex-to-oklch.js.map +1 -0
  117. package/dist/migrations/migration-011-plugin-id.d.ts +2 -0
  118. package/dist/migrations/migration-011-plugin-id.d.ts.map +1 -0
  119. package/dist/migrations/migration-011-plugin-id.js +10 -0
  120. package/dist/migrations/migration-011-plugin-id.js.map +1 -0
  121. package/dist/migrations/migration-012-migrate-auth-config.d.ts +36 -0
  122. package/dist/migrations/migration-012-migrate-auth-config.d.ts.map +1 -0
  123. package/dist/migrations/migration-012-migrate-auth-config.js +48 -0
  124. package/dist/migrations/migration-012-migrate-auth-config.js.map +1 -0
  125. package/dist/migrations/migration-013-move-general-settings.d.ts +38 -0
  126. package/dist/migrations/migration-013-move-general-settings.d.ts.map +1 -0
  127. package/dist/migrations/migration-013-move-general-settings.js +22 -0
  128. package/dist/migrations/migration-013-move-general-settings.js.map +1 -0
  129. package/dist/migrations/migration-014-migrate-plugin-ids.d.ts +21 -0
  130. package/dist/migrations/migration-014-migrate-plugin-ids.d.ts.map +1 -0
  131. package/dist/migrations/migration-014-migrate-plugin-ids.js +32 -0
  132. package/dist/migrations/migration-014-migrate-plugin-ids.js.map +1 -0
  133. package/dist/migrations/transform-json-path.d.ts +13 -0
  134. package/dist/migrations/transform-json-path.d.ts.map +1 -0
  135. package/dist/migrations/transform-json-path.js +66 -0
  136. package/dist/migrations/transform-json-path.js.map +1 -0
  137. package/dist/migrations/types.d.ts +29 -0
  138. package/dist/migrations/types.d.ts.map +1 -0
  139. package/dist/migrations/types.js +4 -0
  140. package/dist/migrations/types.js.map +1 -0
  141. package/dist/migrations/utils.d.ts +3 -0
  142. package/dist/migrations/utils.d.ts.map +1 -0
  143. package/dist/migrations/utils.js +10 -0
  144. package/dist/migrations/utils.js.map +1 -0
  145. package/dist/parser/index.d.ts +3 -0
  146. package/dist/parser/index.d.ts.map +1 -0
  147. package/dist/parser/index.js +2 -0
  148. package/dist/parser/index.js.map +1 -0
  149. package/dist/parser/parser.d.ts +35 -0
  150. package/dist/parser/parser.d.ts.map +1 -0
  151. package/dist/parser/parser.js +84 -0
  152. package/dist/parser/parser.js.map +1 -0
  153. package/dist/parser/types.d.ts +8 -0
  154. package/dist/parser/types.d.ts.map +1 -0
  155. package/dist/parser/types.js +2 -0
  156. package/dist/parser/types.js.map +1 -0
  157. package/dist/plugin-tools/index.d.ts +2 -0
  158. package/dist/plugin-tools/index.d.ts.map +1 -0
  159. package/dist/plugin-tools/index.js +2 -0
  160. package/dist/plugin-tools/index.js.map +1 -0
  161. package/dist/plugin-tools/plugin-loader.d.ts +16 -0
  162. package/dist/plugin-tools/plugin-loader.d.ts.map +1 -0
  163. package/dist/plugin-tools/plugin-loader.js +166 -0
  164. package/dist/plugin-tools/plugin-loader.js.map +1 -0
  165. package/dist/plugins/imports/index.d.ts +3 -0
  166. package/dist/plugins/imports/index.d.ts.map +1 -0
  167. package/dist/plugins/imports/index.js +3 -0
  168. package/dist/plugins/imports/index.js.map +1 -0
  169. package/dist/plugins/imports/loader.d.ts +23 -0
  170. package/dist/plugins/imports/loader.d.ts.map +1 -0
  171. package/dist/plugins/imports/loader.js +81 -0
  172. package/dist/plugins/imports/loader.js.map +1 -0
  173. package/dist/plugins/imports/types.d.ts +27 -0
  174. package/dist/plugins/imports/types.d.ts.map +1 -0
  175. package/dist/plugins/imports/types.js +4 -0
  176. package/dist/plugins/imports/types.js.map +1 -0
  177. package/dist/plugins/index.d.ts +7 -0
  178. package/dist/plugins/index.d.ts.map +1 -0
  179. package/dist/plugins/index.js +7 -0
  180. package/dist/plugins/index.js.map +1 -0
  181. package/dist/plugins/manifest/manifest.d.ts +13 -0
  182. package/dist/plugins/manifest/manifest.d.ts.map +1 -0
  183. package/dist/plugins/manifest/manifest.js +6 -0
  184. package/dist/plugins/manifest/manifest.js.map +1 -0
  185. package/dist/plugins/metadata/index.d.ts +2 -0
  186. package/dist/plugins/metadata/index.d.ts.map +1 -0
  187. package/dist/plugins/metadata/index.js +2 -0
  188. package/dist/plugins/metadata/index.js.map +1 -0
  189. package/dist/plugins/metadata/types.d.ts +163 -0
  190. package/dist/plugins/metadata/types.d.ts.map +1 -0
  191. package/dist/plugins/metadata/types.js +59 -0
  192. package/dist/plugins/metadata/types.js.map +1 -0
  193. package/dist/plugins/migrations/index.d.ts +2 -0
  194. package/dist/plugins/migrations/index.d.ts.map +1 -0
  195. package/dist/plugins/migrations/index.js +2 -0
  196. package/dist/plugins/migrations/index.js.map +1 -0
  197. package/dist/plugins/migrations/run-migrations.d.ts +4 -0
  198. package/dist/plugins/migrations/run-migrations.d.ts.map +1 -0
  199. package/dist/plugins/migrations/run-migrations.js +30 -0
  200. package/dist/plugins/migrations/run-migrations.js.map +1 -0
  201. package/dist/plugins/schema/common.d.ts +6 -0
  202. package/dist/plugins/schema/common.d.ts.map +1 -0
  203. package/dist/plugins/schema/common.js +2 -0
  204. package/dist/plugins/schema/common.js.map +1 -0
  205. package/dist/plugins/schema/index.d.ts +4 -0
  206. package/dist/plugins/schema/index.d.ts.map +1 -0
  207. package/dist/plugins/schema/index.js +4 -0
  208. package/dist/plugins/schema/index.js.map +1 -0
  209. package/dist/plugins/schema/parser.d.ts +19 -0
  210. package/dist/plugins/schema/parser.d.ts.map +1 -0
  211. package/dist/plugins/schema/parser.js +41 -0
  212. package/dist/plugins/schema/parser.js.map +1 -0
  213. package/dist/plugins/schema/store.d.ts +8 -0
  214. package/dist/plugins/schema/store.d.ts.map +1 -0
  215. package/dist/plugins/schema/store.js +21 -0
  216. package/dist/plugins/schema/store.js.map +1 -0
  217. package/dist/plugins/schema/zod-with-plugins.d.ts +12 -0
  218. package/dist/plugins/schema/zod-with-plugins.d.ts.map +1 -0
  219. package/dist/plugins/schema/zod-with-plugins.js +26 -0
  220. package/dist/plugins/schema/zod-with-plugins.js.map +1 -0
  221. package/dist/plugins/spec/auth-config-spec.d.ts +21 -0
  222. package/dist/plugins/spec/auth-config-spec.d.ts.map +1 -0
  223. package/dist/plugins/spec/auth-config-spec.js +6 -0
  224. package/dist/plugins/spec/auth-config-spec.js.map +1 -0
  225. package/dist/plugins/spec/config-spec.d.ts +31 -0
  226. package/dist/plugins/spec/config-spec.d.ts.map +1 -0
  227. package/dist/plugins/spec/config-spec.js +58 -0
  228. package/dist/plugins/spec/config-spec.js.map +1 -0
  229. package/dist/plugins/spec/index.d.ts +5 -0
  230. package/dist/plugins/spec/index.d.ts.map +1 -0
  231. package/dist/plugins/spec/index.js +5 -0
  232. package/dist/plugins/spec/index.js.map +1 -0
  233. package/dist/plugins/spec/types.d.ts +29 -0
  234. package/dist/plugins/spec/types.d.ts.map +1 -0
  235. package/dist/plugins/spec/types.js +17 -0
  236. package/dist/plugins/spec/types.js.map +1 -0
  237. package/dist/plugins/spec/web-config-spec.d.ts +22 -0
  238. package/dist/plugins/spec/web-config-spec.d.ts.map +1 -0
  239. package/dist/plugins/spec/web-config-spec.js +23 -0
  240. package/dist/plugins/spec/web-config-spec.js.map +1 -0
  241. package/dist/references/deserialize-schema.d.ts +4 -0
  242. package/dist/references/deserialize-schema.d.ts.map +1 -0
  243. package/dist/references/deserialize-schema.js +68 -0
  244. package/dist/references/deserialize-schema.js.map +1 -0
  245. package/dist/references/fix-ref-deletions.d.ts +22 -0
  246. package/dist/references/fix-ref-deletions.d.ts.map +1 -0
  247. package/dist/references/fix-ref-deletions.js +99 -0
  248. package/dist/references/fix-ref-deletions.js.map +1 -0
  249. package/dist/references/index.d.ts +6 -0
  250. package/dist/references/index.d.ts.map +1 -0
  251. package/dist/references/index.js +6 -0
  252. package/dist/references/index.js.map +1 -0
  253. package/dist/references/parse-schema-with-references.d.ts +14 -0
  254. package/dist/references/parse-schema-with-references.d.ts.map +1 -0
  255. package/dist/references/parse-schema-with-references.js +16 -0
  256. package/dist/references/parse-schema-with-references.js.map +1 -0
  257. package/dist/references/ref-builder.d.ts +346 -0
  258. package/dist/references/ref-builder.d.ts.map +1 -0
  259. package/dist/references/ref-builder.js +494 -0
  260. package/dist/references/ref-builder.js.map +1 -0
  261. package/dist/references/resolve-zod-ref-payload-names.d.ts +26 -0
  262. package/dist/references/resolve-zod-ref-payload-names.d.ts.map +1 -0
  263. package/dist/references/resolve-zod-ref-payload-names.js +52 -0
  264. package/dist/references/resolve-zod-ref-payload-names.js.map +1 -0
  265. package/dist/references/serialize-schema.d.ts +5 -0
  266. package/dist/references/serialize-schema.d.ts.map +1 -0
  267. package/dist/references/serialize-schema.js +22 -0
  268. package/dist/references/serialize-schema.js.map +1 -0
  269. package/dist/references/types.d.ts +126 -0
  270. package/dist/references/types.d.ts.map +1 -0
  271. package/dist/references/types.js +59 -0
  272. package/dist/references/types.js.map +1 -0
  273. package/dist/schema/apps/admin/app.d.ts +1144 -0
  274. package/dist/schema/apps/admin/app.d.ts.map +1 -0
  275. package/dist/schema/apps/admin/app.js +27 -0
  276. package/dist/schema/apps/admin/app.js.map +1 -0
  277. package/dist/schema/apps/admin/index.d.ts +3 -0
  278. package/dist/schema/apps/admin/index.d.ts.map +1 -0
  279. package/dist/schema/apps/admin/index.js +3 -0
  280. package/dist/schema/apps/admin/index.js.map +1 -0
  281. package/dist/schema/apps/admin/sections/base.d.ts +9 -0
  282. package/dist/schema/apps/admin/sections/base.d.ts.map +1 -0
  283. package/dist/schema/apps/admin/sections/base.js +15 -0
  284. package/dist/schema/apps/admin/sections/base.js.map +1 -0
  285. package/dist/schema/apps/admin/sections/crud-form/admin-crud-input.d.ts +11 -0
  286. package/dist/schema/apps/admin/sections/crud-form/admin-crud-input.d.ts.map +1 -0
  287. package/dist/schema/apps/admin/sections/crud-form/admin-crud-input.js +11 -0
  288. package/dist/schema/apps/admin/sections/crud-form/admin-crud-input.js.map +1 -0
  289. package/dist/schema/apps/admin/sections/crud-form/admin-input-spec.d.ts +17 -0
  290. package/dist/schema/apps/admin/sections/crud-form/admin-input-spec.d.ts.map +1 -0
  291. package/dist/schema/apps/admin/sections/crud-form/admin-input-spec.js +30 -0
  292. package/dist/schema/apps/admin/sections/crud-form/admin-input-spec.js.map +1 -0
  293. package/dist/schema/apps/admin/sections/crud-form/built-in-input.d.ts +138 -0
  294. package/dist/schema/apps/admin/sections/crud-form/built-in-input.d.ts.map +1 -0
  295. package/dist/schema/apps/admin/sections/crud-form/built-in-input.js +101 -0
  296. package/dist/schema/apps/admin/sections/crud-form/built-in-input.js.map +1 -0
  297. package/dist/schema/apps/admin/sections/crud-form/index.d.ts +5 -0
  298. package/dist/schema/apps/admin/sections/crud-form/index.d.ts.map +1 -0
  299. package/dist/schema/apps/admin/sections/crud-form/index.js +5 -0
  300. package/dist/schema/apps/admin/sections/crud-form/index.js.map +1 -0
  301. package/dist/schema/apps/admin/sections/crud-form/types.d.ts +19 -0
  302. package/dist/schema/apps/admin/sections/crud-form/types.d.ts.map +1 -0
  303. package/dist/schema/apps/admin/sections/crud-form/types.js +14 -0
  304. package/dist/schema/apps/admin/sections/crud-form/types.js.map +1 -0
  305. package/dist/schema/apps/admin/sections/crud.d.ts +988 -0
  306. package/dist/schema/apps/admin/sections/crud.d.ts.map +1 -0
  307. package/dist/schema/apps/admin/sections/crud.js +101 -0
  308. package/dist/schema/apps/admin/sections/crud.js.map +1 -0
  309. package/dist/schema/apps/admin/sections/index.d.ts +5 -0
  310. package/dist/schema/apps/admin/sections/index.d.ts.map +1 -0
  311. package/dist/schema/apps/admin/sections/index.js +5 -0
  312. package/dist/schema/apps/admin/sections/index.js.map +1 -0
  313. package/dist/schema/apps/admin/sections/types.d.ts +2 -0
  314. package/dist/schema/apps/admin/sections/types.d.ts.map +1 -0
  315. package/dist/schema/apps/admin/sections/types.js +6 -0
  316. package/dist/schema/apps/admin/sections/types.js.map +1 -0
  317. package/dist/schema/apps/backend/index.d.ts +49 -0
  318. package/dist/schema/apps/backend/index.d.ts.map +1 -0
  319. package/dist/schema/apps/backend/index.js +15 -0
  320. package/dist/schema/apps/backend/index.js.map +1 -0
  321. package/dist/schema/apps/base.d.ts +25 -0
  322. package/dist/schema/apps/base.d.ts.map +1 -0
  323. package/dist/schema/apps/base.js +16 -0
  324. package/dist/schema/apps/base.js.map +1 -0
  325. package/dist/schema/apps/index.d.ts +6 -0
  326. package/dist/schema/apps/index.d.ts.map +1 -0
  327. package/dist/schema/apps/index.js +6 -0
  328. package/dist/schema/apps/index.js.map +1 -0
  329. package/dist/schema/apps/types.d.ts +6 -0
  330. package/dist/schema/apps/types.d.ts.map +1 -0
  331. package/dist/schema/apps/types.js +6 -0
  332. package/dist/schema/apps/types.js.map +1 -0
  333. package/dist/schema/apps/web/index.d.ts +49 -0
  334. package/dist/schema/apps/web/index.d.ts.map +1 -0
  335. package/dist/schema/apps/web/index.js +22 -0
  336. package/dist/schema/apps/web/index.js.map +1 -0
  337. package/dist/schema/auth/index.d.ts +2 -0
  338. package/dist/schema/auth/index.d.ts.map +1 -0
  339. package/dist/schema/auth/index.js +3 -0
  340. package/dist/schema/auth/index.js.map +1 -0
  341. package/dist/schema/creator/index.d.ts +2 -0
  342. package/dist/schema/creator/index.d.ts.map +1 -0
  343. package/dist/schema/creator/index.js +2 -0
  344. package/dist/schema/creator/index.js.map +1 -0
  345. package/dist/schema/creator/schema-creator.d.ts +4 -0
  346. package/dist/schema/creator/schema-creator.d.ts.map +1 -0
  347. package/dist/schema/creator/schema-creator.js +4 -0
  348. package/dist/schema/creator/schema-creator.js.map +1 -0
  349. package/dist/schema/creator/types.d.ts +14 -0
  350. package/dist/schema/creator/types.d.ts.map +1 -0
  351. package/dist/schema/creator/types.js +2 -0
  352. package/dist/schema/creator/types.js.map +1 -0
  353. package/dist/schema/features/feature.d.ts +33 -0
  354. package/dist/schema/features/feature.d.ts.map +1 -0
  355. package/dist/schema/features/feature.js +21 -0
  356. package/dist/schema/features/feature.js.map +1 -0
  357. package/dist/schema/features/index.d.ts +3 -0
  358. package/dist/schema/features/index.d.ts.map +1 -0
  359. package/dist/schema/features/index.js +3 -0
  360. package/dist/schema/features/index.js.map +1 -0
  361. package/dist/schema/features/theme.d.ts +208 -0
  362. package/dist/schema/features/theme.d.ts.map +1 -0
  363. package/dist/schema/features/theme.js +34 -0
  364. package/dist/schema/features/theme.js.map +1 -0
  365. package/dist/schema/index.d.ts +11 -0
  366. package/dist/schema/index.d.ts.map +1 -0
  367. package/dist/schema/index.js +11 -0
  368. package/dist/schema/index.js.map +1 -0
  369. package/dist/schema/models/enums.d.ts +97 -0
  370. package/dist/schema/models/enums.d.ts.map +1 -0
  371. package/dist/schema/models/enums.js +25 -0
  372. package/dist/schema/models/enums.js.map +1 -0
  373. package/dist/schema/models/graphql.d.ts +181 -0
  374. package/dist/schema/models/graphql.d.ts.map +1 -0
  375. package/dist/schema/models/graphql.js +96 -0
  376. package/dist/schema/models/graphql.js.map +1 -0
  377. package/dist/schema/models/index.d.ts +1692 -0
  378. package/dist/schema/models/index.d.ts.map +1 -0
  379. package/dist/schema/models/index.js +220 -0
  380. package/dist/schema/models/index.js.map +1 -0
  381. package/dist/schema/models/mocks.d.ts +6 -0
  382. package/dist/schema/models/mocks.d.ts.map +1 -0
  383. package/dist/schema/models/mocks.js +55 -0
  384. package/dist/schema/models/mocks.js.map +1 -0
  385. package/dist/schema/models/transformers/built-in-transformers.d.ts +71 -0
  386. package/dist/schema/models/transformers/built-in-transformers.d.ts.map +1 -0
  387. package/dist/schema/models/transformers/built-in-transformers.js +59 -0
  388. package/dist/schema/models/transformers/built-in-transformers.js.map +1 -0
  389. package/dist/schema/models/transformers/index.d.ts +5 -0
  390. package/dist/schema/models/transformers/index.d.ts.map +1 -0
  391. package/dist/schema/models/transformers/index.js +5 -0
  392. package/dist/schema/models/transformers/index.js.map +1 -0
  393. package/dist/schema/models/transformers/model-transformer-spec.d.ts +17 -0
  394. package/dist/schema/models/transformers/model-transformer-spec.d.ts.map +1 -0
  395. package/dist/schema/models/transformers/model-transformer-spec.js +40 -0
  396. package/dist/schema/models/transformers/model-transformer-spec.js.map +1 -0
  397. package/dist/schema/models/transformers/transformers.d.ts +11 -0
  398. package/dist/schema/models/transformers/transformers.d.ts.map +1 -0
  399. package/dist/schema/models/transformers/transformers.js +11 -0
  400. package/dist/schema/models/transformers/transformers.js.map +1 -0
  401. package/dist/schema/models/transformers/types.d.ts +23 -0
  402. package/dist/schema/models/transformers/types.d.ts.map +1 -0
  403. package/dist/schema/models/transformers/types.js +12 -0
  404. package/dist/schema/models/transformers/types.js.map +1 -0
  405. package/dist/schema/models/types.d.ts +9 -0
  406. package/dist/schema/models/types.d.ts.map +1 -0
  407. package/dist/schema/models/types.js +14 -0
  408. package/dist/schema/models/types.js.map +1 -0
  409. package/dist/schema/plugins/definition.d.ts +128 -0
  410. package/dist/schema/plugins/definition.d.ts.map +1 -0
  411. package/dist/schema/plugins/definition.js +28 -0
  412. package/dist/schema/plugins/definition.js.map +1 -0
  413. package/dist/schema/plugins/entity-types.d.ts +2 -0
  414. package/dist/schema/plugins/entity-types.d.ts.map +1 -0
  415. package/dist/schema/plugins/entity-types.js +3 -0
  416. package/dist/schema/plugins/entity-types.js.map +1 -0
  417. package/dist/schema/plugins/index.d.ts +3 -0
  418. package/dist/schema/plugins/index.d.ts.map +1 -0
  419. package/dist/schema/plugins/index.js +3 -0
  420. package/dist/schema/plugins/index.js.map +1 -0
  421. package/dist/schema/project-definition.d.ts +2877 -0
  422. package/dist/schema/project-definition.d.ts.map +1 -0
  423. package/dist/schema/project-definition.js +34 -0
  424. package/dist/schema/project-definition.js.map +1 -0
  425. package/dist/schema/settings.d.ts +228 -0
  426. package/dist/schema/settings.d.ts.map +1 -0
  427. package/dist/schema/settings.js +32 -0
  428. package/dist/schema/settings.js.map +1 -0
  429. package/dist/schema/template-extractor/index.d.ts +25 -0
  430. package/dist/schema/template-extractor/index.d.ts.map +1 -0
  431. package/dist/schema/template-extractor/index.js +18 -0
  432. package/dist/schema/template-extractor/index.js.map +1 -0
  433. package/dist/schema/utils/validation.d.ts +8 -0
  434. package/dist/schema/utils/validation.d.ts.map +1 -0
  435. package/dist/schema/utils/validation.js +18 -0
  436. package/dist/schema/utils/validation.js.map +1 -0
  437. package/dist/tools/index.d.ts +2 -0
  438. package/dist/tools/index.d.ts.map +1 -0
  439. package/dist/tools/index.js +2 -0
  440. package/dist/tools/index.js.map +1 -0
  441. package/dist/tools/model-merger/index.d.ts +2 -0
  442. package/dist/tools/model-merger/index.d.ts.map +1 -0
  443. package/dist/tools/model-merger/index.js +2 -0
  444. package/dist/tools/model-merger/index.js.map +1 -0
  445. package/dist/tools/model-merger/model-merger.d.ts +376 -0
  446. package/dist/tools/model-merger/model-merger.d.ts.map +1 -0
  447. package/dist/tools/model-merger/model-merger.js +229 -0
  448. package/dist/tools/model-merger/model-merger.js.map +1 -0
  449. package/dist/types/field-types.d.ts +3 -0
  450. package/dist/types/field-types.d.ts.map +1 -0
  451. package/dist/types/field-types.js +13 -0
  452. package/dist/types/field-types.js.map +1 -0
  453. package/dist/types/files.d.ts +8 -0
  454. package/dist/types/files.d.ts.map +1 -0
  455. package/dist/types/files.js +2 -0
  456. package/dist/types/files.js.map +1 -0
  457. package/dist/utils/color-conversions.d.ts +20 -0
  458. package/dist/utils/color-conversions.d.ts.map +1 -0
  459. package/dist/utils/color-conversions.js +38 -0
  460. package/dist/utils/color-conversions.js.map +1 -0
  461. package/dist/utils/color-names.d.ts +18 -0
  462. package/dist/utils/color-names.d.ts.map +1 -0
  463. package/dist/utils/color-names.js +54 -0
  464. package/dist/utils/color-names.js.map +1 -0
  465. package/dist/utils/definition-diff/definition-diff.d.ts +68 -0
  466. package/dist/utils/definition-diff/definition-diff.d.ts.map +1 -0
  467. package/dist/utils/definition-diff/definition-diff.js +149 -0
  468. package/dist/utils/definition-diff/definition-diff.js.map +1 -0
  469. package/dist/utils/definition-diff/index.d.ts +2 -0
  470. package/dist/utils/definition-diff/index.d.ts.map +1 -0
  471. package/dist/utils/definition-diff/index.js +2 -0
  472. package/dist/utils/definition-diff/index.js.map +1 -0
  473. package/dist/utils/index.d.ts +6 -0
  474. package/dist/utils/index.d.ts.map +1 -0
  475. package/dist/utils/index.js +6 -0
  476. package/dist/utils/index.js.map +1 -0
  477. package/dist/utils/path.d.ts +5 -0
  478. package/dist/utils/path.d.ts.map +1 -0
  479. package/dist/utils/path.js +27 -0
  480. package/dist/utils/path.js.map +1 -0
  481. package/dist/utils/strip.d.ts +18 -0
  482. package/dist/utils/strip.d.ts.map +1 -0
  483. package/dist/utils/strip.js +37 -0
  484. package/dist/utils/strip.js.map +1 -0
  485. package/dist/utils/theme.d.ts +10 -0
  486. package/dist/utils/theme.d.ts.map +1 -0
  487. package/dist/utils/theme.js +58 -0
  488. package/dist/utils/theme.js.map +1 -0
  489. package/dist/web/components/FeatureComboboxField.d.ts +17 -0
  490. package/dist/web/components/FeatureComboboxField.d.ts.map +1 -0
  491. package/dist/web/components/FeatureComboboxField.js +38 -0
  492. package/dist/web/components/FeatureComboboxField.js.map +1 -0
  493. package/dist/web/components/ModelComboboxField.d.ts +17 -0
  494. package/dist/web/components/ModelComboboxField.d.ts.map +1 -0
  495. package/dist/web/components/ModelComboboxField.js +38 -0
  496. package/dist/web/components/ModelComboboxField.js.map +1 -0
  497. package/dist/web/components/ModelMergerResultAlert.d.ts +8 -0
  498. package/dist/web/components/ModelMergerResultAlert.d.ts.map +1 -0
  499. package/dist/web/components/ModelMergerResultAlert.js +10 -0
  500. package/dist/web/components/ModelMergerResultAlert.js.map +1 -0
  501. package/dist/web/components/index.d.ts +4 -0
  502. package/dist/web/components/index.d.ts.map +1 -0
  503. package/dist/web/components/index.js +4 -0
  504. package/dist/web/components/index.js.map +1 -0
  505. package/dist/web/contexts/error-handler.d.ts +7 -0
  506. package/dist/web/contexts/error-handler.d.ts.map +1 -0
  507. package/dist/web/contexts/error-handler.js +3 -0
  508. package/dist/web/contexts/error-handler.js.map +1 -0
  509. package/dist/web/contexts/index.d.ts +2 -0
  510. package/dist/web/contexts/index.d.ts.map +1 -0
  511. package/dist/web/contexts/index.js +2 -0
  512. package/dist/web/contexts/index.js.map +1 -0
  513. package/dist/web/hooks/index.d.ts +8 -0
  514. package/dist/web/hooks/index.d.ts.map +1 -0
  515. package/dist/web/hooks/index.js +8 -0
  516. package/dist/web/hooks/index.js.map +1 -0
  517. package/dist/web/hooks/useBlockDirtyFormNavigate.d.ts +3 -0
  518. package/dist/web/hooks/useBlockDirtyFormNavigate.d.ts.map +1 -0
  519. package/dist/web/hooks/useBlockDirtyFormNavigate.js +14 -0
  520. package/dist/web/hooks/useBlockDirtyFormNavigate.js.map +1 -0
  521. package/dist/web/hooks/useBlockUnsavedChangesNavigate.d.ts +7 -0
  522. package/dist/web/hooks/useBlockUnsavedChangesNavigate.d.ts.map +1 -0
  523. package/dist/web/hooks/useBlockUnsavedChangesNavigate.js +47 -0
  524. package/dist/web/hooks/useBlockUnsavedChangesNavigate.js.map +1 -0
  525. package/dist/web/hooks/useBlockerDialog.d.ts +44 -0
  526. package/dist/web/hooks/useBlockerDialog.d.ts.map +1 -0
  527. package/dist/web/hooks/useBlockerDialog.js +77 -0
  528. package/dist/web/hooks/useBlockerDialog.js.map +1 -0
  529. package/dist/web/hooks/useErrorHandler.d.ts +3 -0
  530. package/dist/web/hooks/useErrorHandler.d.ts.map +1 -0
  531. package/dist/web/hooks/useErrorHandler.js +10 -0
  532. package/dist/web/hooks/useErrorHandler.js.map +1 -0
  533. package/dist/web/hooks/usePluginEnhancedSchema.d.ts +4 -0
  534. package/dist/web/hooks/usePluginEnhancedSchema.d.ts.map +1 -0
  535. package/dist/web/hooks/usePluginEnhancedSchema.js +8 -0
  536. package/dist/web/hooks/usePluginEnhancedSchema.js.map +1 -0
  537. package/dist/web/hooks/useProjectDefinition.d.ts +65 -0
  538. package/dist/web/hooks/useProjectDefinition.d.ts.map +1 -0
  539. package/dist/web/hooks/useProjectDefinition.js +10 -0
  540. package/dist/web/hooks/useProjectDefinition.js.map +1 -0
  541. package/dist/web/hooks/useResettableForm.d.ts +3 -0
  542. package/dist/web/hooks/useResettableForm.d.ts.map +1 -0
  543. package/dist/web/hooks/useResettableForm.js +29 -0
  544. package/dist/web/hooks/useResettableForm.js.map +1 -0
  545. package/dist/web/index.d.ts +6 -0
  546. package/dist/web/index.d.ts.map +1 -0
  547. package/dist/web/index.js +6 -0
  548. package/dist/web/index.js.map +1 -0
  549. package/dist/web/specs/admin-crud-input-web-spec.d.ts +36 -0
  550. package/dist/web/specs/admin-crud-input-web-spec.d.ts.map +1 -0
  551. package/dist/web/specs/admin-crud-input-web-spec.js +35 -0
  552. package/dist/web/specs/admin-crud-input-web-spec.js.map +1 -0
  553. package/dist/web/specs/index.d.ts +3 -0
  554. package/dist/web/specs/index.d.ts.map +1 -0
  555. package/dist/web/specs/index.js +3 -0
  556. package/dist/web/specs/index.js.map +1 -0
  557. package/dist/web/specs/model-transformer-web-spec.d.ts +40 -0
  558. package/dist/web/specs/model-transformer-web-spec.d.ts.map +1 -0
  559. package/dist/web/specs/model-transformer-web-spec.js +35 -0
  560. package/dist/web/specs/model-transformer-web-spec.js.map +1 -0
  561. package/dist/web/utils/form.d.ts +2 -0
  562. package/dist/web/utils/form.d.ts.map +1 -0
  563. package/dist/web/utils/form.js +6 -0
  564. package/dist/web/utils/form.js.map +1 -0
  565. package/dist/web/utils/index.d.ts +2 -0
  566. package/dist/web/utils/index.d.ts.map +1 -0
  567. package/dist/web/utils/index.js +2 -0
  568. package/dist/web/utils/index.js.map +1 -0
  569. package/package.json +78 -0
@@ -0,0 +1,2877 @@
1
+ import { z } from 'zod';
2
+ import type { InferDefinitionInput, InferDefinitionOutput, InferDefinitionSchema } from './creator/types.js';
3
+ export declare const appSchema: import("#src/references/index.js").ZodRef<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4
+ type: z.ZodLiteral<"backend">;
5
+ enableStripe: z.ZodOptional<z.ZodBoolean>;
6
+ enableRedis: z.ZodOptional<z.ZodBoolean>;
7
+ enableBullQueue: z.ZodOptional<z.ZodBoolean>;
8
+ enablePostmark: z.ZodOptional<z.ZodBoolean>;
9
+ enableSubscriptions: z.ZodOptional<z.ZodBoolean>;
10
+ enableAxios: z.ZodOptional<z.ZodBoolean>;
11
+ id: z.ZodDefault<z.ZodString>;
12
+ name: z.ZodString;
13
+ packageLocation: z.ZodOptional<z.ZodString>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ type: "backend";
16
+ name: string;
17
+ id: string;
18
+ packageLocation?: string | undefined;
19
+ enableStripe?: boolean | undefined;
20
+ enableRedis?: boolean | undefined;
21
+ enableBullQueue?: boolean | undefined;
22
+ enablePostmark?: boolean | undefined;
23
+ enableSubscriptions?: boolean | undefined;
24
+ enableAxios?: boolean | undefined;
25
+ }, {
26
+ type: "backend";
27
+ name: string;
28
+ id?: string | undefined;
29
+ packageLocation?: string | undefined;
30
+ enableStripe?: boolean | undefined;
31
+ enableRedis?: boolean | undefined;
32
+ enableBullQueue?: boolean | undefined;
33
+ enablePostmark?: boolean | undefined;
34
+ enableSubscriptions?: boolean | undefined;
35
+ enableAxios?: boolean | undefined;
36
+ }>, z.ZodObject<{
37
+ type: z.ZodLiteral<"web">;
38
+ includeAuth: z.ZodOptional<z.ZodBoolean>;
39
+ title: z.ZodOptional<z.ZodString>;
40
+ description: z.ZodOptional<z.ZodString>;
41
+ allowedRoles: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">>;
42
+ includeUploadComponents: z.ZodOptional<z.ZodBoolean>;
43
+ enableSubscriptions: z.ZodOptional<z.ZodBoolean>;
44
+ id: z.ZodDefault<z.ZodString>;
45
+ name: z.ZodString;
46
+ packageLocation: z.ZodOptional<z.ZodString>;
47
+ }, "strip", z.ZodTypeAny, {
48
+ type: "web";
49
+ name: string;
50
+ id: string;
51
+ description?: string | undefined;
52
+ packageLocation?: string | undefined;
53
+ allowedRoles?: string[] | undefined;
54
+ enableSubscriptions?: boolean | undefined;
55
+ includeAuth?: boolean | undefined;
56
+ title?: string | undefined;
57
+ includeUploadComponents?: boolean | undefined;
58
+ }, {
59
+ type: "web";
60
+ name: string;
61
+ description?: string | undefined;
62
+ id?: string | undefined;
63
+ packageLocation?: string | undefined;
64
+ allowedRoles?: string[] | undefined;
65
+ enableSubscriptions?: boolean | undefined;
66
+ includeAuth?: boolean | undefined;
67
+ title?: string | undefined;
68
+ includeUploadComponents?: boolean | undefined;
69
+ }>, z.ZodObject<{
70
+ type: z.ZodLiteral<"admin">;
71
+ allowedRoles: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">>;
72
+ sections: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<import("#src/references/index.js").ZodRef<z.ZodObject<{
73
+ type: z.ZodLiteral<"crud">;
74
+ modelRef: import("#src/references/index.js").ZodRef<z.ZodString>;
75
+ disableCreate: z.ZodOptional<z.ZodBoolean>;
76
+ table: z.ZodObject<{
77
+ columns: z.ZodArray<z.ZodObject<{
78
+ label: z.ZodString;
79
+ display: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
80
+ type: z.ZodLiteral<"text">;
81
+ modelFieldRef: import("#src/references/index.js").ZodRef<z.ZodString>;
82
+ }, "strip", z.ZodTypeAny, {
83
+ type: "text";
84
+ modelFieldRef: string;
85
+ }, {
86
+ type: "text";
87
+ modelFieldRef: string;
88
+ }>, z.ZodObject<{
89
+ type: z.ZodLiteral<"foreign">;
90
+ localRelationRef: import("#src/references/index.js").ZodRef<z.ZodString>;
91
+ labelExpression: z.ZodString;
92
+ valueExpression: z.ZodString;
93
+ }, "strip", z.ZodTypeAny, {
94
+ type: "foreign";
95
+ localRelationRef: string;
96
+ labelExpression: string;
97
+ valueExpression: string;
98
+ }, {
99
+ type: "foreign";
100
+ localRelationRef: string;
101
+ labelExpression: string;
102
+ valueExpression: string;
103
+ }>]>;
104
+ }, "strip", z.ZodTypeAny, {
105
+ label: string;
106
+ display: {
107
+ type: "foreign";
108
+ localRelationRef: string;
109
+ labelExpression: string;
110
+ valueExpression: string;
111
+ } | {
112
+ type: "text";
113
+ modelFieldRef: string;
114
+ };
115
+ }, {
116
+ label: string;
117
+ display: {
118
+ type: "foreign";
119
+ localRelationRef: string;
120
+ labelExpression: string;
121
+ valueExpression: string;
122
+ } | {
123
+ type: "text";
124
+ modelFieldRef: string;
125
+ };
126
+ }>, "many">;
127
+ }, "strip", z.ZodTypeAny, {
128
+ columns: {
129
+ label: string;
130
+ display: {
131
+ type: "foreign";
132
+ localRelationRef: string;
133
+ labelExpression: string;
134
+ valueExpression: string;
135
+ } | {
136
+ type: "text";
137
+ modelFieldRef: string;
138
+ };
139
+ }[];
140
+ }, {
141
+ columns: {
142
+ label: string;
143
+ display: {
144
+ type: "foreign";
145
+ localRelationRef: string;
146
+ labelExpression: string;
147
+ valueExpression: string;
148
+ } | {
149
+ type: "text";
150
+ modelFieldRef: string;
151
+ };
152
+ }[];
153
+ }>;
154
+ form: z.ZodObject<{
155
+ fields: z.ZodArray<import("../index.js").ZodWithPlugins<z.ZodObject<{
156
+ type: z.ZodString;
157
+ label: z.ZodString;
158
+ }, "strip", z.ZodTypeAny, {
159
+ type: string;
160
+ label: string;
161
+ }, {
162
+ type: string;
163
+ label: string;
164
+ }>>, "many">;
165
+ }, "strip", z.ZodTypeAny, {
166
+ fields: {
167
+ type: string;
168
+ label: string;
169
+ }[];
170
+ }, {
171
+ fields: {
172
+ type: string;
173
+ label: string;
174
+ }[];
175
+ }>;
176
+ embeddedForms: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
177
+ id: z.ZodString;
178
+ name: z.ZodString;
179
+ modelRef: import("#src/references/index.js").ZodRef<z.ZodString>;
180
+ includeIdField: z.ZodOptional<z.ZodBoolean>;
181
+ type: z.ZodLiteral<"object">;
182
+ form: z.ZodObject<{
183
+ fields: z.ZodArray<import("../index.js").ZodWithPlugins<z.ZodObject<{
184
+ type: z.ZodString;
185
+ label: z.ZodString;
186
+ }, "strip", z.ZodTypeAny, {
187
+ type: string;
188
+ label: string;
189
+ }, {
190
+ type: string;
191
+ label: string;
192
+ }>>, "many">;
193
+ }, "strip", z.ZodTypeAny, {
194
+ fields: {
195
+ type: string;
196
+ label: string;
197
+ }[];
198
+ }, {
199
+ fields: {
200
+ type: string;
201
+ label: string;
202
+ }[];
203
+ }>;
204
+ }, "strip", z.ZodTypeAny, {
205
+ type: "object";
206
+ name: string;
207
+ id: string;
208
+ modelRef: string;
209
+ form: {
210
+ fields: {
211
+ type: string;
212
+ label: string;
213
+ }[];
214
+ };
215
+ includeIdField?: boolean | undefined;
216
+ }, {
217
+ type: "object";
218
+ name: string;
219
+ id: string;
220
+ modelRef: string;
221
+ form: {
222
+ fields: {
223
+ type: string;
224
+ label: string;
225
+ }[];
226
+ };
227
+ includeIdField?: boolean | undefined;
228
+ }>, z.ZodObject<{
229
+ id: z.ZodString;
230
+ name: z.ZodString;
231
+ modelRef: import("#src/references/index.js").ZodRef<z.ZodString>;
232
+ includeIdField: z.ZodOptional<z.ZodBoolean>;
233
+ type: z.ZodLiteral<"list">;
234
+ table: z.ZodObject<{
235
+ columns: z.ZodArray<z.ZodObject<{
236
+ label: z.ZodString;
237
+ display: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
238
+ type: z.ZodLiteral<"text">;
239
+ modelFieldRef: import("#src/references/index.js").ZodRef<z.ZodString>;
240
+ }, "strip", z.ZodTypeAny, {
241
+ type: "text";
242
+ modelFieldRef: string;
243
+ }, {
244
+ type: "text";
245
+ modelFieldRef: string;
246
+ }>, z.ZodObject<{
247
+ type: z.ZodLiteral<"foreign">;
248
+ localRelationRef: import("#src/references/index.js").ZodRef<z.ZodString>;
249
+ labelExpression: z.ZodString;
250
+ valueExpression: z.ZodString;
251
+ }, "strip", z.ZodTypeAny, {
252
+ type: "foreign";
253
+ localRelationRef: string;
254
+ labelExpression: string;
255
+ valueExpression: string;
256
+ }, {
257
+ type: "foreign";
258
+ localRelationRef: string;
259
+ labelExpression: string;
260
+ valueExpression: string;
261
+ }>]>;
262
+ }, "strip", z.ZodTypeAny, {
263
+ label: string;
264
+ display: {
265
+ type: "foreign";
266
+ localRelationRef: string;
267
+ labelExpression: string;
268
+ valueExpression: string;
269
+ } | {
270
+ type: "text";
271
+ modelFieldRef: string;
272
+ };
273
+ }, {
274
+ label: string;
275
+ display: {
276
+ type: "foreign";
277
+ localRelationRef: string;
278
+ labelExpression: string;
279
+ valueExpression: string;
280
+ } | {
281
+ type: "text";
282
+ modelFieldRef: string;
283
+ };
284
+ }>, "many">;
285
+ }, "strip", z.ZodTypeAny, {
286
+ columns: {
287
+ label: string;
288
+ display: {
289
+ type: "foreign";
290
+ localRelationRef: string;
291
+ labelExpression: string;
292
+ valueExpression: string;
293
+ } | {
294
+ type: "text";
295
+ modelFieldRef: string;
296
+ };
297
+ }[];
298
+ }, {
299
+ columns: {
300
+ label: string;
301
+ display: {
302
+ type: "foreign";
303
+ localRelationRef: string;
304
+ labelExpression: string;
305
+ valueExpression: string;
306
+ } | {
307
+ type: "text";
308
+ modelFieldRef: string;
309
+ };
310
+ }[];
311
+ }>;
312
+ form: z.ZodObject<{
313
+ fields: z.ZodArray<import("../index.js").ZodWithPlugins<z.ZodObject<{
314
+ type: z.ZodString;
315
+ label: z.ZodString;
316
+ }, "strip", z.ZodTypeAny, {
317
+ type: string;
318
+ label: string;
319
+ }, {
320
+ type: string;
321
+ label: string;
322
+ }>>, "many">;
323
+ }, "strip", z.ZodTypeAny, {
324
+ fields: {
325
+ type: string;
326
+ label: string;
327
+ }[];
328
+ }, {
329
+ fields: {
330
+ type: string;
331
+ label: string;
332
+ }[];
333
+ }>;
334
+ }, "strip", z.ZodTypeAny, {
335
+ type: "list";
336
+ name: string;
337
+ id: string;
338
+ modelRef: string;
339
+ form: {
340
+ fields: {
341
+ type: string;
342
+ label: string;
343
+ }[];
344
+ };
345
+ table: {
346
+ columns: {
347
+ label: string;
348
+ display: {
349
+ type: "foreign";
350
+ localRelationRef: string;
351
+ labelExpression: string;
352
+ valueExpression: string;
353
+ } | {
354
+ type: "text";
355
+ modelFieldRef: string;
356
+ };
357
+ }[];
358
+ };
359
+ includeIdField?: boolean | undefined;
360
+ }, {
361
+ type: "list";
362
+ name: string;
363
+ id: string;
364
+ modelRef: string;
365
+ form: {
366
+ fields: {
367
+ type: string;
368
+ label: string;
369
+ }[];
370
+ };
371
+ table: {
372
+ columns: {
373
+ label: string;
374
+ display: {
375
+ type: "foreign";
376
+ localRelationRef: string;
377
+ labelExpression: string;
378
+ valueExpression: string;
379
+ } | {
380
+ type: "text";
381
+ modelFieldRef: string;
382
+ };
383
+ }[];
384
+ };
385
+ includeIdField?: boolean | undefined;
386
+ }>]>>, "many">>;
387
+ id: z.ZodDefault<z.ZodString>;
388
+ name: z.ZodString;
389
+ featureRef: import("#src/references/index.js").ZodRef<z.ZodString>;
390
+ icon: z.ZodOptional<z.ZodString>;
391
+ }, "strip", z.ZodTypeAny, {
392
+ type: "crud";
393
+ name: string;
394
+ id: string;
395
+ modelRef: string;
396
+ featureRef: string;
397
+ form: {
398
+ fields: {
399
+ type: string;
400
+ label: string;
401
+ }[];
402
+ };
403
+ table: {
404
+ columns: {
405
+ label: string;
406
+ display: {
407
+ type: "foreign";
408
+ localRelationRef: string;
409
+ labelExpression: string;
410
+ valueExpression: string;
411
+ } | {
412
+ type: "text";
413
+ modelFieldRef: string;
414
+ };
415
+ }[];
416
+ };
417
+ icon?: string | undefined;
418
+ disableCreate?: boolean | undefined;
419
+ embeddedForms?: ({
420
+ type: "object";
421
+ name: string;
422
+ id: string;
423
+ modelRef: string;
424
+ form: {
425
+ fields: {
426
+ type: string;
427
+ label: string;
428
+ }[];
429
+ };
430
+ includeIdField?: boolean | undefined;
431
+ } | {
432
+ type: "list";
433
+ name: string;
434
+ id: string;
435
+ modelRef: string;
436
+ form: {
437
+ fields: {
438
+ type: string;
439
+ label: string;
440
+ }[];
441
+ };
442
+ table: {
443
+ columns: {
444
+ label: string;
445
+ display: {
446
+ type: "foreign";
447
+ localRelationRef: string;
448
+ labelExpression: string;
449
+ valueExpression: string;
450
+ } | {
451
+ type: "text";
452
+ modelFieldRef: string;
453
+ };
454
+ }[];
455
+ };
456
+ includeIdField?: boolean | undefined;
457
+ })[] | undefined;
458
+ }, {
459
+ type: "crud";
460
+ name: string;
461
+ modelRef: string;
462
+ featureRef: string;
463
+ form: {
464
+ fields: {
465
+ type: string;
466
+ label: string;
467
+ }[];
468
+ };
469
+ table: {
470
+ columns: {
471
+ label: string;
472
+ display: {
473
+ type: "foreign";
474
+ localRelationRef: string;
475
+ labelExpression: string;
476
+ valueExpression: string;
477
+ } | {
478
+ type: "text";
479
+ modelFieldRef: string;
480
+ };
481
+ }[];
482
+ };
483
+ icon?: string | undefined;
484
+ id?: string | undefined;
485
+ disableCreate?: boolean | undefined;
486
+ embeddedForms?: ({
487
+ type: "object";
488
+ name: string;
489
+ id: string;
490
+ modelRef: string;
491
+ form: {
492
+ fields: {
493
+ type: string;
494
+ label: string;
495
+ }[];
496
+ };
497
+ includeIdField?: boolean | undefined;
498
+ } | {
499
+ type: "list";
500
+ name: string;
501
+ id: string;
502
+ modelRef: string;
503
+ form: {
504
+ fields: {
505
+ type: string;
506
+ label: string;
507
+ }[];
508
+ };
509
+ table: {
510
+ columns: {
511
+ label: string;
512
+ display: {
513
+ type: "foreign";
514
+ localRelationRef: string;
515
+ labelExpression: string;
516
+ valueExpression: string;
517
+ } | {
518
+ type: "text";
519
+ modelFieldRef: string;
520
+ };
521
+ }[];
522
+ };
523
+ includeIdField?: boolean | undefined;
524
+ })[] | undefined;
525
+ }>>>, "many">>;
526
+ id: z.ZodDefault<z.ZodString>;
527
+ name: z.ZodString;
528
+ packageLocation: z.ZodOptional<z.ZodString>;
529
+ }, "strip", z.ZodTypeAny, {
530
+ type: "admin";
531
+ name: string;
532
+ id: string;
533
+ packageLocation?: string | undefined;
534
+ allowedRoles?: string[] | undefined;
535
+ sections?: {
536
+ type: "crud";
537
+ name: string;
538
+ id: string;
539
+ modelRef: string;
540
+ featureRef: string;
541
+ form: {
542
+ fields: {
543
+ type: string;
544
+ label: string;
545
+ }[];
546
+ };
547
+ table: {
548
+ columns: {
549
+ label: string;
550
+ display: {
551
+ type: "foreign";
552
+ localRelationRef: string;
553
+ labelExpression: string;
554
+ valueExpression: string;
555
+ } | {
556
+ type: "text";
557
+ modelFieldRef: string;
558
+ };
559
+ }[];
560
+ };
561
+ icon?: string | undefined;
562
+ disableCreate?: boolean | undefined;
563
+ embeddedForms?: ({
564
+ type: "object";
565
+ name: string;
566
+ id: string;
567
+ modelRef: string;
568
+ form: {
569
+ fields: {
570
+ type: string;
571
+ label: string;
572
+ }[];
573
+ };
574
+ includeIdField?: boolean | undefined;
575
+ } | {
576
+ type: "list";
577
+ name: string;
578
+ id: string;
579
+ modelRef: string;
580
+ form: {
581
+ fields: {
582
+ type: string;
583
+ label: string;
584
+ }[];
585
+ };
586
+ table: {
587
+ columns: {
588
+ label: string;
589
+ display: {
590
+ type: "foreign";
591
+ localRelationRef: string;
592
+ labelExpression: string;
593
+ valueExpression: string;
594
+ } | {
595
+ type: "text";
596
+ modelFieldRef: string;
597
+ };
598
+ }[];
599
+ };
600
+ includeIdField?: boolean | undefined;
601
+ })[] | undefined;
602
+ }[] | undefined;
603
+ }, {
604
+ type: "admin";
605
+ name: string;
606
+ id?: string | undefined;
607
+ packageLocation?: string | undefined;
608
+ allowedRoles?: string[] | undefined;
609
+ sections?: {
610
+ type: "crud";
611
+ name: string;
612
+ modelRef: string;
613
+ featureRef: string;
614
+ form: {
615
+ fields: {
616
+ type: string;
617
+ label: string;
618
+ }[];
619
+ };
620
+ table: {
621
+ columns: {
622
+ label: string;
623
+ display: {
624
+ type: "foreign";
625
+ localRelationRef: string;
626
+ labelExpression: string;
627
+ valueExpression: string;
628
+ } | {
629
+ type: "text";
630
+ modelFieldRef: string;
631
+ };
632
+ }[];
633
+ };
634
+ icon?: string | undefined;
635
+ id?: string | undefined;
636
+ disableCreate?: boolean | undefined;
637
+ embeddedForms?: ({
638
+ type: "object";
639
+ name: string;
640
+ id: string;
641
+ modelRef: string;
642
+ form: {
643
+ fields: {
644
+ type: string;
645
+ label: string;
646
+ }[];
647
+ };
648
+ includeIdField?: boolean | undefined;
649
+ } | {
650
+ type: "list";
651
+ name: string;
652
+ id: string;
653
+ modelRef: string;
654
+ form: {
655
+ fields: {
656
+ type: string;
657
+ label: string;
658
+ }[];
659
+ };
660
+ table: {
661
+ columns: {
662
+ label: string;
663
+ display: {
664
+ type: "foreign";
665
+ localRelationRef: string;
666
+ labelExpression: string;
667
+ valueExpression: string;
668
+ } | {
669
+ type: "text";
670
+ modelFieldRef: string;
671
+ };
672
+ }[];
673
+ };
674
+ includeIdField?: boolean | undefined;
675
+ })[] | undefined;
676
+ }[] | undefined;
677
+ }>]>>;
678
+ export type AppConfig = z.infer<typeof appSchema>;
679
+ export declare const createProjectDefinitionSchema: (options: import("./creator/types.js").DefinitionSchemaCreatorOptions) => z.ZodObject<{
680
+ cliVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
681
+ apps: z.ZodDefault<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
682
+ type: z.ZodLiteral<"backend">;
683
+ enableStripe: z.ZodOptional<z.ZodBoolean>;
684
+ enableRedis: z.ZodOptional<z.ZodBoolean>;
685
+ enableBullQueue: z.ZodOptional<z.ZodBoolean>;
686
+ enablePostmark: z.ZodOptional<z.ZodBoolean>;
687
+ enableSubscriptions: z.ZodOptional<z.ZodBoolean>;
688
+ enableAxios: z.ZodOptional<z.ZodBoolean>;
689
+ id: z.ZodDefault<z.ZodString>;
690
+ name: z.ZodString;
691
+ packageLocation: z.ZodOptional<z.ZodString>;
692
+ }, "strip", z.ZodTypeAny, {
693
+ type: "backend";
694
+ name: string;
695
+ id: string;
696
+ packageLocation?: string | undefined;
697
+ enableStripe?: boolean | undefined;
698
+ enableRedis?: boolean | undefined;
699
+ enableBullQueue?: boolean | undefined;
700
+ enablePostmark?: boolean | undefined;
701
+ enableSubscriptions?: boolean | undefined;
702
+ enableAxios?: boolean | undefined;
703
+ }, {
704
+ type: "backend";
705
+ name: string;
706
+ id?: string | undefined;
707
+ packageLocation?: string | undefined;
708
+ enableStripe?: boolean | undefined;
709
+ enableRedis?: boolean | undefined;
710
+ enableBullQueue?: boolean | undefined;
711
+ enablePostmark?: boolean | undefined;
712
+ enableSubscriptions?: boolean | undefined;
713
+ enableAxios?: boolean | undefined;
714
+ }>, z.ZodObject<{
715
+ type: z.ZodLiteral<"web">;
716
+ includeAuth: z.ZodOptional<z.ZodBoolean>;
717
+ title: z.ZodOptional<z.ZodString>;
718
+ description: z.ZodOptional<z.ZodString>;
719
+ allowedRoles: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">>;
720
+ includeUploadComponents: z.ZodOptional<z.ZodBoolean>;
721
+ enableSubscriptions: z.ZodOptional<z.ZodBoolean>;
722
+ id: z.ZodDefault<z.ZodString>;
723
+ name: z.ZodString;
724
+ packageLocation: z.ZodOptional<z.ZodString>;
725
+ }, "strip", z.ZodTypeAny, {
726
+ type: "web";
727
+ name: string;
728
+ id: string;
729
+ description?: string | undefined;
730
+ packageLocation?: string | undefined;
731
+ allowedRoles?: string[] | undefined;
732
+ enableSubscriptions?: boolean | undefined;
733
+ includeAuth?: boolean | undefined;
734
+ title?: string | undefined;
735
+ includeUploadComponents?: boolean | undefined;
736
+ }, {
737
+ type: "web";
738
+ name: string;
739
+ description?: string | undefined;
740
+ id?: string | undefined;
741
+ packageLocation?: string | undefined;
742
+ allowedRoles?: string[] | undefined;
743
+ enableSubscriptions?: boolean | undefined;
744
+ includeAuth?: boolean | undefined;
745
+ title?: string | undefined;
746
+ includeUploadComponents?: boolean | undefined;
747
+ }>, z.ZodObject<{
748
+ type: z.ZodLiteral<"admin">;
749
+ allowedRoles: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">>;
750
+ sections: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<import("#src/references/index.js").ZodRef<z.ZodObject<{
751
+ type: z.ZodLiteral<"crud">;
752
+ modelRef: import("#src/references/index.js").ZodRef<z.ZodString>;
753
+ disableCreate: z.ZodOptional<z.ZodBoolean>;
754
+ table: z.ZodObject<{
755
+ columns: z.ZodArray<z.ZodObject<{
756
+ label: z.ZodString;
757
+ display: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
758
+ type: z.ZodLiteral<"text">;
759
+ modelFieldRef: import("#src/references/index.js").ZodRef<z.ZodString>;
760
+ }, "strip", z.ZodTypeAny, {
761
+ type: "text";
762
+ modelFieldRef: string;
763
+ }, {
764
+ type: "text";
765
+ modelFieldRef: string;
766
+ }>, z.ZodObject<{
767
+ type: z.ZodLiteral<"foreign">;
768
+ localRelationRef: import("#src/references/index.js").ZodRef<z.ZodString>;
769
+ labelExpression: z.ZodString;
770
+ valueExpression: z.ZodString;
771
+ }, "strip", z.ZodTypeAny, {
772
+ type: "foreign";
773
+ localRelationRef: string;
774
+ labelExpression: string;
775
+ valueExpression: string;
776
+ }, {
777
+ type: "foreign";
778
+ localRelationRef: string;
779
+ labelExpression: string;
780
+ valueExpression: string;
781
+ }>]>;
782
+ }, "strip", z.ZodTypeAny, {
783
+ label: string;
784
+ display: {
785
+ type: "foreign";
786
+ localRelationRef: string;
787
+ labelExpression: string;
788
+ valueExpression: string;
789
+ } | {
790
+ type: "text";
791
+ modelFieldRef: string;
792
+ };
793
+ }, {
794
+ label: string;
795
+ display: {
796
+ type: "foreign";
797
+ localRelationRef: string;
798
+ labelExpression: string;
799
+ valueExpression: string;
800
+ } | {
801
+ type: "text";
802
+ modelFieldRef: string;
803
+ };
804
+ }>, "many">;
805
+ }, "strip", z.ZodTypeAny, {
806
+ columns: {
807
+ label: string;
808
+ display: {
809
+ type: "foreign";
810
+ localRelationRef: string;
811
+ labelExpression: string;
812
+ valueExpression: string;
813
+ } | {
814
+ type: "text";
815
+ modelFieldRef: string;
816
+ };
817
+ }[];
818
+ }, {
819
+ columns: {
820
+ label: string;
821
+ display: {
822
+ type: "foreign";
823
+ localRelationRef: string;
824
+ labelExpression: string;
825
+ valueExpression: string;
826
+ } | {
827
+ type: "text";
828
+ modelFieldRef: string;
829
+ };
830
+ }[];
831
+ }>;
832
+ form: z.ZodObject<{
833
+ fields: z.ZodArray<import("../index.js").ZodWithPlugins<z.ZodObject<{
834
+ type: z.ZodString;
835
+ label: z.ZodString;
836
+ }, "strip", z.ZodTypeAny, {
837
+ type: string;
838
+ label: string;
839
+ }, {
840
+ type: string;
841
+ label: string;
842
+ }>>, "many">;
843
+ }, "strip", z.ZodTypeAny, {
844
+ fields: {
845
+ type: string;
846
+ label: string;
847
+ }[];
848
+ }, {
849
+ fields: {
850
+ type: string;
851
+ label: string;
852
+ }[];
853
+ }>;
854
+ embeddedForms: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
855
+ id: z.ZodString;
856
+ name: z.ZodString;
857
+ modelRef: import("#src/references/index.js").ZodRef<z.ZodString>;
858
+ includeIdField: z.ZodOptional<z.ZodBoolean>;
859
+ type: z.ZodLiteral<"object">;
860
+ form: z.ZodObject<{
861
+ fields: z.ZodArray<import("../index.js").ZodWithPlugins<z.ZodObject<{
862
+ type: z.ZodString;
863
+ label: z.ZodString;
864
+ }, "strip", z.ZodTypeAny, {
865
+ type: string;
866
+ label: string;
867
+ }, {
868
+ type: string;
869
+ label: string;
870
+ }>>, "many">;
871
+ }, "strip", z.ZodTypeAny, {
872
+ fields: {
873
+ type: string;
874
+ label: string;
875
+ }[];
876
+ }, {
877
+ fields: {
878
+ type: string;
879
+ label: string;
880
+ }[];
881
+ }>;
882
+ }, "strip", z.ZodTypeAny, {
883
+ type: "object";
884
+ name: string;
885
+ id: string;
886
+ modelRef: string;
887
+ form: {
888
+ fields: {
889
+ type: string;
890
+ label: string;
891
+ }[];
892
+ };
893
+ includeIdField?: boolean | undefined;
894
+ }, {
895
+ type: "object";
896
+ name: string;
897
+ id: string;
898
+ modelRef: string;
899
+ form: {
900
+ fields: {
901
+ type: string;
902
+ label: string;
903
+ }[];
904
+ };
905
+ includeIdField?: boolean | undefined;
906
+ }>, z.ZodObject<{
907
+ id: z.ZodString;
908
+ name: z.ZodString;
909
+ modelRef: import("#src/references/index.js").ZodRef<z.ZodString>;
910
+ includeIdField: z.ZodOptional<z.ZodBoolean>;
911
+ type: z.ZodLiteral<"list">;
912
+ table: z.ZodObject<{
913
+ columns: z.ZodArray<z.ZodObject<{
914
+ label: z.ZodString;
915
+ display: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
916
+ type: z.ZodLiteral<"text">;
917
+ modelFieldRef: import("#src/references/index.js").ZodRef<z.ZodString>;
918
+ }, "strip", z.ZodTypeAny, {
919
+ type: "text";
920
+ modelFieldRef: string;
921
+ }, {
922
+ type: "text";
923
+ modelFieldRef: string;
924
+ }>, z.ZodObject<{
925
+ type: z.ZodLiteral<"foreign">;
926
+ localRelationRef: import("#src/references/index.js").ZodRef<z.ZodString>;
927
+ labelExpression: z.ZodString;
928
+ valueExpression: z.ZodString;
929
+ }, "strip", z.ZodTypeAny, {
930
+ type: "foreign";
931
+ localRelationRef: string;
932
+ labelExpression: string;
933
+ valueExpression: string;
934
+ }, {
935
+ type: "foreign";
936
+ localRelationRef: string;
937
+ labelExpression: string;
938
+ valueExpression: string;
939
+ }>]>;
940
+ }, "strip", z.ZodTypeAny, {
941
+ label: string;
942
+ display: {
943
+ type: "foreign";
944
+ localRelationRef: string;
945
+ labelExpression: string;
946
+ valueExpression: string;
947
+ } | {
948
+ type: "text";
949
+ modelFieldRef: string;
950
+ };
951
+ }, {
952
+ label: string;
953
+ display: {
954
+ type: "foreign";
955
+ localRelationRef: string;
956
+ labelExpression: string;
957
+ valueExpression: string;
958
+ } | {
959
+ type: "text";
960
+ modelFieldRef: string;
961
+ };
962
+ }>, "many">;
963
+ }, "strip", z.ZodTypeAny, {
964
+ columns: {
965
+ label: string;
966
+ display: {
967
+ type: "foreign";
968
+ localRelationRef: string;
969
+ labelExpression: string;
970
+ valueExpression: string;
971
+ } | {
972
+ type: "text";
973
+ modelFieldRef: string;
974
+ };
975
+ }[];
976
+ }, {
977
+ columns: {
978
+ label: string;
979
+ display: {
980
+ type: "foreign";
981
+ localRelationRef: string;
982
+ labelExpression: string;
983
+ valueExpression: string;
984
+ } | {
985
+ type: "text";
986
+ modelFieldRef: string;
987
+ };
988
+ }[];
989
+ }>;
990
+ form: z.ZodObject<{
991
+ fields: z.ZodArray<import("../index.js").ZodWithPlugins<z.ZodObject<{
992
+ type: z.ZodString;
993
+ label: z.ZodString;
994
+ }, "strip", z.ZodTypeAny, {
995
+ type: string;
996
+ label: string;
997
+ }, {
998
+ type: string;
999
+ label: string;
1000
+ }>>, "many">;
1001
+ }, "strip", z.ZodTypeAny, {
1002
+ fields: {
1003
+ type: string;
1004
+ label: string;
1005
+ }[];
1006
+ }, {
1007
+ fields: {
1008
+ type: string;
1009
+ label: string;
1010
+ }[];
1011
+ }>;
1012
+ }, "strip", z.ZodTypeAny, {
1013
+ type: "list";
1014
+ name: string;
1015
+ id: string;
1016
+ modelRef: string;
1017
+ form: {
1018
+ fields: {
1019
+ type: string;
1020
+ label: string;
1021
+ }[];
1022
+ };
1023
+ table: {
1024
+ columns: {
1025
+ label: string;
1026
+ display: {
1027
+ type: "foreign";
1028
+ localRelationRef: string;
1029
+ labelExpression: string;
1030
+ valueExpression: string;
1031
+ } | {
1032
+ type: "text";
1033
+ modelFieldRef: string;
1034
+ };
1035
+ }[];
1036
+ };
1037
+ includeIdField?: boolean | undefined;
1038
+ }, {
1039
+ type: "list";
1040
+ name: string;
1041
+ id: string;
1042
+ modelRef: string;
1043
+ form: {
1044
+ fields: {
1045
+ type: string;
1046
+ label: string;
1047
+ }[];
1048
+ };
1049
+ table: {
1050
+ columns: {
1051
+ label: string;
1052
+ display: {
1053
+ type: "foreign";
1054
+ localRelationRef: string;
1055
+ labelExpression: string;
1056
+ valueExpression: string;
1057
+ } | {
1058
+ type: "text";
1059
+ modelFieldRef: string;
1060
+ };
1061
+ }[];
1062
+ };
1063
+ includeIdField?: boolean | undefined;
1064
+ }>]>>, "many">>;
1065
+ id: z.ZodDefault<z.ZodString>;
1066
+ name: z.ZodString;
1067
+ featureRef: import("#src/references/index.js").ZodRef<z.ZodString>;
1068
+ icon: z.ZodOptional<z.ZodString>;
1069
+ }, "strip", z.ZodTypeAny, {
1070
+ type: "crud";
1071
+ name: string;
1072
+ id: string;
1073
+ modelRef: string;
1074
+ featureRef: string;
1075
+ form: {
1076
+ fields: {
1077
+ type: string;
1078
+ label: string;
1079
+ }[];
1080
+ };
1081
+ table: {
1082
+ columns: {
1083
+ label: string;
1084
+ display: {
1085
+ type: "foreign";
1086
+ localRelationRef: string;
1087
+ labelExpression: string;
1088
+ valueExpression: string;
1089
+ } | {
1090
+ type: "text";
1091
+ modelFieldRef: string;
1092
+ };
1093
+ }[];
1094
+ };
1095
+ icon?: string | undefined;
1096
+ disableCreate?: boolean | undefined;
1097
+ embeddedForms?: ({
1098
+ type: "object";
1099
+ name: string;
1100
+ id: string;
1101
+ modelRef: string;
1102
+ form: {
1103
+ fields: {
1104
+ type: string;
1105
+ label: string;
1106
+ }[];
1107
+ };
1108
+ includeIdField?: boolean | undefined;
1109
+ } | {
1110
+ type: "list";
1111
+ name: string;
1112
+ id: string;
1113
+ modelRef: string;
1114
+ form: {
1115
+ fields: {
1116
+ type: string;
1117
+ label: string;
1118
+ }[];
1119
+ };
1120
+ table: {
1121
+ columns: {
1122
+ label: string;
1123
+ display: {
1124
+ type: "foreign";
1125
+ localRelationRef: string;
1126
+ labelExpression: string;
1127
+ valueExpression: string;
1128
+ } | {
1129
+ type: "text";
1130
+ modelFieldRef: string;
1131
+ };
1132
+ }[];
1133
+ };
1134
+ includeIdField?: boolean | undefined;
1135
+ })[] | undefined;
1136
+ }, {
1137
+ type: "crud";
1138
+ name: string;
1139
+ modelRef: string;
1140
+ featureRef: string;
1141
+ form: {
1142
+ fields: {
1143
+ type: string;
1144
+ label: string;
1145
+ }[];
1146
+ };
1147
+ table: {
1148
+ columns: {
1149
+ label: string;
1150
+ display: {
1151
+ type: "foreign";
1152
+ localRelationRef: string;
1153
+ labelExpression: string;
1154
+ valueExpression: string;
1155
+ } | {
1156
+ type: "text";
1157
+ modelFieldRef: string;
1158
+ };
1159
+ }[];
1160
+ };
1161
+ icon?: string | undefined;
1162
+ id?: string | undefined;
1163
+ disableCreate?: boolean | undefined;
1164
+ embeddedForms?: ({
1165
+ type: "object";
1166
+ name: string;
1167
+ id: string;
1168
+ modelRef: string;
1169
+ form: {
1170
+ fields: {
1171
+ type: string;
1172
+ label: string;
1173
+ }[];
1174
+ };
1175
+ includeIdField?: boolean | undefined;
1176
+ } | {
1177
+ type: "list";
1178
+ name: string;
1179
+ id: string;
1180
+ modelRef: string;
1181
+ form: {
1182
+ fields: {
1183
+ type: string;
1184
+ label: string;
1185
+ }[];
1186
+ };
1187
+ table: {
1188
+ columns: {
1189
+ label: string;
1190
+ display: {
1191
+ type: "foreign";
1192
+ localRelationRef: string;
1193
+ labelExpression: string;
1194
+ valueExpression: string;
1195
+ } | {
1196
+ type: "text";
1197
+ modelFieldRef: string;
1198
+ };
1199
+ }[];
1200
+ };
1201
+ includeIdField?: boolean | undefined;
1202
+ })[] | undefined;
1203
+ }>>>, "many">>;
1204
+ id: z.ZodDefault<z.ZodString>;
1205
+ name: z.ZodString;
1206
+ packageLocation: z.ZodOptional<z.ZodString>;
1207
+ }, "strip", z.ZodTypeAny, {
1208
+ type: "admin";
1209
+ name: string;
1210
+ id: string;
1211
+ packageLocation?: string | undefined;
1212
+ allowedRoles?: string[] | undefined;
1213
+ sections?: {
1214
+ type: "crud";
1215
+ name: string;
1216
+ id: string;
1217
+ modelRef: string;
1218
+ featureRef: string;
1219
+ form: {
1220
+ fields: {
1221
+ type: string;
1222
+ label: string;
1223
+ }[];
1224
+ };
1225
+ table: {
1226
+ columns: {
1227
+ label: string;
1228
+ display: {
1229
+ type: "foreign";
1230
+ localRelationRef: string;
1231
+ labelExpression: string;
1232
+ valueExpression: string;
1233
+ } | {
1234
+ type: "text";
1235
+ modelFieldRef: string;
1236
+ };
1237
+ }[];
1238
+ };
1239
+ icon?: string | undefined;
1240
+ disableCreate?: boolean | undefined;
1241
+ embeddedForms?: ({
1242
+ type: "object";
1243
+ name: string;
1244
+ id: string;
1245
+ modelRef: string;
1246
+ form: {
1247
+ fields: {
1248
+ type: string;
1249
+ label: string;
1250
+ }[];
1251
+ };
1252
+ includeIdField?: boolean | undefined;
1253
+ } | {
1254
+ type: "list";
1255
+ name: string;
1256
+ id: string;
1257
+ modelRef: string;
1258
+ form: {
1259
+ fields: {
1260
+ type: string;
1261
+ label: string;
1262
+ }[];
1263
+ };
1264
+ table: {
1265
+ columns: {
1266
+ label: string;
1267
+ display: {
1268
+ type: "foreign";
1269
+ localRelationRef: string;
1270
+ labelExpression: string;
1271
+ valueExpression: string;
1272
+ } | {
1273
+ type: "text";
1274
+ modelFieldRef: string;
1275
+ };
1276
+ }[];
1277
+ };
1278
+ includeIdField?: boolean | undefined;
1279
+ })[] | undefined;
1280
+ }[] | undefined;
1281
+ }, {
1282
+ type: "admin";
1283
+ name: string;
1284
+ id?: string | undefined;
1285
+ packageLocation?: string | undefined;
1286
+ allowedRoles?: string[] | undefined;
1287
+ sections?: {
1288
+ type: "crud";
1289
+ name: string;
1290
+ modelRef: string;
1291
+ featureRef: string;
1292
+ form: {
1293
+ fields: {
1294
+ type: string;
1295
+ label: string;
1296
+ }[];
1297
+ };
1298
+ table: {
1299
+ columns: {
1300
+ label: string;
1301
+ display: {
1302
+ type: "foreign";
1303
+ localRelationRef: string;
1304
+ labelExpression: string;
1305
+ valueExpression: string;
1306
+ } | {
1307
+ type: "text";
1308
+ modelFieldRef: string;
1309
+ };
1310
+ }[];
1311
+ };
1312
+ icon?: string | undefined;
1313
+ id?: string | undefined;
1314
+ disableCreate?: boolean | undefined;
1315
+ embeddedForms?: ({
1316
+ type: "object";
1317
+ name: string;
1318
+ id: string;
1319
+ modelRef: string;
1320
+ form: {
1321
+ fields: {
1322
+ type: string;
1323
+ label: string;
1324
+ }[];
1325
+ };
1326
+ includeIdField?: boolean | undefined;
1327
+ } | {
1328
+ type: "list";
1329
+ name: string;
1330
+ id: string;
1331
+ modelRef: string;
1332
+ form: {
1333
+ fields: {
1334
+ type: string;
1335
+ label: string;
1336
+ }[];
1337
+ };
1338
+ table: {
1339
+ columns: {
1340
+ label: string;
1341
+ display: {
1342
+ type: "foreign";
1343
+ localRelationRef: string;
1344
+ labelExpression: string;
1345
+ valueExpression: string;
1346
+ } | {
1347
+ type: "text";
1348
+ modelFieldRef: string;
1349
+ };
1350
+ }[];
1351
+ };
1352
+ includeIdField?: boolean | undefined;
1353
+ })[] | undefined;
1354
+ }[] | undefined;
1355
+ }>]>>, "many">>;
1356
+ features: z.ZodDefault<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodObject<{
1357
+ name: z.ZodEffects<z.ZodString, string, string>;
1358
+ parentRef: import("#src/references/index.js").ZodRef<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1359
+ } & {
1360
+ id: z.ZodType<string, z.ZodAnyDef, string>;
1361
+ }, "strip", z.ZodTypeAny, {
1362
+ name: string;
1363
+ id: string;
1364
+ parentRef?: string | null | undefined;
1365
+ }, {
1366
+ name: string;
1367
+ id: string;
1368
+ parentRef?: string | null | undefined;
1369
+ }>>, "many">>;
1370
+ models: z.ZodDefault<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodObject<{
1371
+ id: z.ZodString;
1372
+ name: z.ZodString;
1373
+ featureRef: import("#src/references/index.js").ZodRef<z.ZodString>;
1374
+ model: z.ZodObject<{
1375
+ fields: z.ZodArray<z.ZodEffects<z.ZodEffects<import("#src/references/index.js").ZodRef<z.ZodObject<{
1376
+ name: z.ZodString;
1377
+ type: z.ZodEnum<["string", "uuid", "int", "boolean", "dateTime", "float", "decimal", "json", "date", "enum"]>;
1378
+ isOptional: z.ZodDefault<z.ZodBoolean>;
1379
+ options: import("#src/references/index.js").ZodRef<z.ZodDefault<z.ZodEffects<z.ZodObject<{
1380
+ default: z.ZodDefault<z.ZodString>;
1381
+ genUuid: z.ZodOptional<z.ZodBoolean>;
1382
+ updatedAt: z.ZodOptional<z.ZodBoolean>;
1383
+ defaultToNow: z.ZodOptional<z.ZodBoolean>;
1384
+ enumRef: import("#src/references/index.js").ZodRef<z.ZodOptional<z.ZodString>>;
1385
+ defaultEnumValueRef: z.ZodOptional<z.ZodString>;
1386
+ }, "strip", z.ZodTypeAny, {
1387
+ default: string;
1388
+ genUuid?: boolean | undefined;
1389
+ updatedAt?: boolean | undefined;
1390
+ defaultToNow?: boolean | undefined;
1391
+ enumRef?: string | undefined;
1392
+ defaultEnumValueRef?: string | undefined;
1393
+ }, {
1394
+ default?: string | undefined;
1395
+ genUuid?: boolean | undefined;
1396
+ updatedAt?: boolean | undefined;
1397
+ defaultToNow?: boolean | undefined;
1398
+ enumRef?: string | undefined;
1399
+ defaultEnumValueRef?: string | undefined;
1400
+ }>, {
1401
+ defaultEnumValueRef?: string | undefined;
1402
+ default: string;
1403
+ genUuid?: boolean | undefined;
1404
+ updatedAt?: boolean | undefined;
1405
+ defaultToNow?: boolean | undefined;
1406
+ enumRef?: string | undefined;
1407
+ }, {
1408
+ default?: string | undefined;
1409
+ genUuid?: boolean | undefined;
1410
+ updatedAt?: boolean | undefined;
1411
+ defaultToNow?: boolean | undefined;
1412
+ enumRef?: string | undefined;
1413
+ defaultEnumValueRef?: string | undefined;
1414
+ }>>>;
1415
+ } & {
1416
+ id: z.ZodType<string, z.ZodAnyDef, string>;
1417
+ }, "strip", z.ZodTypeAny, {
1418
+ options: {
1419
+ defaultEnumValueRef?: string | undefined;
1420
+ default: string;
1421
+ genUuid?: boolean | undefined;
1422
+ updatedAt?: boolean | undefined;
1423
+ defaultToNow?: boolean | undefined;
1424
+ enumRef?: string | undefined;
1425
+ };
1426
+ type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
1427
+ name: string;
1428
+ id: string;
1429
+ isOptional: boolean;
1430
+ }, {
1431
+ type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
1432
+ name: string;
1433
+ id: string;
1434
+ options?: {
1435
+ default?: string | undefined;
1436
+ genUuid?: boolean | undefined;
1437
+ updatedAt?: boolean | undefined;
1438
+ defaultToNow?: boolean | undefined;
1439
+ enumRef?: string | undefined;
1440
+ defaultEnumValueRef?: string | undefined;
1441
+ } | undefined;
1442
+ isOptional?: boolean | undefined;
1443
+ }>>, {
1444
+ options: {
1445
+ defaultEnumValueRef?: string | undefined;
1446
+ default: string;
1447
+ genUuid?: boolean | undefined;
1448
+ updatedAt?: boolean | undefined;
1449
+ defaultToNow?: boolean | undefined;
1450
+ enumRef?: string | undefined;
1451
+ };
1452
+ type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
1453
+ name: string;
1454
+ id: string;
1455
+ isOptional: boolean;
1456
+ }, {
1457
+ type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
1458
+ name: string;
1459
+ id: string;
1460
+ options?: {
1461
+ default?: string | undefined;
1462
+ genUuid?: boolean | undefined;
1463
+ updatedAt?: boolean | undefined;
1464
+ defaultToNow?: boolean | undefined;
1465
+ enumRef?: string | undefined;
1466
+ defaultEnumValueRef?: string | undefined;
1467
+ } | undefined;
1468
+ isOptional?: boolean | undefined;
1469
+ }>, {
1470
+ options: {
1471
+ defaultEnumValueRef?: string | undefined;
1472
+ default: string;
1473
+ genUuid?: boolean | undefined;
1474
+ updatedAt?: boolean | undefined;
1475
+ defaultToNow?: boolean | undefined;
1476
+ enumRef?: string | undefined;
1477
+ };
1478
+ type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
1479
+ name: string;
1480
+ id: string;
1481
+ isOptional: boolean;
1482
+ }, {
1483
+ type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
1484
+ name: string;
1485
+ id: string;
1486
+ options?: {
1487
+ default?: string | undefined;
1488
+ genUuid?: boolean | undefined;
1489
+ updatedAt?: boolean | undefined;
1490
+ defaultToNow?: boolean | undefined;
1491
+ enumRef?: string | undefined;
1492
+ defaultEnumValueRef?: string | undefined;
1493
+ } | undefined;
1494
+ isOptional?: boolean | undefined;
1495
+ }>, "many">;
1496
+ relations: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodObject<{
1497
+ id: z.ZodString;
1498
+ foreignId: z.ZodDefault<z.ZodString>;
1499
+ name: z.ZodString;
1500
+ references: z.ZodArray<z.ZodObject<{
1501
+ localRef: import("#src/references/index.js").ZodRef<z.ZodString>;
1502
+ foreignRef: import("#src/references/index.js").ZodRef<z.ZodString>;
1503
+ }, "strip", z.ZodTypeAny, {
1504
+ localRef: string;
1505
+ foreignRef: string;
1506
+ }, {
1507
+ localRef: string;
1508
+ foreignRef: string;
1509
+ }>, "many">;
1510
+ modelRef: z.ZodString;
1511
+ foreignRelationName: z.ZodString;
1512
+ onDelete: z.ZodDefault<z.ZodEnum<["Cascade", "Restrict", "NoAction", "SetNull", "SetDefault"]>>;
1513
+ onUpdate: z.ZodDefault<z.ZodEnum<["Cascade", "Restrict", "NoAction", "SetNull", "SetDefault"]>>;
1514
+ }, "strip", z.ZodTypeAny, {
1515
+ name: string;
1516
+ id: string;
1517
+ onDelete: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
1518
+ references: {
1519
+ localRef: string;
1520
+ foreignRef: string;
1521
+ }[];
1522
+ modelRef: string;
1523
+ foreignId: string;
1524
+ foreignRelationName: string;
1525
+ onUpdate: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
1526
+ }, {
1527
+ name: string;
1528
+ id: string;
1529
+ references: {
1530
+ localRef: string;
1531
+ foreignRef: string;
1532
+ }[];
1533
+ modelRef: string;
1534
+ foreignRelationName: string;
1535
+ onDelete?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
1536
+ foreignId?: string | undefined;
1537
+ onUpdate?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
1538
+ }>>, "many">>;
1539
+ primaryKeyFieldRefs: z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">;
1540
+ uniqueConstraints: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodObject<{
1541
+ fields: z.ZodArray<z.ZodObject<{
1542
+ fieldRef: import("#src/references/index.js").ZodRef<z.ZodString>;
1543
+ }, "strip", z.ZodTypeAny, {
1544
+ fieldRef: string;
1545
+ }, {
1546
+ fieldRef: string;
1547
+ }>, "many">;
1548
+ } & {
1549
+ id: z.ZodType<string, z.ZodAnyDef, string>;
1550
+ }, "strip", z.ZodTypeAny, {
1551
+ id: string;
1552
+ fields: {
1553
+ fieldRef: string;
1554
+ }[];
1555
+ }, {
1556
+ id: string;
1557
+ fields: {
1558
+ fieldRef: string;
1559
+ }[];
1560
+ }>>, "many">>;
1561
+ }, "strip", z.ZodTypeAny, {
1562
+ fields: {
1563
+ options: {
1564
+ defaultEnumValueRef?: string | undefined;
1565
+ default: string;
1566
+ genUuid?: boolean | undefined;
1567
+ updatedAt?: boolean | undefined;
1568
+ defaultToNow?: boolean | undefined;
1569
+ enumRef?: string | undefined;
1570
+ };
1571
+ type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
1572
+ name: string;
1573
+ id: string;
1574
+ isOptional: boolean;
1575
+ }[];
1576
+ primaryKeyFieldRefs: string[];
1577
+ relations?: {
1578
+ name: string;
1579
+ id: string;
1580
+ onDelete: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
1581
+ references: {
1582
+ localRef: string;
1583
+ foreignRef: string;
1584
+ }[];
1585
+ modelRef: string;
1586
+ foreignId: string;
1587
+ foreignRelationName: string;
1588
+ onUpdate: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
1589
+ }[] | undefined;
1590
+ uniqueConstraints?: {
1591
+ id: string;
1592
+ fields: {
1593
+ fieldRef: string;
1594
+ }[];
1595
+ }[] | undefined;
1596
+ }, {
1597
+ fields: {
1598
+ type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
1599
+ name: string;
1600
+ id: string;
1601
+ options?: {
1602
+ default?: string | undefined;
1603
+ genUuid?: boolean | undefined;
1604
+ updatedAt?: boolean | undefined;
1605
+ defaultToNow?: boolean | undefined;
1606
+ enumRef?: string | undefined;
1607
+ defaultEnumValueRef?: string | undefined;
1608
+ } | undefined;
1609
+ isOptional?: boolean | undefined;
1610
+ }[];
1611
+ primaryKeyFieldRefs: string[];
1612
+ relations?: {
1613
+ name: string;
1614
+ id: string;
1615
+ references: {
1616
+ localRef: string;
1617
+ foreignRef: string;
1618
+ }[];
1619
+ modelRef: string;
1620
+ foreignRelationName: string;
1621
+ onDelete?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
1622
+ foreignId?: string | undefined;
1623
+ onUpdate?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
1624
+ }[] | undefined;
1625
+ uniqueConstraints?: {
1626
+ id: string;
1627
+ fields: {
1628
+ fieldRef: string;
1629
+ }[];
1630
+ }[] | undefined;
1631
+ }>;
1632
+ service: z.ZodDefault<z.ZodObject<{
1633
+ create: z.ZodDefault<z.ZodObject<{
1634
+ enabled: z.ZodDefault<z.ZodBoolean>;
1635
+ fields: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">>;
1636
+ transformerNames: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">>;
1637
+ }, "strip", z.ZodTypeAny, {
1638
+ enabled: boolean;
1639
+ fields?: string[] | undefined;
1640
+ transformerNames?: string[] | undefined;
1641
+ }, {
1642
+ enabled?: boolean | undefined;
1643
+ fields?: string[] | undefined;
1644
+ transformerNames?: string[] | undefined;
1645
+ }>>;
1646
+ update: z.ZodDefault<z.ZodObject<{
1647
+ enabled: z.ZodDefault<z.ZodBoolean>;
1648
+ fields: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">>;
1649
+ transformerNames: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">>;
1650
+ }, "strip", z.ZodTypeAny, {
1651
+ enabled: boolean;
1652
+ fields?: string[] | undefined;
1653
+ transformerNames?: string[] | undefined;
1654
+ }, {
1655
+ enabled?: boolean | undefined;
1656
+ fields?: string[] | undefined;
1657
+ transformerNames?: string[] | undefined;
1658
+ }>>;
1659
+ delete: z.ZodDefault<z.ZodObject<{
1660
+ enabled: z.ZodDefault<z.ZodBoolean>;
1661
+ }, "strip", z.ZodTypeAny, {
1662
+ enabled: boolean;
1663
+ }, {
1664
+ enabled?: boolean | undefined;
1665
+ }>>;
1666
+ transformers: z.ZodDefault<z.ZodArray<import("../index.js").ZodWithPlugins<z.ZodObject<{
1667
+ type: z.ZodString;
1668
+ id: z.ZodString;
1669
+ }, "strip", z.ZodTypeAny, {
1670
+ type: string;
1671
+ id: string;
1672
+ }, {
1673
+ type: string;
1674
+ id: string;
1675
+ }>>, "many">>;
1676
+ }, "strip", z.ZodTypeAny, {
1677
+ delete: {
1678
+ enabled: boolean;
1679
+ };
1680
+ create: {
1681
+ enabled: boolean;
1682
+ fields?: string[] | undefined;
1683
+ transformerNames?: string[] | undefined;
1684
+ };
1685
+ update: {
1686
+ enabled: boolean;
1687
+ fields?: string[] | undefined;
1688
+ transformerNames?: string[] | undefined;
1689
+ };
1690
+ transformers: {
1691
+ type: string;
1692
+ id: string;
1693
+ }[];
1694
+ }, {
1695
+ delete?: {
1696
+ enabled?: boolean | undefined;
1697
+ } | undefined;
1698
+ create?: {
1699
+ enabled?: boolean | undefined;
1700
+ fields?: string[] | undefined;
1701
+ transformerNames?: string[] | undefined;
1702
+ } | undefined;
1703
+ update?: {
1704
+ enabled?: boolean | undefined;
1705
+ fields?: string[] | undefined;
1706
+ transformerNames?: string[] | undefined;
1707
+ } | undefined;
1708
+ transformers?: {
1709
+ type: string;
1710
+ id: string;
1711
+ }[] | undefined;
1712
+ }>>;
1713
+ graphql: z.ZodOptional<z.ZodObject<{
1714
+ objectType: z.ZodDefault<z.ZodObject<{
1715
+ enabled: z.ZodDefault<z.ZodBoolean>;
1716
+ fields: z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">;
1717
+ localRelations: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">>;
1718
+ foreignRelations: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">>;
1719
+ }, "strip", z.ZodTypeAny, {
1720
+ enabled: boolean;
1721
+ fields: string[];
1722
+ localRelations?: string[] | undefined;
1723
+ foreignRelations?: string[] | undefined;
1724
+ }, {
1725
+ fields: string[];
1726
+ enabled?: boolean | undefined;
1727
+ localRelations?: string[] | undefined;
1728
+ foreignRelations?: string[] | undefined;
1729
+ }>>;
1730
+ queries: z.ZodDefault<z.ZodObject<{
1731
+ get: z.ZodOptional<z.ZodObject<{
1732
+ enabled: z.ZodOptional<z.ZodBoolean>;
1733
+ roles: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">>;
1734
+ }, "strip", z.ZodTypeAny, {
1735
+ enabled?: boolean | undefined;
1736
+ roles?: string[] | undefined;
1737
+ }, {
1738
+ enabled?: boolean | undefined;
1739
+ roles?: string[] | undefined;
1740
+ }>>;
1741
+ list: z.ZodOptional<z.ZodObject<{
1742
+ enabled: z.ZodOptional<z.ZodBoolean>;
1743
+ roles: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">>;
1744
+ }, "strip", z.ZodTypeAny, {
1745
+ enabled?: boolean | undefined;
1746
+ roles?: string[] | undefined;
1747
+ }, {
1748
+ enabled?: boolean | undefined;
1749
+ roles?: string[] | undefined;
1750
+ }>>;
1751
+ }, "strip", z.ZodTypeAny, {
1752
+ get?: {
1753
+ enabled?: boolean | undefined;
1754
+ roles?: string[] | undefined;
1755
+ } | undefined;
1756
+ list?: {
1757
+ enabled?: boolean | undefined;
1758
+ roles?: string[] | undefined;
1759
+ } | undefined;
1760
+ }, {
1761
+ get?: {
1762
+ enabled?: boolean | undefined;
1763
+ roles?: string[] | undefined;
1764
+ } | undefined;
1765
+ list?: {
1766
+ enabled?: boolean | undefined;
1767
+ roles?: string[] | undefined;
1768
+ } | undefined;
1769
+ }>>;
1770
+ mutations: z.ZodDefault<z.ZodObject<{
1771
+ create: z.ZodDefault<z.ZodObject<{
1772
+ enabled: z.ZodOptional<z.ZodBoolean>;
1773
+ roles: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">>;
1774
+ }, "strip", z.ZodTypeAny, {
1775
+ enabled?: boolean | undefined;
1776
+ roles?: string[] | undefined;
1777
+ }, {
1778
+ enabled?: boolean | undefined;
1779
+ roles?: string[] | undefined;
1780
+ }>>;
1781
+ update: z.ZodDefault<z.ZodObject<{
1782
+ enabled: z.ZodOptional<z.ZodBoolean>;
1783
+ roles: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">>;
1784
+ }, "strip", z.ZodTypeAny, {
1785
+ enabled?: boolean | undefined;
1786
+ roles?: string[] | undefined;
1787
+ }, {
1788
+ enabled?: boolean | undefined;
1789
+ roles?: string[] | undefined;
1790
+ }>>;
1791
+ delete: z.ZodDefault<z.ZodObject<{
1792
+ enabled: z.ZodOptional<z.ZodBoolean>;
1793
+ roles: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">>;
1794
+ }, "strip", z.ZodTypeAny, {
1795
+ enabled?: boolean | undefined;
1796
+ roles?: string[] | undefined;
1797
+ }, {
1798
+ enabled?: boolean | undefined;
1799
+ roles?: string[] | undefined;
1800
+ }>>;
1801
+ }, "strip", z.ZodTypeAny, {
1802
+ delete: {
1803
+ enabled?: boolean | undefined;
1804
+ roles?: string[] | undefined;
1805
+ };
1806
+ create: {
1807
+ enabled?: boolean | undefined;
1808
+ roles?: string[] | undefined;
1809
+ };
1810
+ update: {
1811
+ enabled?: boolean | undefined;
1812
+ roles?: string[] | undefined;
1813
+ };
1814
+ }, {
1815
+ delete?: {
1816
+ enabled?: boolean | undefined;
1817
+ roles?: string[] | undefined;
1818
+ } | undefined;
1819
+ create?: {
1820
+ enabled?: boolean | undefined;
1821
+ roles?: string[] | undefined;
1822
+ } | undefined;
1823
+ update?: {
1824
+ enabled?: boolean | undefined;
1825
+ roles?: string[] | undefined;
1826
+ } | undefined;
1827
+ }>>;
1828
+ }, "strip", z.ZodTypeAny, {
1829
+ objectType: {
1830
+ enabled: boolean;
1831
+ fields: string[];
1832
+ localRelations?: string[] | undefined;
1833
+ foreignRelations?: string[] | undefined;
1834
+ };
1835
+ queries: {
1836
+ get?: {
1837
+ enabled?: boolean | undefined;
1838
+ roles?: string[] | undefined;
1839
+ } | undefined;
1840
+ list?: {
1841
+ enabled?: boolean | undefined;
1842
+ roles?: string[] | undefined;
1843
+ } | undefined;
1844
+ };
1845
+ mutations: {
1846
+ delete: {
1847
+ enabled?: boolean | undefined;
1848
+ roles?: string[] | undefined;
1849
+ };
1850
+ create: {
1851
+ enabled?: boolean | undefined;
1852
+ roles?: string[] | undefined;
1853
+ };
1854
+ update: {
1855
+ enabled?: boolean | undefined;
1856
+ roles?: string[] | undefined;
1857
+ };
1858
+ };
1859
+ }, {
1860
+ objectType?: {
1861
+ fields: string[];
1862
+ enabled?: boolean | undefined;
1863
+ localRelations?: string[] | undefined;
1864
+ foreignRelations?: string[] | undefined;
1865
+ } | undefined;
1866
+ queries?: {
1867
+ get?: {
1868
+ enabled?: boolean | undefined;
1869
+ roles?: string[] | undefined;
1870
+ } | undefined;
1871
+ list?: {
1872
+ enabled?: boolean | undefined;
1873
+ roles?: string[] | undefined;
1874
+ } | undefined;
1875
+ } | undefined;
1876
+ mutations?: {
1877
+ delete?: {
1878
+ enabled?: boolean | undefined;
1879
+ roles?: string[] | undefined;
1880
+ } | undefined;
1881
+ create?: {
1882
+ enabled?: boolean | undefined;
1883
+ roles?: string[] | undefined;
1884
+ } | undefined;
1885
+ update?: {
1886
+ enabled?: boolean | undefined;
1887
+ roles?: string[] | undefined;
1888
+ } | undefined;
1889
+ } | undefined;
1890
+ }>>;
1891
+ } & {
1892
+ id: z.ZodType<string, z.ZodAnyDef, string>;
1893
+ }, "strip", z.ZodTypeAny, {
1894
+ name: string;
1895
+ id: string;
1896
+ model: {
1897
+ fields: {
1898
+ options: {
1899
+ defaultEnumValueRef?: string | undefined;
1900
+ default: string;
1901
+ genUuid?: boolean | undefined;
1902
+ updatedAt?: boolean | undefined;
1903
+ defaultToNow?: boolean | undefined;
1904
+ enumRef?: string | undefined;
1905
+ };
1906
+ type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
1907
+ name: string;
1908
+ id: string;
1909
+ isOptional: boolean;
1910
+ }[];
1911
+ primaryKeyFieldRefs: string[];
1912
+ relations?: {
1913
+ name: string;
1914
+ id: string;
1915
+ onDelete: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
1916
+ references: {
1917
+ localRef: string;
1918
+ foreignRef: string;
1919
+ }[];
1920
+ modelRef: string;
1921
+ foreignId: string;
1922
+ foreignRelationName: string;
1923
+ onUpdate: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
1924
+ }[] | undefined;
1925
+ uniqueConstraints?: {
1926
+ id: string;
1927
+ fields: {
1928
+ fieldRef: string;
1929
+ }[];
1930
+ }[] | undefined;
1931
+ };
1932
+ featureRef: string;
1933
+ service: {
1934
+ delete: {
1935
+ enabled: boolean;
1936
+ };
1937
+ create: {
1938
+ enabled: boolean;
1939
+ fields?: string[] | undefined;
1940
+ transformerNames?: string[] | undefined;
1941
+ };
1942
+ update: {
1943
+ enabled: boolean;
1944
+ fields?: string[] | undefined;
1945
+ transformerNames?: string[] | undefined;
1946
+ };
1947
+ transformers: {
1948
+ type: string;
1949
+ id: string;
1950
+ }[];
1951
+ };
1952
+ graphql?: {
1953
+ objectType: {
1954
+ enabled: boolean;
1955
+ fields: string[];
1956
+ localRelations?: string[] | undefined;
1957
+ foreignRelations?: string[] | undefined;
1958
+ };
1959
+ queries: {
1960
+ get?: {
1961
+ enabled?: boolean | undefined;
1962
+ roles?: string[] | undefined;
1963
+ } | undefined;
1964
+ list?: {
1965
+ enabled?: boolean | undefined;
1966
+ roles?: string[] | undefined;
1967
+ } | undefined;
1968
+ };
1969
+ mutations: {
1970
+ delete: {
1971
+ enabled?: boolean | undefined;
1972
+ roles?: string[] | undefined;
1973
+ };
1974
+ create: {
1975
+ enabled?: boolean | undefined;
1976
+ roles?: string[] | undefined;
1977
+ };
1978
+ update: {
1979
+ enabled?: boolean | undefined;
1980
+ roles?: string[] | undefined;
1981
+ };
1982
+ };
1983
+ } | undefined;
1984
+ }, {
1985
+ name: string;
1986
+ id: string;
1987
+ model: {
1988
+ fields: {
1989
+ type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
1990
+ name: string;
1991
+ id: string;
1992
+ options?: {
1993
+ default?: string | undefined;
1994
+ genUuid?: boolean | undefined;
1995
+ updatedAt?: boolean | undefined;
1996
+ defaultToNow?: boolean | undefined;
1997
+ enumRef?: string | undefined;
1998
+ defaultEnumValueRef?: string | undefined;
1999
+ } | undefined;
2000
+ isOptional?: boolean | undefined;
2001
+ }[];
2002
+ primaryKeyFieldRefs: string[];
2003
+ relations?: {
2004
+ name: string;
2005
+ id: string;
2006
+ references: {
2007
+ localRef: string;
2008
+ foreignRef: string;
2009
+ }[];
2010
+ modelRef: string;
2011
+ foreignRelationName: string;
2012
+ onDelete?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
2013
+ foreignId?: string | undefined;
2014
+ onUpdate?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
2015
+ }[] | undefined;
2016
+ uniqueConstraints?: {
2017
+ id: string;
2018
+ fields: {
2019
+ fieldRef: string;
2020
+ }[];
2021
+ }[] | undefined;
2022
+ };
2023
+ featureRef: string;
2024
+ service?: {
2025
+ delete?: {
2026
+ enabled?: boolean | undefined;
2027
+ } | undefined;
2028
+ create?: {
2029
+ enabled?: boolean | undefined;
2030
+ fields?: string[] | undefined;
2031
+ transformerNames?: string[] | undefined;
2032
+ } | undefined;
2033
+ update?: {
2034
+ enabled?: boolean | undefined;
2035
+ fields?: string[] | undefined;
2036
+ transformerNames?: string[] | undefined;
2037
+ } | undefined;
2038
+ transformers?: {
2039
+ type: string;
2040
+ id: string;
2041
+ }[] | undefined;
2042
+ } | undefined;
2043
+ graphql?: {
2044
+ objectType?: {
2045
+ fields: string[];
2046
+ enabled?: boolean | undefined;
2047
+ localRelations?: string[] | undefined;
2048
+ foreignRelations?: string[] | undefined;
2049
+ } | undefined;
2050
+ queries?: {
2051
+ get?: {
2052
+ enabled?: boolean | undefined;
2053
+ roles?: string[] | undefined;
2054
+ } | undefined;
2055
+ list?: {
2056
+ enabled?: boolean | undefined;
2057
+ roles?: string[] | undefined;
2058
+ } | undefined;
2059
+ } | undefined;
2060
+ mutations?: {
2061
+ delete?: {
2062
+ enabled?: boolean | undefined;
2063
+ roles?: string[] | undefined;
2064
+ } | undefined;
2065
+ create?: {
2066
+ enabled?: boolean | undefined;
2067
+ roles?: string[] | undefined;
2068
+ } | undefined;
2069
+ update?: {
2070
+ enabled?: boolean | undefined;
2071
+ roles?: string[] | undefined;
2072
+ } | undefined;
2073
+ } | undefined;
2074
+ } | undefined;
2075
+ }>>, "many">>;
2076
+ enums: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodObject<{
2077
+ name: z.ZodString;
2078
+ featureRef: import("#src/references/index.js").ZodRef<z.ZodString>;
2079
+ values: z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodObject<{
2080
+ name: z.ZodString;
2081
+ friendlyName: z.ZodString;
2082
+ } & {
2083
+ id: z.ZodType<string, z.ZodAnyDef, string>;
2084
+ }, "strip", z.ZodTypeAny, {
2085
+ name: string;
2086
+ id: string;
2087
+ friendlyName: string;
2088
+ }, {
2089
+ name: string;
2090
+ id: string;
2091
+ friendlyName: string;
2092
+ }>>, "many">;
2093
+ isExposed: z.ZodBoolean;
2094
+ } & {
2095
+ id: z.ZodType<string, z.ZodAnyDef, string>;
2096
+ }, "strip", z.ZodTypeAny, {
2097
+ values: {
2098
+ name: string;
2099
+ id: string;
2100
+ friendlyName: string;
2101
+ }[];
2102
+ name: string;
2103
+ id: string;
2104
+ featureRef: string;
2105
+ isExposed: boolean;
2106
+ }, {
2107
+ values: {
2108
+ name: string;
2109
+ id: string;
2110
+ friendlyName: string;
2111
+ }[];
2112
+ name: string;
2113
+ id: string;
2114
+ featureRef: string;
2115
+ isExposed: boolean;
2116
+ }>>, "many">>;
2117
+ isInitialized: z.ZodDefault<z.ZodBoolean>;
2118
+ schemaVersion: z.ZodNumber;
2119
+ plugins: z.ZodOptional<z.ZodArray<import("../index.js").ZodWithPlugins<import("#src/references/index.js").ZodRef<z.ZodObject<{
2120
+ packageName: z.ZodString;
2121
+ name: z.ZodString;
2122
+ version: z.ZodString;
2123
+ config: z.ZodUnknown;
2124
+ configSchemaVersion: z.ZodOptional<z.ZodNumber>;
2125
+ } & {
2126
+ id: z.ZodType<string, z.ZodAnyDef, string>;
2127
+ }, "strip", z.ZodTypeAny, {
2128
+ version: string;
2129
+ name: string;
2130
+ id: string;
2131
+ packageName: string;
2132
+ config?: unknown;
2133
+ configSchemaVersion?: number | undefined;
2134
+ }, {
2135
+ version: string;
2136
+ name: string;
2137
+ id: string;
2138
+ packageName: string;
2139
+ config?: unknown;
2140
+ configSchemaVersion?: number | undefined;
2141
+ }>> | z.ZodIntersection<import("#src/references/index.js").ZodRef<z.ZodObject<{
2142
+ packageName: z.ZodString;
2143
+ name: z.ZodString;
2144
+ version: z.ZodString;
2145
+ config: z.ZodUnknown;
2146
+ configSchemaVersion: z.ZodOptional<z.ZodNumber>;
2147
+ } & {
2148
+ id: z.ZodType<string, z.ZodAnyDef, string>;
2149
+ }, "strip", z.ZodTypeAny, {
2150
+ version: string;
2151
+ name: string;
2152
+ id: string;
2153
+ packageName: string;
2154
+ config?: unknown;
2155
+ configSchemaVersion?: number | undefined;
2156
+ }, {
2157
+ version: string;
2158
+ name: string;
2159
+ id: string;
2160
+ packageName: string;
2161
+ config?: unknown;
2162
+ configSchemaVersion?: number | undefined;
2163
+ }>>, z.ZodObject<{
2164
+ config: z.ZodTypeAny;
2165
+ }, "strip", z.ZodTypeAny, {
2166
+ config?: any;
2167
+ }, {
2168
+ config?: any;
2169
+ }>>>, "many">>;
2170
+ settings: z.ZodObject<{
2171
+ general: z.ZodObject<{
2172
+ name: z.ZodString;
2173
+ packageScope: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"">, z.ZodString]>>;
2174
+ portOffset: z.ZodEffects<z.ZodNumber, number, number>;
2175
+ }, "strip", z.ZodTypeAny, {
2176
+ name: string;
2177
+ packageScope: string;
2178
+ portOffset: number;
2179
+ }, {
2180
+ name: string;
2181
+ portOffset: number;
2182
+ packageScope?: string | undefined;
2183
+ }>;
2184
+ templateExtractor: z.ZodOptional<z.ZodObject<{
2185
+ writeMetadata: z.ZodDefault<z.ZodBoolean>;
2186
+ fileIdRegexWhitelist: z.ZodDefault<z.ZodString>;
2187
+ }, "strip", z.ZodTypeAny, {
2188
+ writeMetadata: boolean;
2189
+ fileIdRegexWhitelist: string;
2190
+ }, {
2191
+ writeMetadata?: boolean | undefined;
2192
+ fileIdRegexWhitelist?: string | undefined;
2193
+ }>>;
2194
+ theme: z.ZodOptional<z.ZodObject<{
2195
+ palettes: z.ZodObject<{
2196
+ base: z.ZodEffects<z.ZodObject<{
2197
+ paletteName: z.ZodString;
2198
+ customBase: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2199
+ shades: z.ZodRecord<z.ZodEnum<["50", "100", "200", "300", "400", "500", "600", "700", "800", "900", "950"]>, z.ZodString>;
2200
+ }, "strip", z.ZodTypeAny, {
2201
+ paletteName: string;
2202
+ shades: Partial<Record<"50" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "950", string>>;
2203
+ customBase?: string | null | undefined;
2204
+ }, {
2205
+ paletteName: string;
2206
+ shades: Partial<Record<"50" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "950", string>>;
2207
+ customBase?: string | null | undefined;
2208
+ }>, {
2209
+ paletteName: string;
2210
+ shades: Partial<Record<"50" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "950", string>>;
2211
+ customBase?: string | null | undefined;
2212
+ }, {
2213
+ paletteName: string;
2214
+ shades: Partial<Record<"50" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "950", string>>;
2215
+ customBase?: string | null | undefined;
2216
+ }>;
2217
+ primary: z.ZodEffects<z.ZodObject<{
2218
+ paletteName: z.ZodString;
2219
+ customBase: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2220
+ shades: z.ZodRecord<z.ZodEnum<["50", "100", "200", "300", "400", "500", "600", "700", "800", "900", "950"]>, z.ZodString>;
2221
+ }, "strip", z.ZodTypeAny, {
2222
+ paletteName: string;
2223
+ shades: Partial<Record<"50" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "950", string>>;
2224
+ customBase?: string | null | undefined;
2225
+ }, {
2226
+ paletteName: string;
2227
+ shades: Partial<Record<"50" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "950", string>>;
2228
+ customBase?: string | null | undefined;
2229
+ }>, {
2230
+ paletteName: string;
2231
+ shades: Partial<Record<"50" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "950", string>>;
2232
+ customBase?: string | null | undefined;
2233
+ }, {
2234
+ paletteName: string;
2235
+ shades: Partial<Record<"50" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "950", string>>;
2236
+ customBase?: string | null | undefined;
2237
+ }>;
2238
+ }, "strip", z.ZodTypeAny, {
2239
+ primary: {
2240
+ paletteName: string;
2241
+ shades: Partial<Record<"50" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "950", string>>;
2242
+ customBase?: string | null | undefined;
2243
+ };
2244
+ base: {
2245
+ paletteName: string;
2246
+ shades: Partial<Record<"50" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "950", string>>;
2247
+ customBase?: string | null | undefined;
2248
+ };
2249
+ }, {
2250
+ primary: {
2251
+ paletteName: string;
2252
+ shades: Partial<Record<"50" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "950", string>>;
2253
+ customBase?: string | null | undefined;
2254
+ };
2255
+ base: {
2256
+ paletteName: string;
2257
+ shades: Partial<Record<"50" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "950", string>>;
2258
+ customBase?: string | null | undefined;
2259
+ };
2260
+ }>;
2261
+ colors: z.ZodObject<{
2262
+ light: z.ZodRecord<z.ZodEnum<["link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", ...("link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring")[]]>, z.ZodString>;
2263
+ dark: z.ZodRecord<z.ZodEnum<["link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", ...("link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring")[]]>, z.ZodString>;
2264
+ }, "strip", z.ZodTypeAny, {
2265
+ light: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
2266
+ dark: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
2267
+ }, {
2268
+ light: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
2269
+ dark: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
2270
+ }>;
2271
+ }, "strip", z.ZodTypeAny, {
2272
+ palettes: {
2273
+ primary: {
2274
+ paletteName: string;
2275
+ shades: Partial<Record<"50" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "950", string>>;
2276
+ customBase?: string | null | undefined;
2277
+ };
2278
+ base: {
2279
+ paletteName: string;
2280
+ shades: Partial<Record<"50" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "950", string>>;
2281
+ customBase?: string | null | undefined;
2282
+ };
2283
+ };
2284
+ colors: {
2285
+ light: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
2286
+ dark: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
2287
+ };
2288
+ }, {
2289
+ palettes: {
2290
+ primary: {
2291
+ paletteName: string;
2292
+ shades: Partial<Record<"50" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "950", string>>;
2293
+ customBase?: string | null | undefined;
2294
+ };
2295
+ base: {
2296
+ paletteName: string;
2297
+ shades: Partial<Record<"50" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "950", string>>;
2298
+ customBase?: string | null | undefined;
2299
+ };
2300
+ };
2301
+ colors: {
2302
+ light: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
2303
+ dark: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
2304
+ };
2305
+ }>>;
2306
+ }, "strip", z.ZodTypeAny, {
2307
+ general: {
2308
+ name: string;
2309
+ packageScope: string;
2310
+ portOffset: number;
2311
+ };
2312
+ templateExtractor?: {
2313
+ writeMetadata: boolean;
2314
+ fileIdRegexWhitelist: string;
2315
+ } | undefined;
2316
+ theme?: {
2317
+ palettes: {
2318
+ primary: {
2319
+ paletteName: string;
2320
+ shades: Partial<Record<"50" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "950", string>>;
2321
+ customBase?: string | null | undefined;
2322
+ };
2323
+ base: {
2324
+ paletteName: string;
2325
+ shades: Partial<Record<"50" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "950", string>>;
2326
+ customBase?: string | null | undefined;
2327
+ };
2328
+ };
2329
+ colors: {
2330
+ light: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
2331
+ dark: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
2332
+ };
2333
+ } | undefined;
2334
+ }, {
2335
+ general: {
2336
+ name: string;
2337
+ portOffset: number;
2338
+ packageScope?: string | undefined;
2339
+ };
2340
+ templateExtractor?: {
2341
+ writeMetadata?: boolean | undefined;
2342
+ fileIdRegexWhitelist?: string | undefined;
2343
+ } | undefined;
2344
+ theme?: {
2345
+ palettes: {
2346
+ primary: {
2347
+ paletteName: string;
2348
+ shades: Partial<Record<"50" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "950", string>>;
2349
+ customBase?: string | null | undefined;
2350
+ };
2351
+ base: {
2352
+ paletteName: string;
2353
+ shades: Partial<Record<"50" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "950", string>>;
2354
+ customBase?: string | null | undefined;
2355
+ };
2356
+ };
2357
+ colors: {
2358
+ light: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
2359
+ dark: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
2360
+ };
2361
+ } | undefined;
2362
+ }>;
2363
+ }, "strip", z.ZodTypeAny, {
2364
+ apps: ({
2365
+ type: "admin";
2366
+ name: string;
2367
+ id: string;
2368
+ packageLocation?: string | undefined;
2369
+ allowedRoles?: string[] | undefined;
2370
+ sections?: {
2371
+ type: "crud";
2372
+ name: string;
2373
+ id: string;
2374
+ modelRef: string;
2375
+ featureRef: string;
2376
+ form: {
2377
+ fields: {
2378
+ type: string;
2379
+ label: string;
2380
+ }[];
2381
+ };
2382
+ table: {
2383
+ columns: {
2384
+ label: string;
2385
+ display: {
2386
+ type: "foreign";
2387
+ localRelationRef: string;
2388
+ labelExpression: string;
2389
+ valueExpression: string;
2390
+ } | {
2391
+ type: "text";
2392
+ modelFieldRef: string;
2393
+ };
2394
+ }[];
2395
+ };
2396
+ icon?: string | undefined;
2397
+ disableCreate?: boolean | undefined;
2398
+ embeddedForms?: ({
2399
+ type: "object";
2400
+ name: string;
2401
+ id: string;
2402
+ modelRef: string;
2403
+ form: {
2404
+ fields: {
2405
+ type: string;
2406
+ label: string;
2407
+ }[];
2408
+ };
2409
+ includeIdField?: boolean | undefined;
2410
+ } | {
2411
+ type: "list";
2412
+ name: string;
2413
+ id: string;
2414
+ modelRef: string;
2415
+ form: {
2416
+ fields: {
2417
+ type: string;
2418
+ label: string;
2419
+ }[];
2420
+ };
2421
+ table: {
2422
+ columns: {
2423
+ label: string;
2424
+ display: {
2425
+ type: "foreign";
2426
+ localRelationRef: string;
2427
+ labelExpression: string;
2428
+ valueExpression: string;
2429
+ } | {
2430
+ type: "text";
2431
+ modelFieldRef: string;
2432
+ };
2433
+ }[];
2434
+ };
2435
+ includeIdField?: boolean | undefined;
2436
+ })[] | undefined;
2437
+ }[] | undefined;
2438
+ } | {
2439
+ type: "backend";
2440
+ name: string;
2441
+ id: string;
2442
+ packageLocation?: string | undefined;
2443
+ enableStripe?: boolean | undefined;
2444
+ enableRedis?: boolean | undefined;
2445
+ enableBullQueue?: boolean | undefined;
2446
+ enablePostmark?: boolean | undefined;
2447
+ enableSubscriptions?: boolean | undefined;
2448
+ enableAxios?: boolean | undefined;
2449
+ } | {
2450
+ type: "web";
2451
+ name: string;
2452
+ id: string;
2453
+ description?: string | undefined;
2454
+ packageLocation?: string | undefined;
2455
+ allowedRoles?: string[] | undefined;
2456
+ enableSubscriptions?: boolean | undefined;
2457
+ includeAuth?: boolean | undefined;
2458
+ title?: string | undefined;
2459
+ includeUploadComponents?: boolean | undefined;
2460
+ })[];
2461
+ features: {
2462
+ name: string;
2463
+ id: string;
2464
+ parentRef?: string | null | undefined;
2465
+ }[];
2466
+ models: {
2467
+ name: string;
2468
+ id: string;
2469
+ model: {
2470
+ fields: {
2471
+ options: {
2472
+ defaultEnumValueRef?: string | undefined;
2473
+ default: string;
2474
+ genUuid?: boolean | undefined;
2475
+ updatedAt?: boolean | undefined;
2476
+ defaultToNow?: boolean | undefined;
2477
+ enumRef?: string | undefined;
2478
+ };
2479
+ type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
2480
+ name: string;
2481
+ id: string;
2482
+ isOptional: boolean;
2483
+ }[];
2484
+ primaryKeyFieldRefs: string[];
2485
+ relations?: {
2486
+ name: string;
2487
+ id: string;
2488
+ onDelete: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
2489
+ references: {
2490
+ localRef: string;
2491
+ foreignRef: string;
2492
+ }[];
2493
+ modelRef: string;
2494
+ foreignId: string;
2495
+ foreignRelationName: string;
2496
+ onUpdate: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
2497
+ }[] | undefined;
2498
+ uniqueConstraints?: {
2499
+ id: string;
2500
+ fields: {
2501
+ fieldRef: string;
2502
+ }[];
2503
+ }[] | undefined;
2504
+ };
2505
+ featureRef: string;
2506
+ service: {
2507
+ delete: {
2508
+ enabled: boolean;
2509
+ };
2510
+ create: {
2511
+ enabled: boolean;
2512
+ fields?: string[] | undefined;
2513
+ transformerNames?: string[] | undefined;
2514
+ };
2515
+ update: {
2516
+ enabled: boolean;
2517
+ fields?: string[] | undefined;
2518
+ transformerNames?: string[] | undefined;
2519
+ };
2520
+ transformers: {
2521
+ type: string;
2522
+ id: string;
2523
+ }[];
2524
+ };
2525
+ graphql?: {
2526
+ objectType: {
2527
+ enabled: boolean;
2528
+ fields: string[];
2529
+ localRelations?: string[] | undefined;
2530
+ foreignRelations?: string[] | undefined;
2531
+ };
2532
+ queries: {
2533
+ get?: {
2534
+ enabled?: boolean | undefined;
2535
+ roles?: string[] | undefined;
2536
+ } | undefined;
2537
+ list?: {
2538
+ enabled?: boolean | undefined;
2539
+ roles?: string[] | undefined;
2540
+ } | undefined;
2541
+ };
2542
+ mutations: {
2543
+ delete: {
2544
+ enabled?: boolean | undefined;
2545
+ roles?: string[] | undefined;
2546
+ };
2547
+ create: {
2548
+ enabled?: boolean | undefined;
2549
+ roles?: string[] | undefined;
2550
+ };
2551
+ update: {
2552
+ enabled?: boolean | undefined;
2553
+ roles?: string[] | undefined;
2554
+ };
2555
+ };
2556
+ } | undefined;
2557
+ }[];
2558
+ isInitialized: boolean;
2559
+ schemaVersion: number;
2560
+ settings: {
2561
+ general: {
2562
+ name: string;
2563
+ packageScope: string;
2564
+ portOffset: number;
2565
+ };
2566
+ templateExtractor?: {
2567
+ writeMetadata: boolean;
2568
+ fileIdRegexWhitelist: string;
2569
+ } | undefined;
2570
+ theme?: {
2571
+ palettes: {
2572
+ primary: {
2573
+ paletteName: string;
2574
+ shades: Partial<Record<"50" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "950", string>>;
2575
+ customBase?: string | null | undefined;
2576
+ };
2577
+ base: {
2578
+ paletteName: string;
2579
+ shades: Partial<Record<"50" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "950", string>>;
2580
+ customBase?: string | null | undefined;
2581
+ };
2582
+ };
2583
+ colors: {
2584
+ light: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
2585
+ dark: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
2586
+ };
2587
+ } | undefined;
2588
+ };
2589
+ plugins?: ({
2590
+ version: string;
2591
+ name: string;
2592
+ id: string;
2593
+ packageName: string;
2594
+ config?: unknown;
2595
+ configSchemaVersion?: number | undefined;
2596
+ } | ({
2597
+ version: string;
2598
+ name: string;
2599
+ id: string;
2600
+ packageName: string;
2601
+ config?: unknown;
2602
+ configSchemaVersion?: number | undefined;
2603
+ } & {
2604
+ config?: any;
2605
+ }))[] | undefined;
2606
+ cliVersion?: string | null | undefined;
2607
+ enums?: {
2608
+ values: {
2609
+ name: string;
2610
+ id: string;
2611
+ friendlyName: string;
2612
+ }[];
2613
+ name: string;
2614
+ id: string;
2615
+ featureRef: string;
2616
+ isExposed: boolean;
2617
+ }[] | undefined;
2618
+ }, {
2619
+ schemaVersion: number;
2620
+ settings: {
2621
+ general: {
2622
+ name: string;
2623
+ portOffset: number;
2624
+ packageScope?: string | undefined;
2625
+ };
2626
+ templateExtractor?: {
2627
+ writeMetadata?: boolean | undefined;
2628
+ fileIdRegexWhitelist?: string | undefined;
2629
+ } | undefined;
2630
+ theme?: {
2631
+ palettes: {
2632
+ primary: {
2633
+ paletteName: string;
2634
+ shades: Partial<Record<"50" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "950", string>>;
2635
+ customBase?: string | null | undefined;
2636
+ };
2637
+ base: {
2638
+ paletteName: string;
2639
+ shades: Partial<Record<"50" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "950", string>>;
2640
+ customBase?: string | null | undefined;
2641
+ };
2642
+ };
2643
+ colors: {
2644
+ light: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
2645
+ dark: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
2646
+ };
2647
+ } | undefined;
2648
+ };
2649
+ plugins?: ({
2650
+ version: string;
2651
+ name: string;
2652
+ id: string;
2653
+ packageName: string;
2654
+ config?: unknown;
2655
+ configSchemaVersion?: number | undefined;
2656
+ } | ({
2657
+ version: string;
2658
+ name: string;
2659
+ id: string;
2660
+ packageName: string;
2661
+ config?: unknown;
2662
+ configSchemaVersion?: number | undefined;
2663
+ } & {
2664
+ config?: any;
2665
+ }))[] | undefined;
2666
+ cliVersion?: string | null | undefined;
2667
+ apps?: ({
2668
+ type: "admin";
2669
+ name: string;
2670
+ id?: string | undefined;
2671
+ packageLocation?: string | undefined;
2672
+ allowedRoles?: string[] | undefined;
2673
+ sections?: {
2674
+ type: "crud";
2675
+ name: string;
2676
+ modelRef: string;
2677
+ featureRef: string;
2678
+ form: {
2679
+ fields: {
2680
+ type: string;
2681
+ label: string;
2682
+ }[];
2683
+ };
2684
+ table: {
2685
+ columns: {
2686
+ label: string;
2687
+ display: {
2688
+ type: "foreign";
2689
+ localRelationRef: string;
2690
+ labelExpression: string;
2691
+ valueExpression: string;
2692
+ } | {
2693
+ type: "text";
2694
+ modelFieldRef: string;
2695
+ };
2696
+ }[];
2697
+ };
2698
+ icon?: string | undefined;
2699
+ id?: string | undefined;
2700
+ disableCreate?: boolean | undefined;
2701
+ embeddedForms?: ({
2702
+ type: "object";
2703
+ name: string;
2704
+ id: string;
2705
+ modelRef: string;
2706
+ form: {
2707
+ fields: {
2708
+ type: string;
2709
+ label: string;
2710
+ }[];
2711
+ };
2712
+ includeIdField?: boolean | undefined;
2713
+ } | {
2714
+ type: "list";
2715
+ name: string;
2716
+ id: string;
2717
+ modelRef: string;
2718
+ form: {
2719
+ fields: {
2720
+ type: string;
2721
+ label: string;
2722
+ }[];
2723
+ };
2724
+ table: {
2725
+ columns: {
2726
+ label: string;
2727
+ display: {
2728
+ type: "foreign";
2729
+ localRelationRef: string;
2730
+ labelExpression: string;
2731
+ valueExpression: string;
2732
+ } | {
2733
+ type: "text";
2734
+ modelFieldRef: string;
2735
+ };
2736
+ }[];
2737
+ };
2738
+ includeIdField?: boolean | undefined;
2739
+ })[] | undefined;
2740
+ }[] | undefined;
2741
+ } | {
2742
+ type: "backend";
2743
+ name: string;
2744
+ id?: string | undefined;
2745
+ packageLocation?: string | undefined;
2746
+ enableStripe?: boolean | undefined;
2747
+ enableRedis?: boolean | undefined;
2748
+ enableBullQueue?: boolean | undefined;
2749
+ enablePostmark?: boolean | undefined;
2750
+ enableSubscriptions?: boolean | undefined;
2751
+ enableAxios?: boolean | undefined;
2752
+ } | {
2753
+ type: "web";
2754
+ name: string;
2755
+ description?: string | undefined;
2756
+ id?: string | undefined;
2757
+ packageLocation?: string | undefined;
2758
+ allowedRoles?: string[] | undefined;
2759
+ enableSubscriptions?: boolean | undefined;
2760
+ includeAuth?: boolean | undefined;
2761
+ title?: string | undefined;
2762
+ includeUploadComponents?: boolean | undefined;
2763
+ })[] | undefined;
2764
+ features?: {
2765
+ name: string;
2766
+ id: string;
2767
+ parentRef?: string | null | undefined;
2768
+ }[] | undefined;
2769
+ models?: {
2770
+ name: string;
2771
+ id: string;
2772
+ model: {
2773
+ fields: {
2774
+ type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
2775
+ name: string;
2776
+ id: string;
2777
+ options?: {
2778
+ default?: string | undefined;
2779
+ genUuid?: boolean | undefined;
2780
+ updatedAt?: boolean | undefined;
2781
+ defaultToNow?: boolean | undefined;
2782
+ enumRef?: string | undefined;
2783
+ defaultEnumValueRef?: string | undefined;
2784
+ } | undefined;
2785
+ isOptional?: boolean | undefined;
2786
+ }[];
2787
+ primaryKeyFieldRefs: string[];
2788
+ relations?: {
2789
+ name: string;
2790
+ id: string;
2791
+ references: {
2792
+ localRef: string;
2793
+ foreignRef: string;
2794
+ }[];
2795
+ modelRef: string;
2796
+ foreignRelationName: string;
2797
+ onDelete?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
2798
+ foreignId?: string | undefined;
2799
+ onUpdate?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
2800
+ }[] | undefined;
2801
+ uniqueConstraints?: {
2802
+ id: string;
2803
+ fields: {
2804
+ fieldRef: string;
2805
+ }[];
2806
+ }[] | undefined;
2807
+ };
2808
+ featureRef: string;
2809
+ service?: {
2810
+ delete?: {
2811
+ enabled?: boolean | undefined;
2812
+ } | undefined;
2813
+ create?: {
2814
+ enabled?: boolean | undefined;
2815
+ fields?: string[] | undefined;
2816
+ transformerNames?: string[] | undefined;
2817
+ } | undefined;
2818
+ update?: {
2819
+ enabled?: boolean | undefined;
2820
+ fields?: string[] | undefined;
2821
+ transformerNames?: string[] | undefined;
2822
+ } | undefined;
2823
+ transformers?: {
2824
+ type: string;
2825
+ id: string;
2826
+ }[] | undefined;
2827
+ } | undefined;
2828
+ graphql?: {
2829
+ objectType?: {
2830
+ fields: string[];
2831
+ enabled?: boolean | undefined;
2832
+ localRelations?: string[] | undefined;
2833
+ foreignRelations?: string[] | undefined;
2834
+ } | undefined;
2835
+ queries?: {
2836
+ get?: {
2837
+ enabled?: boolean | undefined;
2838
+ roles?: string[] | undefined;
2839
+ } | undefined;
2840
+ list?: {
2841
+ enabled?: boolean | undefined;
2842
+ roles?: string[] | undefined;
2843
+ } | undefined;
2844
+ } | undefined;
2845
+ mutations?: {
2846
+ delete?: {
2847
+ enabled?: boolean | undefined;
2848
+ roles?: string[] | undefined;
2849
+ } | undefined;
2850
+ create?: {
2851
+ enabled?: boolean | undefined;
2852
+ roles?: string[] | undefined;
2853
+ } | undefined;
2854
+ update?: {
2855
+ enabled?: boolean | undefined;
2856
+ roles?: string[] | undefined;
2857
+ } | undefined;
2858
+ } | undefined;
2859
+ } | undefined;
2860
+ }[] | undefined;
2861
+ enums?: {
2862
+ values: {
2863
+ name: string;
2864
+ id: string;
2865
+ friendlyName: string;
2866
+ }[];
2867
+ name: string;
2868
+ id: string;
2869
+ featureRef: string;
2870
+ isExposed: boolean;
2871
+ }[] | undefined;
2872
+ isInitialized?: boolean | undefined;
2873
+ }>;
2874
+ export type ProjectDefinitionInput = InferDefinitionInput<typeof createProjectDefinitionSchema>;
2875
+ export type ProjectDefinition = InferDefinitionOutput<typeof createProjectDefinitionSchema>;
2876
+ export type ProjectDefinitionSchema = InferDefinitionSchema<typeof createProjectDefinitionSchema>;
2877
+ //# sourceMappingURL=project-definition.d.ts.map