@tinacms/schema-tools 0.0.0-c466c52-20250801052040 → 0.0.0-c706b9f-20251222081038

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.
@@ -13,7 +13,7 @@ export declare const resolveForm: ({ collection, basename, template, schema, }:
13
13
  fields: {
14
14
  [key: string]: unknown;
15
15
  name: string;
16
- component: NonNullable<import("../types/index").TinaField<true>["ui"]>["component"];
16
+ component: NonNullable<import("..").TinaField<true>["ui"]>["component"];
17
17
  type: string;
18
18
  }[];
19
19
  };
@@ -125,6 +125,26 @@ export type UIField<Type, List extends boolean> = {
125
125
  * @deprecated use `defaultItem` at the collection level instead
126
126
  */
127
127
  defaultValue?: List extends true ? Type[] : Type;
128
+ /**
129
+ * The color format for the color picker component.
130
+ * Can be 'hex' or 'rgb'.
131
+ */
132
+ colorFormat?: 'hex' | 'rgb';
133
+ /**
134
+ * The widget style for the color picker component.
135
+ * Can be 'sketch' or 'block'.
136
+ */
137
+ widget?: 'sketch' | 'block';
138
+ /**
139
+ * The width of the color picker component.
140
+ * Accepts CSS width values (e.g., '350px').
141
+ */
142
+ width?: string;
143
+ /**
144
+ * Preset colors for the color picker component.
145
+ * An array of color strings (e.g., ['#D0021B', '#F5A623']).
146
+ */
147
+ colors?: string[];
128
148
  };
