@baseplate-dev/project-builder-lib 0.2.1 → 0.2.3

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 (191) hide show
  1. package/dist/definition/feature/feature-utils.js +1 -1
  2. package/dist/definition/feature/feature-utils.js.map +1 -1
  3. package/dist/definition/project-definition-container.d.ts +3 -2
  4. package/dist/definition/project-definition-container.d.ts.map +1 -1
  5. package/dist/definition/project-definition-container.js +13 -7
  6. package/dist/definition/project-definition-container.js.map +1 -1
  7. package/dist/definition/project-definition-container.test-utils.d.ts.map +1 -1
  8. package/dist/definition/project-definition-container.test-utils.js +3 -7
  9. package/dist/definition/project-definition-container.test-utils.js.map +1 -1
  10. package/dist/migrations/index.d.ts.map +1 -1
  11. package/dist/migrations/index.js +2 -0
  12. package/dist/migrations/index.js.map +1 -1
  13. package/dist/migrations/migration-015-null-parent-refs.d.ts +17 -0
  14. package/dist/migrations/migration-015-null-parent-refs.d.ts.map +1 -0
  15. package/dist/migrations/migration-015-null-parent-refs.js +20 -0
  16. package/dist/migrations/migration-015-null-parent-refs.js.map +1 -0
  17. package/dist/parser/parser.d.ts +2 -2
  18. package/dist/parser/parser.d.ts.map +1 -1
  19. package/dist/parser/parser.js +11 -7
  20. package/dist/parser/parser.js.map +1 -1
  21. package/dist/plugins/metadata/types.d.ts +8 -0
  22. package/dist/plugins/metadata/types.d.ts.map +1 -1
  23. package/dist/plugins/metadata/types.js +6 -0
  24. package/dist/plugins/metadata/types.js.map +1 -1
  25. package/dist/plugins/migrations/run-migrations.js.map +1 -1
  26. package/dist/plugins/schema/index.d.ts +0 -2
  27. package/dist/plugins/schema/index.d.ts.map +1 -1
  28. package/dist/plugins/schema/index.js +0 -2
  29. package/dist/plugins/schema/index.js.map +1 -1
  30. package/dist/plugins/spec/config-spec.d.ts +3 -3
  31. package/dist/plugins/spec/config-spec.d.ts.map +1 -1
  32. package/dist/plugins/spec/config-spec.js +3 -3
  33. package/dist/plugins/spec/config-spec.js.map +1 -1
  34. package/dist/references/{ref-builder.d.ts → definition-ref-builder.d.ts} +13 -137
  35. package/dist/references/definition-ref-builder.d.ts.map +1 -0
  36. package/dist/references/definition-ref-builder.js +242 -0
  37. package/dist/references/definition-ref-builder.js.map +1 -0
  38. package/dist/references/deserialize-schema.d.ts +12 -1
  39. package/dist/references/deserialize-schema.d.ts.map +1 -1
  40. package/dist/references/deserialize-schema.js +24 -4
  41. package/dist/references/deserialize-schema.js.map +1 -1
  42. package/dist/references/extend-parser-context-with-refs.d.ts +16 -0
  43. package/dist/references/extend-parser-context-with-refs.d.ts.map +1 -0
  44. package/dist/references/extend-parser-context-with-refs.js +82 -0
  45. package/dist/references/extend-parser-context-with-refs.js.map +1 -0
  46. package/dist/references/extract-definition-refs.d.ts +19 -0
  47. package/dist/references/extract-definition-refs.d.ts.map +1 -0
  48. package/dist/references/extract-definition-refs.js +71 -0
  49. package/dist/references/extract-definition-refs.js.map +1 -0
  50. package/dist/references/fix-ref-deletions.d.ts +6 -6
  51. package/dist/references/fix-ref-deletions.d.ts.map +1 -1
  52. package/dist/references/fix-ref-deletions.js +13 -5
  53. package/dist/references/fix-ref-deletions.js.map +1 -1
  54. package/dist/references/index.d.ts +2 -1
  55. package/dist/references/index.d.ts.map +1 -1
  56. package/dist/references/index.js +2 -1
  57. package/dist/references/index.js.map +1 -1
  58. package/dist/references/markers.d.ts +22 -0
  59. package/dist/references/markers.d.ts.map +1 -0
  60. package/dist/references/markers.js +21 -0
  61. package/dist/references/markers.js.map +1 -0
  62. package/dist/references/parse-schema-with-references.d.ts +2 -2
  63. package/dist/references/parse-schema-with-references.d.ts.map +1 -1
  64. package/dist/references/parse-schema-with-references.js +13 -4
  65. package/dist/references/parse-schema-with-references.js.map +1 -1
  66. package/dist/references/resolve-zod-ref-payload-names.d.ts +1 -1
  67. package/dist/references/resolve-zod-ref-payload-names.d.ts.map +1 -1
  68. package/dist/references/serialize-schema.d.ts +2 -2
  69. package/dist/references/serialize-schema.d.ts.map +1 -1
  70. package/dist/references/serialize-schema.js +4 -3
  71. package/dist/references/serialize-schema.js.map +1 -1
  72. package/dist/references/strip-ref-markers.d.ts +7 -0
  73. package/dist/references/strip-ref-markers.d.ts.map +1 -0
  74. package/dist/references/strip-ref-markers.js +22 -0
  75. package/dist/references/strip-ref-markers.js.map +1 -0
  76. package/dist/references/types.d.ts +2 -2
  77. package/dist/references/types.d.ts.map +1 -1
  78. package/dist/schema/apps/admin/app.d.ts +958 -200
  79. package/dist/schema/apps/admin/app.d.ts.map +1 -1
  80. package/dist/schema/apps/admin/app.js +2 -3
  81. package/dist/schema/apps/admin/app.js.map +1 -1
  82. package/dist/schema/apps/admin/sections/base.d.ts +15 -3
  83. package/dist/schema/apps/admin/sections/base.d.ts.map +1 -1
  84. package/dist/schema/apps/admin/sections/base.js +4 -4
  85. package/dist/schema/apps/admin/sections/base.js.map +1 -1
  86. package/dist/schema/apps/admin/sections/crud-form/admin-crud-input.d.ts +12 -6
  87. package/dist/schema/apps/admin/sections/crud-form/admin-crud-input.d.ts.map +1 -1
  88. package/dist/schema/apps/admin/sections/crud-form/admin-crud-input.js +9 -5
  89. package/dist/schema/apps/admin/sections/crud-form/admin-crud-input.js.map +1 -1
  90. package/dist/schema/apps/admin/sections/crud-form/built-in-input.d.ts +19 -19
  91. package/dist/schema/apps/admin/sections/crud-form/built-in-input.d.ts.map +1 -1
  92. package/dist/schema/apps/admin/sections/crud-form/built-in-input.js +18 -19
  93. package/dist/schema/apps/admin/sections/crud-form/built-in-input.js.map +1 -1
  94. package/dist/schema/apps/admin/sections/crud-form/types.d.ts +1 -1
  95. package/dist/schema/apps/admin/sections/crud-form/types.d.ts.map +1 -1
  96. package/dist/schema/apps/admin/sections/crud.d.ts +468 -130
  97. package/dist/schema/apps/admin/sections/crud.d.ts.map +1 -1
  98. package/dist/schema/apps/admin/sections/crud.js +14 -14
  99. package/dist/schema/apps/admin/sections/crud.js.map +1 -1
  100. package/dist/schema/apps/backend/index.d.ts +1 -1
  101. package/dist/schema/apps/types.d.ts +1 -1
  102. package/dist/schema/apps/types.js +1 -1
  103. package/dist/schema/apps/web/index.d.ts +2 -2
  104. package/dist/schema/apps/web/index.d.ts.map +1 -1
  105. package/dist/schema/apps/web/index.js +2 -3
  106. package/dist/schema/apps/web/index.js.map +1 -1
  107. package/dist/schema/auth/index.d.ts +1 -1
  108. package/dist/schema/auth/index.js +1 -1
  109. package/dist/schema/creator/extend-parser-context-with-defaults.d.ts +13 -0
  110. package/dist/schema/creator/extend-parser-context-with-defaults.d.ts.map +1 -0
  111. package/dist/schema/creator/extend-parser-context-with-defaults.js +52 -0
  112. package/dist/schema/creator/extend-parser-context-with-defaults.js.map +1 -0
  113. package/dist/schema/creator/schema-creator.d.ts +3 -2
  114. package/dist/schema/creator/schema-creator.d.ts.map +1 -1
  115. package/dist/schema/creator/schema-creator.js +10 -1
  116. package/dist/schema/creator/schema-creator.js.map +1 -1
  117. package/dist/schema/creator/types.d.ts +57 -2
  118. package/dist/schema/creator/types.d.ts.map +1 -1
  119. package/dist/schema/features/feature.d.ts +29 -15
  120. package/dist/schema/features/feature.d.ts.map +1 -1
  121. package/dist/schema/features/feature.js +7 -4
  122. package/dist/schema/features/feature.js.map +1 -1
  123. package/dist/schema/features/theme.d.ts +12 -12
  124. package/dist/schema/models/enums.d.ts +62 -19
  125. package/dist/schema/models/enums.d.ts.map +1 -1
  126. package/dist/schema/models/enums.js +5 -4
  127. package/dist/schema/models/enums.js.map +1 -1
  128. package/dist/schema/models/graphql.d.ts +139 -55
  129. package/dist/schema/models/graphql.d.ts.map +1 -1
  130. package/dist/schema/models/graphql.js +36 -80
  131. package/dist/schema/models/graphql.js.map +1 -1
  132. package/dist/schema/models/index.d.ts +881 -299
  133. package/dist/schema/models/index.d.ts.map +1 -1
  134. package/dist/schema/models/index.js +24 -19
  135. package/dist/schema/models/index.js.map +1 -1
  136. package/dist/schema/models/transformers/built-in-transformers.d.ts +87 -23
  137. package/dist/schema/models/transformers/built-in-transformers.d.ts.map +1 -1
  138. package/dist/schema/models/transformers/built-in-transformers.js +10 -10
  139. package/dist/schema/models/transformers/built-in-transformers.js.map +1 -1
  140. package/dist/schema/models/transformers/transformers.d.ts +14 -8
  141. package/dist/schema/models/transformers/transformers.d.ts.map +1 -1
  142. package/dist/schema/models/transformers/transformers.js +9 -5
  143. package/dist/schema/models/transformers/transformers.js.map +1 -1
  144. package/dist/schema/models/transformers/types.d.ts +4 -3
  145. package/dist/schema/models/transformers/types.d.ts.map +1 -1
  146. package/dist/schema/models/transformers/types.js +2 -4
  147. package/dist/schema/models/transformers/types.js.map +1 -1
  148. package/dist/schema/plugins/definition.d.ts +64 -70
  149. package/dist/schema/plugins/definition.d.ts.map +1 -1
  150. package/dist/schema/plugins/definition.js +18 -16
  151. package/dist/schema/plugins/definition.js.map +1 -1
  152. package/dist/schema/project-definition.d.ts +2192 -682
  153. package/dist/schema/project-definition.d.ts.map +1 -1
  154. package/dist/schema/project-definition.js +1 -2
  155. package/dist/schema/project-definition.js.map +1 -1
  156. package/dist/schema/settings.d.ts +15 -15
  157. package/dist/schema/template-extractor/index.d.ts +1 -1
  158. package/dist/tools/model-merger/model-merger.d.ts +15 -14
  159. package/dist/tools/model-merger/model-merger.d.ts.map +1 -1
  160. package/dist/tools/model-merger/model-merger.js +8 -4
  161. package/dist/tools/model-merger/model-merger.js.map +1 -1
  162. package/dist/web/hooks/index.d.ts +1 -1
  163. package/dist/web/hooks/index.d.ts.map +1 -1
  164. package/dist/web/hooks/index.js +1 -1
  165. package/dist/web/hooks/index.js.map +1 -1
  166. package/dist/web/hooks/use-definition-schema.d.ts +3 -0
  167. package/dist/web/hooks/use-definition-schema.d.ts.map +1 -0
  168. package/dist/web/hooks/use-definition-schema.js +7 -0
  169. package/dist/web/hooks/use-definition-schema.js.map +1 -0
  170. package/dist/web/hooks/use-project-definition.d.ts +3 -3
  171. package/dist/web/hooks/use-project-definition.d.ts.map +1 -1
  172. package/package.json +6 -6
  173. package/dist/plugins/schema/common.d.ts +0 -6
  174. package/dist/plugins/schema/common.d.ts.map +0 -1
  175. package/dist/plugins/schema/common.js +0 -2
  176. package/dist/plugins/schema/common.js.map +0 -1
  177. package/dist/plugins/schema/parser.d.ts +0 -19
  178. package/dist/plugins/schema/parser.d.ts.map +0 -1
  179. package/dist/plugins/schema/parser.js +0 -41
  180. package/dist/plugins/schema/parser.js.map +0 -1
  181. package/dist/plugins/schema/zod-with-plugins.d.ts +0 -12
  182. package/dist/plugins/schema/zod-with-plugins.d.ts.map +0 -1
  183. package/dist/plugins/schema/zod-with-plugins.js +0 -26
  184. package/dist/plugins/schema/zod-with-plugins.js.map +0 -1
  185. package/dist/references/ref-builder.d.ts.map +0 -1
  186. package/dist/references/ref-builder.js +0 -492
  187. package/dist/references/ref-builder.js.map +0 -1
  188. package/dist/web/hooks/use-plugin-enhanced-schema.d.ts +0 -4
  189. package/dist/web/hooks/use-plugin-enhanced-schema.d.ts.map +0 -1
  190. package/dist/web/hooks/use-plugin-enhanced-schema.js +0 -8
  191. package/dist/web/hooks/use-plugin-enhanced-schema.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import type { def } from './creator/index.js';
3
- export declare const createAppSchema: (options: import("./creator/types.js").DefinitionSchemaCreatorOptions) => import("#src/references/index.js").ZodRef<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3
+ export declare const createAppSchema: (context: import("./creator/types.js").DefinitionSchemaParserContext) => z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4
4
  type: z.ZodLiteral<"backend">;
5
5
  enableStripe: z.ZodOptional<z.ZodBoolean>;
6
6
  enableRedis: z.ZodOptional<z.ZodBoolean>;
@@ -38,7 +38,7 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
38
38
  includeAuth: z.ZodOptional<z.ZodBoolean>;
39
39
  title: z.ZodOptional<z.ZodString>;
40
40
  description: z.ZodOptional<z.ZodString>;
41
- allowedRoles: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodString>, "many">>;
41
+ allowedRoles: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
42
42
  includeUploadComponents: z.ZodOptional<z.ZodBoolean>;
43
43
  enableSubscriptions: z.ZodOptional<z.ZodBoolean>;
44
44
  id: z.ZodDefault<z.ZodString>;
@@ -68,17 +68,35 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
68
68
  includeUploadComponents?: boolean | undefined;
