@kyro-cms/core 0.12.10 → 0.12.15

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 (90) hide show
  1. package/dist/api-handler-graphql.cjs +1 -1
  2. package/dist/api-handler-graphql.js +1 -1
  3. package/dist/api-handler-trpc.cjs +1 -1
  4. package/dist/api-handler-trpc.js +1 -1
  5. package/dist/api-handler.cjs +1 -1
  6. package/dist/api-handler.js +1 -1
  7. package/dist/{bootstrap-4W4342G2.js → bootstrap-A3OBR3YI.js} +1 -1
  8. package/dist/bootstrap-YLGVKTQS.cjs +1 -0
  9. package/dist/{chunk-EYUT6MOM.cjs → chunk-2NJR2B4W.cjs} +2 -2
  10. package/dist/chunk-3RR6IV5I.js +133 -0
  11. package/dist/chunk-3ZFRP5M2.cjs +133 -0
  12. package/dist/{chunk-7WOX27LK.js → chunk-6NGUY76Y.js} +22 -22
  13. package/dist/chunk-DTSYK7KK.js +21 -0
  14. package/dist/{chunk-5B7GPMJI.js → chunk-FGSIHWQJ.js} +1 -1
  15. package/dist/{chunk-AJAZ7D3W.cjs → chunk-GCQTSPX6.cjs} +22 -22
  16. package/dist/chunk-GO34AOBZ.cjs +1 -0
  17. package/dist/chunk-IETGL7WJ.js +1 -0
  18. package/dist/chunk-IQYP3DDJ.cjs +21 -0
  19. package/dist/chunk-M5JUPA7G.cjs +86 -0
  20. package/dist/chunk-NI7S5JMH.js +86 -0
  21. package/dist/{chunk-MSTTFMCM.js → chunk-O62KJ2J7.js} +1 -1
  22. package/dist/{chunk-AMOXD7EJ.cjs → chunk-QMQXKCCQ.cjs} +1 -1
  23. package/dist/{chunk-WHK4LW6V.cjs → chunk-RY3BG3AN.cjs} +1 -1
  24. package/dist/{chunk-NTZACLOF.js → chunk-ZZIGN5PZ.js} +1 -1
  25. package/dist/cli/index.cjs +1 -1
  26. package/dist/cli/index.js +1 -1
  27. package/dist/drizzle/index.cjs +1 -1
  28. package/dist/drizzle/index.js +1 -1
  29. package/dist/index.cjs +2 -2
  30. package/dist/index.js +1 -1
  31. package/dist/rest/index.cjs +1 -1
  32. package/dist/rest/index.js +1 -1
  33. package/dist/templates/index.cjs +1 -1
  34. package/dist/templates/index.js +1 -1
  35. package/package.json +3 -3
  36. package/dist/WebhookService-ByrpAI4d.d.ts +0 -143
  37. package/dist/WebhookService-i-Kl3dvf.d.cts +0 -143
  38. package/dist/api-handler-graphql.d.cts +0 -6
  39. package/dist/api-handler-graphql.d.ts +0 -6
  40. package/dist/api-handler-trpc.d.cts +0 -5
  41. package/dist/api-handler-trpc.d.ts +0 -5
  42. package/dist/api-handler.d.cts +0 -7
  43. package/dist/api-handler.d.ts +0 -7
  44. package/dist/base-iyJTfH-3.d.cts +0 -74
  45. package/dist/base-oUSURe4_.d.ts +0 -74
  46. package/dist/bootstrap-ZGTRVWYE.cjs +0 -1
  47. package/dist/chunk-4JW6IVU5.js +0 -86
  48. package/dist/chunk-5YW2WHXR.cjs +0 -133
  49. package/dist/chunk-AE6GXUT7.js +0 -1
  50. package/dist/chunk-GFU7AOI3.cjs +0 -1
  51. package/dist/chunk-J5SP3Y2H.js +0 -133
  52. package/dist/chunk-NUUPBDZC.js +0 -21
  53. package/dist/chunk-OTFVOKH3.cjs +0 -21
  54. package/dist/chunk-PFHIBSOU.cjs +0 -86
  55. package/dist/cli/index.d.cts +0 -1
  56. package/dist/cli/index.d.ts +0 -1
  57. package/dist/client.d.cts +0 -12
  58. package/dist/client.d.ts +0 -12
  59. package/dist/drizzle/index.d.cts +0 -168
  60. package/dist/drizzle/index.d.ts +0 -168
  61. package/dist/fields/index.d.cts +0 -7
  62. package/dist/fields/index.d.ts +0 -7
  63. package/dist/graphql/index.d.cts +0 -57
  64. package/dist/graphql/index.d.ts +0 -57
  65. package/dist/index-Bz9JqRGI.d.cts +0 -86
  66. package/dist/index-Bz9JqRGI.d.ts +0 -86
  67. package/dist/index-DNy8jbA2.d.cts +0 -282
  68. package/dist/index-DVDMEql7.d.ts +0 -282
  69. package/dist/index.d.cts +0 -1246
  70. package/dist/index.d.ts +0 -1246
  71. package/dist/integration.d.cts +0 -14
  72. package/dist/integration.d.ts +0 -14
  73. package/dist/mongodb/index.d.cts +0 -134
  74. package/dist/mongodb/index.d.ts +0 -134
  75. package/dist/rest/index.d.cts +0 -56
  76. package/dist/rest/index.d.ts +0 -56
  77. package/dist/richtext-DrhORshE.d.cts +0 -5
  78. package/dist/richtext-DrhORshE.d.ts +0 -5
  79. package/dist/templates/index.d.cts +0 -107
  80. package/dist/templates/index.d.ts +0 -107
  81. package/dist/trpc/index.d.cts +0 -142
  82. package/dist/trpc/index.d.ts +0 -142
  83. package/dist/types-BcZiluXL.d.cts +0 -569
  84. package/dist/types-CpjuXbe7.d.cts +0 -150
  85. package/dist/types-CpjuXbe7.d.ts +0 -150
  86. package/dist/types-Dc8VAPhF.d.ts +0 -569
  87. package/dist/types-euTszc-1.d.cts +0 -294
  88. package/dist/types-euTszc-1.d.ts +0 -294
  89. package/dist/ws/index.d.cts +0 -88
  90. package/dist/ws/index.d.ts +0 -88
