@tinacms/schema-tools 0.0.0-f608f48-20250617065117 → 0.0.0-f894432-20251221235528
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.
- package/dist/index.js +2467 -2432
- package/dist/schema/resolveForm.d.ts +1 -1
- package/dist/types/index.d.ts +127 -8
- package/dist/validate/schema.d.ts +192 -27
- package/dist/validate/tinaCloudSchemaConfig.d.ts +105 -0
- package/package.json +6 -14
- package/dist/index.mjs +0 -2736
|
@@ -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("
|
|
16
|
+
component: NonNullable<import("..").TinaField<true>["ui"]>["component"];
|
|
17
17
|
type: string;
|
|
18
18
|
}[];
|
|
19
19
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -125,10 +125,35 @@ 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;
|
|
131
151
|
ui?: UIField<Type, true> & ExtraFieldUIProps;
|
|
152
|
+
/**
|
|
153
|
+
* Defines where new items will be added in the list.
|
|
154
|
+
* If not specified, defaults to `append`.
|
|
155
|
+
*/
|
|
156
|
+
addItemBehavior?: 'append' | 'prepend';
|
|
132
157
|
} : List extends false ? {
|
|
133
158
|
list?: false;
|
|
134
159
|
ui?: UIField<Type, false> & ExtraFieldUIProps;
|
|
@@ -168,14 +193,24 @@ type DateFormatProps = {
|
|
|
168
193
|
* dateFormat: 'YYYY MM DD'
|
|
169
194
|
* ```
|
|
170
195
|
*/
|
|
171
|
-
dateFormat?: string;
|
|
172
|
-
timeFormat?: string;
|
|
196
|
+
dateFormat?: string | boolean;
|
|
197
|
+
timeFormat?: string | boolean;
|
|
173
198
|
};
|
|
174
199
|
export type DateTimeField = (FieldGeneric<string, undefined, DateFormatProps> | FieldGeneric<string, true, DateFormatProps> | FieldGeneric<string, false, DateFormatProps>) & BaseField & {
|
|
175
200
|
type: 'datetime';
|
|
176
201
|
};
|
|
177
202
|
export type ImageField = (FieldGeneric<string, undefined> | FieldGeneric<string, true> | FieldGeneric<string, false>) & BaseField & {
|
|
178
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;
|
|
179
214
|
};
|
|
180
215
|
type ReferenceFieldOptions = {
|
|
181
216
|
optionComponent?: OptionComponent;
|
|
@@ -386,7 +421,7 @@ export interface Config<CMSCallback = undefined, FormifyCallback = undefined, Do
|
|
|
386
421
|
/**
|
|
387
422
|
* The Schema is used to define the shape of the content.
|
|
388
423
|
*
|
|
389
|
-
* https://tina.io/docs/
|
|
424
|
+
* https://tina.io/docs/r/the-config-file/
|
|
390
425
|
*/
|
|
391
426
|
schema: Schema;
|
|
392
427
|
/**
|
|
@@ -423,11 +458,27 @@ export interface Config<CMSCallback = undefined, FormifyCallback = undefined, Do
|
|
|
423
458
|
* ```
|
|
424
459
|
* [more info](https://vercel.com/docs/concepts/deployments/generated-urls#url-with-git-branch)
|
|
425
460
|
*/
|
|
426
|
-
previewUrl
|
|
461
|
+
previewUrl?: (context: {
|
|
427
462
|
branch: string;
|
|
428
463
|
}) => {
|
|
429
464
|
url: string;
|
|
430
465
|
};
|
|
466
|
+
/**
|
|
467
|
+
* Opt out of update checks - this will prevent the CMS for checking for new versions
|
|
468
|
+
* If true, the CMS will not check for updates.
|
|
469
|
+
* Defaults to false if not specified.
|
|
470
|
+
*/
|
|
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
|
+
};
|
|
431
482
|
};
|
|
432
483
|
/**
|
|
433
484
|
* Configurations for the autogenerated GraphQL HTTP client
|
|
@@ -507,7 +558,7 @@ export interface Config<CMSCallback = undefined, FormifyCallback = undefined, Do
|
|
|
507
558
|
} | {
|
|
508
559
|
/**
|
|
509
560
|
* Use Git-backed assets for media, these values will
|
|
510
|
-
* [Learn more](https://tina.io/docs/
|
|
561
|
+
* [Learn more](https://tina.io/docs/r/repo-based-media/)
|
|
511
562
|
*/
|
|
512
563
|
tina: {
|
|
513
564
|
/**
|
|
@@ -527,6 +578,54 @@ export interface Config<CMSCallback = undefined, FormifyCallback = undefined, Do
|
|
|
527
578
|
loadCustomStore?: never;
|
|
528
579
|
accept?: string | string[];
|
|
529
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
|
+
};
|
|
530
629
|
search?: ({
|
|
531
630
|
/**
|
|
532
631
|
* An instance of a search client like Algolia
|
|
@@ -551,6 +650,25 @@ export interface Config<CMSCallback = undefined, FormifyCallback = undefined, Do
|
|
|
551
650
|
* regex used for splitting tokens (default: /[\p{L}\d_]+/)
|
|
552
651
|
*/
|
|
553
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
|
+
};
|
|
554
672
|
};
|
|
555
673
|
}) & {
|
|
556
674
|
/**
|
|
@@ -582,7 +700,7 @@ export interface Schema<WithNamespace extends boolean = false> {
|
|
|
582
700
|
/**
|
|
583
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).
|
|
584
702
|
*
|
|
585
|
-
* https://tina.io/docs/
|
|
703
|
+
* https://tina.io/docs/r/content-modelling-collections/
|
|
586
704
|
*/
|
|
587
705
|
collections: Collection<WithNamespace>[];
|
|
588
706
|
/**
|
|
@@ -621,7 +739,7 @@ type TemplateCollection<WithNamespace extends boolean = false> = {
|
|
|
621
739
|
/**
|
|
622
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".
|
|
623
741
|
*
|
|
624
|
-
* https://tina.io/docs/
|
|
742
|
+
* https://tina.io/docs/r/content-modelling-templates/
|
|
625
743
|
*/
|
|
626
744
|
templates: Template<WithNamespace>[];
|
|
627
745
|
fields?: undefined;
|
|
@@ -630,7 +748,7 @@ type FieldCollection<WithNamespace extends boolean = false> = {
|
|
|
630
748
|
/**
|
|
631
749
|
* Fields define the shape of the content and the user input.
|
|
632
750
|
*
|
|
633
|
-
* https://tina.io/docs/
|
|
751
|
+
* https://tina.io/docs/r/string-fields/
|
|
634
752
|
*/
|
|
635
753
|
fields: TinaField<WithNamespace>[];
|
|
636
754
|
templates?: undefined;
|
|
@@ -687,6 +805,7 @@ export interface UICollection<Form = any, CMS = any, TinaForm = any> {
|
|
|
687
805
|
allowedActions?: {
|
|
688
806
|
create?: boolean;
|
|
689
807
|
delete?: boolean;
|
|
808
|
+
createFolder?: boolean;
|
|
690
809
|
createNestedFolder?: boolean;
|
|
691
810
|
};
|
|
692
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<
|
|
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("
|
|
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("
|
|
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("
|
|
40
|
+
fields?: import("..").TinaField[];
|
|
41
41
|
label?: string;
|
|
42
42
|
}, {
|
|
43
43
|
name?: string;
|
|
44
|
-
fields?: import("
|
|
44
|
+
fields?: import("..").TinaField[];
|
|
45
45
|
label?: string;
|
|
46
46
|
}>, {
|
|
47
47
|
name?: string;
|
|
48
|
-
fields?: import("
|
|
48
|
+
fields?: import("..").TinaField[];
|
|
49
49
|
label?: string;
|
|
50
50
|
}, {
|
|
51
51
|
name?: string;
|
|
52
|
-
fields?: import("
|
|
52
|
+
fields?: import("..").TinaField[];
|
|
53
53
|
label?: string;
|
|
54
54
|
}>, "many">>, {
|
|
55
55
|
name?: string;
|
|
56
|
-
fields?: import("
|
|
56
|
+
fields?: import("..").TinaField[];
|
|
57
57
|
label?: string;
|
|
58
58
|
}[], {
|
|
59
59
|
name?: string;
|
|
60
|
-
fields?: import("
|
|
60
|
+
fields?: import("..").TinaField[];
|
|
61
61
|
label?: string;
|
|
62
62
|
}[]>;
|
|
63
|
-
}
|
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
64
|
name?: string;
|
|
65
65
|
templates?: {
|
|
66
66
|
name?: string;
|
|
67
|
-
fields?: import("
|
|
67
|
+
fields?: import("..").TinaField[];
|
|
68
68
|
label?: string;
|
|
69
69
|
}[];
|
|
70
|
-
fields?: import("
|
|
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("
|
|
80
|
+
fields?: import("..").TinaField[];
|
|
81
81
|
label?: string;
|
|
82
82
|
}[];
|
|
83
|
-
fields?: import("
|
|
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("
|
|
93
|
+
fields?: import("..").TinaField[];
|
|
94
94
|
label?: string;
|
|
95
95
|
}[];
|
|
96
|
-
fields?: import("
|
|
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("
|
|
106
|
+
fields?: import("..").TinaField[];
|
|
107
107
|
label?: string;
|
|
108
108
|
}[];
|
|
109
|
-
fields?: import("
|
|
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("
|
|
345
|
+
fields?: import("..").TinaField[];
|
|
241
346
|
label?: string;
|
|
242
347
|
}[];
|
|
243
|
-
fields?: import("
|
|
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("
|
|
398
|
+
fields?: import("..").TinaField[];
|
|
279
399
|
label?: string;
|
|
280
400
|
}[];
|
|
281
|
-
fields?: import("
|
|
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("
|
|
451
|
+
fields?: import("..").TinaField[];
|
|
317
452
|
label?: string;
|
|
318
453
|
}[];
|
|
319
|
-
fields?: import("
|
|
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("
|
|
504
|
+
fields?: import("..").TinaField[];
|
|
355
505
|
label?: string;
|
|
356
506
|
}[];
|
|
357
|
-
fields?: import("
|
|
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
|
};
|