69
69
  }>, z.ZodObject<{
70
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<{
71
+ allowedRoles: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
72
+ sections: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodIntersection<z.ZodObject<{
73
+ id: z.ZodDefault<z.ZodString>;
74
+ name: z.ZodString;
75
+ featureRef: z.ZodEffects<z.ZodString, string, string>;
76
+ icon: z.ZodOptional<z.ZodString>;
77
+ type: z.ZodString;
78
+ }, "strip", z.ZodTypeAny, {
79
+ type: string;
80
+ name: string;
81
+ id: string;
82
+ featureRef: string;
83
+ icon?: string | undefined;
84
+ }, {
85
+ type: string;
86
+ name: string;
87
+ featureRef: string;
88
+ icon?: string | undefined;
89
+ id?: string | undefined;
90
+ }>, z.ZodObject<{
73
91
  type: z.ZodLiteral<"crud">;
74
- modelRef: import("#src/references/index.js").ZodRef<z.ZodString>;
92
+ modelRef: z.ZodEffects<z.ZodString, string, string>;
75
93
  disableCreate: z.ZodOptional<z.ZodBoolean>;
76
94
  table: z.ZodObject<{
77
95
  columns: z.ZodArray<z.ZodObject<{
78
96
  label: z.ZodString;
79
97
  display: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
80
98
  type: z.ZodLiteral<"text">;
81
- modelFieldRef: import("#src/references/index.js").ZodRef<z.ZodString>;
99
+ modelFieldRef: z.ZodEffects<z.ZodString, string, string>;
82
100
  }, "strip", z.ZodTypeAny, {
83
101
  type: "text";
84
102
  modelFieldRef: string;
@@ -87,7 +105,7 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
87
105
  modelFieldRef: string;
88
106
  }>, z.ZodObject<{
89
107
  type: z.ZodLiteral<"foreign">;
90
- localRelationRef: import("#src/references/index.js").ZodRef<z.ZodString>;
108
+ localRelationRef: z.ZodEffects<z.ZodString, string, string>;
91
109
  labelExpression: z.ZodString;
92
110
  valueExpression: z.ZodString;
93
111
  }, "strip", z.ZodTypeAny, {
@@ -152,54 +170,66 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
152
170
  }[];
153
171
  }>;
154
172
  form: z.ZodObject<{
155
- fields: z.ZodArray<import("../index.js").ZodWithPlugins<z.ZodObject<{
173
+ fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
156
174
  type: z.ZodString;
157
175
  label: z.ZodString;
158
- }, "strip", z.ZodTypeAny, {
159
- type: string;
160
- label: string;
161
- }, {
176
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
177
+ type: z.ZodString;
178
+ label: z.ZodString;
179
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
180
+ type: z.ZodString;
181
+ label: z.ZodString;
182
+ }, z.ZodTypeAny, "passthrough">>, {
162
183
  type: string;
163
184
  label: string;
164
- }>>, "many">;
185
+ }, z.objectInputType<{
186
+ type: z.ZodString;
187
+ label: z.ZodString;
188
+ }, z.ZodTypeAny, "passthrough">>, "many">;
165
189
  }, "strip", z.ZodTypeAny, {
166
190
  fields: {
167
191
  type: string;
168
192
  label: string;
169
193
  }[];
170
194
  }, {
171
- fields: {
172
- type: string;
173
- label: string;
174
- }[];
195
+ fields: z.objectInputType<{
196
+ type: z.ZodString;
197
+ label: z.ZodString;
198
+ }, z.ZodTypeAny, "passthrough">[];
175
199
  }>;
176
- embeddedForms: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
200
+ embeddedForms: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
177
201
  id: z.ZodString;
178
202
  name: z.ZodString;
179
- modelRef: import("#src/references/index.js").ZodRef<z.ZodString>;
203
+ modelRef: z.ZodEffects<z.ZodString, string, string>;
180
204
  includeIdField: z.ZodOptional<z.ZodBoolean>;
181
205
  type: z.ZodLiteral<"object">;
182
206
  form: z.ZodObject<{
183
- fields: z.ZodArray<import("../index.js").ZodWithPlugins<z.ZodObject<{
207
+ fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
184
208
  type: z.ZodString;
185
209
  label: z.ZodString;
186
- }, "strip", z.ZodTypeAny, {
187
- type: string;
188
- label: string;
189
- }, {
210
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
211
+ type: z.ZodString;
212
+ label: z.ZodString;
213
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
214
+ type: z.ZodString;
215
+ label: z.ZodString;
216
+ }, z.ZodTypeAny, "passthrough">>, {
190
217
  type: string;
191
218
  label: string;
192
- }>>, "many">;
219
+ }, z.objectInputType<{
220
+ type: z.ZodString;
221
+ label: z.ZodString;
222
+ }, z.ZodTypeAny, "passthrough">>, "many">;
193
223
  }, "strip", z.ZodTypeAny, {
194
224
  fields: {
195
225
  type: string;
196
226
  label: string;
197
227
  }[];
198
228
  }, {
199
- fields: {
200
- type: string;
201
- label: string;
202
- }[];
229
+ fields: z.objectInputType<{
230
+ type: z.ZodString;
231
+ label: z.ZodString;
232
+ }, z.ZodTypeAny, "passthrough">[];
203
233
  }>;
204
234
  }, "strip", z.ZodTypeAny, {
205
235
  type: "object";
@@ -219,16 +249,16 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
219
249
  id: string;
220
250
  modelRef: string;
221
251
  form: {
222
- fields: {
223
- type: string;
224
- label: string;
225
- }[];
252
+ fields: z.objectInputType<{
253
+ type: z.ZodString;
254
+ label: z.ZodString;
255
+ }, z.ZodTypeAny, "passthrough">[];
226
256
  };
227
257
  includeIdField?: boolean | undefined;
228
258
  }>, z.ZodObject<{
229
259
  id: z.ZodString;
230
260
  name: z.ZodString;
231
- modelRef: import("#src/references/index.js").ZodRef<z.ZodString>;
261
+ modelRef: z.ZodEffects<z.ZodString, string, string>;
232
262
  includeIdField: z.ZodOptional<z.ZodBoolean>;
233
263
  type: z.ZodLiteral<"list">;
234
264
  table: z.ZodObject<{
@@ -236,7 +266,7 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
236
266
  label: z.ZodString;
237
267
  display: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
238
268
  type: z.ZodLiteral<"text">;
239
- modelFieldRef: import("#src/references/index.js").ZodRef<z.ZodString>;
269
+ modelFieldRef: z.ZodEffects<z.ZodString, string, string>;
240
270
  }, "strip", z.ZodTypeAny, {
241
271
  type: "text";
242
272
  modelFieldRef: string;
@@ -245,7 +275,7 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
245
275
  modelFieldRef: string;
246
276
  }>, z.ZodObject<{
247
277
  type: z.ZodLiteral<"foreign">;
248
- localRelationRef: import("#src/references/index.js").ZodRef<z.ZodString>;
278
+ localRelationRef: z.ZodEffects<z.ZodString, string, string>;
249
279
  labelExpression: z.ZodString;
250
280
  valueExpression: z.ZodString;
251
281
  }, "strip", z.ZodTypeAny, {
@@ -310,26 +340,32 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
310
340
  }[];
311
341
  }>;
312
342
  form: z.ZodObject<{
313
- fields: z.ZodArray<import("../index.js").ZodWithPlugins<z.ZodObject<{
343
+ fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
314
344
  type: z.ZodString;
315
345
  label: z.ZodString;
316
- }, "strip", z.ZodTypeAny, {
317
- type: string;
318
- label: string;
319
- }, {
346
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
347
+ type: z.ZodString;
348
+ label: z.ZodString;
349
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
350
+ type: z.ZodString;
351
+ label: z.ZodString;
352
+ }, z.ZodTypeAny, "passthrough">>, {
320
353
  type: string;
321
354
  label: string;
322
- }>>, "many">;
355
+ }, z.objectInputType<{
356
+ type: z.ZodString;
357
+ label: z.ZodString;
358
+ }, z.ZodTypeAny, "passthrough">>, "many">;
323
359
  }, "strip", z.ZodTypeAny, {
324
360
  fields: {
325
361
  type: string;
326
362
  label: string;
327
363
  }[];
328
364
  }, {
329
- fields: {
330
- type: string;
331
- label: string;
332
- }[];
365
+ fields: z.objectInputType<{
366
+ type: z.ZodString;
367
+ label: z.ZodString;
368
+ }, z.ZodTypeAny, "passthrough">[];
333
369
  }>;
334
370
  }, "strip", z.ZodTypeAny, {
335
371
  type: "list";
@@ -358,6 +394,44 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
358
394
  };
359
395
  includeIdField?: boolean | undefined;
360
396
  }, {
397
+ type: "list";
398
+ name: string;
399
+ id: string;
400
+ modelRef: string;
401
+ form: {
402
+ fields: z.objectInputType<{
403
+ type: z.ZodString;
404
+ label: z.ZodString;
405
+ }, z.ZodTypeAny, "passthrough">[];
406
+ };
407
+ table: {
408
+ columns: {
409
+ label: string;
410
+ display: {
411
+ type: "foreign";
412
+ localRelationRef: string;
413
+ labelExpression: string;
414
+ valueExpression: string;
415
+ } | {
416
+ type: "text";
417
+ modelFieldRef: string;
418
+ };
419
+ }[];
420
+ };
421
+ includeIdField?: boolean | undefined;
422
+ }>]>, {
423
+ type: "object";
424
+ name: string;
425
+ id: string;
426
+ modelRef: string;
427
+ form: {
428
+ fields: {
429
+ type: string;
430
+ label: string;
431
+ }[];
432
+ };
433
+ includeIdField?: boolean | undefined;
434
+ } | {
361
435
  type: "list";
362
436
  name: string;
363
437
  id: string;
@@ -383,17 +457,48 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
383
457
  }[];
384
458
  };
385
459
  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>;
460
+ }, {
461
+ type: "object";
462
+ name: string;
463
+ id: string;
464
+ modelRef: string;
465
+ form: {
466
+ fields: z.objectInputType<{
467
+ type: z.ZodString;
468
+ label: z.ZodString;
469
+ }, z.ZodTypeAny, "passthrough">[];
470
+ };
471
+ includeIdField?: boolean | undefined;
472
+ } | {
473
+ type: "list";
474
+ name: string;
475
+ id: string;
476
+ modelRef: string;
477
+ form: {
478
+ fields: z.objectInputType<{
479
+ type: z.ZodString;
480
+ label: z.ZodString;
481
+ }, z.ZodTypeAny, "passthrough">[];
482
+ };
483
+ table: {
484
+ columns: {
485
+ label: string;
486
+ display: {
487
+ type: "foreign";
488
+ localRelationRef: string;
489
+ labelExpression: string;
490
+ valueExpression: string;
491
+ } | {
492
+ type: "text";
493
+ modelFieldRef: string;
494
+ };
495
+ }[];
496
+ };
497
+ includeIdField?: boolean | undefined;
498
+ }>, "many">>;
391
499
  }, "strip", z.ZodTypeAny, {
392
500
  type: "crud";
393
- name: string;
394
- id: string;
395
501
  modelRef: string;
396
- featureRef: string;
397
502
  form: {
398
503
  fields: {
399
504
  type: string;
@@ -414,7 +519,6 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
414
519
  };
415
520
  }[];
416
521
  };
417
- icon?: string | undefined;
418
522
  disableCreate?: boolean | undefined;
419
523
  embeddedForms?: ({
420
524
  type: "object";
@@ -457,14 +561,12 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
457
561
  })[] | undefined;
458
562
  }, {
459
563
  type: "crud";
460
- name: string;
461
564
  modelRef: string;
462
- featureRef: string;
463
565
  form: {
464
- fields: {
465
- type: string;
466
- label: string;
467
- }[];
566
+ fields: z.objectInputType<{
567
+ type: z.ZodString;
568
+ label: z.ZodString;
569
+ }, z.ZodTypeAny, "passthrough">[];
468
570
  };
469
571
  table: {
470
572
  columns: {
@@ -480,8 +582,6 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
480
582
  };
481
583
  }[];
482
584
  };
483
- icon?: string | undefined;
484
- id?: string | undefined;
485
585
  disableCreate?: boolean | undefined;
486
586
  embeddedForms?: ({
487
587
  type: "object";
@@ -489,10 +589,10 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
489
589
  id: string;
490
590
  modelRef: string;
491
591
  form: {
492
- fields: {
493
- type: string;
494
- label: string;
495
- }[];
592
+ fields: z.objectInputType<{
593
+ type: z.ZodString;
594
+ label: z.ZodString;
595
+ }, z.ZodTypeAny, "passthrough">[];
496
596
  };
497
597
  includeIdField?: boolean | undefined;
498
598
  } | {
@@ -501,10 +601,10 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
501
601
  id: string;
502
602
  modelRef: string;
503
603
  form: {
504
- fields: {
505
- type: string;
506
- label: string;
507
- }[];
604
+ fields: z.objectInputType<{
605
+ type: z.ZodString;
606
+ label: z.ZodString;
607
+ }, z.ZodTypeAny, "passthrough">[];
508
608
  };
509
609
  table: {
510
610
  columns: {
@@ -522,22 +622,15 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
522
622
  };
523
623
  includeIdField?: boolean | undefined;
524
624
  })[] | 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";
625
+ }>>, {
626
+ type: string;
537
627
  name: string;
538
628
  id: string;
539
- modelRef: string;
540
629
  featureRef: string;
630
+ icon?: string | undefined;
631
+ } & {
632
+ type: "crud";
633
+ modelRef: string;
541
634
  form: {
542
635
  fields: {
543
636
  type: string;
@@ -558,7 +651,6 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
558
651
  };
559
652
  }[];
560
653
  };
561
- icon?: string | undefined;
562
654
  disableCreate?: boolean | undefined;
563
655
  embeddedForms?: ({
564
656
  type: "object";
@@ -599,23 +691,20 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
599
691
  };
600
692
  includeIdField?: boolean | undefined;
601
693
  })[] | 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";
694
+ }, {
695
+ type: string;
611
696
  name: string;
612
- modelRef: string;
613
697
  featureRef: string;
698
+ icon?: string | undefined;
699
+ id?: string | undefined;
700
+ } & {
701
+ type: "crud";
702
+ modelRef: string;
614
703
  form: {
615
- fields: {
616
- type: string;
617
- label: string;
618
- }[];
704
+ fields: z.objectInputType<{
705
+ type: z.ZodString;
706
+ label: z.ZodString;
707
+ }, z.ZodTypeAny, "passthrough">[];
619
708
  };
620
709
  table: {
621
710
  columns: {
@@ -631,8 +720,6 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
631
720
  };
632
721
  }[];
633
722
  };
634
- icon?: string | undefined;
635
- id?: string | undefined;
636
723
  disableCreate?: boolean | undefined;