@@ -1,282 +0,0 @@
1
- import { C as CollectionConfig, G as GlobalConfig, i as KyroPlugin } from './types-BcZiluXL.cjs';
2
- import { F as Field } from './types-euTszc-1.cjs';
3
- import { ZodTypeAny } from 'zod';
4
-
5
- interface S3CompatibleConfig {
6
- bucket?: string;
7
- region?: string;
8
- accessKeyId?: string;
9
- secretAccessKey?: string;
10
- endpoint?: string;
11
- cdnUrl?: string;
12
- prefix?: string;
13
- }
14
- interface R2Config {
15
- accountId?: string;
16
- accessKeyId?: string;
17
- secretAccessKey?: string;
18
- bucket?: string;
19
- cdnUrl?: string;
20
- prefix?: string;
21
- publicDevUrl?: string;
22
- }
23
- interface GCSConfig {
24
- bucket?: string;
25
- projectId?: string;
26
- clientEmail?: string;
27
- privateKey?: string;
28
- cdnUrl?: string;
29
- prefix?: string;
30
- }
31
- interface BackblazeConfig {
32
- bucket?: string;
33
- accountId?: string;
34
- applicationKeyId?: string;
35
- applicationKey?: string;
36
- cdnUrl?: string;
37
- prefix?: string;
38
- }
39
- interface BunnyConfig {
40
- storageZone?: string;
41
- apiKey?: string;
42
- cdnUrl?: string;
43
- prefix?: string;
44
- }
45
- interface FTPConfig {
46
- host?: string;
47
- port?: number;
48
- user?: string;
49
- password?: string;
50
- secure?: boolean;
51
- baseUrl?: string;
52
- prefix?: string;
53
- }
54
- interface StorageConfig {
55
- type: string;
56
- s3: S3CompatibleConfig;
57
- r2: R2Config;
58
- gcs: GCSConfig;
59
- digitalocean: S3CompatibleConfig;
60
- backblaze: BackblazeConfig;
61
- wasabi: S3CompatibleConfig;
62
- bunny: BunnyConfig;
63
- ftp: FTPConfig;
64
- cloudinary: {
65
- cloudName?: string;
66
- apiKey?: string;
67
- apiSecret?: string;
68
- folder?: string;
69
- };
70
- imgix: {
71
- domain?: string;
72
- signKey?: string;
73
- };
74
- local: {
75
- uploadDir?: string;
76
- baseUrl?: string;
77
- };
78
- }
79
- interface EmailConfig {
80
- provider?: string;
81
- host?: string;
82
- port?: number;
83
- secure?: boolean;
84
- user?: string;
85
- pass?: string;
86
- from?: string;
87
- fromName?: string;
88
- replyTo?: string;
89
- }
90
- declare class ConfigService {
91
- private db;
92
- private cache;
93
- private loaded;
94
- private static readonly SENSITIVE_KEYS;
95
- constructor(db: any);
96
- /**
97
- * Initialize the service by loading all settings from the database
98
- */
99
- load(): Promise<void>;
100
- private ensureSettingsTable;
101
- /**
102
- * Load settings from the _globals_storage-settings table (SQLite fallback)
103
- * Maps nested global structure to flat key-value cache
104
- */
105
- private loadFromGlobals;
106
- /**
107
- * Get a settings value with environment fallback
108
- */
109
- get(key: string, envKey?: string, defaultValue?: string): string | undefined;
110
- /**
111
- * Get storage configuration
112
- */
113
- getStorageConfig(): StorageConfig;
114
- /**
115
- * Get email configuration
116
- */
117
- getEmailConfig(): EmailConfig;
118
- /**
119
- * Mask sensitive values for display
120
- */
121
- maskSensitive(key: string, value: string | undefined): string | undefined;
122
- /**
123
- * Update a setting in the database
124
- */
125
- set(key: string, value: string, description?: string): Promise<void>;
126
- }
127
-
128
- interface UploadOptions {
129
- folder?: string;
130
- filename?: string;
131
- mimeType?: string;
132
- metadata?: Record<string, unknown>;
133
- }
134
- interface UploadedFile {
135
- id: string;
136
- filename: string;
137
- originalName: string;
138
- mimeType: string;
139
- size: number;
140
- url: string;
141
- thumbnailUrl?: string;
142
- width?: number;
143
- height?: number;
144
- folder?: string;
145
- provider: string;
146
- metadata?: Record<string, unknown>;
147
- createdAt: string;
148
- }
149
- interface ImageTransforms {
150
- width?: number;
151
- height?: number;
152
- fit?: "clip" | "crop" | "fill" | "fillmax" | "scale" | "max" | "min";
153
- format?: "webp" | "avif" | "jpeg" | "jpg" | "png" | "gif";
154
- quality?: number;
155
- blur?: number;
156
- sharpen?: number;
157
- /** Crop region as percentages (0-100) of the original image */
158
- cropX?: number;
159
- cropY?: number;
160
- cropWidth?: number;
161
- cropHeight?: number;
162
- }
163
- interface StorageProvider {
164
- name: string;
165
- displayName: string;
166
- supportsDynamicResize: boolean;
167
- upload(file: File, options?: UploadOptions): Promise<UploadedFile>;
168
- uploadFromUrl(url: string, options?: UploadOptions): Promise<UploadedFile>;
169
- delete(url: string): Promise<void>;
170
- rename(oldUrl: string, newKey: string): Promise<string>;
171
- getImageUrl(url: string, transforms?: ImageTransforms): string;
172
- generateThumbnail(file: UploadedFile, size: {
173
- width: number;
174
- height: number;
175
- }): Promise<string>;
176
- list(prefix?: string): Promise<UploadedFile[]>;
177
- exists(url: string): Promise<boolean>;
178
- createFolder?(folder: string): Promise<void>;
179
- deleteFolder?(folder: string): Promise<void>;
180
- }
181
-
182
- declare function resolveProvider(configService: ConfigService): Promise<StorageProvider>;
183
-
184
- interface StorageProviderRegistration {
185
- type: string;
186
- displayName: string;
187
- pluginName?: string;
188
- configFields: Field[];
189
- configKey?: string;
190
- extractConfig: (storageConfig: StorageConfig, configKey: string) => any;
191
- extractRawConfig: (config: any) => any;
192
- factory: (config: any) => StorageProvider;
193
- }
194
- declare class StorageProviderRegistry {
195
- private providers;
196
- private providerToPlugin;
197
- private disabledPlugins;
198
- constructor();
199
- private registerLocal;
200
- private registerImgix;
201
- private registerBunny;
202
- register(registration: StorageProviderRegistration): void;
203
- unregister(type: string): void;
204
- get(type: string): StorageProviderRegistration | undefined;
205
- getAll(): StorageProviderRegistration[];
206
- getAllAvailable(isPluginEnabled?: (name: string) => boolean): StorageProviderRegistration[];
207
- has(type: string): boolean;
208
- resolve(type: string, storageConfig: StorageConfig): Promise<StorageProvider>;
209
- resolveWithConfig(type: string, config: any): Promise<StorageProvider>;
210
- getProviderPluginName(type: string): string | undefined;
211
- getAllPluginNames(): string[];
212
- setPluginEnabled(name: string, enabled: boolean): void;
213
- isPluginEnabled(name: string): boolean;
214
- }
215
-
216
- declare class Registry {
217
- storageProviders: StorageProviderRegistry;
218
- private collections;
219
- private globals;
220
- private plugins;
221
- private schemaCache;
222
- private initialized;
223
- addCollection(config: CollectionConfig): void;
224
- addCollections(configs: CollectionConfig[]): void;
225
- getCollection(slug: string): CollectionConfig | undefined;
226
- getCollections(): CollectionConfig[];
227
- getCollectionSlugs(): string[];
228
- hasCollection(slug: string): boolean;
229
- removeCollection(slug: string): boolean;
230
- addGlobal(config: GlobalConfig): void;
231
- /**
232
- * Add a global after the registry is already initialized.
233
- * Only for internal use (e.g. storage settings form built at startup).
234
- */
235
- addGlobalPostInit(config: GlobalConfig): void;
236
- private _addGlobalUnsafe;
237
- addGlobals(configs: GlobalConfig[]): void;
238
- getGlobal(slug: string): GlobalConfig | undefined;
239
- getGlobals(): GlobalConfig[];
240
- getGlobalSlugs(): string[];
241
- hasGlobal(slug: string): boolean;
242
- removeGlobal(slug: string): boolean;
243
- addPlugin(plugin: KyroPlugin): void;
244
- getPlugins(): KyroPlugin[];
245
- getZodSchema(slug: string): ZodTypeAny;
246
- getCreateZodSchema(slug: string): ZodTypeAny;
247
- getUpdateZodSchema(slug: string): ZodTypeAny;
248
- getWhereZodSchema(slug: string): ZodTypeAny;
249
- getFieldZodSchema(field: Field): ZodTypeAny;
250
- private clearSchemaCache;
251
- private applyFieldDefaults;
252
- getFields(slug: string): Field[];
253
- getFieldMap(slug: string): Map<string, Field>;
254
- getVisibleFields(slug: string): Field[];
255
- validate(): void;
256
- init(kyroInstance?: any): Promise<void>;
257
- isInitialized(): boolean;
258
- getPaginationDefaults(slug: string): {
259
- defaultLimit: number;
260
- limits: number[];
261
- };
262
- getDefaultSort(slug: string): string;
263
- getDefaultColumns(slug: string): string[];
264
- getAdminTitle(slug: string): string;
265
- getAdminLabel(slug: string): string;
266
- getAdminGroup(slug: string): string | undefined;
267
- getStats(): {
268
- collections: number;
269
- globals: number;
270
- plugins: number;
271
- fields: number;
272
- };
273
- toJSON(): {
274
- collections: CollectionConfig[];
275
- globals: GlobalConfig[];
276
- };
277
- }
278
- declare function getRegistry(): Registry;
279
- declare function resetRegistry(): void;
280
- declare function createRegistry(): Registry;
281
-
282
- export { ConfigService as C, type EmailConfig as E, Registry as R, type StorageProvider as S, type StorageConfig as a, resolveProvider as b, createRegistry as c, getRegistry as g, resetRegistry as r };
@@ -1,282 +0,0 @@
1
- import { C as CollectionConfig, G as GlobalConfig, i as KyroPlugin } from './types-Dc8VAPhF.js';
2
- import { F as Field } from './types-euTszc-1.js';
3
- import { ZodTypeAny } from 'zod';
4
-
5
- interface S3CompatibleConfig {
6
- bucket?: string;
7
- region?: string;
8
- accessKeyId?: string;
9
- secretAccessKey?: string;
10
- endpoint?: string;
11
- cdnUrl?: string;
12
- prefix?: string;
13
- }
14
- interface R2Config {
15
- accountId?: string;
16
- accessKeyId?: string;
17
- secretAccessKey?: string;
18
- bucket?: string;
19
- cdnUrl?: string;
20
- prefix?: string;
21
- publicDevUrl?: string;
22
- }
23
- interface GCSConfig {
24
- bucket?: string;
25
- projectId?: string;
26
- clientEmail?: string;
27
- privateKey?: string;
28
- cdnUrl?: string;
29
- prefix?: string;
30
- }
31
- interface BackblazeConfig {
32
- bucket?: string;
33
- accountId?: string;
34
- applicationKeyId?: string;
35
- applicationKey?: string;
36
- cdnUrl?: string;
37
- prefix?: string;
38
- }
39
- interface BunnyConfig {
40
- storageZone?: string;
41
- apiKey?: string;
42
- cdnUrl?: string;
43
- prefix?: string;
44
- }
45
- interface FTPConfig {
46
- host?: string;
47
- port?: number;
48
- user?: string;
49
- password?: string;
50
- secure?: boolean;
51
- baseUrl?: string;
52
- prefix?: string;
53
- }
54
- interface StorageConfig {
55
- type: string;
56
- s3: S3CompatibleConfig;
57
- r2: R2Config;
58
- gcs: GCSConfig;
59
- digitalocean: S3CompatibleConfig;
60
- backblaze: BackblazeConfig;
61
- wasabi: S3CompatibleConfig;
62
- bunny: BunnyConfig;
63
- ftp: FTPConfig;
64
- cloudinary: {
65
- cloudName?: string;
66
- apiKey?: string;
67
- apiSecret?: string;
68
- folder?: string;
69
- };
70
- imgix: {
71
- domain?: string;
72
- signKey?: string;
73
- };
74
- local: {
75
- uploadDir?: string;
76
- baseUrl?: string;
77
- };
78
- }
79
- interface EmailConfig {
80
- provider?: string;
81
- host?: string;
82
- port?: number;
83
- secure?: boolean;
84
- user?: string;
85
- pass?: string;
86
- from?: string;
87
- fromName?: string;
88
- replyTo?: string;
89
- }
90
- declare class ConfigService {
91
- private db;
92
- private cache;
93
- private loaded;
94
- private static readonly SENSITIVE_KEYS;
95
- constructor(db: any);
96
- /**
97
- * Initialize the service by loading all settings from the database
98
- */
99
- load(): Promise<void>;
100
- private ensureSettingsTable;
101
- /**
102
- * Load settings from the _globals_storage-settings table (SQLite fallback)
103
- * Maps nested global structure to flat key-value cache
104
- */
105
- private loadFromGlobals;
106
- /**
107
- * Get a settings value with environment fallback
108
- */
109
- get(key: string, envKey?: string, defaultValue?: string): string | undefined;
110
- /**
111
- * Get storage configuration
112
- */
113
- getStorageConfig(): StorageConfig;
114
- /**
115
- * Get email configuration
116
- */
117
- getEmailConfig(): EmailConfig;
118
- /**
119
- * Mask sensitive values for display
120
- */
121
- maskSensitive(key: string, value: string | undefined): string | undefined;
122
- /**
123
- * Update a setting in the database
124
- */
125
- set(key: string, value: string, description?: string): Promise<void>;
126
- }
127
-
128
- interface UploadOptions {
129
- folder?: string;
130
- filename?: string;
131
- mimeType?: string;
132
- metadata?: Record<string, unknown>;
133
- }
134
- interface UploadedFile {
135
- id: string;
136
- filename: string;
137
- originalName: string;
138
- mimeType: string;
139
- size: number;
140
- url: string;
141
- thumbnailUrl?: string;
142
- width?: number;
143
- height?: number;
144
- folder?: string;
145
- provider: string;
146
- metadata?: Record<string, unknown>;
147
- createdAt: string;
148
- }
149
- interface ImageTransforms {
150
- width?: number;
151
- height?: number;
152
- fit?: "clip" | "crop" | "fill" | "fillmax" | "scale" | "max" | "min";
153
- format?: "webp" | "avif" | "jpeg" | "jpg" | "png" | "gif";
154
- quality?: number;
155
- blur?: number;
156
- sharpen?: number;
157
- /** Crop region as percentages (0-100) of the original image */
158
- cropX?: number;
159
- cropY?: number;
160
- cropWidth?: number;
161
- cropHeight?: number;
162
- }
163
- interface StorageProvider {
164
- name: string;
165
- displayName: string;
166
- supportsDynamicResize: boolean;
167
- upload(file: File, options?: UploadOptions): Promise<UploadedFile>;
168
- uploadFromUrl(url: string, options?: UploadOptions): Promise<UploadedFile>;
169
- delete(url: string): Promise<void>;
170
- rename(oldUrl: string, newKey: string): Promise<string>;
171
- getImageUrl(url: string, transforms?: ImageTransforms): string;
172
- generateThumbnail(file: UploadedFile, size: {
173
- width: number;
174
- height: number;
175
- }): Promise<string>;
176
- list(prefix?: string): Promise<UploadedFile[]>;
177
- exists(url: string): Promise<boolean>;
178
- createFolder?(folder: string): Promise<void>;
179
- deleteFolder?(folder: string): Promise<void>;
180
- }
181
-
182
- declare function resolveProvider(configService: ConfigService): Promise<StorageProvider>;
183
-
184
- interface StorageProviderRegistration {
185
- type: string;
186
- displayName: string;
187
- pluginName?: string;
188
- configFields: Field[];
189
- configKey?: string;
190
- extractConfig: (storageConfig: StorageConfig, configKey: string) => any;
191
- extractRawConfig: (config: any) => any;
192
- factory: (config: any) => StorageProvider;
193
- }
194
- declare class StorageProviderRegistry {
195
- private providers;
196
- private providerToPlugin;
197
- private disabledPlugins;
198
- constructor();
199
- private registerLocal;
200
- private registerImgix;
201
- private registerBunny;
202
- register(registration: StorageProviderRegistration): void;
203
- unregister(type: string): void;
204
- get(type: string): StorageProviderRegistration | undefined;
205
- getAll(): StorageProviderRegistration[];
206
- getAllAvailable(isPluginEnabled?: (name: string) => boolean): StorageProviderRegistration[];
207
- has(type: string): boolean;
208
- resolve(type: string, storageConfig: StorageConfig): Promise<StorageProvider>;
209
- resolveWithConfig(type: string, config: any): Promise<StorageProvider>;
210
- getProviderPluginName(type: string): string | undefined;
211
- getAllPluginNames(): string[];
212
- setPluginEnabled(name: string, enabled: boolean): void;
213
- isPluginEnabled(name: string): boolean;
214
- }
215
-
216
- declare class Registry {
217
- storageProviders: StorageProviderRegistry;
218
- private collections;
219
- private globals;
220
- private plugins;
221
- private schemaCache;
222
- private initialized;
223
- addCollection(config: CollectionConfig): void;
224
- addCollections(configs: CollectionConfig[]): void;
225
- getCollection(slug: string): CollectionConfig | undefined;
226
- getCollections(): CollectionConfig[];
227
- getCollectionSlugs(): string[];
228
- hasCollection(slug: string): boolean;
229
- removeCollection(slug: string): boolean;
230
- addGlobal(config: GlobalConfig): void;
231
- /**
232
- * Add a global after the registry is already initialized.
233
- * Only for internal use (e.g. storage settings form built at startup).
234
- */
235
- addGlobalPostInit(config: GlobalConfig): void;
236
- private _addGlobalUnsafe;
237
- addGlobals(configs: GlobalConfig[]): void;
238
- getGlobal(slug: string): GlobalConfig | undefined;
239
- getGlobals(): GlobalConfig[];
240
- getGlobalSlugs(): string[];
241
- hasGlobal(slug: string): boolean;
242
- removeGlobal(slug: string): boolean;
243
- addPlugin(plugin: KyroPlugin): void;
244
- getPlugins(): KyroPlugin[];
245
- getZodSchema(slug: string): ZodTypeAny;
246
- getCreateZodSchema(slug: string): ZodTypeAny;
247
- getUpdateZodSchema(slug: string): ZodTypeAny;
248
- getWhereZodSchema(slug: string): ZodTypeAny;
249
- getFieldZodSchema(field: Field): ZodTypeAny;
250
- private clearSchemaCache;
251
- private applyFieldDefaults;
252
- getFields(slug: string): Field[];
253
- getFieldMap(slug: string): Map<string, Field>;
254
- getVisibleFields(slug: string): Field[];
255
- validate(): void;
256
- init(kyroInstance?: any): Promise<void>;
257
- isInitialized(): boolean;
258
- getPaginationDefaults(slug: string): {
259
- defaultLimit: number;
260
- limits: number[];
261
- };
262
- getDefaultSort(slug: string): string;
263
- getDefaultColumns(slug: string): string[];
264
- getAdminTitle(slug: string): string;
265
- getAdminLabel(slug: string): string;
266
- getAdminGroup(slug: string): string | undefined;
267
- getStats(): {
268
- collections: number;
269
- globals: number;
270
- plugins: number;
271
- fields: number;
272
- };
273
- toJSON(): {
274
- collections: CollectionConfig[];
275
- globals: GlobalConfig[];
276
- };
277
- }
278
- declare function getRegistry(): Registry;
279
- declare function resetRegistry(): void;
280
- declare function createRegistry(): Registry;
281
-
282
- export { ConfigService as C, type EmailConfig as E, Registry as R, type StorageProvider as S, type StorageConfig as a, resolveProvider as b, createRegistry as c, getRegistry as g, resetRegistry as r };