@mintlify/models 0.0.14 → 0.0.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 (76) hide show
  1. package/README.md +5 -5
  2. package/dist/constants.d.ts +0 -0
  3. package/dist/constants.js +1 -0
  4. package/dist/entities/customerPageType.d.ts +8 -8
  5. package/dist/entities/customerPageType.js +1 -1
  6. package/dist/entities/deploymentHistoryType.d.ts +15 -15
  7. package/dist/entities/deploymentHistoryType.js +1 -1
  8. package/dist/entities/deploymentType.d.ts +17 -17
  9. package/dist/entities/deploymentType.js +1 -1
  10. package/dist/entities/index.d.ts +13 -12
  11. package/dist/entities/index.js +7 -6
  12. package/dist/entities/orgType.d.ts +10 -10
  13. package/dist/entities/orgType.js +1 -1
  14. package/dist/entities/snippetType.d.ts +5 -5
  15. package/dist/entities/snippetType.js +1 -1
  16. package/dist/entities/userType.d.ts +7 -7
  17. package/dist/entities/userType.js +1 -1
  18. package/dist/index.d.ts +3 -3
  19. package/dist/index.js +3 -3
  20. package/dist/mintconfig/analytics.d.ts +52 -0
  21. package/dist/mintconfig/{topBarCta.js → analytics.js} +1 -1
  22. package/dist/mintconfig/anchor.d.ts +9 -0
  23. package/dist/mintconfig/anchor.js +1 -0
  24. package/dist/mintconfig/apiConfig.d.ts +17 -0
  25. package/dist/mintconfig/apiConfig.js +1 -0
  26. package/dist/mintconfig/author.d.ts +4 -4
  27. package/dist/mintconfig/author.js +1 -1
  28. package/dist/mintconfig/configNavGroup.d.ts +6 -0
  29. package/dist/mintconfig/configNavGroup.js +1 -0
  30. package/dist/mintconfig/footerSocial.d.ts +4 -4
  31. package/dist/mintconfig/footerSocial.js +1 -1
  32. package/dist/mintconfig/footerSocials.d.ts +1 -1
  33. package/dist/mintconfig/footerSocials.js +1 -1
  34. package/dist/mintconfig/gradient.d.ts +5 -5
  35. package/dist/mintconfig/gradient.js +1 -1
  36. package/dist/mintconfig/iconTypes.d.ts +2 -2
  37. package/dist/mintconfig/iconTypes.js +9 -9
  38. package/dist/mintconfig/index.d.ts +21 -21
  39. package/dist/mintconfig/index.js +2 -2
  40. package/dist/mintconfig/logo.d.ts +5 -5
  41. package/dist/mintconfig/logo.js +1 -1
  42. package/dist/mintconfig/mintConfigIntegrations.d.ts +4 -4
  43. package/dist/mintconfig/mintConfigIntegrations.js +1 -1
  44. package/dist/mintconfig/navbarLink.d.ts +5 -5
  45. package/dist/mintconfig/navbarLink.js +1 -1
  46. package/dist/mintconfig/navigation.d.ts +6 -0
  47. package/dist/mintconfig/navigation.js +1 -0
  48. package/dist/mintconfig/navigationEntry.d.ts +2 -0
  49. package/dist/mintconfig/navigationEntry.js +1 -0
  50. package/dist/mintconfig/tab.d.ts +4 -4
  51. package/dist/mintconfig/tab.js +1 -1
  52. package/dist/mintconfig/{topBarCta.d.ts → topbarCta.d.ts} +2 -2
  53. package/dist/mintconfig/topbarCta.js +1 -0
  54. package/dist/tsconfig.tsbuildinfo +1 -1
  55. package/dist/types/editContext.d.ts +6 -6
  56. package/dist/types/editContext.js +1 -1
  57. package/dist/types/gitAuthType.d.ts +6 -6
  58. package/dist/types/gitAuthType.js +1 -1
  59. package/dist/types/gitHubAppType.d.ts +6 -6
  60. package/dist/types/gitHubAppType.js +1 -1
  61. package/dist/types/gitSource.d.ts +9 -9
  62. package/dist/types/gitSource.js +1 -1
  63. package/dist/types/gitType.d.ts +1 -1
  64. package/dist/types/gitType.js +1 -1
  65. package/dist/types/growthDataType.d.ts +3 -3
  66. package/dist/types/growthDataType.js +1 -1
  67. package/dist/types/index.d.ts +10 -10
  68. package/dist/types/index.js +1 -1
  69. package/dist/types/navGroups.d.ts +8 -8
  70. package/dist/types/navGroups.js +1 -1
  71. package/dist/types/pageMetaTags.d.ts +23 -23
  72. package/dist/types/pageMetaTags.js +1 -1
  73. package/dist/types/pathType.d.ts +6 -6
  74. package/dist/types/pathType.js +1 -1
  75. package/package.json +73 -74
  76. package/LICENSE +0 -93
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
- # @mintlify/models
2
-
3
- Commonly used models, types and interfaces.
4
-
5
- _Built with 💚 by the Mintlify community._
1
+ # @mintlify/models
2
+
3
+ Commonly used models, types and interfaces.
4
+
5
+ _Built with 💚 by the Mintlify community._
File without changes
@@ -0,0 +1 @@
1
+ "use strict";
@@ -1,8 +1,8 @@
1
- import { PageMetaTags } from '../types';
2
- export type CustomerPageType = {
3
- subdomain: string;
4
- path: string;
5
- originalFileLocation: string;
6
- content: string;
7
- metadata: PageMetaTags;
8
- };
1
+ import { PageMetaTags } from '../types';
2
+ export type CustomerPageType = {
3
+ subdomain: string;
4
+ path: string;
5
+ originalFileLocation: string;
6
+ content: string;
7
+ metadata: PageMetaTags;
8
+ };
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,15 +1,15 @@
1
- export type DeploymentHistoryType = {
2
- deploymentId: string;
3
- createdAt: Date;
4
- endedAt?: Date;
5
- status: 'in_progress' | 'success' | 'failure';
6
- subdomain?: string;
7
- commitSha?: string;
8
- screenshot?: string;
9
- screenshotLight?: string;
10
- screenshotDark?: string;
11
- author?: {
12
- name?: string;
13
- avatarUrl?: string;
14
- };
15
- };
1
+ export type DeploymentHistoryType = {
2
+ deploymentId: string;
3
+ createdAt: Date;
4
+ endedAt?: Date;
5
+ status: 'in_progress' | 'success' | 'failure';
6
+ subdomain?: string;
7
+ commitSha?: string;
8
+ screenshot?: string;
9
+ screenshotLight?: string;
10
+ screenshotDark?: string;
11
+ author?: {
12
+ name?: string;
13
+ avatarUrl?: string;
14
+ };
15
+ };
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,17 +1,17 @@
1
- import { Analytics } from '../mintconfig';
2
- import { MintConfig } from '../mintconfig';
3
- import { GitSource } from '../types';
4
- export type DeploymentType = {
5
- name: string;
6
- subdomain: string;
7
- orgId: string;
8
- createdAt?: string;
9
- gitSource: GitSource;
10
- analytics?: Analytics;
11
- basePath: string;
12
- customDomains?: string[];
13
- mintConfig: MintConfig;
14
- hashedSubdomain?: string;
15
- isPasswordProtected?: boolean;
16
- vercelProjectId?: string;
17
- };
1
+ import { Analytics } from '../mintconfig';
2
+ import { MintConfig } from '../mintconfig';
3
+ import { GitSource } from '../types';
4
+ export type DeploymentType = {
5
+ name: string;
6
+ subdomain: string;
7
+ orgId: string;
8
+ createdAt?: string;
9
+ gitSource: GitSource;
10
+ analytics?: Analytics;
11
+ basePath: string;
12
+ customDomains?: string[];
13
+ mintConfig: MintConfig;
14
+ hashedSubdomain?: string;
15
+ isPasswordProtected?: boolean;
16
+ vercelProjectId?: string;
17
+ };
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,12 +1,13 @@
1
- import { CustomerPageType } from './customerPageType';
2
- import { DeploymentHistoryType } from './deploymentHistoryType';
3
- import { DeploymentType } from './deploymentType';
4
- import { OrgType } from './orgType';
5
- import { SnippetType } from './snippetType';
6
- import { UserType } from './userType';
7
- export declare enum ENTITY_TYPE {
8
- DEPLOYMENT = "deployment",
9
- SNIPPET = "snippet",
10
- PAGE = "page"
11
- }
12
- export type { CustomerPageType, DeploymentHistoryType, DeploymentType, OrgType, SnippetType, UserType, };
1
+ import { CustomerPageType } from './customerPageType';
2
+ import { DeploymentHistoryType } from './deploymentHistoryType';
3
+ import { DeploymentType } from './deploymentType';
4
+ import { OrgType } from './orgType';
5
+ import { SnippetType } from './snippetType';
6
+ import { UserType } from './userType';
7
+ export declare enum ENTITY_TYPE {
8
+ DEPLOYMENT = "deployment",
9
+ SNIPPET = "snippet",
10
+ PAGE = "page",
11
+ ORG = "org"
12
+ }
13
+ export type { CustomerPageType, DeploymentHistoryType, DeploymentType, OrgType, SnippetType, UserType, };
@@ -1,6 +1,7 @@
1
- export var ENTITY_TYPE;
2
- (function (ENTITY_TYPE) {
3
- ENTITY_TYPE["DEPLOYMENT"] = "deployment";
4
- ENTITY_TYPE["SNIPPET"] = "snippet";
5
- ENTITY_TYPE["PAGE"] = "page";
6
- })(ENTITY_TYPE || (ENTITY_TYPE = {}));
1
+ export var ENTITY_TYPE;
2
+ (function (ENTITY_TYPE) {
3
+ ENTITY_TYPE["DEPLOYMENT"] = "deployment";
4
+ ENTITY_TYPE["SNIPPET"] = "snippet";
5
+ ENTITY_TYPE["PAGE"] = "page";
6
+ ENTITY_TYPE["ORG"] = "org";
7
+ })(ENTITY_TYPE || (ENTITY_TYPE = {}));
@@ -1,10 +1,10 @@
1
- import { GitHubAppType } from '../types/gitHubAppType';
2
- import { GrowthDataType } from '../types/growthDataType';
3
- export type OrgType = {
4
- name: string;
5
- stytchOrgId: string;
6
- githubApps: GitHubAppType[];
7
- plan?: 'startup' | 'enterprise';
8
- createdAt: Date;
9
- growthData: GrowthDataType;
10
- };
1
+ import { GitHubAppType } from '../types/gitHubAppType';
2
+ import { GrowthDataType } from '../types/growthDataType';
3
+ export type OrgType = {
4
+ name: string;
5
+ stytchOrgId: string;
6
+ githubApps: GitHubAppType[];
7
+ plan?: 'startup' | 'enterprise';
8
+ createdAt: Date;
9
+ growthData: GrowthDataType;
10
+ };
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,5 +1,5 @@
1
- export type SnippetType = {
2
- subdomain: string;
3
- snippetFileLocation: string;
4
- content: string;
5
- };
1
+ export type SnippetType = {
2
+ subdomain: string;
3
+ snippetFileLocation: string;
4
+ content: string;
5
+ };
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,7 +1,7 @@
1
- import { GitAuthType } from '../types/gitAuthType';
2
- export type UserType = {
3
- stytchMemberId: string;
4
- orgId: string;
5
- gitAuth: GitAuthType[];
6
- createdAt: Date;
7
- };
1
+ import { GitAuthType } from '../types/gitAuthType';
2
+ export type UserType = {
3
+ stytchMemberId: string;
4
+ orgId: string;
5
+ gitAuth: GitAuthType[];
6
+ createdAt: Date;
7
+ };
@@ -1 +1 @@
1
- export {};
1
+ export {};
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from './mintconfig';
2
- export * from './entities';
3
- export * from './types';
1
+ export * from './mintconfig';
2
+ export * from './entities';
3
+ export * from './types';
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export * from './mintconfig';
2
- export * from './entities';
3
- export * from './types';
1
+ export * from './mintconfig';
2
+ export * from './entities';
3
+ export * from './types';
@@ -0,0 +1,52 @@
1
+ export type FathomConfigInterface = {
2
+ siteId?: string;
3
+ };
4
+ export type GoogleAnalyticsConfigInterface = {
5
+ measurementId?: string;
6
+ };
7
+ export type GoogleTagManagerConfigInterface = {
8
+ tagId?: string;
9
+ };
10
+ export type HotjarConfigInterface = {
11
+ hjid?: string;
12
+ hjsv?: string;
13
+ };
14
+ export type KoalaConfigInterface = {
15
+ publicApiKey?: string;
16
+ };
17
+ export type LogrocketConfigInterface = {
18
+ appId?: string;
19
+ };
20
+ export type MixpanelConfigInterface = {
21
+ projectToken?: string;
22
+ };
23
+ export type PirschConfigInterface = {
24
+ id?: string;
25
+ };
26
+ export type PostHogConfigInterface = {
27
+ apiHost?: string;
28
+ apiKey?: string;
29
+ };
30
+ export type PlausibleInterface = {
31
+ domain?: string;
32
+ };
33
+ export type AmplitudeConfigInterface = {
34
+ apiKey?: string;
35
+ };
36
+ export type ClearbitConfigInterface = {
37
+ publicApiKey?: string;
38
+ };
39
+ export type Analytics = {
40
+ amplitude?: AmplitudeConfigInterface;
41
+ clearbit?: ClearbitConfigInterface;
42
+ fathom?: FathomConfigInterface;
43
+ ga4?: GoogleAnalyticsConfigInterface;
44
+ gtm?: GoogleTagManagerConfigInterface;
45
+ hotjar?: HotjarConfigInterface;
46
+ koala?: KoalaConfigInterface;
47
+ logrocket?: LogrocketConfigInterface;
48
+ mixpanel?: MixpanelConfigInterface;
49
+ pirsch?: PirschConfigInterface;
50
+ plausible?: PlausibleInterface;
51
+ posthog?: PostHogConfigInterface;
52
+ };
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -0,0 +1,9 @@
1
+ import { Gradient } from './gradient';
2
+ export type Anchor = {
3
+ color?: string | Gradient;
4
+ icon?: string;
5
+ isDefaultHidden?: boolean;
6
+ name: string;
7
+ url: string;
8
+ version?: string;
9
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,17 @@
1
+ export type ApiConfig = {
2
+ baseUrl?: string | string[];
3
+ auth?: {
4
+ method: 'key' | 'bearer' | 'basic';
5
+ name?: string;
6
+ inputPrefix?: string;
7
+ };
8
+ playground?: {
9
+ mode: 'show' | 'simple' | 'hide';
10
+ };
11
+ request?: {
12
+ example?: {
13
+ showOptionalParams: boolean;
14
+ };
15
+ };
16
+ maintainOrder?: boolean;
17
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,4 @@
1
- export type Author = {
2
- name: string;
3
- image?: string;
4
- };
1
+ export type Author = {
2
+ name: string;
3
+ image?: string;
4
+ };
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -0,0 +1,6 @@
1
+ import { NavigationEntry } from './navigationEntry';
2
+ export type ConfigNavGroup = {
3
+ group: string;
4
+ pages: NavigationEntry[];
5
+ version?: string;
6
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,4 @@
1
- export type FooterSocial = {
2
- type: string;
3
- url: string;
4
- };
1
+ export type FooterSocial = {
2
+ type: string;
3
+ url: string;
4
+ };
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export type FooterSocials = Record<string, string>;
1
+ export type FooterSocials = Record<string, string>;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,5 +1,5 @@
1
- export type Gradient = {
2
- from: string;
3
- via?: string;
4
- to: string;
5
- };
1
+ export type Gradient = {
2
+ from: string;
3
+ via?: string;
4
+ to: string;
5
+ };
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,2 +1,2 @@
1
- export declare const iconTypes: readonly ["brands", "duotone", "light", "regular", "sharp-solid", "solid", "thin"];
2
- export type IconType = (typeof iconTypes)[number];
1
+ export declare const iconTypes: readonly ["brands", "duotone", "light", "regular", "sharp-solid", "solid", "thin"];
2
+ export type IconType = (typeof iconTypes)[number];
@@ -1,9 +1,9 @@
1
- export var iconTypes = [
2
- 'brands',
3
- 'duotone',
4
- 'light',
5
- 'regular',
6
- 'sharp-solid',
7
- 'solid',
8
- 'thin',
9
- ];
1
+ export var iconTypes = [
2
+ 'brands',
3
+ 'duotone',
4
+ 'light',
5
+ 'regular',
6
+ 'sharp-solid',
7
+ 'solid',
8
+ 'thin',
9
+ ];
@@ -1,21 +1,21 @@
1
- import { AnalyticsType as Analytics, AnchorsType as Anchors, AnchorType as Anchor, ColorsType as Colors, ConfigType, NavigationEntry, NavigationType as Navigation, ApiConfigType as ApiConfig } from '@mintlify/validation';
2
- import { FooterSocials } from './footerSocials';
3
- import { Gradient } from './gradient';
4
- import { IconType, iconTypes } from './iconTypes';
5
- import { Logo } from './logo';
6
- import { NavbarLink } from './navbarLink';
7
- import { Tab } from './tab';
8
- import { TopBarCta } from './topBarCta';
9
- export { iconTypes };
10
- export type MintConfig = ConfigType & {
11
- repo?: {
12
- github?: {
13
- owner: string;
14
- repo: string;
15
- deployBranch: string;
16
- contentDirectory: string;
17
- isPrivate?: boolean;
18
- };
19
- };
20
- };
21
- export type { Logo, NavbarLink, Navigation, Anchor, Anchors, Analytics, FooterSocials, ApiConfig, Gradient, Tab, NavigationEntry, TopBarCta, IconType, Colors, };
1
+ import { AnalyticsType as Analytics, AnchorsType as Anchors, AnchorType as Anchor, ColorsType as Colors, ConfigType, NavigationEntry, NavigationType as Navigation, ApiConfigType as ApiConfig } from '@mintlify/validation';
2
+ import { FooterSocials } from './footerSocials';
3
+ import { Gradient } from './gradient';
4
+ import { IconType, iconTypes } from './iconTypes';
5
+ import { Logo } from './logo';
6
+ import { NavbarLink } from './navbarLink';
7
+ import { Tab } from './tab';
8
+ import { TopBarCta } from './topBarCta';
9
+ export { iconTypes };
10
+ export type MintConfig = ConfigType & {
11
+ repo?: {
12
+ github?: {
13
+ owner: string;
14
+ repo: string;
15
+ deployBranch: string;
16
+ contentDirectory: string;
17
+ isPrivate?: boolean;
18
+ };
19
+ };
20
+ };
21
+ export type { Logo, NavbarLink, Navigation, Anchor, Anchors, Analytics, FooterSocials, ApiConfig, Gradient, Tab, NavigationEntry, TopBarCta, IconType, Colors, };
@@ -1,2 +1,2 @@
1
- import { iconTypes } from './iconTypes';
2
- export { iconTypes };
1
+ import { iconTypes } from './iconTypes';
2
+ export { iconTypes };
@@ -1,5 +1,5 @@
1
- export type Logo = string | {
2
- light: string;
3
- dark: string;
4
- href?: string;
5
- };
1
+ export type Logo = string | {
2
+ light: string;
3
+ dark: string;
4
+ href?: string;
5
+ };
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,4 +1,4 @@
1
- export type MintConfigIntegrations = {
2
- intercom?: string;
3
- frontchat?: string;
4
- };
1
+ export type MintConfigIntegrations = {
2
+ intercom?: string;
3
+ frontchat?: string;
4
+ };
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,5 +1,5 @@
1
- export type NavbarLink = {
2
- name?: string;
3
- type?: 'github' | 'link' | string;
4
- url: string;
5
- };
1
+ export type NavbarLink = {
2
+ name?: string;
3
+ type?: 'github' | 'link' | string;
4
+ url: string;
5
+ };
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -0,0 +1,6 @@
1
+ import { NavigationEntry } from './navigationEntry';
2
+ export type Navigation = {
3
+ group: string;
4
+ pages: NavigationEntry[];
5
+ version?: string;
6
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ import { ConfigNavGroup } from './configNavGroup';
2
+ export type NavigationEntry = string | ConfigNavGroup;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,4 @@
1
- export type Tab = {
2
- name: string;
3
- url: string;
4
- };
1
+ export type Tab = {
2
+ name: string;
3
+ url: string;
4
+ };
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,2 +1,2 @@
1
- import { NavbarLink } from './navbarLink';
2
- export type TopBarCta = NavbarLink;
1
+ import { NavbarLink } from './navbarLink';
2
+ export type TopBarCta = NavbarLink;
@@ -0,0 +1 @@
1
+ export {};