637
724
  embeddedForms?: ({
638
725
  type: "object";
@@ -640,10 +727,10 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
640
727
  id: string;
641
728
  modelRef: string;
642
729
  form: {
643
- fields: {
644
- type: string;
645
- label: string;
646
- }[];
730
+ fields: z.objectInputType<{
731
+ type: z.ZodString;
732
+ label: z.ZodString;
733
+ }, z.ZodTypeAny, "passthrough">[];
647
734
  };
648
735
  includeIdField?: boolean | undefined;
649
736
  } | {
@@ -652,10 +739,10 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
652
739
  id: string;
653
740
  modelRef: string;
654
741
  form: {
655
- fields: {
656
- type: string;
657
- label: string;
658
- }[];
742
+ fields: z.objectInputType<{
743
+ type: z.ZodString;
744
+ label: z.ZodString;
745
+ }, z.ZodTypeAny, "passthrough">[];
659
746
  };
660
747
  table: {
661
748
  columns: {
@@ -673,113 +760,61 @@ export declare const createAppSchema: (options: import("./creator/types.js").Def
673
760
  };
674
761
  includeIdField?: boolean | undefined;
675
762
  })[] | undefined;
676
- }[] | undefined;
677
- }>]>>;
678
- export type AppConfig = def.InferOutput<typeof createAppSchema>;
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";
763
+ }>, {
764
+ type: string;
694
765
  name: string;
695
766
  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, {
767
+ featureRef: string;
768
+ icon?: string | undefined;
769
+ } & {
770
+ type: "crud";
771
+ modelRef: string;
772
+ form: {
773
+ fields: {
774
+ type: string;
775
+ label: string;
776
+ }[];
777
+ };
778
+ table: {
779
+ columns: {
780
+ label: string;
781
+ display: {
782
+ type: "foreign";
783
+ localRelationRef: string;
784
+ labelExpression: string;
785
+ valueExpression: string;
786
+ } | {
787
+ type: "text";
788
+ modelFieldRef: string;
789
+ };
790
+ }[];
791
+ };
792
+ disableCreate?: boolean | undefined;
793
+ embeddedForms?: ({
794
+ type: "object";
795
+ name: string;
796
+ id: string;
797
+ modelRef: string;
798
+ form: {
799
+ fields: {
800
+ type: string;
801
+ label: string;
802
+ }[];
803
+ };
804
+ includeIdField?: boolean | undefined;
805
+ } | {
806
+ type: "list";
807
+ name: string;
808
+ id: string;
809
+ modelRef: string;
810
+ form: {
811
+ fields: {
812
+ type: string;
813
+ label: string;
814
+ }[];
815
+ };
816
+ table: {
817
+ columns: {
783
818
  label: string;
784
819
  display: {
785
820
  type: "foreign";
@@ -790,7 +825,65 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
790
825
  type: "text";
791
826
  modelFieldRef: string;
792
827
  };
793
- }, {
828
+ }[];
829
+ };
830
+ includeIdField?: boolean | undefined;
831
+ })[] | undefined;
832
+ }, {
833
+ type: string;
834
+ name: string;
835
+ featureRef: string;
836
+ icon?: string | undefined;
837
+ id?: string | undefined;
838
+ } & {
839
+ type: "crud";
840
+ modelRef: string;
841
+ form: {
842
+ fields: z.objectInputType<{
843
+ type: z.ZodString;
844
+ label: z.ZodString;
845
+ }, z.ZodTypeAny, "passthrough">[];
846
+ };
847
+ table: {
848
+ columns: {
849
+ label: string;
850
+ display: {
851
+ type: "foreign";
852
+ localRelationRef: string;
853
+ labelExpression: string;
854
+ valueExpression: string;
855
+ } | {
856
+ type: "text";
857
+ modelFieldRef: string;
858
+ };
859
+ }[];
860
+ };
861
+ disableCreate?: boolean | undefined;
862
+ embeddedForms?: ({
863
+ type: "object";
864
+ name: string;
865
+ id: string;
866
+ modelRef: string;
867
+ form: {
868
+ fields: z.objectInputType<{
869
+ type: z.ZodString;
870
+ label: z.ZodString;
871
+ }, z.ZodTypeAny, "passthrough">[];
872
+ };
873
+ includeIdField?: boolean | undefined;
874
+ } | {
875
+ type: "list";
876
+ name: string;
877
+ id: string;
878
+ modelRef: string;
879
+ form: {
880
+ fields: z.objectInputType<{
881
+ type: z.ZodString;
882
+ label: z.ZodString;
883
+ }, z.ZodTypeAny, "passthrough">[];
884
+ };
885
+ table: {
886
+ columns: {
794
887
  label: string;
795
888
  display: {
796
889
  type: "foreign";
@@ -801,8 +894,74 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
801
894
  type: "text";
802
895
  modelFieldRef: string;
803
896
  };
804
- }>, "many">;
805
- }, "strip", z.ZodTypeAny, {
897
+ }[];
898
+ };
899
+ includeIdField?: boolean | undefined;
900
+ })[] | undefined;
901
+ }>, "many">>;
902
+ id: z.ZodDefault<z.ZodString>;
903
+ name: z.ZodString;
904
+ packageLocation: z.ZodOptional<z.ZodString>;
905
+ }, "strip", z.ZodTypeAny, {
906
+ type: "admin";
907
+ name: string;
908
+ id: string;
909
+ packageLocation?: string | undefined;
910
+ allowedRoles?: string[] | undefined;
911
+ sections?: ({
912
+ type: string;
913
+ name: string;
914
+ id: string;
915
+ featureRef: string;
916
+ icon?: string | undefined;
917
+ } & {
918
+ type: "crud";
919
+ modelRef: string;
920
+ form: {
921
+ fields: {
922
+ type: string;
923
+ label: string;
924
+ }[];
925
+ };
926
+ table: {
927
+ columns: {
928
+ label: string;
929
+ display: {
930
+ type: "foreign";
931
+ localRelationRef: string;
932
+ labelExpression: string;
933
+ valueExpression: string;
934
+ } | {
935
+ type: "text";
936
+ modelFieldRef: string;
937
+ };
938
+ }[];
939
+ };
940
+ disableCreate?: boolean | undefined;
941
+ embeddedForms?: ({
942
+ type: "object";
943
+ name: string;
944
+ id: string;
945
+ modelRef: string;
946
+ form: {
947
+ fields: {
948
+ type: string;
949
+ label: string;
950
+ }[];
951
+ };
952
+ includeIdField?: boolean | undefined;
953
+ } | {
954
+ type: "list";
955
+ name: string;
956
+ id: string;
957
+ modelRef: string;
958
+ form: {
959
+ fields: {
960
+ type: string;
961
+ label: string;
962
+ }[];
963
+ };
964
+ table: {
806
965
  columns: {
807
966
  label: string;
808
967
  display: {
@@ -815,7 +974,924 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
815
974
  modelFieldRef: string;
816
975
  };
817
976
  }[];
818
- }, {
977
+ };
978
+ includeIdField?: boolean | undefined;
979
+ })[] | undefined;
980
+ })[] | undefined;
981
+ }, {
982
+ type: "admin";
983
+ name: string;
984
+ id?: string | undefined;
985
+ packageLocation?: string | undefined;
986
+ allowedRoles?: string[] | undefined;
987
+ sections?: ({
988
+ type: string;
989
+ name: string;
990
+ featureRef: string;
991
+ icon?: string | undefined;
992
+ id?: string | undefined;
993
+ } & {
994
+ type: "crud";
995
+ modelRef: string;
996
+ form: {
997
+ fields: z.objectInputType<{
998
+ type: z.ZodString;
999
+ label: z.ZodString;
1000
+ }, z.ZodTypeAny, "passthrough">[];
1001
+ };
1002
+ table: {
1003
+ columns: {
1004
+ label: string;
1005
+ display: {
1006
+ type: "foreign";
1007
+ localRelationRef: string;
1008
+ labelExpression: string;
1009
+ valueExpression: string;
1010
+ } | {
1011
+ type: "text";
1012
+ modelFieldRef: string;
1013
+ };
1014
+ }[];
1015
+ };
1016
+ disableCreate?: boolean | undefined;
1017
+ embeddedForms?: ({
1018
+ type: "object";
1019
+ name: string;
1020
+ id: string;
1021
+ modelRef: string;
1022
+ form: {
1023
+ fields: z.objectInputType<{
1024
+ type: z.ZodString;
1025
+ label: z.ZodString;
1026
+ }, z.ZodTypeAny, "passthrough">[];
1027
+ };
1028
+ includeIdField?: boolean | undefined;
1029
+ } | {
1030
+ type: "list";
1031
+ name: string;
1032
+ id: string;
1033
+ modelRef: string;
1034
+ form: {
1035
+ fields: z.objectInputType<{
1036
+ type: z.ZodString;
1037
+ label: z.ZodString;
1038
+ }, z.ZodTypeAny, "passthrough">[];
1039
+ };
1040
+ table: {
1041
+ columns: {
1042
+ label: string;
1043
+ display: {
1044
+ type: "foreign";
1045
+ localRelationRef: string;
1046
+ labelExpression: string;
1047
+ valueExpression: string;
1048
+ } | {
1049
+ type: "text";
1050
+ modelFieldRef: string;
1051
+ };
1052
+ }[];
1053
+ };
1054
+ includeIdField?: boolean | undefined;
1055
+ })[] | undefined;
1056
+ })[] | undefined;
1057
+ }>]>, {
1058
+ type: "admin";
1059
+ name: string;
1060
+ id: string;
1061
+ packageLocation?: string | undefined;
1062
+ allowedRoles?: string[] | undefined;
1063
+ sections?: ({
1064
+ type: string;
1065
+ name: string;
1066
+ id: string;
1067
+ featureRef: string;
1068
+ icon?: string | undefined;
1069
+ } & {
1070
+ type: "crud";
1071
+ modelRef: string;
1072
+ form: {
1073
+ fields: {
1074
+ type: string;
1075
+ label: string;
1076
+ }[];
1077
+ };
1078
+ table: {
1079
+ columns: {
1080
+ label: string;
1081
+ display: {
1082
+ type: "foreign";
1083
+ localRelationRef: string;
1084
+ labelExpression: string;
1085
+ valueExpression: string;
1086
+ } | {
1087
+ type: "text";
1088
+ modelFieldRef: string;
1089
+ };
1090
+ }[];
1091
+ };
1092
+ disableCreate?: boolean | undefined;
1093
+ embeddedForms?: ({
1094
+ type: "object";
1095
+ name: string;
1096
+ id: string;
1097
+ modelRef: string;
1098
+ form: {
1099
+ fields: {
1100
+ type: string;
1101
+ label: string;
1102
+ }[];
1103
+ };
1104
+ includeIdField?: boolean | undefined;
1105
+ } | {
1106
+ type: "list";
1107
+ name: string;
1108
+ id: string;
1109
+ modelRef: string;
1110
+ form: {
1111
+ fields: {
1112
+ type: string;
1113
+ label: string;
1114
+ }[];
1115
+ };
1116
+ table: {
1117
+ columns: {
1118
+ label: string;
1119
+ display: {
1120
+ type: "foreign";
1121
+ localRelationRef: string;
1122
+ labelExpression: string;
1123
+ valueExpression: string;
1124
+ } | {
1125
+ type: "text";
1126
+ modelFieldRef: string;
1127
+ };
1128
+ }[];
1129
+ };
1130
+ includeIdField?: boolean | undefined;
1131
+ })[] | undefined;
1132
+ })[] | undefined;
1133
+ } | {
1134
+ type: "backend";
1135
+ name: string;
1136
+ id: string;
1137
+ packageLocation?: string | undefined;
1138
+ enableStripe?: boolean | undefined;
1139
+ enableRedis?: boolean | undefined;
1140
+ enableBullQueue?: boolean | undefined;
1141
+ enablePostmark?: boolean | undefined;
1142
+ enableSubscriptions?: boolean | undefined;
1143
+ enableAxios?: boolean | undefined;
1144
+ } | {
1145
+ type: "web";
1146
+ name: string;
1147
+ id: string;
1148
+ description?: string | undefined;
1149
+ packageLocation?: string | undefined;
1150
+ allowedRoles?: string[] | undefined;
1151
+ enableSubscriptions?: boolean | undefined;
1152
+ includeAuth?: boolean | undefined;
1153
+ title?: string | undefined;
1154
+ includeUploadComponents?: boolean | undefined;
1155
+ }, {
1156
+ type: "admin";
1157
+ name: string;
1158
+ id?: string | undefined;
1159
+ packageLocation?: string | undefined;
1160
+ allowedRoles?: string[] | undefined;
1161
+ sections?: ({
1162
+ type: string;
1163
+ name: string;
1164
+ featureRef: string;
1165
+ icon?: string | undefined;
1166
+ id?: string | undefined;
1167
+ } & {
1168
+ type: "crud";
1169
+ modelRef: string;
1170
+ form: {
1171
+ fields: z.objectInputType<{
1172
+ type: z.ZodString;
1173
+ label: z.ZodString;
1174
+ }, z.ZodTypeAny, "passthrough">[];
1175
+ };
1176
+ table: {
1177
+ columns: {
1178
+ label: string;
1179
+ display: {
1180
+ type: "foreign";
1181
+ localRelationRef: string;
1182
+ labelExpression: string;
1183
+ valueExpression: string;
1184
+ } | {
1185
+ type: "text";
1186
+ modelFieldRef: string;
1187
+ };
1188
+ }[];
1189
+ };
1190
+ disableCreate?: boolean | undefined;
1191
+ embeddedForms?: ({
1192
+ type: "object";
1193
+ name: string;
1194
+ id: string;
1195
+ modelRef: string;
1196
+ form: {
1197
+ fields: z.objectInputType<{
1198
+ type: z.ZodString;
1199
+ label: z.ZodString;
1200
+ }, z.ZodTypeAny, "passthrough">[];
1201
+ };
1202
+ includeIdField?: boolean | undefined;
1203
+ } | {
1204
+ type: "list";
1205
+ name: string;
1206
+ id: string;
1207
+ modelRef: string;
1208
+ form: {
1209
+ fields: z.objectInputType<{
1210
+ type: z.ZodString;
1211
+ label: z.ZodString;
1212
+ }, z.ZodTypeAny, "passthrough">[];
1213
+ };
1214
+ table: {
1215
+ columns: {
1216
+ label: string;
1217
+ display: {
1218
+ type: "foreign";
1219
+ localRelationRef: string;
1220
+ labelExpression: string;
1221
+ valueExpression: string;
1222
+ } | {
1223
+ type: "text";
1224
+ modelFieldRef: string;
1225
+ };
1226
+ }[];
1227
+ };
1228
+ includeIdField?: boolean | undefined;
1229
+ })[] | undefined;
1230
+ })[] | undefined;
1231
+ } | {
1232
+ type: "backend";
1233
+ name: string;
1234
+ id?: string | undefined;
1235
+ packageLocation?: string | undefined;
1236
+ enableStripe?: boolean | undefined;
1237
+ enableRedis?: boolean | undefined;
1238
+ enableBullQueue?: boolean | undefined;
1239
+ enablePostmark?: boolean | undefined;
1240
+ enableSubscriptions?: boolean | undefined;
1241
+ enableAxios?: boolean | undefined;
1242
+ } | {
1243
+ type: "web";
1244
+ name: string;
1245
+ description?: string | undefined;
1246
+ id?: string | undefined;
1247
+ packageLocation?: string | undefined;
1248
+ allowedRoles?: string[] | undefined;
1249
+ enableSubscriptions?: boolean | undefined;
1250
+ includeAuth?: boolean | undefined;
1251
+ title?: string | undefined;
1252
+ includeUploadComponents?: boolean | undefined;
1253
+ }>;
1254
+ export type AppConfig = def.InferOutput<typeof createAppSchema>;
1255
+ export declare const createProjectDefinitionSchema: (context: import("./creator/types.js").DefinitionSchemaParserContext) => z.ZodObject<{
1256
+ cliVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1257
+ apps: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1258
+ type: z.ZodLiteral<"backend">;
1259
+ enableStripe: z.ZodOptional<z.ZodBoolean>;
1260
+ enableRedis: z.ZodOptional<z.ZodBoolean>;
1261
+ enableBullQueue: z.ZodOptional<z.ZodBoolean>;
1262
+ enablePostmark: z.ZodOptional<z.ZodBoolean>;
1263
+ enableSubscriptions: z.ZodOptional<z.ZodBoolean>;
1264
+ enableAxios: z.ZodOptional<z.ZodBoolean>;
1265
+ id: z.ZodDefault<z.ZodString>;
1266
+ name: z.ZodString;
1267
+ packageLocation: z.ZodOptional<z.ZodString>;
1268
+ }, "strip", z.ZodTypeAny, {
1269
+ type: "backend";
1270
+ name: string;
1271
+ id: string;
1272
+ packageLocation?: string | undefined;
1273
+ enableStripe?: boolean | undefined;
1274
+ enableRedis?: boolean | undefined;
1275
+ enableBullQueue?: boolean | undefined;
1276
+ enablePostmark?: boolean | undefined;
1277
+ enableSubscriptions?: boolean | undefined;
1278
+ enableAxios?: boolean | undefined;
1279
+ }, {
1280
+ type: "backend";
1281
+ name: string;
1282
+ id?: string | undefined;
1283
+ packageLocation?: string | undefined;
1284
+ enableStripe?: boolean | undefined;
1285
+ enableRedis?: boolean | undefined;
1286
+ enableBullQueue?: boolean | undefined;
1287
+ enablePostmark?: boolean | undefined;
1288
+ enableSubscriptions?: boolean | undefined;
1289
+ enableAxios?: boolean | undefined;
1290
+ }>, z.ZodObject<{
1291
+ type: z.ZodLiteral<"web">;
1292
+ includeAuth: z.ZodOptional<z.ZodBoolean>;
1293
+ title: z.ZodOptional<z.ZodString>;
1294
+ description: z.ZodOptional<z.ZodString>;
1295
+ allowedRoles: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1296
+ includeUploadComponents: z.ZodOptional<z.ZodBoolean>;
1297
+ enableSubscriptions: z.ZodOptional<z.ZodBoolean>;
1298
+ id: z.ZodDefault<z.ZodString>;
1299
+ name: z.ZodString;
1300
+ packageLocation: z.ZodOptional<z.ZodString>;
1301
+ }, "strip", z.ZodTypeAny, {
1302
+ type: "web";
1303
+ name: string;
1304
+ id: string;
1305
+ description?: string | undefined;
1306
+ packageLocation?: string | undefined;
1307
+ allowedRoles?: string[] | undefined;
1308
+ enableSubscriptions?: boolean | undefined;
1309
+ includeAuth?: boolean | undefined;
1310
+ title?: string | undefined;
1311
+ includeUploadComponents?: boolean | undefined;
1312
+ }, {
1313
+ type: "web";
1314
+ name: string;
1315
+ description?: string | undefined;
1316
+ id?: string | undefined;
1317
+ packageLocation?: string | undefined;
1318
+ allowedRoles?: string[] | undefined;
1319
+ enableSubscriptions?: boolean | undefined;
1320
+ includeAuth?: boolean | undefined;
1321
+ title?: string | undefined;
1322
+ includeUploadComponents?: boolean | undefined;
1323
+ }>, z.ZodObject<{
1324
+ type: z.ZodLiteral<"admin">;
1325
+ allowedRoles: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1326
+ sections: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodIntersection<z.ZodObject<{
1327
+ id: z.ZodDefault<z.ZodString>;
1328
+ name: z.ZodString;
1329
+ featureRef: z.ZodEffects<z.ZodString, string, string>;
1330
+ icon: z.ZodOptional<z.ZodString>;
1331
+ type: z.ZodString;
1332
+ }, "strip", z.ZodTypeAny, {
1333
+ type: string;
1334
+ name: string;
1335
+ id: string;
1336
+ featureRef: string;
1337
+ icon?: string | undefined;
1338
+ }, {
1339
+ type: string;
1340
+ name: string;
1341
+ featureRef: string;
1342
+ icon?: string | undefined;
1343
+ id?: string | undefined;
1344
+ }>, z.ZodObject<{
1345
+ type: z.ZodLiteral<"crud">;
1346
+ modelRef: z.ZodEffects<z.ZodString, string, string>;
1347
+ disableCreate: z.ZodOptional<z.ZodBoolean>;
1348
+ table: z.ZodObject<{
1349
+ columns: z.ZodArray<z.ZodObject<{
1350
+ label: z.ZodString;
1351
+ display: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1352
+ type: z.ZodLiteral<"text">;
1353
+ modelFieldRef: z.ZodEffects<z.ZodString, string, string>;
1354
+ }, "strip", z.ZodTypeAny, {
1355
+ type: "text";
1356
+ modelFieldRef: string;
1357
+ }, {
1358
+ type: "text";
1359
+ modelFieldRef: string;
1360
+ }>, z.ZodObject<{
1361
+ type: z.ZodLiteral<"foreign">;
1362
+ localRelationRef: z.ZodEffects<z.ZodString, string, string>;
1363
+ labelExpression: z.ZodString;
1364
+ valueExpression: z.ZodString;
1365
+ }, "strip", z.ZodTypeAny, {
1366
+ type: "foreign";
1367
+ localRelationRef: string;
1368
+ labelExpression: string;
1369
+ valueExpression: string;
1370
+ }, {
1371
+ type: "foreign";
1372
+ localRelationRef: string;
1373
+ labelExpression: string;
1374
+ valueExpression: string;
1375
+ }>]>;
1376
+ }, "strip", z.ZodTypeAny, {
1377
+ label: string;
1378
+ display: {
1379
+ type: "foreign";
1380
+ localRelationRef: string;
1381
+ labelExpression: string;
1382
+ valueExpression: string;
1383
+ } | {
1384
+ type: "text";
1385
+ modelFieldRef: string;
1386
+ };
1387
+ }, {
1388
+ label: string;
1389
+ display: {
1390
+ type: "foreign";
1391
+ localRelationRef: string;
1392
+ labelExpression: string;
1393
+ valueExpression: string;
1394
+ } | {
1395
+ type: "text";
1396
+ modelFieldRef: string;
1397
+ };
1398
+ }>, "many">;
1399
+ }, "strip", z.ZodTypeAny, {
1400
+ columns: {
1401
+ label: string;
1402
+ display: {
1403
+ type: "foreign";
1404
+ localRelationRef: string;
1405
+ labelExpression: string;
1406
+ valueExpression: string;
1407
+ } | {
1408
+ type: "text";
1409
+ modelFieldRef: string;
1410
+ };
1411
+ }[];
1412
+ }, {
1413
+ columns: {
1414
+ label: string;
1415
+ display: {
1416
+ type: "foreign";
1417
+ localRelationRef: string;
1418
+ labelExpression: string;
1419
+ valueExpression: string;
1420
+ } | {
1421
+ type: "text";
1422
+ modelFieldRef: string;
1423
+ };
1424
+ }[];
1425
+ }>;
1426
+ form: z.ZodObject<{
1427
+ fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
1428
+ type: z.ZodString;
1429
+ label: z.ZodString;
1430
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1431
+ type: z.ZodString;
1432
+ label: z.ZodString;
1433
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1434
+ type: z.ZodString;
1435
+ label: z.ZodString;
1436
+ }, z.ZodTypeAny, "passthrough">>, {
1437
+ type: string;
1438
+ label: string;
1439
+ }, z.objectInputType<{
1440
+ type: z.ZodString;
1441
+ label: z.ZodString;
1442
+ }, z.ZodTypeAny, "passthrough">>, "many">;
1443
+ }, "strip", z.ZodTypeAny, {
1444
+ fields: {
1445
+ type: string;
1446
+ label: string;
1447
+ }[];
1448
+ }, {
1449
+ fields: z.objectInputType<{
1450
+ type: z.ZodString;
1451
+ label: z.ZodString;
1452
+ }, z.ZodTypeAny, "passthrough">[];
1453
+ }>;
1454
+ embeddedForms: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1455
+ id: z.ZodString;
1456
+ name: z.ZodString;
1457
+ modelRef: z.ZodEffects<z.ZodString, string, string>;
1458
+ includeIdField: z.ZodOptional<z.ZodBoolean>;
1459
+ type: z.ZodLiteral<"object">;
1460
+ form: z.ZodObject<{
1461
+ fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
1462
+ type: z.ZodString;
1463
+ label: z.ZodString;
1464
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1465
+ type: z.ZodString;
1466
+ label: z.ZodString;
1467
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1468
+ type: z.ZodString;
1469
+ label: z.ZodString;
1470
+ }, z.ZodTypeAny, "passthrough">>, {
1471
+ type: string;
1472
+ label: string;
1473
+ }, z.objectInputType<{
1474
+ type: z.ZodString;
1475
+ label: z.ZodString;
1476
+ }, z.ZodTypeAny, "passthrough">>, "many">;
1477
+ }, "strip", z.ZodTypeAny, {
1478
+ fields: {
1479
+ type: string;
1480
+ label: string;
1481
+ }[];
1482
+ }, {
1483
+ fields: z.objectInputType<{
1484
+ type: z.ZodString;
1485
+ label: z.ZodString;
1486
+ }, z.ZodTypeAny, "passthrough">[];
1487
+ }>;
1488
+ }, "strip", z.ZodTypeAny, {
1489
+ type: "object";
1490
+ name: string;
1491
+ id: string;
1492
+ modelRef: string;
1493
+ form: {
1494
+ fields: {
1495
+ type: string;
1496
+ label: string;
1497
+ }[];
1498
+ };
1499
+ includeIdField?: boolean | undefined;
1500
+ }, {
1501
+ type: "object";
1502
+ name: string;
1503
+ id: string;
1504
+ modelRef: string;
1505
+ form: {
1506
+ fields: z.objectInputType<{
1507
+ type: z.ZodString;
1508
+ label: z.ZodString;
1509
+ }, z.ZodTypeAny, "passthrough">[];
1510
+ };
1511
+ includeIdField?: boolean | undefined;
1512
+ }>, z.ZodObject<{
1513
+ id: z.ZodString;
1514
+ name: z.ZodString;
1515
+ modelRef: z.ZodEffects<z.ZodString, string, string>;
1516
+ includeIdField: z.ZodOptional<z.ZodBoolean>;
1517
+ type: z.ZodLiteral<"list">;
1518
+ table: z.ZodObject<{
1519
+ columns: z.ZodArray<z.ZodObject<{
1520
+ label: z.ZodString;
1521
+ display: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1522
+ type: z.ZodLiteral<"text">;
1523
+ modelFieldRef: z.ZodEffects<z.ZodString, string, string>;
1524
+ }, "strip", z.ZodTypeAny, {
1525
+ type: "text";
1526
+ modelFieldRef: string;
1527
+ }, {
1528
+ type: "text";
1529
+ modelFieldRef: string;
1530
+ }>, z.ZodObject<{
1531
+ type: z.ZodLiteral<"foreign">;
1532
+ localRelationRef: z.ZodEffects<z.ZodString, string, string>;
1533
+ labelExpression: z.ZodString;
1534
+ valueExpression: z.ZodString;
1535
+ }, "strip", z.ZodTypeAny, {
1536
+ type: "foreign";
1537
+ localRelationRef: string;
1538
+ labelExpression: string;
1539
+ valueExpression: string;
1540
+ }, {
1541
+ type: "foreign";
1542
+ localRelationRef: string;
1543
+ labelExpression: string;
1544
+ valueExpression: string;
1545
+ }>]>;
1546
+ }, "strip", z.ZodTypeAny, {
1547
+ label: string;
1548
+ display: {
1549
+ type: "foreign";
1550
+ localRelationRef: string;
1551
+ labelExpression: string;
1552
+ valueExpression: string;
1553
+ } | {
1554
+ type: "text";
1555
+ modelFieldRef: string;
1556
+ };
1557
+ }, {
1558
+ label: string;
1559
+ display: {
1560
+ type: "foreign";
1561
+ localRelationRef: string;
1562
+ labelExpression: string;
1563
+ valueExpression: string;
1564
+ } | {
1565
+ type: "text";
1566
+ modelFieldRef: string;
1567
+ };
1568
+ }>, "many">;
1569
+ }, "strip", z.ZodTypeAny, {
1570
+ columns: {
1571
+ label: string;
1572
+ display: {
1573
+ type: "foreign";
1574
+ localRelationRef: string;
1575
+ labelExpression: string;
1576
+ valueExpression: string;
1577
+ } | {
1578
+ type: "text";
1579
+ modelFieldRef: string;
1580
+ };
1581
+ }[];
1582
+ }, {
1583
+ columns: {
1584
+ label: string;
1585
+ display: {
1586
+ type: "foreign";
1587
+ localRelationRef: string;
1588
+ labelExpression: string;
1589
+ valueExpression: string;
1590
+ } | {
1591
+ type: "text";
1592
+ modelFieldRef: string;
1593
+ };
1594
+ }[];
1595
+ }>;
1596
+ form: z.ZodObject<{
1597
+ fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
1598
+ type: z.ZodString;
1599
+ label: z.ZodString;
1600
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1601
+ type: z.ZodString;
1602
+ label: z.ZodString;
1603
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1604
+ type: z.ZodString;
1605
+ label: z.ZodString;
1606
+ }, z.ZodTypeAny, "passthrough">>, {
1607
+ type: string;
1608
+ label: string;
1609
+ }, z.objectInputType<{
1610
+ type: z.ZodString;
1611
+ label: z.ZodString;
1612
+ }, z.ZodTypeAny, "passthrough">>, "many">;
1613
+ }, "strip", z.ZodTypeAny, {
1614
+ fields: {
1615
+ type: string;
1616
+ label: string;
1617
+ }[];
1618
+ }, {
1619
+ fields: z.objectInputType<{
1620
+ type: z.ZodString;
1621
+ label: z.ZodString;
1622
+ }, z.ZodTypeAny, "passthrough">[];
1623
+ }>;
1624
+ }, "strip", z.ZodTypeAny, {
1625
+ type: "list";
1626
+ name: string;
1627
+ id: string;
1628
+ modelRef: string;
1629
+ form: {
1630
+ fields: {
1631
+ type: string;
1632
+ label: string;
1633
+ }[];
1634
+ };
1635
+ table: {
1636
+ columns: {
1637
+ label: string;
1638
+ display: {
1639
+ type: "foreign";
1640
+ localRelationRef: string;
1641
+ labelExpression: string;
1642
+ valueExpression: string;
1643
+ } | {
1644
+ type: "text";
1645
+ modelFieldRef: string;
1646
+ };
1647
+ }[];
1648
+ };
1649
+ includeIdField?: boolean | undefined;
1650
+ }, {
1651
+ type: "list";
1652
+ name: string;
1653
+ id: string;
1654
+ modelRef: string;
1655
+ form: {
1656
+ fields: z.objectInputType<{
1657
+ type: z.ZodString;
1658
+ label: z.ZodString;
1659
+ }, z.ZodTypeAny, "passthrough">[];
1660
+ };
1661
+ table: {
1662
+ columns: {
1663
+ label: string;
1664
+ display: {
1665
+ type: "foreign";
1666
+ localRelationRef: string;
1667
+ labelExpression: string;
1668
+ valueExpression: string;
1669
+ } | {
1670
+ type: "text";
1671
+ modelFieldRef: string;
1672
+ };
1673
+ }[];
1674
+ };
1675
+ includeIdField?: boolean | undefined;
1676
+ }>]>, {
1677
+ type: "object";
1678
+ name: string;
1679
+ id: string;
1680
+ modelRef: string;
1681
+ form: {
1682
+ fields: {
1683
+ type: string;
1684
+ label: string;
1685
+ }[];
1686
+ };
1687
+ includeIdField?: boolean | undefined;
1688
+ } | {
1689
+ type: "list";
1690
+ name: string;
1691
+ id: string;
1692
+ modelRef: string;
1693
+ form: {
1694
+ fields: {
1695
+ type: string;
1696
+ label: string;
1697
+ }[];
1698
+ };
1699
+ table: {
1700
+ columns: {
1701
+ label: string;
1702
+ display: {
1703
+ type: "foreign";
1704
+ localRelationRef: string;
1705
+ labelExpression: string;
1706
+ valueExpression: string;
1707
+ } | {
1708
+ type: "text";
1709
+ modelFieldRef: string;
1710
+ };
1711
+ }[];
1712
+ };
1713
+ includeIdField?: boolean | undefined;
1714
+ }, {
1715
+ type: "object";
1716
+ name: string;
1717
+ id: string;
1718
+ modelRef: string;
1719
+ form: {
1720
+ fields: z.objectInputType<{
1721
+ type: z.ZodString;
1722
+ label: z.ZodString;
1723
+ }, z.ZodTypeAny, "passthrough">[];
1724
+ };
1725
+ includeIdField?: boolean | undefined;
1726
+ } | {
1727
+ type: "list";
1728
+ name: string;
1729
+ id: string;
1730
+ modelRef: string;
1731
+ form: {
1732
+ fields: z.objectInputType<{
1733
+ type: z.ZodString;
1734
+ label: z.ZodString;
1735
+ }, z.ZodTypeAny, "passthrough">[];
1736
+ };
1737
+ table: {
1738
+ columns: {
1739
+ label: string;
1740
+ display: {
1741
+ type: "foreign";
1742
+ localRelationRef: string;
1743
+ labelExpression: string;
1744
+ valueExpression: string;
1745
+ } | {
1746
+ type: "text";
1747
+ modelFieldRef: string;
1748
+ };
1749
+ }[];
1750
+ };
1751
+ includeIdField?: boolean | undefined;
1752
+ }>, "many">>;
1753
+ }, "strip", z.ZodTypeAny, {
1754
+ type: "crud";
1755
+ modelRef: string;
1756
+ form: {
1757
+ fields: {
1758
+ type: string;
1759
+ label: string;
1760
+ }[];
1761
+ };
1762
+ table: {
1763
+ columns: {
1764
+ label: string;
1765
+ display: {
1766
+ type: "foreign";
1767
+ localRelationRef: string;
1768
+ labelExpression: string;
1769
+ valueExpression: string;
1770
+ } | {
1771
+ type: "text";
1772
+ modelFieldRef: string;
1773
+ };
1774
+ }[];
1775
+ };
1776
+ disableCreate?: boolean | undefined;
1777
+ embeddedForms?: ({
1778
+ type: "object";
1779
+ name: string;
1780
+ id: string;
1781
+ modelRef: string;
1782
+ form: {
1783
+ fields: {
1784
+ type: string;
1785
+ label: string;
1786
+ }[];
1787
+ };
1788
+ includeIdField?: boolean | undefined;
1789
+ } | {
1790
+ type: "list";
1791
+ name: string;
1792
+ id: string;
1793
+ modelRef: string;
1794
+ form: {
1795
+ fields: {
1796
+ type: string;
1797
+ label: string;
1798
+ }[];
1799
+ };
1800
+ table: {
1801
+ columns: {
1802
+ label: string;
1803
+ display: {
1804
+ type: "foreign";
1805
+ localRelationRef: string;
1806
+ labelExpression: string;
1807
+ valueExpression: string;
1808
+ } | {
1809
+ type: "text";
1810
+ modelFieldRef: string;
1811
+ };
1812
+ }[];
1813
+ };
1814
+ includeIdField?: boolean | undefined;
1815
+ })[] | undefined;
1816
+ }, {
1817
+ type: "crud";
1818
+ modelRef: string;
1819
+ form: {
1820
+ fields: z.objectInputType<{
1821
+ type: z.ZodString;
1822
+ label: z.ZodString;
1823
+ }, z.ZodTypeAny, "passthrough">[];
1824
+ };
1825
+ table: {
1826
+ columns: {
1827
+ label: string;
1828
+ display: {
1829
+ type: "foreign";
1830
+ localRelationRef: string;
1831
+ labelExpression: string;
1832
+ valueExpression: string;
1833
+ } | {
1834
+ type: "text";
1835
+ modelFieldRef: string;
1836
+ };
1837
+ }[];
1838
+ };
1839
+ disableCreate?: boolean | undefined;
1840
+ embeddedForms?: ({
1841
+ type: "object";
1842
+ name: string;
1843
+ id: string;
1844
+ modelRef: string;
1845
+ form: {
1846
+ fields: z.objectInputType<{
1847
+ type: z.ZodString;
1848
+ label: z.ZodString;
1849
+ }, z.ZodTypeAny, "passthrough">[];
1850
+ };
1851
+ includeIdField?: boolean | undefined;
1852
+ } | {
1853
+ type: "list";
1854
+ name: string;
1855
+ id: string;
1856
+ modelRef: string;
1857
+ form: {
1858
+ fields: z.objectInputType<{
1859
+ type: z.ZodString;
1860
+ label: z.ZodString;
1861
+ }, z.ZodTypeAny, "passthrough">[];
1862
+ };
1863
+ table: {
1864
+ columns: {
1865
+ label: string;
1866
+ display: {
1867
+ type: "foreign";
1868
+ localRelationRef: string;
1869
+ labelExpression: string;
1870
+ valueExpression: string;
1871
+ } | {
1872
+ type: "text";
1873
+ modelFieldRef: string;
1874
+ };
1875
+ }[];
1876
+ };
1877
+ includeIdField?: boolean | undefined;
1878
+ })[] | undefined;
1879
+ }>>, {
1880
+ type: string;
1881
+ name: string;
1882
+ id: string;
1883
+ featureRef: string;
1884
+ icon?: string | undefined;
1885
+ } & {
1886
+ type: "crud";
1887
+ modelRef: string;
1888
+ form: {
1889
+ fields: {
1890
+ type: string;
1891
+ label: string;
1892
+ }[];
1893
+ };
1894
+ table: {
819
1895
  columns: {
820
1896
  label: string;
821
1897
  display: {
@@ -828,58 +1904,9 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
828
1904
  modelFieldRef: string;
829
1905
  };
830
1906
  }[];
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, {
1907
+ };
1908
+ disableCreate?: boolean | undefined;
1909
+ embeddedForms?: ({
883
1910
  type: "object";
884
1911
  name: string;
885
1912
  id: string;
@@ -891,8 +1918,8 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
891
1918
  }[];
892
1919
  };
893
1920
  includeIdField?: boolean | undefined;
894
- }, {
895
- type: "object";
1921
+ } | {
1922
+ type: "list";
896
1923
  name: string;
897
1924
  id: string;
898
1925
  modelRef: string;
@@ -902,53 +1929,8 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
902
1929
  label: string;
903
1930
  }[];
904
1931
  };
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
- }, {
1932
+ table: {
1933
+ columns: {
952
1934
  label: string;
953
1935
  display: {
954
1936
  type: "foreign";
@@ -959,8 +1941,64 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
959
1941
  type: "text";
960
1942
  modelFieldRef: string;
961
1943
  };
962
- }>, "many">;
963
- }, "strip", z.ZodTypeAny, {
1944
+ }[];
1945
+ };
1946
+ includeIdField?: boolean | undefined;
1947
+ })[] | undefined;
1948
+ }, {
1949
+ type: string;
1950
+ name: string;
1951
+ featureRef: string;
1952
+ icon?: string | undefined;
1953
+ id?: string | undefined;
1954
+ } & {
1955
+ type: "crud";
1956
+ modelRef: string;
1957
+ form: {
1958
+ fields: z.objectInputType<{
1959
+ type: z.ZodString;
1960
+ label: z.ZodString;
1961
+ }, z.ZodTypeAny, "passthrough">[];
1962
+ };
1963
+ table: {
1964
+ columns: {
1965
+ label: string;
1966
+ display: {
1967
+ type: "foreign";
1968
+ localRelationRef: string;
1969
+ labelExpression: string;
1970
+ valueExpression: string;
1971
+ } | {
1972
+ type: "text";
1973
+ modelFieldRef: string;
1974
+ };
1975
+ }[];
1976
+ };
1977
+ disableCreate?: boolean | undefined;
1978
+ embeddedForms?: ({
1979
+ type: "object";
1980
+ name: string;
1981
+ id: string;
1982
+ modelRef: string;
1983
+ form: {
1984
+ fields: z.objectInputType<{
1985
+ type: z.ZodString;
1986
+ label: z.ZodString;
1987
+ }, z.ZodTypeAny, "passthrough">[];
1988
+ };
1989
+ includeIdField?: boolean | undefined;
1990
+ } | {
1991
+ type: "list";
1992
+ name: string;
1993
+ id: string;
1994
+ modelRef: string;
1995
+ form: {
1996
+ fields: z.objectInputType<{
1997
+ type: z.ZodString;
1998
+ label: z.ZodString;
1999
+ }, z.ZodTypeAny, "passthrough">[];
2000
+ };
2001
+ table: {
964
2002
  columns: {
965
2003
  label: string;
966
2004
  display: {
@@ -973,7 +2011,63 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
973
2011
  modelFieldRef: string;
974
2012
  };
975
2013
  }[];
976
- }, {
2014
+ };
2015
+ includeIdField?: boolean | undefined;
2016
+ })[] | undefined;
2017
+ }>, {
2018
+ type: string;
2019
+ name: string;
2020
+ id: string;
2021
+ featureRef: string;
2022
+ icon?: string | undefined;
2023
+ } & {
2024
+ type: "crud";
2025
+ modelRef: string;
2026
+ form: {
2027
+ fields: {
2028
+ type: string;
2029
+ label: string;
2030
+ }[];
2031
+ };
2032
+ table: {
2033
+ columns: {
2034
+ label: string;
2035
+ display: {
2036
+ type: "foreign";
2037
+ localRelationRef: string;
2038
+ labelExpression: string;
2039
+ valueExpression: string;
2040
+ } | {
2041
+ type: "text";
2042
+ modelFieldRef: string;
2043
+ };
2044
+ }[];
2045
+ };
2046
+ disableCreate?: boolean | undefined;
2047
+ embeddedForms?: ({
2048
+ type: "object";
2049
+ name: string;
2050
+ id: string;
2051
+ modelRef: string;
2052
+ form: {
2053
+ fields: {
2054
+ type: string;
2055
+ label: string;
2056
+ }[];
2057
+ };
2058
+ includeIdField?: boolean | undefined;
2059
+ } | {
2060
+ type: "list";
2061
+ name: string;
2062
+ id: string;
2063
+ modelRef: string;
2064
+ form: {
2065
+ fields: {
2066
+ type: string;
2067
+ label: string;
2068
+ }[];
2069
+ };
2070
+ table: {
977
2071
  columns: {
978
2072
  label: string;
979
2073
  display: {
@@ -986,65 +2080,61 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
986
2080
  modelFieldRef: string;
987
2081
  };
988
2082
  }[];
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";
2083
+ };
2084
+ includeIdField?: boolean | undefined;
2085
+ })[] | undefined;
2086
+ }, {
2087
+ type: string;
2088
+ name: string;
2089
+ featureRef: string;
2090
+ icon?: string | undefined;
2091
+ id?: string | undefined;
2092
+ } & {
2093
+ type: "crud";
2094
+ modelRef: string;
2095
+ form: {
2096
+ fields: z.objectInputType<{
2097
+ type: z.ZodString;
2098
+ label: z.ZodString;
2099
+ }, z.ZodTypeAny, "passthrough">[];
2100
+ };
2101
+ table: {
2102
+ columns: {
2103
+ label: string;
2104
+ display: {
2105
+ type: "foreign";
2106
+ localRelationRef: string;
2107
+ labelExpression: string;
2108
+ valueExpression: string;
2109
+ } | {
2110
+ type: "text";
2111
+ modelFieldRef: string;
2112
+ };
2113
+ }[];
2114
+ };
2115
+ disableCreate?: boolean | undefined;
2116
+ embeddedForms?: ({
2117
+ type: "object";
1014
2118
  name: string;
1015
2119
  id: string;
1016
2120
  modelRef: string;
1017
2121
  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
- }[];
2122
+ fields: z.objectInputType<{
2123
+ type: z.ZodString;
2124
+ label: z.ZodString;
2125
+ }, z.ZodTypeAny, "passthrough">[];
1036
2126
  };
1037
2127
  includeIdField?: boolean | undefined;
1038
- }, {
2128
+ } | {
1039
2129
  type: "list";
1040
2130
  name: string;
1041
2131
  id: string;
1042
2132
  modelRef: string;
1043
2133
  form: {
1044
- fields: {
1045
- type: string;
1046
- label: string;
1047
- }[];
2134
+ fields: z.objectInputType<{
2135
+ type: z.ZodString;
2136
+ label: z.ZodString;
2137
+ }, z.ZodTypeAny, "passthrough">[];
1048
2138
  };
1049
2139
  table: {
1050
2140
  columns: {
@@ -1061,17 +2151,26 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
1061
2151
  }[];
1062
2152
  };
1063
2153
  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";
2154
+ })[] | undefined;
2155
+ }>, "many">>;
2156
+ id: z.ZodDefault<z.ZodString>;
2157
+ name: z.ZodString;
2158
+ packageLocation: z.ZodOptional<z.ZodString>;
2159
+ }, "strip", z.ZodTypeAny, {
2160
+ type: "admin";
2161
+ name: string;
2162
+ id: string;
2163
+ packageLocation?: string | undefined;
2164
+ allowedRoles?: string[] | undefined;
2165
+ sections?: ({
2166
+ type: string;
1071
2167
  name: string;
1072
2168
  id: string;
1073
- modelRef: string;
1074
2169
  featureRef: string;
2170
+ icon?: string | undefined;
2171
+ } & {
2172
+ type: "crud";
2173
+ modelRef: string;
1075
2174
  form: {
1076
2175
  fields: {
1077
2176
  type: string;
@@ -1092,7 +2191,6 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
1092
2191
  };
1093
2192
  }[];
1094
2193
  };
1095
- icon?: string | undefined;
1096
2194
  disableCreate?: boolean | undefined;
1097
2195
  embeddedForms?: ({
1098
2196
  type: "object";
@@ -1133,16 +2231,27 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
1133
2231
  };
1134
2232
  includeIdField?: boolean | undefined;
1135
2233
  })[] | undefined;
1136
- }, {
1137
- type: "crud";
2234
+ })[] | undefined;
2235
+ }, {
2236
+ type: "admin";
2237
+ name: string;
2238
+ id?: string | undefined;
2239
+ packageLocation?: string | undefined;
2240
+ allowedRoles?: string[] | undefined;
2241
+ sections?: ({
2242
+ type: string;
1138
2243
  name: string;
1139
- modelRef: string;
1140
2244
  featureRef: string;
2245
+ icon?: string | undefined;
2246
+ id?: string | undefined;
2247
+ } & {
2248
+ type: "crud";
2249
+ modelRef: string;
1141
2250
  form: {
1142
- fields: {
1143
- type: string;
1144
- label: string;
1145
- }[];
2251
+ fields: z.objectInputType<{
2252
+ type: z.ZodString;
2253
+ label: z.ZodString;
2254
+ }, z.ZodTypeAny, "passthrough">[];
1146
2255
  };
1147
2256
  table: {
1148
2257
  columns: {
@@ -1158,8 +2267,6 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
1158
2267
  };
1159
2268
  }[];
1160
2269
  };
1161
- icon?: string | undefined;
1162
- id?: string | undefined;
1163
2270
  disableCreate?: boolean | undefined;
1164
2271
  embeddedForms?: ({
1165
2272
  type: "object";
@@ -1167,10 +2274,10 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
1167
2274
  id: string;
1168
2275
  modelRef: string;
1169
2276
  form: {
1170
- fields: {
1171
- type: string;
1172
- label: string;
1173
- }[];
2277
+ fields: z.objectInputType<{
2278
+ type: z.ZodString;
2279
+ label: z.ZodString;
2280
+ }, z.ZodTypeAny, "passthrough">[];
1174
2281
  };
1175
2282
  includeIdField?: boolean | undefined;
1176
2283
  } | {
@@ -1179,10 +2286,10 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
1179
2286
  id: string;
1180
2287
  modelRef: string;
1181
2288
  form: {
1182
- fields: {
1183
- type: string;
1184
- label: string;
1185
- }[];
2289
+ fields: z.objectInputType<{
2290
+ type: z.ZodString;
2291
+ label: z.ZodString;
2292
+ }, z.ZodTypeAny, "passthrough">[];
1186
2293
  };
1187
2294
  table: {
1188
2295
  columns: {
@@ -1200,22 +2307,22 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
1200
2307
  };
1201
2308
  includeIdField?: boolean | undefined;
1202
2309
  })[] | undefined;
1203
- }>>>, "many">>;
1204
- id: z.ZodDefault<z.ZodString>;
1205
- name: z.ZodString;
1206
- packageLocation: z.ZodOptional<z.ZodString>;
1207
- }, "strip", z.ZodTypeAny, {
2310
+ })[] | undefined;
2311
+ }>]>, {
1208
2312
  type: "admin";
1209
2313
  name: string;
1210
2314
  id: string;
1211
2315
  packageLocation?: string | undefined;
1212
2316
  allowedRoles?: string[] | undefined;
1213
- sections?: {
1214
- type: "crud";
2317
+ sections?: ({
2318
+ type: string;
1215
2319
  name: string;
1216
2320
  id: string;
1217
- modelRef: string;
1218
2321
  featureRef: string;
2322
+ icon?: string | undefined;
2323
+ } & {
2324
+ type: "crud";
2325
+ modelRef: string;
1219
2326
  form: {
1220
2327
  fields: {
1221
2328
  type: string;
@@ -1236,7 +2343,6 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
1236
2343
  };
1237
2344
  }[];
1238
2345
  };
1239
- icon?: string | undefined;
1240
2346
  disableCreate?: boolean | undefined;
1241
2347
  embeddedForms?: ({
1242
2348
  type: "object";
@@ -1277,23 +2383,49 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
1277
2383
  };
1278
2384
  includeIdField?: boolean | undefined;
1279
2385
  })[] | undefined;
1280
- }[] | undefined;
2386
+ })[] | undefined;
2387
+ } | {
2388
+ type: "backend";
2389
+ name: string;
2390
+ id: string;
2391
+ packageLocation?: string | undefined;
2392
+ enableStripe?: boolean | undefined;
2393
+ enableRedis?: boolean | undefined;
2394
+ enableBullQueue?: boolean | undefined;
2395
+ enablePostmark?: boolean | undefined;
2396
+ enableSubscriptions?: boolean | undefined;
2397
+ enableAxios?: boolean | undefined;
2398
+ } | {
2399
+ type: "web";
2400
+ name: string;
2401
+ id: string;
2402
+ description?: string | undefined;
2403
+ packageLocation?: string | undefined;
2404
+ allowedRoles?: string[] | undefined;
2405
+ enableSubscriptions?: boolean | undefined;
2406
+ includeAuth?: boolean | undefined;
2407
+ title?: string | undefined;
2408
+ includeUploadComponents?: boolean | undefined;
1281
2409
  }, {
1282
2410
  type: "admin";
1283
2411
  name: string;
1284
2412
  id?: string | undefined;
1285
2413
  packageLocation?: string | undefined;
1286
2414
  allowedRoles?: string[] | undefined;
1287
- sections?: {
1288
- type: "crud";
2415
+ sections?: ({
2416
+ type: string;
1289
2417
  name: string;
1290
- modelRef: string;
1291
2418
  featureRef: string;
2419
+ icon?: string | undefined;
2420
+ id?: string | undefined;
2421
+ } & {
2422
+ type: "crud";
2423
+ modelRef: string;
1292
2424
  form: {
1293
- fields: {
1294
- type: string;
1295
- label: string;
1296
- }[];
2425
+ fields: z.objectInputType<{
2426
+ type: z.ZodString;
2427
+ label: z.ZodString;
2428
+ }, z.ZodTypeAny, "passthrough">[];
1297
2429
  };
1298
2430
  table: {
1299
2431
  columns: {
@@ -1309,8 +2441,6 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
1309
2441
  };
1310
2442
  }[];
1311
2443
  };
1312
- icon?: string | undefined;
1313
- id?: string | undefined;
1314
2444
  disableCreate?: boolean | undefined;
1315
2445
  embeddedForms?: ({
1316
2446
  type: "object";
@@ -1318,10 +2448,10 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
1318
2448
  id: string;
1319
2449
  modelRef: string;
1320
2450
  form: {
1321
- fields: {
1322
- type: string;
1323
- label: string;
1324
- }[];
2451
+ fields: z.objectInputType<{
2452
+ type: z.ZodString;
2453
+ label: z.ZodString;
2454
+ }, z.ZodTypeAny, "passthrough">[];
1325
2455
  };
1326
2456
  includeIdField?: boolean | undefined;
1327
2457
  } | {
@@ -1330,10 +2460,10 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
1330
2460
  id: string;
1331
2461
  modelRef: string;
1332
2462
  form: {
1333
- fields: {
1334
- type: string;
1335
- label: string;
1336
- }[];
2463
+ fields: z.objectInputType<{
2464
+ type: z.ZodString;
2465
+ label: z.ZodString;
2466
+ }, z.ZodTypeAny, "passthrough">[];
1337
2467
  };
1338
2468
  table: {
1339
2469
  columns: {
@@ -1351,37 +2481,67 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
1351
2481
  };
1352
2482
  includeIdField?: boolean | undefined;
1353
2483
  })[] | undefined;
1354
- }[] | undefined;
1355
- }>]>>, "many">>;
1356
- features: z.ZodDefault<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodObject<{
2484
+ })[] | undefined;
2485
+ } | {
2486
+ type: "backend";
2487
+ name: string;
2488
+ id?: string | undefined;
2489
+ packageLocation?: string | undefined;
2490
+ enableStripe?: boolean | undefined;
2491
+ enableRedis?: boolean | undefined;
2492
+ enableBullQueue?: boolean | undefined;
2493
+ enablePostmark?: boolean | undefined;
2494
+ enableSubscriptions?: boolean | undefined;
2495
+ enableAxios?: boolean | undefined;
2496
+ } | {
2497
+ type: "web";
2498
+ name: string;
2499
+ description?: string | undefined;
2500
+ id?: string | undefined;
2501
+ packageLocation?: string | undefined;
2502
+ allowedRoles?: string[] | undefined;
2503
+ enableSubscriptions?: boolean | undefined;
2504
+ includeAuth?: boolean | undefined;
2505
+ title?: string | undefined;
2506
+ includeUploadComponents?: boolean | undefined;
2507
+ }>, "many">>;
2508
+ features: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodObject<{
2509
+ id: z.ZodString;
1357
2510
  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>;
2511
+ parentRef: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1361
2512
  }, "strip", z.ZodTypeAny, {
1362
2513
  name: string;
1363
2514
  id: string;
1364
- parentRef?: string | null | undefined;
2515
+ parentRef?: string | undefined;
2516
+ }, {
2517
+ name: string;
2518
+ id: string;
2519
+ parentRef?: string | undefined;
2520
+ }>, {
2521
+ name: string;
2522
+ id: string;
2523
+ parentRef?: string | undefined;
1365
2524
  }, {
1366
2525
  name: string;
1367
2526
  id: string;
1368
- parentRef?: string | null | undefined;
1369
- }>>, "many">>;
1370
- models: z.ZodDefault<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodObject<{
2527
+ parentRef?: string | undefined;
2528
+ }>, "many">>;
2529
+ models: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodObject<{
1371
2530
  id: z.ZodString;
1372
2531
  name: z.ZodString;
1373
- featureRef: import("#src/references/index.js").ZodRef<z.ZodString>;
2532
+ featureRef: z.ZodEffects<z.ZodString, string, string>;
1374
2533
  model: z.ZodObject<{
1375
- fields: z.ZodArray<z.ZodEffects<z.ZodEffects<import("#src/references/index.js").ZodRef<z.ZodObject<{
2534
+ fields: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
2535
+ id: z.ZodString;
1376
2536
  name: z.ZodString;
1377
2537
  type: z.ZodEnum<["string", "uuid", "int", "boolean", "dateTime", "float", "decimal", "json", "date", "enum"]>;
1378
2538
  isOptional: z.ZodDefault<z.ZodBoolean>;
1379
- options: import("#src/references/index.js").ZodRef<z.ZodDefault<z.ZodEffects<z.ZodObject<{
2539
+ options: z.ZodEffects<z.ZodDefault<z.ZodEffects<z.ZodObject<{
1380
2540
  default: z.ZodDefault<z.ZodString>;
1381
2541
  genUuid: z.ZodOptional<z.ZodBoolean>;
1382
2542
  updatedAt: z.ZodOptional<z.ZodBoolean>;
1383
2543
  defaultToNow: z.ZodOptional<z.ZodBoolean>;
1384
- enumRef: import("#src/references/index.js").ZodRef<z.ZodOptional<z.ZodString>>;
2544
+ enumRef: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1385
2545
  defaultEnumValueRef: z.ZodOptional<z.ZodString>;
1386
2546
  }, "strip", z.ZodTypeAny, {
1387
2547
  default: string;
@@ -1411,9 +2571,21 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
1411
2571
  defaultToNow?: boolean | undefined;
1412
2572
  enumRef?: string | undefined;
1413
2573
  defaultEnumValueRef?: string | undefined;
1414
- }>>>;
1415
- } & {
1416
- id: z.ZodType<string, z.ZodAnyDef, string>;
2574
+ }>>, {
2575
+ defaultEnumValueRef?: string | undefined;
2576
+ default: string;
2577
+ genUuid?: boolean | undefined;
2578
+ updatedAt?: boolean | undefined;
2579
+ defaultToNow?: boolean | undefined;
2580
+ enumRef?: string | undefined;
2581
+ }, {
2582
+ default?: string | undefined;
2583
+ genUuid?: boolean | undefined;
2584
+ updatedAt?: boolean | undefined;
2585
+ defaultToNow?: boolean | undefined;
2586
+ enumRef?: string | undefined;
2587
+ defaultEnumValueRef?: string | undefined;
2588
+ } | undefined>;
1417
2589
  }, "strip", z.ZodTypeAny, {
1418
2590
  options: {
1419
2591
  defaultEnumValueRef?: string | undefined;
@@ -1440,7 +2612,33 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
1440
2612
  defaultEnumValueRef?: string | undefined;
1441
2613
  } | undefined;
1442
2614
  isOptional?: boolean | undefined;
1443
- }>>, {
2615
+ }>, {
2616
+ options: {
2617
+ defaultEnumValueRef?: string | undefined;
2618
+ default: string;
2619
+ genUuid?: boolean | undefined;
2620
+ updatedAt?: boolean | undefined;
2621
+ defaultToNow?: boolean | undefined;
2622
+ enumRef?: string | undefined;
2623
+ };
2624
+ type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
2625
+ name: string;
2626
+ id: string;
2627
+ isOptional: boolean;
2628
+ }, {
2629
+ type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
2630
+ name: string;
2631
+ id: string;
2632
+ options?: {
2633
+ default?: string | undefined;
2634
+ genUuid?: boolean | undefined;
2635
+ updatedAt?: boolean | undefined;
2636
+ defaultToNow?: boolean | undefined;
2637
+ enumRef?: string | undefined;
2638
+ defaultEnumValueRef?: string | undefined;
2639
+ } | undefined;
2640
+ isOptional?: boolean | undefined;
2641
+ }>, {
1444
2642
  options: {
1445
2643
  defaultEnumValueRef?: string | undefined;
1446
2644
  default: string;
@@ -1493,13 +2691,13 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
1493
2691
  } | undefined;
1494
2692
  isOptional?: boolean | undefined;
1495
2693
  }>, "many">;
1496
- relations: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodObject<{
2694
+ relations: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
1497
2695
  id: z.ZodString;
1498
2696
  foreignId: z.ZodDefault<z.ZodString>;
1499
2697
  name: z.ZodString;
1500
2698
  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>;
2699
+ localRef: z.ZodEffects<z.ZodString, string, string>;
2700
+ foreignRef: z.ZodEffects<z.ZodString, string, string>;
1503
2701
  }, "strip", z.ZodTypeAny, {
1504
2702
  localRef: string;
1505
2703
  foreignRef: string;
@@ -1535,18 +2733,41 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
1535
2733
  onDelete?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
1536
2734
  foreignId?: string | undefined;
1537
2735
  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<{
2736
+ }>, {
2737
+ name: string;
2738
+ id: string;
2739
+ onDelete: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
2740
+ references: {
2741
+ localRef: string;
2742
+ foreignRef: string;
2743
+ }[];
2744
+ modelRef: string;
2745
+ foreignId: string;
2746
+ foreignRelationName: string;
2747
+ onUpdate: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
2748
+ }, {
2749
+ name: string;
2750
+ id: string;
2751
+ references: {
2752
+ localRef: string;
2753
+ foreignRef: string;
2754
+ }[];
2755
+ modelRef: string;
2756
+ foreignRelationName: string;
2757
+ onDelete?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
2758
+ foreignId?: string | undefined;
2759
+ onUpdate?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
2760
+ }>, "many">>;
2761
+ primaryKeyFieldRefs: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
2762
+ uniqueConstraints: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
2763
+ id: z.ZodString;
1541
2764
  fields: z.ZodArray<z.ZodObject<{
1542
- fieldRef: import("#src/references/index.js").ZodRef<z.ZodString>;
2765
+ fieldRef: z.ZodEffects<z.ZodString, string, string>;
1543
2766
  }, "strip", z.ZodTypeAny, {
1544
2767
  fieldRef: string;
1545
2768
  }, {
1546
2769
  fieldRef: string;
1547
2770
  }>, "many">;
1548
- } & {
1549
- id: z.ZodType<string, z.ZodAnyDef, string>;
1550
2771
  }, "strip", z.ZodTypeAny, {
1551
2772
  id: string;
1552
2773
  fields: {
@@ -1557,7 +2778,17 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
1557
2778
  fields: {
1558
2779
  fieldRef: string;
1559
2780
  }[];
1560
- }>>, "many">>;
2781
+ }>, {
2782
+ id: string;
2783
+ fields: {
2784
+ fieldRef: string;
2785
+ }[];
2786
+ }, {
2787
+ id: string;
2788
+ fields: {
2789
+ fieldRef: string;
2790
+ }[];
2791
+ }>, "many">>;
1561
2792
  }, "strip", z.ZodTypeAny, {
1562
2793
  fields: {
1563
2794
  options: {
@@ -1632,8 +2863,8 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
1632
2863
  service: z.ZodDefault<z.ZodObject<{
1633
2864
  create: z.ZodDefault<z.ZodObject<{
1634
2865
  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">>;
2866
+ fields: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
2867
+ transformerNames: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1637
2868
  }, "strip", z.ZodTypeAny, {
1638
2869
  enabled: boolean;
1639
2870
  fields?: string[] | undefined;
@@ -1645,8 +2876,8 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
1645
2876
  }>>;
1646
2877
  update: z.ZodDefault<z.ZodObject<{
1647
2878
  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">>;
2879
+ fields: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
2880
+ transformerNames: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1650
2881
  }, "strip", z.ZodTypeAny, {
1651
2882
  enabled: boolean;
1652
2883
  fields?: string[] | undefined;
@@ -1663,16 +2894,22 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
1663
2894
  }, {
1664
2895
  enabled?: boolean | undefined;
1665
2896
  }>>;
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
- }, {
2897
+ transformers: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodObject<{
2898
+ readonly id: z.ZodString;
2899
+ readonly type: z.ZodString;
2900
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2901
+ readonly id: z.ZodString;
2902
+ readonly type: z.ZodString;
2903
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2904
+ readonly id: z.ZodString;
2905
+ readonly type: z.ZodString;
2906
+ }, z.ZodTypeAny, "passthrough">>, {
1673
2907
  type: string;
1674
2908
  id: string;
1675
- }>>, "many">>;
2909
+ }, z.objectInputType<{
2910
+ readonly id: z.ZodString;
2911
+ readonly type: z.ZodString;
2912
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
1676
2913
  }, "strip", z.ZodTypeAny, {
1677
2914
  delete: {
1678
2915
  enabled: boolean;
@@ -1705,49 +2942,71 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
1705
2942
  fields?: string[] | undefined;
1706
2943
  transformerNames?: string[] | undefined;
1707
2944
  } | undefined;
1708
- transformers?: {
1709
- type: string;
1710
- id: string;
1711
- }[] | undefined;
2945
+ transformers?: z.objectInputType<{
2946
+ readonly id: z.ZodString;
2947
+ readonly type: z.ZodString;
2948
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
1712
2949
  }>>;
1713
2950
  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">>;
2951
+ objectType: z.ZodEffects<z.ZodOptional<z.ZodObject<{
2952
+ enabled: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
2953
+ fields: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
2954
+ localRelations: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
2955
+ foreignRelations: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
1719
2956
  }, "strip", z.ZodTypeAny, {
1720
- enabled: boolean;
1721
- fields: string[];
2957
+ enabled?: boolean | undefined;
2958
+ fields?: string[] | undefined;
1722
2959
  localRelations?: string[] | undefined;
1723
2960
  foreignRelations?: string[] | undefined;
1724
2961
  }, {
1725
- fields: string[];
1726
2962
  enabled?: boolean | undefined;
2963
+ fields?: string[] | undefined;
1727
2964
  localRelations?: string[] | undefined;
1728
2965
  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">>;
2966
+ }>>, {
2967
+ enabled?: boolean | undefined;
2968
+ fields?: string[] | undefined;
2969
+ localRelations?: string[] | undefined;
2970
+ foreignRelations?: string[] | undefined;
2971
+ } | undefined, {
2972
+ enabled?: boolean | undefined;
2973
+ fields?: string[] | undefined;
2974
+ localRelations?: string[] | undefined;
2975
+ foreignRelations?: string[] | undefined;
2976
+ } | undefined>;
2977
+ queries: z.ZodEffects<z.ZodOptional<z.ZodObject<{
2978
+ get: z.ZodEffects<z.ZodOptional<z.ZodObject<{
2979
+ enabled: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
2980
+ roles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
1734
2981
  }, "strip", z.ZodTypeAny, {
1735
2982
  enabled?: boolean | undefined;
1736
2983
  roles?: string[] | undefined;
1737
2984
  }, {
1738
2985
  enabled?: boolean | undefined;
1739
2986
  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">>;
2987
+ }>>, {
2988
+ enabled?: boolean | undefined;
2989
+ roles?: string[] | undefined;
2990
+ } | undefined, {
2991
+ enabled?: boolean | undefined;
2992
+ roles?: string[] | undefined;
2993
+ } | undefined>;
2994
+ list: z.ZodEffects<z.ZodOptional<z.ZodObject<{
2995
+ enabled: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
2996
+ roles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
1744
2997
  }, "strip", z.ZodTypeAny, {
1745
2998
  enabled?: boolean | undefined;
1746
2999
  roles?: string[] | undefined;
1747
3000
  }, {
1748
3001
  enabled?: boolean | undefined;
1749
3002
  roles?: string[] | undefined;
1750
- }>>;
3003
+ }>>, {
3004
+ enabled?: boolean | undefined;
3005
+ roles?: string[] | undefined;
3006
+ } | undefined, {
3007
+ enabled?: boolean | undefined;
3008
+ roles?: string[] | undefined;
3009
+ } | undefined>;
1751
3010
  }, "strip", z.ZodTypeAny, {
1752
3011
  get?: {
1753
3012
  enabled?: boolean | undefined;
@@ -1766,51 +3025,87 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
1766
3025
  enabled?: boolean | undefined;
1767
3026
  roles?: string[] | undefined;
1768
3027
  } | 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">>;
3028
+ }>>, {
3029
+ get?: {
3030
+ enabled?: boolean | undefined;
3031
+ roles?: string[] | undefined;
3032
+ } | undefined;
3033
+ list?: {
3034
+ enabled?: boolean | undefined;
3035
+ roles?: string[] | undefined;
3036
+ } | undefined;
3037
+ } | undefined, {
3038
+ get?: {
3039
+ enabled?: boolean | undefined;
3040
+ roles?: string[] | undefined;
3041
+ } | undefined;
3042
+ list?: {
3043
+ enabled?: boolean | undefined;
3044
+ roles?: string[] | undefined;
3045
+ } | undefined;
3046
+ } | undefined>;
3047
+ mutations: z.ZodEffects<z.ZodOptional<z.ZodObject<{
3048
+ create: z.ZodEffects<z.ZodOptional<z.ZodObject<{
3049
+ enabled: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
3050
+ roles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
1774
3051
  }, "strip", z.ZodTypeAny, {
1775
3052
  enabled?: boolean | undefined;
1776
3053
  roles?: string[] | undefined;
1777
3054
  }, {
1778
3055
  enabled?: boolean | undefined;
1779
3056
  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">>;
3057
+ }>>, {
3058
+ enabled?: boolean | undefined;
3059
+ roles?: string[] | undefined;
3060
+ } | undefined, {
3061
+ enabled?: boolean | undefined;
3062
+ roles?: string[] | undefined;
3063
+ } | undefined>;
3064
+ update: z.ZodEffects<z.ZodOptional<z.ZodObject<{
3065
+ enabled: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
3066
+ roles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
1784
3067
  }, "strip", z.ZodTypeAny, {
1785
3068
  enabled?: boolean | undefined;
1786
3069
  roles?: string[] | undefined;
1787
3070
  }, {
1788
3071
  enabled?: boolean | undefined;
1789
3072
  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">>;
3073
+ }>>, {
3074
+ enabled?: boolean | undefined;
3075
+ roles?: string[] | undefined;
3076
+ } | undefined, {
3077
+ enabled?: boolean | undefined;
3078
+ roles?: string[] | undefined;
3079
+ } | undefined>;
3080
+ delete: z.ZodEffects<z.ZodOptional<z.ZodObject<{
3081
+ enabled: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
3082
+ roles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
1794
3083
  }, "strip", z.ZodTypeAny, {
1795
3084
  enabled?: boolean | undefined;
1796
3085
  roles?: string[] | undefined;
1797
3086
  }, {
1798
3087
  enabled?: boolean | undefined;
1799
3088
  roles?: string[] | undefined;
1800
- }>>;
3089
+ }>>, {
3090
+ enabled?: boolean | undefined;
3091
+ roles?: string[] | undefined;
3092
+ } | undefined, {
3093
+ enabled?: boolean | undefined;
3094
+ roles?: string[] | undefined;
3095
+ } | undefined>;
1801
3096
  }, "strip", z.ZodTypeAny, {
1802
- delete: {
3097
+ delete?: {
1803
3098
  enabled?: boolean | undefined;
1804
3099
  roles?: string[] | undefined;
1805
- };
1806
- create: {
3100
+ } | undefined;
3101
+ create?: {
1807
3102
  enabled?: boolean | undefined;
1808
3103
  roles?: string[] | undefined;
1809
- };
1810
- update: {
3104
+ } | undefined;
3105
+ update?: {
1811
3106
  enabled?: boolean | undefined;
1812
3107
  roles?: string[] | undefined;
1813
- };
3108
+ } | undefined;
1814
3109
  }, {
1815
3110
  delete?: {
1816
3111
  enabled?: boolean | undefined;
@@ -1824,15 +3119,41 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
1824
3119
  enabled?: boolean | undefined;
1825
3120
  roles?: string[] | undefined;
1826
3121
  } | undefined;
1827
- }>>;
3122
+ }>>, {
3123
+ delete?: {
3124
+ enabled?: boolean | undefined;
3125
+ roles?: string[] | undefined;
3126
+ } | undefined;
3127
+ create?: {
3128
+ enabled?: boolean | undefined;
3129
+ roles?: string[] | undefined;
3130
+ } | undefined;
3131
+ update?: {
3132
+ enabled?: boolean | undefined;
3133
+ roles?: string[] | undefined;
3134
+ } | undefined;
3135
+ } | undefined, {
3136
+ delete?: {
3137
+ enabled?: boolean | undefined;
3138
+ roles?: string[] | undefined;
3139
+ } | undefined;
3140
+ create?: {
3141
+ enabled?: boolean | undefined;
3142
+ roles?: string[] | undefined;
3143
+ } | undefined;
3144
+ update?: {
3145
+ enabled?: boolean | undefined;
3146
+ roles?: string[] | undefined;
3147
+ } | undefined;
3148
+ } | undefined>;
1828
3149
  }, "strip", z.ZodTypeAny, {
1829
- objectType: {
1830
- enabled: boolean;
1831
- fields: string[];
3150
+ objectType?: {
3151
+ enabled?: boolean | undefined;
3152
+ fields?: string[] | undefined;
1832
3153
  localRelations?: string[] | undefined;
1833
3154
  foreignRelations?: string[] | undefined;
1834
- };
1835
- queries: {
3155
+ } | undefined;
3156
+ queries?: {
1836
3157
  get?: {
1837
3158
  enabled?: boolean | undefined;
1838
3159
  roles?: string[] | undefined;
@@ -1841,25 +3162,207 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
1841
3162
  enabled?: boolean | undefined;
1842
3163
  roles?: string[] | undefined;
1843
3164
  } | undefined;
1844
- };
1845
- mutations: {
1846
- delete: {
3165
+ } | undefined;
3166
+ mutations?: {
3167
+ delete?: {
1847
3168
  enabled?: boolean | undefined;
1848
3169
  roles?: string[] | undefined;
1849
- };
1850
- create: {
3170
+ } | undefined;
3171
+ create?: {
1851
3172
  enabled?: boolean | undefined;
1852
3173
  roles?: string[] | undefined;
1853
- };
1854
- update: {
3174
+ } | undefined;
3175
+ update?: {
3176
+ enabled?: boolean | undefined;
3177
+ roles?: string[] | undefined;
3178
+ } | undefined;
3179
+ } | undefined;
3180
+ }, {
3181
+ objectType?: {
3182
+ enabled?: boolean | undefined;
3183
+ fields?: string[] | undefined;
3184
+ localRelations?: string[] | undefined;
3185
+ foreignRelations?: string[] | undefined;
3186
+ } | undefined;
3187
+ queries?: {
3188
+ get?: {
3189
+ enabled?: boolean | undefined;
3190
+ roles?: string[] | undefined;
3191
+ } | undefined;
3192
+ list?: {
3193
+ enabled?: boolean | undefined;
3194
+ roles?: string[] | undefined;
3195
+ } | undefined;
3196
+ } | undefined;
3197
+ mutations?: {
3198
+ delete?: {
3199
+ enabled?: boolean | undefined;
3200
+ roles?: string[] | undefined;
3201
+ } | undefined;
3202
+ create?: {
3203
+ enabled?: boolean | undefined;
3204
+ roles?: string[] | undefined;
3205
+ } | undefined;
3206
+ update?: {
1855
3207
  enabled?: boolean | undefined;
1856
3208
  roles?: string[] | undefined;
3209
+ } | undefined;
3210
+ } | undefined;
3211
+ }>>;
3212
+ }, "strip", z.ZodTypeAny, {
3213
+ name: string;
3214
+ id: string;
3215
+ featureRef: string;
3216
+ model: {
3217
+ fields: {
3218
+ options: {
3219
+ defaultEnumValueRef?: string | undefined;
3220
+ default: string;
3221
+ genUuid?: boolean | undefined;
3222
+ updatedAt?: boolean | undefined;
3223
+ defaultToNow?: boolean | undefined;
3224
+ enumRef?: string | undefined;
1857
3225
  };
3226
+ type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
3227
+ name: string;
3228
+ id: string;
3229
+ isOptional: boolean;
3230
+ }[];
3231
+ primaryKeyFieldRefs: string[];
3232
+ relations?: {
3233
+ name: string;
3234
+ id: string;
3235
+ onDelete: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
3236
+ references: {
3237
+ localRef: string;
3238
+ foreignRef: string;
3239
+ }[];
3240
+ modelRef: string;
3241
+ foreignId: string;
3242
+ foreignRelationName: string;
3243
+ onUpdate: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
3244
+ }[] | undefined;
3245
+ uniqueConstraints?: {
3246
+ id: string;
3247
+ fields: {
3248
+ fieldRef: string;
3249
+ }[];
3250
+ }[] | undefined;
3251
+ };
3252
+ service: {
3253
+ delete: {
3254
+ enabled: boolean;
1858
3255
  };
1859
- }, {
3256
+ create: {
3257
+ enabled: boolean;
3258
+ fields?: string[] | undefined;
3259
+ transformerNames?: string[] | undefined;
3260
+ };
3261
+ update: {
3262
+ enabled: boolean;
3263
+ fields?: string[] | undefined;
3264
+ transformerNames?: string[] | undefined;
3265
+ };
3266
+ transformers: {
3267
+ type: string;
3268
+ id: string;
3269
+ }[];
3270
+ };
3271
+ graphql?: {
3272
+ objectType?: {
3273
+ enabled?: boolean | undefined;
3274
+ fields?: string[] | undefined;
3275
+ localRelations?: string[] | undefined;
3276
+ foreignRelations?: string[] | undefined;
3277
+ } | undefined;
3278
+ queries?: {
3279
+ get?: {
3280
+ enabled?: boolean | undefined;
3281
+ roles?: string[] | undefined;
3282
+ } | undefined;
3283
+ list?: {
3284
+ enabled?: boolean | undefined;
3285
+ roles?: string[] | undefined;
3286
+ } | undefined;
3287
+ } | undefined;
3288
+ mutations?: {
3289
+ delete?: {
3290
+ enabled?: boolean | undefined;
3291
+ roles?: string[] | undefined;
3292
+ } | undefined;
3293
+ create?: {
3294
+ enabled?: boolean | undefined;
3295
+ roles?: string[] | undefined;
3296
+ } | undefined;
3297
+ update?: {
3298
+ enabled?: boolean | undefined;
3299
+ roles?: string[] | undefined;
3300
+ } | undefined;
3301
+ } | undefined;
3302
+ } | undefined;
3303
+ }, {
3304
+ name: string;
3305
+ id: string;
3306
+ featureRef: string;
3307
+ model: {
3308
+ fields: {
3309
+ type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
3310
+ name: string;
3311
+ id: string;
3312
+ options?: {
3313
+ default?: string | undefined;
3314
+ genUuid?: boolean | undefined;
3315
+ updatedAt?: boolean | undefined;
3316
+ defaultToNow?: boolean | undefined;
3317
+ enumRef?: string | undefined;
3318
+ defaultEnumValueRef?: string | undefined;
3319
+ } | undefined;
3320
+ isOptional?: boolean | undefined;
3321
+ }[];
3322
+ primaryKeyFieldRefs: string[];
3323
+ relations?: {
3324
+ name: string;
3325
+ id: string;
3326
+ references: {
3327
+ localRef: string;
3328
+ foreignRef: string;
3329
+ }[];
3330
+ modelRef: string;
3331
+ foreignRelationName: string;
3332
+ onDelete?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
3333
+ foreignId?: string | undefined;
3334
+ onUpdate?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
3335
+ }[] | undefined;
3336
+ uniqueConstraints?: {
3337
+ id: string;
3338
+ fields: {
3339
+ fieldRef: string;
3340
+ }[];
3341
+ }[] | undefined;
3342
+ };
3343
+ service?: {
3344
+ delete?: {
3345
+ enabled?: boolean | undefined;
3346
+ } | undefined;
3347
+ create?: {
3348
+ enabled?: boolean | undefined;
3349
+ fields?: string[] | undefined;
3350
+ transformerNames?: string[] | undefined;
3351
+ } | undefined;
3352
+ update?: {
3353
+ enabled?: boolean | undefined;
3354
+ fields?: string[] | undefined;
3355
+ transformerNames?: string[] | undefined;
3356
+ } | undefined;
3357
+ transformers?: z.objectInputType<{
3358
+ readonly id: z.ZodString;
3359
+ readonly type: z.ZodString;
3360
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
3361
+ } | undefined;
3362
+ graphql?: {
1860
3363
  objectType?: {
1861
- fields: string[];
1862
3364
  enabled?: boolean | undefined;
3365
+ fields?: string[] | undefined;
1863
3366
  localRelations?: string[] | undefined;
1864
3367
  foreignRelations?: string[] | undefined;
1865
3368
  } | undefined;
@@ -1887,12 +3390,11 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
1887
3390
  roles?: string[] | undefined;
1888
3391
  } | undefined;
1889
3392
  } | undefined;
1890
- }>>;
1891
- } & {
1892
- id: z.ZodType<string, z.ZodAnyDef, string>;
1893
- }, "strip", z.ZodTypeAny, {
3393
+ } | undefined;
3394
+ }>, {
1894
3395
  name: string;
1895
3396
  id: string;
3397
+ featureRef: string;
1896
3398
  model: {
1897
3399
  fields: {
1898
3400
  options: {
@@ -1929,7 +3431,6 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
1929
3431
  }[];
1930
3432
  }[] | undefined;
1931
3433
  };
1932
- featureRef: string;
1933
3434
  service: {
1934
3435
  delete: {
1935
3436
  enabled: boolean;
@@ -1950,13 +3451,13 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
1950
3451
  }[];
1951
3452
  };
1952
3453
  graphql?: {
1953
- objectType: {
1954
- enabled: boolean;
1955
- fields: string[];
3454
+ objectType?: {
3455
+ enabled?: boolean | undefined;
3456
+ fields?: string[] | undefined;
1956
3457
  localRelations?: string[] | undefined;
1957
3458
  foreignRelations?: string[] | undefined;
1958
- };
1959
- queries: {
3459
+ } | undefined;
3460
+ queries?: {
1960
3461
  get?: {
1961
3462
  enabled?: boolean | undefined;
1962
3463
  roles?: string[] | undefined;
@@ -1965,25 +3466,26 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
1965
3466
  enabled?: boolean | undefined;
1966
3467
  roles?: string[] | undefined;
1967
3468
  } | undefined;
1968
- };
1969
- mutations: {
1970
- delete: {
3469
+ } | undefined;
3470
+ mutations?: {
3471
+ delete?: {
1971
3472
  enabled?: boolean | undefined;
1972
3473
  roles?: string[] | undefined;
1973
- };
1974
- create: {
3474
+ } | undefined;
3475
+ create?: {
1975
3476
  enabled?: boolean | undefined;
1976
3477
  roles?: string[] | undefined;
1977
- };
1978
- update: {
3478
+ } | undefined;
3479
+ update?: {
1979
3480
  enabled?: boolean | undefined;
1980
3481
  roles?: string[] | undefined;
1981
- };
1982
- };
3482
+ } | undefined;
3483
+ } | undefined;
1983
3484
  } | undefined;
1984
3485
  }, {
1985
3486
  name: string;
1986
3487
  id: string;
3488
+ featureRef: string;
1987
3489
  model: {
1988
3490
  fields: {
1989
3491
  type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
@@ -2020,7 +3522,6 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
2020
3522
  }[];
2021
3523
  }[] | undefined;
2022
3524
  };
