@mintlify/validation 0.1.709 → 0.1.711
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/mint-config/schemas/v1/basics.js +1 -1
- package/dist/mint-config/schemas/v2/index.d.ts +70 -70
- package/dist/mint-config/schemas/v2/properties/appearance.js +1 -1
- package/dist/mint-config/schemas/v2/properties/background.js +23 -8
- package/dist/mint-config/schemas/v2/properties/banner.js +4 -2
- package/dist/mint-config/schemas/v2/properties/colors.js +4 -4
- package/dist/mint-config/schemas/v2/properties/contextual.d.ts +6 -6
- package/dist/mint-config/schemas/v2/properties/contextual.js +4 -4
- package/dist/mint-config/schemas/v2/properties/description.js +1 -1
- package/dist/mint-config/schemas/v2/properties/errors.js +1 -1
- package/dist/mint-config/schemas/v2/properties/favicon.js +8 -6
- package/dist/mint-config/schemas/v2/properties/fonts/index.js +16 -7
- package/dist/mint-config/schemas/v2/properties/footer.js +2 -2
- package/dist/mint-config/schemas/v2/properties/icons.js +1 -1
- package/dist/mint-config/schemas/v2/properties/logo.js +4 -4
- package/dist/mint-config/schemas/v2/properties/metadata.js +1 -1
- package/dist/mint-config/schemas/v2/properties/name.js +1 -5
- package/dist/mint-config/schemas/v2/properties/redirects.d.ts +13 -0
- package/dist/mint-config/schemas/v2/properties/redirects.js +3 -3
- package/dist/mint-config/schemas/v2/properties/reusable/page.js +1 -1
- package/dist/mint-config/schemas/v2/properties/seo.js +1 -1
- package/dist/mint-config/schemas/v2/properties/styling.js +9 -7
- package/dist/mint-config/schemas/v2/properties/thumbnails.js +1 -1
- package/dist/mint-config/schemas/v2/properties/variables.js +1 -1
- package/dist/mint-config/schemas/v2/themes/almond.d.ts +7 -7
- package/dist/mint-config/schemas/v2/themes/aspen.d.ts +7 -7
- package/dist/mint-config/schemas/v2/themes/linden.d.ts +7 -7
- package/dist/mint-config/schemas/v2/themes/luma.d.ts +7 -7
- package/dist/mint-config/schemas/v2/themes/maple.d.ts +7 -7
- package/dist/mint-config/schemas/v2/themes/mint.d.ts +7 -7
- package/dist/mint-config/schemas/v2/themes/palm.d.ts +7 -7
- package/dist/mint-config/schemas/v2/themes/reusable/index.d.ts +5 -5
- package/dist/mint-config/schemas/v2/themes/sequoia.d.ts +7 -7
- package/dist/mint-config/schemas/v2/themes/themes.js +3 -1
- package/dist/mint-config/schemas/v2/themes/willow.d.ts +7 -7
- package/dist/mint-config/validateConfig.d.ts +18 -18
- package/dist/openapi/OpenApiToEndpointConverter.js +3 -3
- package/dist/openapi/ParametersConverter.js +1 -1
- package/dist/openapi/SchemaConverter.js +1 -1
- package/dist/openapi/utils.js +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +6 -8
|
@@ -843,7 +843,7 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
843
843
|
};
|
|
844
844
|
} | undefined;
|
|
845
845
|
contextual?: {
|
|
846
|
-
options: ("
|
|
846
|
+
options: ("copy" | "assistant" | "view" | "chatgpt" | "claude" | "perplexity" | "grok" | "aistudio" | "devin" | "windsurf" | "mcp" | "add-mcp" | "cursor" | "vscode" | "devin-mcp" | {
|
|
847
847
|
href: string | {
|
|
848
848
|
base: string;
|
|
849
849
|
query?: {
|
|
@@ -1219,7 +1219,7 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
1219
1219
|
};
|
|
1220
1220
|
} | undefined;
|
|
1221
1221
|
contextual?: {
|
|
1222
|
-
options: ("
|
|
1222
|
+
options: ("copy" | "assistant" | "view" | "chatgpt" | "claude" | "perplexity" | "grok" | "aistudio" | "devin" | "windsurf" | "mcp" | "add-mcp" | "cursor" | "vscode" | "devin-mcp" | {
|
|
1223
1223
|
href: string | {
|
|
1224
1224
|
base: string;
|
|
1225
1225
|
query?: {
|
|
@@ -1595,7 +1595,7 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
1595
1595
|
};
|
|
1596
1596
|
} | undefined;
|
|
1597
1597
|
contextual?: {
|
|
1598
|
-
options: ("
|
|
1598
|
+
options: ("copy" | "assistant" | "view" | "chatgpt" | "claude" | "perplexity" | "grok" | "aistudio" | "devin" | "windsurf" | "mcp" | "add-mcp" | "cursor" | "vscode" | "devin-mcp" | {
|
|
1599
1599
|
href: string | {
|
|
1600
1600
|
base: string;
|
|
1601
1601
|
query?: {
|
|
@@ -1971,7 +1971,7 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
1971
1971
|
};
|
|
1972
1972
|
} | undefined;
|
|
1973
1973
|
contextual?: {
|
|
1974
|
-
options: ("
|
|
1974
|
+
options: ("copy" | "assistant" | "view" | "chatgpt" | "claude" | "perplexity" | "grok" | "aistudio" | "devin" | "windsurf" | "mcp" | "add-mcp" | "cursor" | "vscode" | "devin-mcp" | {
|
|
1975
1975
|
href: string | {
|
|
1976
1976
|
base: string;
|
|
1977
1977
|
query?: {
|
|
@@ -2347,7 +2347,7 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
2347
2347
|
};
|
|
2348
2348
|
} | undefined;
|
|
2349
2349
|
contextual?: {
|
|
2350
|
-
options: ("
|
|
2350
|
+
options: ("copy" | "assistant" | "view" | "chatgpt" | "claude" | "perplexity" | "grok" | "aistudio" | "devin" | "windsurf" | "mcp" | "add-mcp" | "cursor" | "vscode" | "devin-mcp" | {
|
|
2351
2351
|
href: string | {
|
|
2352
2352
|
base: string;
|
|
2353
2353
|
query?: {
|
|
@@ -2723,7 +2723,7 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
2723
2723
|
};
|
|
2724
2724
|
} | undefined;
|
|
2725
2725
|
contextual?: {
|
|
2726
|
-
options: ("
|
|
2726
|
+
options: ("copy" | "assistant" | "view" | "chatgpt" | "claude" | "perplexity" | "grok" | "aistudio" | "devin" | "windsurf" | "mcp" | "add-mcp" | "cursor" | "vscode" | "devin-mcp" | {
|
|
2727
2727
|
href: string | {
|
|
2728
2728
|
base: string;
|
|
2729
2729
|
query?: {
|
|
@@ -3099,7 +3099,7 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
3099
3099
|
};
|
|
3100
3100
|
} | undefined;
|
|
3101
3101
|
contextual?: {
|
|
3102
|
-
options: ("
|
|
3102
|
+
options: ("copy" | "assistant" | "view" | "chatgpt" | "claude" | "perplexity" | "grok" | "aistudio" | "devin" | "windsurf" | "mcp" | "add-mcp" | "cursor" | "vscode" | "devin-mcp" | {
|
|
3103
3103
|
href: string | {
|
|
3104
3104
|
base: string;
|
|
3105
3105
|
query?: {
|
|
@@ -3475,7 +3475,7 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
3475
3475
|
};
|
|
3476
3476
|
} | undefined;
|
|
3477
3477
|
contextual?: {
|
|
3478
|
-
options: ("
|
|
3478
|
+
options: ("copy" | "assistant" | "view" | "chatgpt" | "claude" | "perplexity" | "grok" | "aistudio" | "devin" | "windsurf" | "mcp" | "add-mcp" | "cursor" | "vscode" | "devin-mcp" | {
|
|
3479
3479
|
href: string | {
|
|
3480
3480
|
base: string;
|
|
3481
3481
|
query?: {
|
|
@@ -3851,7 +3851,7 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
3851
3851
|
};
|
|
3852
3852
|
} | undefined;
|
|
3853
3853
|
contextual?: {
|
|
3854
|
-
options: ("
|
|
3854
|
+
options: ("copy" | "assistant" | "view" | "chatgpt" | "claude" | "perplexity" | "grok" | "aistudio" | "devin" | "windsurf" | "mcp" | "add-mcp" | "cursor" | "vscode" | "devin-mcp" | {
|
|
3855
3855
|
href: string | {
|
|
3856
3856
|
base: string;
|
|
3857
3857
|
query?: {
|
|
@@ -4230,7 +4230,7 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
4230
4230
|
};
|
|
4231
4231
|
} | undefined;
|
|
4232
4232
|
contextual?: {
|
|
4233
|
-
options: ("
|
|
4233
|
+
options: ("copy" | "assistant" | "view" | "chatgpt" | "claude" | "perplexity" | "grok" | "aistudio" | "devin" | "windsurf" | "mcp" | "add-mcp" | "cursor" | "vscode" | "devin-mcp" | {
|
|
4234
4234
|
href: string | {
|
|
4235
4235
|
base: string;
|
|
4236
4236
|
query?: {
|
|
@@ -4606,7 +4606,7 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
4606
4606
|
};
|
|
4607
4607
|
} | undefined;
|
|
4608
4608
|
contextual?: {
|
|
4609
|
-
options: ("
|
|
4609
|
+
options: ("copy" | "assistant" | "view" | "chatgpt" | "claude" | "perplexity" | "grok" | "aistudio" | "devin" | "windsurf" | "mcp" | "add-mcp" | "cursor" | "vscode" | "devin-mcp" | {
|
|
4610
4610
|
href: string | {
|
|
4611
4611
|
base: string;
|
|
4612
4612
|
query?: {
|
|
@@ -4982,7 +4982,7 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
4982
4982
|
};
|
|
4983
4983
|
} | undefined;
|
|
4984
4984
|
contextual?: {
|
|
4985
|
-
options: ("
|
|
4985
|
+
options: ("copy" | "assistant" | "view" | "chatgpt" | "claude" | "perplexity" | "grok" | "aistudio" | "devin" | "windsurf" | "mcp" | "add-mcp" | "cursor" | "vscode" | "devin-mcp" | {
|
|
4986
4986
|
href: string | {
|
|
4987
4987
|
base: string;
|
|
4988
4988
|
query?: {
|
|
@@ -5358,7 +5358,7 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
5358
5358
|
};
|
|
5359
5359
|
} | undefined;
|
|
5360
5360
|
contextual?: {
|
|
5361
|
-
options: ("
|
|
5361
|
+
options: ("copy" | "assistant" | "view" | "chatgpt" | "claude" | "perplexity" | "grok" | "aistudio" | "devin" | "windsurf" | "mcp" | "add-mcp" | "cursor" | "vscode" | "devin-mcp" | {
|
|
5362
5362
|
href: string | {
|
|
5363
5363
|
base: string;
|
|
5364
5364
|
query?: {
|
|
@@ -5734,7 +5734,7 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
5734
5734
|
};
|
|
5735
5735
|
} | undefined;
|
|
5736
5736
|
contextual?: {
|
|
5737
|
-
options: ("
|
|
5737
|
+
options: ("copy" | "assistant" | "view" | "chatgpt" | "claude" | "perplexity" | "grok" | "aistudio" | "devin" | "windsurf" | "mcp" | "add-mcp" | "cursor" | "vscode" | "devin-mcp" | {
|
|
5738
5738
|
href: string | {
|
|
5739
5739
|
base: string;
|
|
5740
5740
|
query?: {
|
|
@@ -6110,7 +6110,7 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
6110
6110
|
};
|
|
6111
6111
|
} | undefined;
|
|
6112
6112
|
contextual?: {
|
|
6113
|
-
options: ("
|
|
6113
|
+
options: ("copy" | "assistant" | "view" | "chatgpt" | "claude" | "perplexity" | "grok" | "aistudio" | "devin" | "windsurf" | "mcp" | "add-mcp" | "cursor" | "vscode" | "devin-mcp" | {
|
|
6114
6114
|
href: string | {
|
|
6115
6115
|
base: string;
|
|
6116
6116
|
query?: {
|
|
@@ -6486,7 +6486,7 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
6486
6486
|
};
|
|
6487
6487
|
} | undefined;
|
|
6488
6488
|
contextual?: {
|
|
6489
|
-
options: ("
|
|
6489
|
+
options: ("copy" | "assistant" | "view" | "chatgpt" | "claude" | "perplexity" | "grok" | "aistudio" | "devin" | "windsurf" | "mcp" | "add-mcp" | "cursor" | "vscode" | "devin-mcp" | {
|
|
6490
6490
|
href: string | {
|
|
6491
6491
|
base: string;
|
|
6492
6492
|
query?: {
|
|
@@ -6862,7 +6862,7 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
6862
6862
|
};
|
|
6863
6863
|
} | undefined;
|
|
6864
6864
|
contextual?: {
|
|
6865
|
-
options: ("
|
|
6865
|
+
options: ("copy" | "assistant" | "view" | "chatgpt" | "claude" | "perplexity" | "grok" | "aistudio" | "devin" | "windsurf" | "mcp" | "add-mcp" | "cursor" | "vscode" | "devin-mcp" | {
|
|
6866
6866
|
href: string | {
|
|
6867
6867
|
base: string;
|
|
6868
6868
|
query?: {
|
|
@@ -7238,7 +7238,7 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
7238
7238
|
};
|
|
7239
7239
|
} | undefined;
|
|
7240
7240
|
contextual?: {
|
|
7241
|
-
options: ("
|
|
7241
|
+
options: ("copy" | "assistant" | "view" | "chatgpt" | "claude" | "perplexity" | "grok" | "aistudio" | "devin" | "windsurf" | "mcp" | "add-mcp" | "cursor" | "vscode" | "devin-mcp" | {
|
|
7242
7242
|
href: string | {
|
|
7243
7243
|
base: string;
|
|
7244
7244
|
query?: {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { type } from 'arktype';
|
|
2
2
|
import { BaseConverter } from './BaseConverter.js';
|
|
3
|
+
import { InvalidSchemaError } from './errors.js';
|
|
4
|
+
import { generateExampleFromSchema } from './generateExampleFromSchema.js';
|
|
3
5
|
import { generateFirstIncrementalSchema } from './IncrementalEvaluator.js';
|
|
4
6
|
import { IncrementalParametersConverter, ParametersConverter } from './ParametersConverter.js';
|
|
5
7
|
import { SchemaConverter } from './SchemaConverter.js';
|
|
6
8
|
import { SecurityConverter } from './SecurityConverter.js';
|
|
7
9
|
import { ServersConverter } from './ServersConverter.js';
|
|
8
|
-
import { InvalidSchemaError } from './errors.js';
|
|
9
|
-
import { generateExampleFromSchema } from './generateExampleFromSchema.js';
|
|
10
10
|
import { EndpointLocation, XMcpType, XMintType } from './types/endpoint.js';
|
|
11
11
|
import { dereference } from './utils.js';
|
|
12
12
|
export class BaseOpenApiToEndpointConverter extends BaseConverter {
|
|
@@ -36,7 +36,7 @@ export class BaseOpenApiToEndpointConverter extends BaseConverter {
|
|
|
36
36
|
var _a, _b, _c, _d, _e, _f;
|
|
37
37
|
const securityRequirements = this.location.type === 'webhook'
|
|
38
38
|
? this.operationObject.security
|
|
39
|
-
: (_a = this.operationObject.security) !== null && _a !== void 0 ? _a : this.document.security;
|
|
39
|
+
: ((_a = this.operationObject.security) !== null && _a !== void 0 ? _a : this.document.security);
|
|
40
40
|
const securitySchemes = (_b = this.document.components) === null || _b === void 0 ? void 0 : _b.securitySchemes;
|
|
41
41
|
const security = SecurityConverter.convert(securityRequirements, securitySchemes, this.safeParse);
|
|
42
42
|
const parameters = this.convertParameters();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseConverter } from './BaseConverter.js';
|
|
2
|
+
import { InvalidSchemaError } from './errors.js';
|
|
2
3
|
import { generateFirstIncrementalSchema } from './IncrementalEvaluator.js';
|
|
3
4
|
import { SchemaConverter } from './SchemaConverter.js';
|
|
4
|
-
import { InvalidSchemaError } from './errors.js';
|
|
5
5
|
import { copyKeyIfDefined, dereference } from './utils.js';
|
|
6
6
|
const PARAM_NAMES = ['path', 'header', 'query', 'cookie'];
|
|
7
7
|
export class ParametersConverter extends BaseConverter {
|
|
@@ -626,7 +626,7 @@ const combine = (schema1, schema2, key, transform) => {
|
|
|
626
626
|
var _a;
|
|
627
627
|
return schema1[key] !== undefined && schema2[key] !== undefined
|
|
628
628
|
? transform(schema1[key], schema2[key])
|
|
629
|
-
: (_a = schema1[key]) !== null && _a !== void 0 ? _a : schema2[key];
|
|
629
|
+
: ((_a = schema1[key]) !== null && _a !== void 0 ? _a : schema2[key]);
|
|
630
630
|
};
|
|
631
631
|
/**
|
|
632
632
|
* Given an OpenAPI 3.1 schema, this function will attempt to determine the schema type
|
package/dist/openapi/utils.js
CHANGED
|
@@ -145,7 +145,7 @@ const combine = (schema1, schema2, key, transform) => {
|
|
|
145
145
|
var _a;
|
|
146
146
|
return schema1[key] !== undefined && schema2[key] !== undefined
|
|
147
147
|
? transform(schema1[key], schema2[key])
|
|
148
|
-
: (_a = schema1[key]) !== null && _a !== void 0 ? _a : schema2[key];
|
|
148
|
+
: ((_a = schema1[key]) !== null && _a !== void 0 ? _a : schema2[key]);
|
|
149
149
|
};
|
|
150
150
|
const combineKeyIfDefined = (key, source, destination, transform) => {
|
|
151
151
|
addKeyIfDefined(key, combine(source, destination, key, transform), destination);
|