129
149
  type FieldGeneric<Type, List extends boolean | undefined, ExtraFieldUIProps = {}> = List extends true ? {
130
150
  list: true;
@@ -173,14 +193,24 @@ type DateFormatProps = {
173
193
  * dateFormat: 'YYYY MM DD'
174
194
  * ```
175
195
  */
176
- dateFormat?: string;
177
- timeFormat?: string;
196
+ dateFormat?: string | boolean;
197
+ timeFormat?: string | boolean;
178
198
  };
179
199
  export type DateTimeField = (FieldGeneric<string, undefined, DateFormatProps> | FieldGeneric<string, true, DateFormatProps> | FieldGeneric<string, false, DateFormatProps>) & BaseField & {
180
200
  type: 'datetime';
181
201
  };
182
202
  export type ImageField = (FieldGeneric<string, undefined> | FieldGeneric<string, true> | FieldGeneric<string, false>) & BaseField & {
183
203
  type: 'image';
204
+ /**
205
+ * A function that returns the upload directory path based on the form values.
206
+ * This is used to organize uploaded images into specific folders.
207
+ *
208
+ * @example
209
+ * ```ts
210
+ * uploadDir: (formValues) => `uploads/${formValues.category}`
211
+ * ```
212
+ */
213
+ uploadDir?: (formValues: Record<string, any>) => string;
184
214
  };
185
215
  type ReferenceFieldOptions = {
186
216
  optionComponent?: OptionComponent;
@@ -391,7 +421,7 @@ export interface Config<CMSCallback = undefined, FormifyCallback = undefined, Do
391
421
  /**
392
422
  * The Schema is used to define the shape of the content.
393
423
  *
394
- * https://tina.io/docs/reference/schema/
424
+ * https://tina.io/docs/r/the-config-file/
395
425
  */
396
426
  schema: Schema;
397
427
  /**
@@ -439,6 +469,16 @@ export interface Config<CMSCallback = undefined, FormifyCallback = undefined, Do
439
469
  * Defaults to false if not specified.
440
470
  */
441
471
  optOutOfUpdateCheck?: boolean;
472
+ /**
473
+ * Regular expression pattern that folder names must match when creating new folders.
474
+ * Only applies to newly created folders, not existing ones.
475
+ *
476
+ * @example "^[a-z0-9-]+$" - allows lowercase letters, numbers, and hyphens only
477
+ * @example "^[A-Za-z0-9_-]+$" - allows letters, numbers, underscores, and hyphens
478
+ */
479
+ regexValidation?: {
480
+ folderNameRegex?: string;
481
+ };
442
482
  };
443
483
  /**
444
484
  * Configurations for the autogenerated GraphQL HTTP client
@@ -518,7 +558,7 @@ export interface Config<CMSCallback = undefined, FormifyCallback = undefined, Do
518
558
  } | {
519
559
  /**
520
560
  * Use Git-backed assets for media, these values will
521
- * [Learn more](https://tina.io/docs/reference/media/repo-based/)
561
+ * [Learn more](https://tina.io/docs/r/repo-based-media/)
522
562
  */
523
563
  tina: {
524
564
  /**
@@ -538,6 +578,54 @@ export interface Config<CMSCallback = undefined, FormifyCallback = undefined, Do
538
578
  loadCustomStore?: never;
539
579
  accept?: string | string[];
540
580
  };
581
+ /**
582
+ * Configuration for repository-related UI features.
583
+ *
584
+ * This allows you to configure how the CMS displays repository information
585
+ * and generates links to view file history in your Git provider (e.g., GitHub, GitLab).
586
+ *
587
+ * @example
588
+ *
589
+ * repoProvider: {
590
+ * defaultBranchName: 'main',
591
+ * historyUrl: ({ relativePath, branch }) => ({
592
+ * url: `https://github.com/owner/repo/commits/${branch}/${relativePath}`
593
+ * })
594
+ * }
595
+ * */
596
+ repoProvider?: {
597
+ /**
598
+ * The default branch name to use when in local mode or when no branch is specified.
599
+ * When not in local mode, TinaCMS will use the branch selected in the editor.
600
+ *
601
+ * This is typically your main/master branch name (e.g., "main", "master").
602
+ */
603
+ defaultBranchName?: string;
604
+ /**
605
+ * A function that generates a URL to view the commit history for a specific file.
606
+ *
607
+ * This URL is used to link to your Git provider's history view (e.g., GitHub's commits page).
608
+ * The function receives the file's relative path and current branch, and should return
609
+ * a URL object with the full URL to the history page.
610
+ *
611
+ * @param context - Context object containing file and branch information
612
+ * @param context.relativePath - The relative path of the file from the repository root
613
+ * @param context.branch - The current branch name
614
+ * @returns An object with a `url` property containing the full URL to the history page
615
+ *
616
+ * @example
617
+ *s
618
+ * historyUrl: ({ relativePath, branch }) => ({
619
+ * url: `https://github.com/tinacms/tinacms/commits/${branch}/examples/next-2024/${relativePath}`
620
+ * })
621
+ * */
622
+ historyUrl?: (context: {
623
+ relativePath: string;
624
+ branch: string;
625
+ }) => {
626
+ url: string;
627
+ };
628
+ };
541
629
  search?: ({
542
630
  /**
543
631
  * An instance of a search client like Algolia
@@ -562,6 +650,25 @@ export interface Config<CMSCallback = undefined, FormifyCallback = undefined, Do
562
650
  * regex used for splitting tokens (default: /[\p{L}\d_]+/)
563
651
  */
564
652
  tokenSplitRegex?: string;
653
+ /**
654
+ * Enable fuzzy search by default (default: true)
655
+ */
656
+ fuzzyEnabled?: boolean;
657
+ /**
658
+ * Fuzzy search options
659
+ */
660
+ fuzzyOptions?: {
661
+ /** Maximum edit distance for fuzzy matching (default: 2) */
662
+ maxDistance?: number;
663
+ /** Minimum similarity score 0-1 for matches (default: 0.6) */
664
+ minSimilarity?: number;
665
+ /** Maximum number of fuzzy matches to return per term (default: 10) */
666
+ maxResults?: number;
667
+ /** Use Damerau-Levenshtein (allows transpositions) (default: true) */
668
+ useTranspositions?: boolean;
669
+ /** Case sensitive matching (default: false) */
670
+ caseSensitive?: boolean;
671
+ };
565
672
  };
566
673
  }) & {
567
674
  /**
@@ -593,7 +700,7 @@ export interface Schema<WithNamespace extends boolean = false> {
593
700
  /**
594
701
  * Collections represent a type of content (EX, blog post, page, author, etc). We recommend using singular naming in a collection (Ex: use post and not posts).
595
702
  *
596
- * https://tina.io/docs/reference/collections/
703
+ * https://tina.io/docs/r/content-modelling-collections/
597
704
  */
598
705
  collections: Collection<WithNamespace>[];
599
706
  /**
@@ -632,7 +739,7 @@ type TemplateCollection<WithNamespace extends boolean = false> = {
632
739
  /**
633
740
  * In most cases, just using fields is enough, however templates can be used when there are multiple variants of the same collection or object. For example in a "page" collection there might be a need for a marketing page template and a content page template, both under the collection "page".
634
741
  *
635
- * https://tina.io/docs/reference/templates/
742
+ * https://tina.io/docs/r/content-modelling-templates/
636
743
  */
637
744
  templates: Template<WithNamespace>[];
638
745
  fields?: undefined;
@@ -641,7 +748,7 @@ type FieldCollection<WithNamespace extends boolean = false> = {
641
748
  /**
642
749
  * Fields define the shape of the content and the user input.
643
750
  *
644
- * https://tina.io/docs/reference/fields/
751
+ * https://tina.io/docs/r/string-fields/
645
752
  */
646
753
  fields: TinaField<WithNamespace>[];
647
754
  templates?: undefined;
@@ -698,6 +805,7 @@ export interface UICollection<Form = any, CMS = any, TinaForm = any> {
698
805
  allowedActions?: {
699
806
  create?: boolean;
700
807
  delete?: boolean;
808
+ createFolder?: boolean;
701
809
  createNestedFolder?: boolean;
702
810
  };
703
811
  /**
@@ -22,52 +22,52 @@ export declare const CollectionBaseSchema: z.ZodObject<{
22
22
  isAuthCollection?: boolean;
23
23
  }>;
24
24
  export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
25
- collections: z.ZodArray<z.ZodEffects<z.ZodObject<z.objectUtil.extendShape<{
25
+ collections: z.ZodArray<z.ZodEffects<z.ZodObject<{
26
26
  label: z.ZodOptional<z.ZodString>;
27
27
  name: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
28
28
  path: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
29
29
  format: z.ZodOptional<z.ZodEnum<["mdx", "md", "markdown", "json", "yaml", "yml", "toml"]>>;
30
30
  isAuthCollection: z.ZodOptional<z.ZodBoolean>;
31
31
  isDetached: z.ZodOptional<z.ZodBoolean>;
32
- }, {
33
- fields: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodType<import("../types/index").TinaField, z.ZodTypeDef, import("../types/index").TinaField>, "many">>, import("../types/index").TinaField[], import("../types/index").TinaField[]>, import("../types/index").TinaField[], import("../types/index").TinaField[]>, import("../types/index").TinaField[], import("../types/index").TinaField[]>, import("../types/index").TinaField[], import("../types/index").TinaField[]>;
32
+ } & {
33
+ fields: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodType<import("..").TinaField, z.ZodTypeDef, import("..").TinaField>, "many">>, import("..").TinaField[], import("..").TinaField[]>, import("..").TinaField[], import("..").TinaField[]>, import("..").TinaField[], import("..").TinaField[]>, import("..").TinaField[], import("..").TinaField[]>;
34
34
  templates: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
35
35
  label: z.ZodString;
36
36
  name: z.ZodEffects<z.ZodString, string, string>;
37
- fields: z.ZodArray<z.ZodType<import("../types/index").TinaField, z.ZodTypeDef, import("../types/index").TinaField>, "many">;
37
+ fields: z.ZodArray<z.ZodType<import("..").TinaField, z.ZodTypeDef, import("..").TinaField>, "many">;
38
38
  }, "strip", z.ZodTypeAny, {
39
39
  name?: string;
40
- fields?: import("../types/index").TinaField[];
40
+ fields?: import("..").TinaField[];
41
41
  label?: string;
42
42
  }, {
43
43
  name?: string;
44
- fields?: import("../types/index").TinaField[];
44
+ fields?: import("..").TinaField[];
45
45
  label?: string;
46
46
  }>, {
47
47
  name?: string;
48
- fields?: import("../types/index").TinaField[];
48
+ fields?: import("..").TinaField[];
49
49
  label?: string;
50
50
  }, {
51
51
  name?: string;
52
- fields?: import("../types/index").TinaField[];
52
+ fields?: import("..").TinaField[];
53
53
  label?: string;
54
54
  }>, "many">>, {
55
55
  name?: string;
56
- fields?: import("../types/index").TinaField[];
56
+ fields?: import("..").TinaField[];
57
57
  label?: string;
58
58
  }[], {
59
59
  name?: string;
60
- fields?: import("../types/index").TinaField[];
60
+ fields?: import("..").TinaField[];
61
61
  label?: string;
62
62
  }[]>;
63
- }>, "strip", z.ZodTypeAny, {
63
+ }, "strip", z.ZodTypeAny, {
64
64
  name?: string;
65
65
  templates?: {
66
66
  name?: string;
67
- fields?: import("../types/index").TinaField[];
67
+ fields?: import("..").TinaField[];
68
68
  label?: string;
69
69
  }[];
70
- fields?: import("../types/index").TinaField[];
70
+ fields?: import("..").TinaField[];
71
71
  label?: string;
72
72
  path?: string;
73
73
  format?: "mdx" | "md" | "markdown" | "json" | "yaml" | "yml" | "toml";
@@ -77,10 +77,10 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
77
77
  name?: string;
78
78
  templates?: {
79
79
  name?: string;
80
- fields?: import("../types/index").TinaField[];
80
+ fields?: import("..").TinaField[];
81
81
  label?: string;
82
82
  }[];
83
- fields?: import("../types/index").TinaField[];
83
+ fields?: import("..").TinaField[];
84
84
  label?: string;
85
85
  path?: string;
86
86
  format?: "mdx" | "md" | "markdown" | "json" | "yaml" | "yml" | "toml";
@@ -90,10 +90,10 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
90
90
  name?: string;
91
91
  templates?: {
92
92
  name?: string;
93
- fields?: import("../types/index").TinaField[];
93
+ fields?: import("..").TinaField[];
94
94
  label?: string;
95
95
  }[];
96
- fields?: import("../types/index").TinaField[];
96
+ fields?: import("..").TinaField[];
97
97
  label?: string;
98
98
  path?: string;
99
99
  format?: "mdx" | "md" | "markdown" | "json" | "yaml" | "yml" | "toml";
@@ -103,10 +103,10 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
103
103
  name?: string;
104
104
  templates?: {
105
105
  name?: string;
106
- fields?: import("../types/index").TinaField[];
106
+ fields?: import("..").TinaField[];
107
107
  label?: string;
108
108
  }[];
109
- fields?: import("../types/index").TinaField[];
109
+ fields?: import("..").TinaField[];
110
110
  label?: string;
111
111
  path?: string;
112
112
  format?: "mdx" | "md" | "markdown" | "json" | "yaml" | "yml" | "toml";
@@ -156,14 +156,50 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
156
156
  indexerToken: z.ZodOptional<z.ZodString>;
157
157
  stopwordLanguages: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
158
158
  tokenSplitRegex: z.ZodOptional<z.ZodString>;
159
+ fuzzyEnabled: z.ZodOptional<z.ZodBoolean>;
160
+ fuzzyOptions: z.ZodOptional<z.ZodObject<{
161
+ maxDistance: z.ZodOptional<z.ZodNumber>;
162
+ minSimilarity: z.ZodOptional<z.ZodNumber>;
163
+ maxResults: z.ZodOptional<z.ZodNumber>;
164
+ useTranspositions: z.ZodOptional<z.ZodBoolean>;
165
+ caseSensitive: z.ZodOptional<z.ZodBoolean>;
166
+ }, "strict", z.ZodTypeAny, {
167
+ maxDistance?: number;
168
+ minSimilarity?: number;
169
+ maxResults?: number;
170
+ useTranspositions?: boolean;
171
+ caseSensitive?: boolean;
172
+ }, {
173
+ maxDistance?: number;
174
+ minSimilarity?: number;
175
+ maxResults?: number;
176
+ useTranspositions?: boolean;
177
+ caseSensitive?: boolean;
178
+ }>>;
159
179
  }, "strict", z.ZodTypeAny, {
160
180
  indexerToken?: string;
161
181
  stopwordLanguages?: [string, ...string[]];
162
182
  tokenSplitRegex?: string;
183
+ fuzzyEnabled?: boolean;
184
+ fuzzyOptions?: {
185
+ maxDistance?: number;
186
+ minSimilarity?: number;
187
+ maxResults?: number;
188
+ useTranspositions?: boolean;
189
+ caseSensitive?: boolean;
190
+ };
163
191
  }, {
164
192
  indexerToken?: string;
165
193
  stopwordLanguages?: [string, ...string[]];
166
194
  tokenSplitRegex?: string;
195
+ fuzzyEnabled?: boolean;
196
+ fuzzyOptions?: {
197
+ maxDistance?: number;
198
+ minSimilarity?: number;
199
+ maxResults?: number;
200
+ useTranspositions?: boolean;
201
+ caseSensitive?: boolean;
202
+ };
167
203
  }>>;
168
204
  searchClient: z.ZodOptional<z.ZodAny>;
169
205
  indexBatchSize: z.ZodOptional<z.ZodNumber>;
@@ -174,6 +210,14 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
174
210
  indexerToken?: string;
175
211
  stopwordLanguages?: [string, ...string[]];
176
212
  tokenSplitRegex?: string;
213
+ fuzzyEnabled?: boolean;
214
+ fuzzyOptions?: {
215
+ maxDistance?: number;
216
+ minSimilarity?: number;
217
+ maxResults?: number;
218
+ useTranspositions?: boolean;
219
+ caseSensitive?: boolean;
220
+ };
177
221
  };
178
222
  searchClient?: any;
179
223
  indexBatchSize?: number;
@@ -183,10 +227,41 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
183
227
  indexerToken?: string;
184
228
  stopwordLanguages?: [string, ...string[]];
185
229
  tokenSplitRegex?: string;
230
+ fuzzyEnabled?: boolean;
231
+ fuzzyOptions?: {
232
+ maxDistance?: number;
233
+ minSimilarity?: number;
234
+ maxResults?: number;
235
+ useTranspositions?: boolean;
236
+ caseSensitive?: boolean;
237
+ };
186
238
  };
187
239
  searchClient?: any;
188
240
  indexBatchSize?: number;
189
241
  }>>;
242
+ ui: z.ZodOptional<z.ZodObject<{
243
+ previewUrl: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>>;
244
+ optOutOfUpdateCheck: z.ZodOptional<z.ZodBoolean>;
245
+ regexValidation: z.ZodOptional<z.ZodObject<{
246
+ folderNameRegex: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
247
+ }, "strip", z.ZodTypeAny, {
248
+ folderNameRegex?: string;
249
+ }, {
250
+ folderNameRegex?: string;
251
+ }>>;
252
+ }, "strip", z.ZodTypeAny, {
253
+ previewUrl?: (...args: unknown[]) => unknown;
254
+ optOutOfUpdateCheck?: boolean;
255
+ regexValidation?: {
256
+ folderNameRegex?: string;
257
+ };
258
+ }, {
259
+ previewUrl?: (...args: unknown[]) => unknown;
260
+ optOutOfUpdateCheck?: boolean;
261
+ regexValidation?: {
262
+ folderNameRegex?: string;
263
+ };
264
+ }>>;
190
265
  }, "strip", z.ZodTypeAny, {
191
266
  search?: {
192
267
  maxSearchIndexFieldLength?: number;
@@ -194,10 +269,25 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
194
269
  indexerToken?: string;
195
270
  stopwordLanguages?: [string, ...string[]];
196
271
  tokenSplitRegex?: string;
272
+ fuzzyEnabled?: boolean;
273
+ fuzzyOptions?: {
274
+ maxDistance?: number;
275
+ minSimilarity?: number;
276
+ maxResults?: number;
277
+ useTranspositions?: boolean;
278
+ caseSensitive?: boolean;
279
+ };
197
280
  };
198
281
  searchClient?: any;
199
282
  indexBatchSize?: number;
200
283
  };
284
+ ui?: {
285
+ previewUrl?: (...args: unknown[]) => unknown;
286
+ optOutOfUpdateCheck?: boolean;
287
+ regexValidation?: {
288
+ folderNameRegex?: string;
289
+ };
290
+ };
201
291
  client?: {
202
292
  referenceDepth?: number;
203
293
  };
@@ -216,10 +306,25 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
216
306
  indexerToken?: string;
217
307
  stopwordLanguages?: [string, ...string[]];
218
308
  tokenSplitRegex?: string;
309
+ fuzzyEnabled?: boolean;
310
+ fuzzyOptions?: {
311
+ maxDistance?: number;
312
+ minSimilarity?: number;
313
+ maxResults?: number;
314
+ useTranspositions?: boolean;
315
+ caseSensitive?: boolean;
316
+ };
219
317
  };
220
318
  searchClient?: any;
221
319
  indexBatchSize?: number;
222
320
  };
321
+ ui?: {
322
+ previewUrl?: (...args: unknown[]) => unknown;
323
+ optOutOfUpdateCheck?: boolean;
324
+ regexValidation?: {
325
+ folderNameRegex?: string;
326
+ };
327
+ };
223
328
  client?: {
224
329
  referenceDepth?: number;
225
330
  };
@@ -237,10 +342,10 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
237
342
  name?: string;
238
343
  templates?: {
239
344
  name?: string;
240
- fields?: import("../types/index").TinaField[];
345
+ fields?: import("..").TinaField[];
241
346
  label?: string;
242
347
  }[];
243
- fields?: import("../types/index").TinaField[];
348
+ fields?: import("..").TinaField[];
244
349
  label?: string;
245
350
  path?: string;
246
351
  format?: "mdx" | "md" | "markdown" | "json" | "yaml" | "yml" | "toml";
@@ -254,10 +359,25 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
254
359
  indexerToken?: string;
255
360
  stopwordLanguages?: [string, ...string[]];
256
361
  tokenSplitRegex?: string;
362
+ fuzzyEnabled?: boolean;
363
+ fuzzyOptions?: {
364
+ maxDistance?: number;
365
+ minSimilarity?: number;
366
+ maxResults?: number;
367
+ useTranspositions?: boolean;
368
+ caseSensitive?: boolean;
369
+ };
257
370
  };
258
371
  searchClient?: any;
259
372
  indexBatchSize?: number;
260
373
  };
374
+ ui?: {
375
+ previewUrl?: (...args: unknown[]) => unknown;
376
+ optOutOfUpdateCheck?: boolean;
377
+ regexValidation?: {
378
+ folderNameRegex?: string;
379
+ };
380
+ };
261
381
  client?: {
262
382
  referenceDepth?: number;
263
383
  };
@@ -275,10 +395,10 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
275
395
  name?: string;
276
396
  templates?: {
277
397
  name?: string;
278
- fields?: import("../types/index").TinaField[];
398
+ fields?: import("..").TinaField[];
279
399
  label?: string;
280
400
  }[];
281
- fields?: import("../types/index").TinaField[];
401
+ fields?: import("..").TinaField[];
282
402
  label?: string;
283
403
  path?: string;
284
404
  format?: "mdx" | "md" | "markdown" | "json" | "yaml" | "yml" | "toml";
@@ -292,10 +412,25 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
292
412
  indexerToken?: string;
293
413
  stopwordLanguages?: [string, ...string[]];
294
414
  tokenSplitRegex?: string;
415
+ fuzzyEnabled?: boolean;
416
+ fuzzyOptions?: {
417
+ maxDistance?: number;
418
+ minSimilarity?: number;
419
+ maxResults?: number;
420
+ useTranspositions?: boolean;
421
+ caseSensitive?: boolean;
422
+ };
295
423
  };
296
424
  searchClient?: any;
297
425
  indexBatchSize?: number;
298
426
  };
427
+ ui?: {
428
+ previewUrl?: (...args: unknown[]) => unknown;
429
+ optOutOfUpdateCheck?: boolean;
430
+ regexValidation?: {
431
+ folderNameRegex?: string;
432
+ };
433
+ };
299
434
  client?: {
300
435
  referenceDepth?: number;
301
436
  };
@@ -313,10 +448,10 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
313
448
  name?: string;
314
449
  templates?: {
315
450
  name?: string;
316
- fields?: import("../types/index").TinaField[];
451
+ fields?: import("..").TinaField[];
317
452
  label?: string;
318
453
  }[];
319
- fields?: import("../types/index").TinaField[];
454
+ fields?: import("..").TinaField[];
320
455
  label?: string;
321
456
  path?: string;
322
457
  format?: "mdx" | "md" | "markdown" | "json" | "yaml" | "yml" | "toml";
@@ -330,10 +465,25 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
330
465
  indexerToken?: string;
331
466
  stopwordLanguages?: [string, ...string[]];
332
467
  tokenSplitRegex?: string;
468
+ fuzzyEnabled?: boolean;
469
+ fuzzyOptions?: {
470
+ maxDistance?: number;
471
+ minSimilarity?: number;
472
+ maxResults?: number;
473
+ useTranspositions?: boolean;
474
+ caseSensitive?: boolean;
475
+ };
333
476
  };
334
477
  searchClient?: any;
335
478
  indexBatchSize?: number;
336
479
  };
480
+ ui?: {
481
+ previewUrl?: (...args: unknown[]) => unknown;
482
+ optOutOfUpdateCheck?: boolean;
483
+ regexValidation?: {
484
+ folderNameRegex?: string;
485
+ };
486
+ };
337
487
  client?: {
338
488
  referenceDepth?: number;
339
489
  };
@@ -351,10 +501,10 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
351
501
  name?: string;
352
502
  templates?: {
353
503
  name?: string;
354
- fields?: import("../types/index").TinaField[];
504
+ fields?: import("..").TinaField[];
355
505
  label?: string;
356
506
  }[];
357
- fields?: import("../types/index").TinaField[];
507
+ fields?: import("..").TinaField[];
358
508
  label?: string;
359
509
  path?: string;
360
510
  format?: "mdx" | "md" | "markdown" | "json" | "yaml" | "yml" | "toml";
@@ -368,10 +518,25 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
368
518
  indexerToken?: string;
369
519
  stopwordLanguages?: [string, ...string[]];
370
520
  tokenSplitRegex?: string;
521
+ fuzzyEnabled?: boolean;
522
+ fuzzyOptions?: {
523
+ maxDistance?: number;
524
+ minSimilarity?: number;
525
+ maxResults?: number;
526
+ useTranspositions?: boolean;
527
+ caseSensitive?: boolean;
528
+ };
371
529
  };
372
530
  searchClient?: any;
373
531
  indexBatchSize?: number;
374
532
  };
533
+ ui?: {
534
+ previewUrl?: (...args: unknown[]) => unknown;
535
+ optOutOfUpdateCheck?: boolean;
536
+ regexValidation?: {
537
+ folderNameRegex?: string;
538
+ };
539
+ };
375
540
  client?: {
376
541
  referenceDepth?: number;
377
542
  };