2023
- featureRef: string;
2024
3525
  service?: {
2025
3526
  delete?: {
2026
3527
  enabled?: boolean | undefined;
@@ -2035,15 +3536,15 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
2035
3536
  fields?: string[] | undefined;
2036
3537
  transformerNames?: string[] | undefined;
2037
3538
  } | undefined;
2038
- transformers?: {
2039
- type: string;
2040
- id: string;
2041
- }[] | undefined;
3539
+ transformers?: z.objectInputType<{
3540
+ readonly id: z.ZodString;
3541
+ readonly type: z.ZodString;
3542
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
2042
3543
  } | undefined;
2043
3544
  graphql?: {
2044
3545
  objectType?: {
2045
- fields: string[];
2046
3546
  enabled?: boolean | undefined;
3547
+ fields?: string[] | undefined;
2047
3548
  localRelations?: string[] | undefined;
2048
3549
  foreignRelations?: string[] | undefined;
2049
3550
  } | undefined;
@@ -2072,15 +3573,15 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
2072
3573
  } | undefined;
2073
3574
  } | undefined;
2074
3575
  } | undefined;
2075
- }>>, "many">>;
2076
- enums: z.ZodOptional<z.ZodArray<import("#src/references/index.js").ZodRef<z.ZodObject<{
3576
+ }>, "many">>;
3577
+ enums: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
3578
+ id: z.ZodString;
2077
3579
  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<{
3580
+ featureRef: z.ZodEffects<z.ZodString, string, string>;
3581
+ values: z.ZodArray<z.ZodEffects<z.ZodObject<{
3582
+ id: z.ZodString;
2080
3583
  name: z.ZodString;
2081
3584
  friendlyName: z.ZodString;
2082
- } & {
2083
- id: z.ZodType<string, z.ZodAnyDef, string>;
2084
3585
  }, "strip", z.ZodTypeAny, {
2085
3586
  name: string;
2086
3587
  id: string;
@@ -2089,10 +3590,16 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
2089
3590
  name: string;
2090
3591
  id: string;
2091
3592
  friendlyName: string;
2092
- }>>, "many">;
3593
+ }>, {
3594
+ name: string;
3595
+ id: string;
3596
+ friendlyName: string;
3597
+ }, {
3598
+ name: string;
3599
+ id: string;
3600
+ friendlyName: string;
3601
+ }>, "many">;
2093
3602
  isExposed: z.ZodBoolean;
