@mintlify/validation 0.1.278 → 0.1.280
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/v2/index.d.ts +170 -70
- package/dist/mint-config/schemas/v2/properties/api.d.ts +26 -10
- package/dist/mint-config/schemas/v2/properties/api.js +8 -3
- package/dist/mint-config/schemas/v2/themes/linden.d.ts +34 -14
- package/dist/mint-config/schemas/v2/themes/maple.d.ts +34 -14
- package/dist/mint-config/schemas/v2/themes/mint.d.ts +34 -14
- package/dist/mint-config/schemas/v2/themes/palm.d.ts +34 -14
- package/dist/mint-config/schemas/v2/themes/reusable/index.d.ts +26 -10
- package/dist/mint-config/schemas/v2/themes/willow.d.ts +34 -14
- package/dist/mint-config/upgrades/upgradeToDocsConfig.js +20 -16
- package/dist/mint-config/validateConfig.d.ts +40 -20
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/apiPlaygroundInputs.d.ts +8 -0
- package/dist/types/apiPlaygroundInputs.js +1 -0
- package/dist/types/deployment/auth.d.ts +61 -0
- package/dist/types/deployment/auth.js +1 -0
- package/dist/types/deployment/deploymentEntitlements.d.ts +4 -0
- package/dist/types/deployment/deploymentEntitlements.js +18 -0
- package/dist/types/deployment/deploymentFeedback.d.ts +5 -0
- package/dist/types/deployment/deploymentFeedback.js +1 -0
- package/dist/types/deployment/entitlementConfiguration.d.ts +3 -0
- package/dist/types/deployment/entitlementConfiguration.js +1 -0
- package/dist/types/deployment/gitSource.d.ts +20 -0
- package/dist/types/deployment/gitSource.js +1 -0
- package/dist/types/deployment/index.d.ts +55 -0
- package/dist/types/deployment/index.js +7 -0
- package/dist/types/deployment/sourceCheck.d.ts +9 -0
- package/dist/types/deployment/sourceCheck.js +3 -0
- package/dist/types/deployment/stripe.d.ts +15 -0
- package/dist/types/deployment/stripe.js +1 -0
- package/dist/types/deployment/trieve.d.ts +8 -0
- package/dist/types/deployment/trieve.js +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.js +3 -0
- package/dist/types/serverStaticProps.d.ts +3 -2
- package/dist/types/userInfo.d.ts +8 -0
- package/dist/types/userInfo.js +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type GitSource = GithubSource | GitlabSource;
|
|
2
|
+
export type GithubSource = {
|
|
3
|
+
type: 'github';
|
|
4
|
+
owner: string;
|
|
5
|
+
repo: string;
|
|
6
|
+
deployBranch: string;
|
|
7
|
+
contentDirectory: string;
|
|
8
|
+
isPrivate: boolean;
|
|
9
|
+
};
|
|
10
|
+
export type GitlabSource = {
|
|
11
|
+
type: 'gitlab';
|
|
12
|
+
owner: string;
|
|
13
|
+
repo: string;
|
|
14
|
+
projectId: number;
|
|
15
|
+
deployBranch: string;
|
|
16
|
+
contentDirectory: string;
|
|
17
|
+
isPrivate: boolean;
|
|
18
|
+
hostUrl?: string;
|
|
19
|
+
};
|
|
20
|
+
export type GitSourceType = GitSource['type'];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Analytics, MintConfig, InkeepType, FeatureFlags } from '@mintlify/models';
|
|
2
|
+
import { DocsConfig } from '../../mint-config/schemas/v2/index.js';
|
|
3
|
+
import { Auth, PreviewDeploymentAuth, UserAuth } from './auth.js';
|
|
4
|
+
import { DeploymentEntitlements } from './deploymentEntitlements.js';
|
|
5
|
+
import { DeploymentFeedbackType } from './deploymentFeedback.js';
|
|
6
|
+
import { GitlabSource, GithubSource } from './gitSource.js';
|
|
7
|
+
import { GitSource } from './gitSource.js';
|
|
8
|
+
import { SourceCheckType } from './sourceCheck.js';
|
|
9
|
+
import { StripeDeploymentDataType } from './stripe.js';
|
|
10
|
+
import { TrieveType } from './trieve.js';
|
|
11
|
+
export type DeploymentType = {
|
|
12
|
+
name: string;
|
|
13
|
+
subdomain: string;
|
|
14
|
+
orgId: string;
|
|
15
|
+
createdAt?: string;
|
|
16
|
+
gitSource: GitSource;
|
|
17
|
+
sourceChecks?: SourceCheckType[];
|
|
18
|
+
analytics?: Analytics;
|
|
19
|
+
basePath: string;
|
|
20
|
+
customDomains?: string[];
|
|
21
|
+
mintConfig: MintConfig;
|
|
22
|
+
docsConfig: DocsConfig;
|
|
23
|
+
inkeep?: InkeepType;
|
|
24
|
+
featureFlags?: FeatureFlags;
|
|
25
|
+
isWhiteLabeled?: boolean;
|
|
26
|
+
trieve?: TrieveType;
|
|
27
|
+
disableAiChat?: boolean;
|
|
28
|
+
auth?: Auth;
|
|
29
|
+
previewDeploymentAuth?: PreviewDeploymentAuth;
|
|
30
|
+
userAuth?: UserAuth;
|
|
31
|
+
stripe?: StripeDeploymentDataType;
|
|
32
|
+
preview?: {
|
|
33
|
+
mainDeploymentId?: string;
|
|
34
|
+
};
|
|
35
|
+
entitlements?: DeploymentEntitlements;
|
|
36
|
+
feedback?: DeploymentFeedbackType;
|
|
37
|
+
};
|
|
38
|
+
export type StaticPropsDeploymentAuthType = Pick<Auth, 'partial'>;
|
|
39
|
+
export type StaticPropsDeploymentType = Pick<DeploymentType, 'basePath' | 'disableAiChat' | 'entitlements' | 'featureFlags' | 'feedback' | 'inkeep' | 'isWhiteLabeled' | 'mintConfig' | 'subdomain' | 'trieve' | 'userAuth' | 'docsConfig'> & {
|
|
40
|
+
auth?: StaticPropsDeploymentAuthType;
|
|
41
|
+
gitSource: GitSource;
|
|
42
|
+
};
|
|
43
|
+
export type GithubDeploymentType = DeploymentType & {
|
|
44
|
+
gitSource: GithubSource;
|
|
45
|
+
};
|
|
46
|
+
export type GitlabDeploymentType = DeploymentType & {
|
|
47
|
+
gitSource: GitlabSource;
|
|
48
|
+
};
|
|
49
|
+
export * from './auth.js';
|
|
50
|
+
export * from './deploymentEntitlements.js';
|
|
51
|
+
export * from './deploymentFeedback.js';
|
|
52
|
+
export * from './gitSource.js';
|
|
53
|
+
export * from './sourceCheck.js';
|
|
54
|
+
export * from './stripe.js';
|
|
55
|
+
export * from './trieve.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DeploymentEntitlement } from './deploymentEntitlements.js';
|
|
2
|
+
export type SourceCheckKey = 'link-rot' | 'vale-spellcheck';
|
|
3
|
+
export declare function GetSourceCheckEntitlement(sourceCheckKey: SourceCheckKey): DeploymentEntitlement;
|
|
4
|
+
export type SourceCheckType = {
|
|
5
|
+
type: SourceCheckKey;
|
|
6
|
+
config: {
|
|
7
|
+
level: 'disabled' | 'warning' | 'blocking';
|
|
8
|
+
};
|
|
9
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type StripeDeploymentDataType = {
|
|
2
|
+
subscriptionItemId: string;
|
|
3
|
+
addOns?: {
|
|
4
|
+
cssAndJs?: string;
|
|
5
|
+
previewDeployments?: string;
|
|
6
|
+
};
|
|
7
|
+
meteredBilling?: {
|
|
8
|
+
aiChat?: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export type StripeOrgDataType = {
|
|
12
|
+
customerId: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const deploymentAddOnTypes: readonly ["cssAndJs", "previewDeployments"];
|
|
15
|
+
export type DeploymentAddOnType = (typeof deploymentAddOnTypes)[number];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const deploymentAddOnTypes = ['cssAndJs', 'previewDeployments'];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import { DecoratedNavigationConfig } from '../mint-config/schemas/v2/properties/
|
|
1
|
+
import type { StaticPropsOrgType, CustomerPageType, SnippetType, CssFileType, JsFileType, OpenApiMetadata, DecoratedNavigation } from '@mintlify/models';
|
|
2
|
+
import { DecoratedNavigationConfig } from '../mint-config/schemas/v2/properties/index.js';
|
|
3
|
+
import { StaticPropsDeploymentType } from './deployment/index.js';
|
|
3
4
|
export type ServerStaticProps = {
|
|
4
5
|
deployment: StaticPropsDeploymentType;
|
|
5
6
|
navigation: DecoratedNavigation;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ApiPlaygroundInputs } from './apiPlaygroundInputs.js';
|
|
2
|
+
export type UserInfoInputs = Partial<Pick<ApiPlaygroundInputs, 'header' | 'cookie' | 'query' | 'server'>>;
|
|
3
|
+
export type UserInfo = {
|
|
4
|
+
expiresAt?: number;
|
|
5
|
+
groups?: string[];
|
|
6
|
+
content?: Record<string, unknown>;
|
|
7
|
+
apiPlaygroundInputs?: UserInfoInputs;
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintlify/validation",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.280",
|
|
4
4
|
"description": "Validates mint.json files",
|
|
5
5
|
"author": "Mintlify, Inc.",
|
|
6
6
|
"bugs": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"format:check": "prettier . --check"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@mintlify/models": "0.0.
|
|
38
|
+
"@mintlify/models": "0.0.169",
|
|
39
39
|
"is-absolute-url": "^4.0.1",
|
|
40
40
|
"lcm": "^0.0.3",
|
|
41
41
|
"lodash": "^4.17.21",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"typescript": "^5.5.3",
|
|
61
61
|
"vitest": "^2.0.4"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "bcdd5468a08f2c032299f6e9d9af4b5ac750e0ab"
|
|
64
64
|
}
|