2094
- } & {
2095
- id: z.ZodType<string, z.ZodAnyDef, string>;
2096
3603
  }, "strip", z.ZodTypeAny, {
2097
3604
  values: {
2098
3605
  name: string;
@@ -2113,62 +3620,79 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
2113
3620
  id: string;
2114
3621
  featureRef: string;
2115
3622
  isExposed: boolean;
2116
- }>>, "many">>;
3623
+ }>, {
3624
+ values: {
3625
+ name: string;
3626
+ id: string;
3627
+ friendlyName: string;
3628
+ }[];
3629
+ name: string;
3630
+ id: string;
3631
+ featureRef: string;
3632
+ isExposed: boolean;
3633
+ }, {
3634
+ values: {
3635
+ name: string;
3636
+ id: string;
3637
+ friendlyName: string;
3638
+ }[];
3639
+ name: string;
3640
+ id: string;
3641
+ featureRef: string;
3642
+ isExposed: boolean;
3643
+ }>, "many">>;
2117
3644
  isInitialized: z.ZodDefault<z.ZodBoolean>;
2118
3645
  schemaVersion: z.ZodNumber;
2119
- plugins: z.ZodOptional<z.ZodArray<import("../index.js").ZodWithPlugins<import("#src/references/index.js").ZodRef<z.ZodObject<{
3646
+ plugins: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
2120
3647
  id: z.ZodString;
2121
3648
  packageName: z.ZodString;
2122
3649
  name: z.ZodString;
2123
3650
  version: z.ZodString;
2124
3651
  config: z.ZodUnknown;
2125
3652
  configSchemaVersion: z.ZodOptional<z.ZodNumber>;
2126
- } & {
2127
- id: z.ZodType<string, z.ZodAnyDef, string>;
2128
- }, "strip", z.ZodTypeAny, {
2129
- version: string;
2130
- name: string;
2131
- id: string;
2132
- packageName: string;
2133
- config?: unknown;
2134
- configSchemaVersion?: number | undefined;
2135
- }, {
2136
- version: string;
2137
- name: string;
2138
- id: string;
2139
- packageName: string;
2140
- config?: unknown;
2141
- configSchemaVersion?: number | undefined;
2142
- }>> | z.ZodIntersection<import("#src/references/index.js").ZodRef<z.ZodObject<{
3653
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2143
3654
  id: z.ZodString;
2144
3655
  packageName: z.ZodString;
2145
3656
  name: z.ZodString;
2146
3657
  version: z.ZodString;
2147
3658
  config: z.ZodUnknown;
2148
3659
  configSchemaVersion: z.ZodOptional<z.ZodNumber>;
2149
- } & {
2150
- id: z.ZodType<string, z.ZodAnyDef, string>;
2151
- }, "strip", z.ZodTypeAny, {
2152
- version: string;
2153
- name: string;
2154
- id: string;
2155
- packageName: string;
2156
- config?: unknown;
2157
- configSchemaVersion?: number | undefined;
2158
- }, {
3660
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3661
+ id: z.ZodString;
3662
+ packageName: z.ZodString;
3663
+ name: z.ZodString;
3664
+ version: z.ZodString;
3665
+ config: z.ZodUnknown;
3666
+ configSchemaVersion: z.ZodOptional<z.ZodNumber>;
3667
+ }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
3668
+ id: z.ZodString;
3669
+ packageName: z.ZodString;
3670
+ name: z.ZodString;
3671
+ version: z.ZodString;
3672
+ config: z.ZodUnknown;
3673
+ configSchemaVersion: z.ZodOptional<z.ZodNumber>;
3674
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3675
+ id: z.ZodString;
3676
+ packageName: z.ZodString;
3677
+ name: z.ZodString;
3678
+ version: z.ZodString;
3679
+ config: z.ZodUnknown;
3680
+ configSchemaVersion: z.ZodOptional<z.ZodNumber>;
3681
+ }, z.ZodTypeAny, "passthrough">>, {
2159
3682
  version: string;
2160
3683
  name: string;
2161
3684
  id: string;
2162
3685
  packageName: string;
2163
3686
  config?: unknown;
2164
3687
  configSchemaVersion?: number | undefined;
2165
- }>>, z.ZodObject<{
2166
- config: z.ZodTypeAny;
2167
- }, "strip", z.ZodTypeAny, {
2168
- config?: any;
2169
- }, {
2170
- config?: any;
2171
- }>>>, "many">>;
3688
+ }, z.objectInputType<{
3689
+ id: z.ZodString;
3690
+ packageName: z.ZodString;
3691
+ name: z.ZodString;
3692
+ version: z.ZodString;
3693
+ config: z.ZodUnknown;
3694
+ configSchemaVersion: z.ZodOptional<z.ZodNumber>;
3695
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
2172
3696
  settings: z.ZodObject<{
2173
3697
  general: z.ZodObject<{
2174
3698
  name: z.ZodString;
@@ -2261,14 +3785,14 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
2261
3785
  };
2262
3786
  }>;
2263
3787
  colors: z.ZodObject<{
2264
- 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>;
2265
- 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>;
3788
+ light: z.ZodRecord<z.ZodEnum<["link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", ...("link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring")[]]>, z.ZodString>;
3789
+ dark: z.ZodRecord<z.ZodEnum<["link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", ...("link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring")[]]>, z.ZodString>;
2266
3790
  }, "strip", z.ZodTypeAny, {
2267
- 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>>;
2268
- 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>>;
3791
+ light: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
3792
+ dark: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
2269
3793
  }, {
2270
- 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>>;
2271
- 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>>;
3794
+ light: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
3795
+ dark: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
2272
3796
  }>;
2273
3797
  }, "strip", z.ZodTypeAny, {
2274
3798
  palettes: {
@@ -2284,8 +3808,8 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
2284
3808
  };
2285
3809
  };
2286
3810
  colors: {
2287
- 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>>;
2288
- 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>>;
3811
+ light: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
3812
+ dark: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
2289
3813
  };
2290
3814
  }, {
2291
3815
  palettes: {
@@ -2301,8 +3825,8 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
2301
3825
  };
2302
3826
  };
2303
3827
  colors: {
2304
- 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>>;
2305
- 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>>;
3828
+ light: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
3829
+ dark: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
2306
3830
  };
2307
3831
  }>>;
2308
3832
  }, "strip", z.ZodTypeAny, {
@@ -2329,8 +3853,8 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
2329
3853
  };
2330
3854
  };
2331
3855
  colors: {
2332
- 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>>;
2333
- 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>>;
3856
+ light: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
3857
+ dark: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
2334
3858
  };
2335
3859
  } | undefined;
2336
3860
  }, {
@@ -2357,8 +3881,8 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
2357
3881
  };
2358
3882
  };
2359
3883
  colors: {
2360
- 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>>;
2361
- 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>>;
3884
+ light: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
3885
+ dark: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
2362
3886
  };
2363
3887
  } | undefined;
2364
3888
  }>;
@@ -2369,12 +3893,15 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
2369
3893
  id: string;
2370
3894
  packageLocation?: string | undefined;
2371
3895
  allowedRoles?: string[] | undefined;
2372
- sections?: {
2373
- type: "crud";
3896
+ sections?: ({
3897
+ type: string;
2374
3898
  name: string;
2375
3899
  id: string;
2376
- modelRef: string;
2377
3900
  featureRef: string;
3901
+ icon?: string | undefined;
3902
+ } & {
3903
+ type: "crud";
3904
+ modelRef: string;
2378
3905
  form: {
2379
3906
  fields: {
2380
3907
  type: string;
@@ -2395,7 +3922,6 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
2395
3922
  };
2396
3923
  }[];
2397
3924
  };
2398
- icon?: string | undefined;
2399
3925
  disableCreate?: boolean | undefined;
2400
3926
  embeddedForms?: ({
2401
3927
  type: "object";
@@ -2436,7 +3962,7 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
2436
3962
  };
2437
3963
  includeIdField?: boolean | undefined;
2438
3964
  })[] | undefined;
2439
- }[] | undefined;
3965
+ })[] | undefined;
2440
3966
  } | {
2441
3967
  type: "backend";
2442
3968
  name: string;
@@ -2463,11 +3989,12 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
2463
3989
  features: {
2464
3990
  name: string;
2465
3991
  id: string;
2466
- parentRef?: string | null | undefined;
3992
+ parentRef?: string | undefined;
2467
3993
  }[];
2468
3994
  models: {
2469
3995
  name: string;
2470
3996
  id: string;
3997
+ featureRef: string;
2471
3998
  model: {
2472
3999
  fields: {
2473
4000
  options: {
@@ -2504,7 +4031,6 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
2504
4031
  }[];
2505
4032
  }[] | undefined;
2506
4033
  };
2507
- featureRef: string;
2508
4034
  service: {
2509
4035
  delete: {
2510
4036
  enabled: boolean;
@@ -2525,13 +4051,13 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
2525
4051
  }[];
2526
4052
  };
2527
4053
  graphql?: {
2528
- objectType: {
2529
- enabled: boolean;
2530
- fields: string[];
4054
+ objectType?: {
4055
+ enabled?: boolean | undefined;
4056
+ fields?: string[] | undefined;
2531
4057
  localRelations?: string[] | undefined;
2532
4058
  foreignRelations?: string[] | undefined;
2533
- };
2534
- queries: {
4059
+ } | undefined;
4060
+ queries?: {
2535
4061
  get?: {
2536
4062
  enabled?: boolean | undefined;
2537
4063
  roles?: string[] | undefined;
@@ -2540,21 +4066,21 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
2540
4066
  enabled?: boolean | undefined;
2541
4067
  roles?: string[] | undefined;
2542
4068
  } | undefined;
2543
- };
2544
- mutations: {
2545
- delete: {
4069
+ } | undefined;
4070
+ mutations?: {
4071
+ delete?: {
2546
4072
  enabled?: boolean | undefined;
2547
4073
  roles?: string[] | undefined;
2548
- };
2549
- create: {
4074
+ } | undefined;
4075
+ create?: {
2550
4076
  enabled?: boolean | undefined;
2551
4077
  roles?: string[] | undefined;
2552
- };
2553
- update: {
4078
+ } | undefined;
4079
+ update?: {
2554
4080
  enabled?: boolean | undefined;
2555
4081
  roles?: string[] | undefined;
2556
- };
2557
- };
4082
+ } | undefined;
4083
+ } | undefined;
2558
4084
  } | undefined;
2559
4085
  }[];
2560
4086
  isInitialized: boolean;
@@ -2583,28 +4109,19 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
2583
4109
  };
2584
4110
  };
2585
4111
  colors: {
2586
- 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>>;
2587
- 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>>;
4112
+ light: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
4113
+ dark: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
2588
4114
  };
2589
4115
  } | undefined;
2590
4116
  };
2591
- plugins?: ({
2592
- version: string;
2593
- name: string;
2594
- id: string;
2595
- packageName: string;
2596
- config?: unknown;
2597
- configSchemaVersion?: number | undefined;
2598
- } | ({
4117
+ plugins?: {
2599
4118
  version: string;
2600
4119
  name: string;
2601
4120
  id: string;
2602
4121
  packageName: string;
2603
4122
  config?: unknown;
2604
4123
  configSchemaVersion?: number | undefined;
2605
- } & {
2606
- config?: any;
2607
- }))[] | undefined;
4124
+ }[] | undefined;
2608
4125
  cliVersion?: string | null | undefined;
2609
4126
  enums?: {
2610
4127
  values: {
@@ -2643,28 +4160,19 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
2643
4160
  };
2644
4161
  };
2645
4162
  colors: {
2646
- 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>>;
2647
- 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>>;
4163
+ light: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
4164
+ dark: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
2648
4165
  };
2649
4166
  } | undefined;
2650
4167
  };
2651
- plugins?: ({
2652
- version: string;
2653
- name: string;
2654
- id: string;
2655
- packageName: string;
2656
- config?: unknown;
2657
- configSchemaVersion?: number | undefined;
2658
- } | ({
2659
- version: string;
2660
- name: string;
2661
- id: string;
2662
- packageName: string;
2663
- config?: unknown;
2664
- configSchemaVersion?: number | undefined;
2665
- } & {
2666
- config?: any;
2667
- }))[] | undefined;
4168
+ plugins?: z.objectInputType<{
4169
+ id: z.ZodString;
4170
+ packageName: z.ZodString;
4171
+ name: z.ZodString;
4172
+ version: z.ZodString;
4173
+ config: z.ZodUnknown;
4174
+ configSchemaVersion: z.ZodOptional<z.ZodNumber>;
4175
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
2668
4176
  cliVersion?: string | null | undefined;
2669
4177
  apps?: ({
2670
4178
  type: "admin";
@@ -2672,16 +4180,20 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
2672
4180
  id?: string | undefined;
2673
4181
  packageLocation?: string | undefined;
2674
4182
  allowedRoles?: string[] | undefined;
2675
- sections?: {
2676
- type: "crud";
4183
+ sections?: ({
4184
+ type: string;
2677
4185
  name: string;
2678
- modelRef: string;
2679
4186
  featureRef: string;
4187
+ icon?: string | undefined;
4188
+ id?: string | undefined;
4189
+ } & {
4190
+ type: "crud";
4191
+ modelRef: string;
2680
4192
  form: {
2681
- fields: {
2682
- type: string;
2683
- label: string;
2684
- }[];
4193
+ fields: z.objectInputType<{
4194
+ type: z.ZodString;
4195
+ label: z.ZodString;
4196
+ }, z.ZodTypeAny, "passthrough">[];
2685
4197
  };
2686
4198
  table: {
2687
4199
  columns: {
@@ -2697,8 +4209,6 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
2697
4209
  };
2698
4210
  }[];
2699
4211
  };
2700
- icon?: string | undefined;
2701
- id?: string | undefined;
2702
4212
  disableCreate?: boolean | undefined;
2703
4213
  embeddedForms?: ({
2704
4214
  type: "object";
@@ -2706,10 +4216,10 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
2706
4216
  id: string;
2707
4217
  modelRef: string;
2708
4218
  form: {
2709
- fields: {
2710
- type: string;
2711
- label: string;
2712
- }[];
4219
+ fields: z.objectInputType<{
4220
+ type: z.ZodString;
4221
+ label: z.ZodString;
4222
+ }, z.ZodTypeAny, "passthrough">[];
2713
4223
  };
2714
4224
  includeIdField?: boolean | undefined;
2715
4225
  } | {
@@ -2718,10 +4228,10 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
2718
4228
  id: string;
2719
4229
  modelRef: string;
2720
4230
  form: {
2721
- fields: {
2722
- type: string;
2723
- label: string;
2724
- }[];
4231
+ fields: z.objectInputType<{
4232
+ type: z.ZodString;
4233
+ label: z.ZodString;
4234
+ }, z.ZodTypeAny, "passthrough">[];
2725
4235
  };
2726
4236
  table: {
2727
4237
  columns: {
@@ -2739,7 +4249,7 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
2739
4249
  };
2740
4250
  includeIdField?: boolean | undefined;
2741
4251
  })[] | undefined;
2742
- }[] | undefined;
4252
+ })[] | undefined;
2743
4253
  } | {
2744
4254
  type: "backend";
2745
4255
  name: string;
@@ -2766,11 +4276,12 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
2766
4276
  features?: {
2767
4277
  name: string;
2768
4278
  id: string;
2769
- parentRef?: string | null | undefined;
4279
+ parentRef?: string | undefined;
2770
4280
  }[] | undefined;
2771
4281
  models?: {
2772
4282
  name: string;
2773
4283
  id: string;
4284
+ featureRef: string;
2774
4285
  model: {
2775
4286
  fields: {
2776
4287
  type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
@@ -2807,7 +4318,6 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
2807
4318
  }[];
2808
4319
  }[] | undefined;
2809
4320
  };
2810
- featureRef: string;
2811
4321
  service?: {
2812
4322
  delete?: {
2813
4323
  enabled?: boolean | undefined;
@@ -2822,15 +4332,15 @@ export declare const createProjectDefinitionSchema: (options: import("./creator/
2822
4332
  fields?: string[] | undefined;
2823
4333
  transformerNames?: string[] | undefined;
2824
4334
  } | undefined;
2825
- transformers?: {
2826
- type: string;
2827
- id: string;
2828
- }[] | undefined;
4335
+ transformers?: z.objectInputType<{
4336
+ readonly id: z.ZodString;
4337
+ readonly type: z.ZodString;
4338
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
2829
4339
  } | undefined;
2830
4340
  graphql?: {
2831
4341
  objectType?: {
2832
- fields: string[];
2833
4342
  enabled?: boolean | undefined;
4343
+ fields?: string[] | undefined;
2834
4344
  localRelations?: string[] | undefined;
2835
4345
  foreignRelations?: string[] | undefined;
2836
4346
  } | undefined;