blodemd 0.1.0 → 0.2.0
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/cli.mjs +50 -174
- package/dist/cli.mjs.map +1 -1
- package/package.json +3 -36
- package/dev-server/app/[[...slug]]/page.tsx +0 -140
- package/dev-server/app/blodemd-dev/invalidate/route.ts +0 -12
- package/dev-server/app/blodemd-dev/static/[...path]/route.ts +0 -32
- package/dev-server/app/blodemd-dev/version/route.ts +0 -14
- package/dev-server/app/blodemd-internal/proxy/route.ts +0 -86
- package/dev-server/app/error.tsx +0 -24
- package/dev-server/app/favicon.ico +0 -0
- package/dev-server/app/globals.css +0 -4
- package/dev-server/app/layout.tsx +0 -38
- package/dev-server/app/not-found.tsx +0 -18
- package/dev-server/app/search/route.ts +0 -17
- package/dev-server/components/dev-reload-script.tsx +0 -86
- package/dev-server/components/providers.tsx +0 -15
- package/dev-server/lib/dev-state.ts +0 -8
- package/dev-server/lib/local-content-source.ts +0 -103
- package/dev-server/lib/local-runtime.tsx +0 -555
- package/dev-server/next-env.d.ts +0 -5
- package/dev-server/next.config.js +0 -54
- package/dev-server/package.json +0 -61
- package/dev-server/postcss.config.mjs +0 -7
- package/dev-server/public/glide-variable.woff2 +0 -0
- package/dev-server/tsconfig.json +0 -50
- package/docs/app/globals.css +0 -471
- package/docs/components/animate-ui/primitives/buttons/button.tsx +0 -14
- package/docs/components/api/api-playground.tsx +0 -467
- package/docs/components/api/api-reference.tsx +0 -157
- package/docs/components/content/collection-index.tsx +0 -114
- package/docs/components/docs/contextual-menu.tsx +0 -495
- package/docs/components/docs/copy-page-menu.tsx +0 -364
- package/docs/components/docs/doc-header.tsx +0 -223
- package/docs/components/docs/doc-shell.tsx +0 -355
- package/docs/components/docs/doc-sidebar.tsx +0 -256
- package/docs/components/docs/doc-toc.tsx +0 -46
- package/docs/components/docs/mobile-nav.tsx +0 -195
- package/docs/components/docs/sidebar-active-highlight.tsx +0 -34
- package/docs/components/docs/sidebar-scroll-area.tsx +0 -63
- package/docs/components/git/repo-picker.tsx +0 -529
- package/docs/components/icons/doc-icon.tsx +0 -96
- package/docs/components/mdx/accordion.tsx +0 -83
- package/docs/components/mdx/agent-instructions.tsx +0 -17
- package/docs/components/mdx/badge.tsx +0 -79
- package/docs/components/mdx/callout.tsx +0 -88
- package/docs/components/mdx/card.tsx +0 -110
- package/docs/components/mdx/code-block.tsx +0 -80
- package/docs/components/mdx/code-group.tsx +0 -203
- package/docs/components/mdx/color.tsx +0 -87
- package/docs/components/mdx/columns.tsx +0 -25
- package/docs/components/mdx/expandable.tsx +0 -45
- package/docs/components/mdx/field-layout.tsx +0 -77
- package/docs/components/mdx/frame.tsx +0 -23
- package/docs/components/mdx/get-text-content.ts +0 -18
- package/docs/components/mdx/icon.tsx +0 -12
- package/docs/components/mdx/iframe.tsx +0 -62
- package/docs/components/mdx/index.tsx +0 -121
- package/docs/components/mdx/installer.tsx +0 -20
- package/docs/components/mdx/panel.tsx +0 -11
- package/docs/components/mdx/param-field.tsx +0 -56
- package/docs/components/mdx/preview.tsx +0 -36
- package/docs/components/mdx/prompt.tsx +0 -63
- package/docs/components/mdx/request-example.tsx +0 -27
- package/docs/components/mdx/response-field.tsx +0 -42
- package/docs/components/mdx/steps.tsx +0 -92
- package/docs/components/mdx/tabs.tsx +0 -193
- package/docs/components/mdx/tile.tsx +0 -43
- package/docs/components/mdx/tooltip.tsx +0 -71
- package/docs/components/mdx/tree.tsx +0 -120
- package/docs/components/mdx/type-table.tsx +0 -71
- package/docs/components/mdx/update.tsx +0 -44
- package/docs/components/mdx/video.tsx +0 -45
- package/docs/components/mdx/view.tsx +0 -66
- package/docs/components/posthog-provider.tsx +0 -42
- package/docs/components/providers.tsx +0 -15
- package/docs/components/tenant-analytics.tsx +0 -49
- package/docs/components/third-parties.tsx +0 -32
- package/docs/components/ui/badge.tsx +0 -61
- package/docs/components/ui/breadcrumb.tsx +0 -112
- package/docs/components/ui/button-group.tsx +0 -83
- package/docs/components/ui/button.tsx +0 -65
- package/docs/components/ui/card.tsx +0 -92
- package/docs/components/ui/command.tsx +0 -167
- package/docs/components/ui/copy-button.tsx +0 -129
- package/docs/components/ui/dialog.tsx +0 -146
- package/docs/components/ui/field.tsx +0 -237
- package/docs/components/ui/input.tsx +0 -23
- package/docs/components/ui/kbd.tsx +0 -98
- package/docs/components/ui/label.tsx +0 -22
- package/docs/components/ui/morph-icon.tsx +0 -79
- package/docs/components/ui/popover.tsx +0 -267
- package/docs/components/ui/search-dialog.tsx +0 -431
- package/docs/components/ui/search.tsx +0 -101
- package/docs/components/ui/separator.tsx +0 -26
- package/docs/components/ui/sheet.tsx +0 -133
- package/docs/components/ui/sidebar.tsx +0 -758
- package/docs/components/ui/skeleton.tsx +0 -11
- package/docs/components/ui/switch.tsx +0 -32
- package/docs/components/ui/tabs.tsx +0 -138
- package/docs/components/ui/theme-toggle.tsx +0 -62
- package/docs/components/ui/tooltip.tsx +0 -53
- package/docs/components/web-mcp.tsx +0 -115
- package/docs/lib/agent-skills.ts +0 -48
- package/docs/lib/api-client.ts +0 -72
- package/docs/lib/config.ts +0 -6
- package/docs/lib/content-root.ts +0 -33
- package/docs/lib/content-source.ts +0 -70
- package/docs/lib/contextual-options.ts +0 -222
- package/docs/lib/dashboard-session.ts +0 -167
- package/docs/lib/db.ts +0 -13
- package/docs/lib/docs-collection.ts +0 -7
- package/docs/lib/docs-runtime.tsx +0 -745
- package/docs/lib/edge-config.ts +0 -95
- package/docs/lib/env.ts +0 -23
- package/docs/lib/etag.ts +0 -22
- package/docs/lib/github-install.ts +0 -33
- package/docs/lib/llms-full.ts +0 -82
- package/docs/lib/marketing-markdown.ts +0 -79
- package/docs/lib/marketing-site.ts +0 -31
- package/docs/lib/mdx.ts +0 -98
- package/docs/lib/navigation.ts +0 -288
- package/docs/lib/openapi-proxy.ts +0 -88
- package/docs/lib/openapi.ts +0 -158
- package/docs/lib/platform-config.ts +0 -6
- package/docs/lib/project-authz.ts +0 -46
- package/docs/lib/routes.ts +0 -103
- package/docs/lib/server-cache.ts +0 -83
- package/docs/lib/shiki.ts +0 -44
- package/docs/lib/supabase.ts +0 -37
- package/docs/lib/tenancy.ts +0 -364
- package/docs/lib/tenant-headers.ts +0 -43
- package/docs/lib/tenant-static.ts +0 -705
- package/docs/lib/tenant-utility-context.ts +0 -62
- package/docs/lib/tenants.ts +0 -72
- package/docs/lib/theme.ts +0 -29
- package/docs/lib/time-ago.ts +0 -24
- package/docs/lib/toc.ts +0 -2
- package/docs/lib/use-mobile.ts +0 -19
- package/docs/lib/use-tab-observer.ts +0 -71
- package/docs/lib/utils.ts +0 -5
- package/packages/@repo/common/dist/index.d.ts +0 -16
- package/packages/@repo/common/dist/index.d.ts.map +0 -1
- package/packages/@repo/common/dist/index.js +0 -84
- package/packages/@repo/common/package.json +0 -34
- package/packages/@repo/common/src/index.ts +0 -101
- package/packages/@repo/contracts/dist/analytics.d.ts +0 -21
- package/packages/@repo/contracts/dist/analytics.d.ts.map +0 -1
- package/packages/@repo/contracts/dist/analytics.js +0 -18
- package/packages/@repo/contracts/dist/api-key.d.ts +0 -27
- package/packages/@repo/contracts/dist/api-key.d.ts.map +0 -1
- package/packages/@repo/contracts/dist/api-key.js +0 -20
- package/packages/@repo/contracts/dist/dates.d.ts +0 -4
- package/packages/@repo/contracts/dist/dates.d.ts.map +0 -1
- package/packages/@repo/contracts/dist/dates.js +0 -2
- package/packages/@repo/contracts/dist/deployment.d.ts +0 -71
- package/packages/@repo/contracts/dist/deployment.d.ts.map +0 -1
- package/packages/@repo/contracts/dist/deployment.js +0 -46
- package/packages/@repo/contracts/dist/domain.d.ts +0 -94
- package/packages/@repo/contracts/dist/domain.d.ts.map +0 -1
- package/packages/@repo/contracts/dist/domain.js +0 -36
- package/packages/@repo/contracts/dist/git.d.ts +0 -28
- package/packages/@repo/contracts/dist/git.d.ts.map +0 -1
- package/packages/@repo/contracts/dist/git.js +0 -24
- package/packages/@repo/contracts/dist/ids.d.ts +0 -14
- package/packages/@repo/contracts/dist/ids.d.ts.map +0 -1
- package/packages/@repo/contracts/dist/ids.js +0 -11
- package/packages/@repo/contracts/dist/index.d.ts +0 -12
- package/packages/@repo/contracts/dist/index.d.ts.map +0 -1
- package/packages/@repo/contracts/dist/index.js +0 -13
- package/packages/@repo/contracts/dist/pagination.d.ts +0 -23
- package/packages/@repo/contracts/dist/pagination.d.ts.map +0 -1
- package/packages/@repo/contracts/dist/pagination.js +0 -15
- package/packages/@repo/contracts/dist/project.d.ts +0 -42
- package/packages/@repo/contracts/dist/project.d.ts.map +0 -1
- package/packages/@repo/contracts/dist/project.js +0 -25
- package/packages/@repo/contracts/dist/tenant.d.ts +0 -147
- package/packages/@repo/contracts/dist/tenant.d.ts.map +0 -1
- package/packages/@repo/contracts/dist/tenant.js +0 -58
- package/packages/@repo/contracts/dist/user.d.ts +0 -9
- package/packages/@repo/contracts/dist/user.d.ts.map +0 -1
- package/packages/@repo/contracts/dist/user.js +0 -9
- package/packages/@repo/contracts/package.json +0 -37
- package/packages/@repo/contracts/src/analytics.ts +0 -33
- package/packages/@repo/contracts/src/api-key.ts +0 -27
- package/packages/@repo/contracts/src/dates.ts +0 -4
- package/packages/@repo/contracts/src/deployment.ts +0 -73
- package/packages/@repo/contracts/src/domain.ts +0 -51
- package/packages/@repo/contracts/src/git.ts +0 -31
- package/packages/@repo/contracts/src/ids.ts +0 -23
- package/packages/@repo/contracts/src/index.ts +0 -13
- package/packages/@repo/contracts/src/pagination.ts +0 -21
- package/packages/@repo/contracts/src/project.ts +0 -32
- package/packages/@repo/contracts/src/tenant.ts +0 -94
- package/packages/@repo/contracts/src/user.ts +0 -12
- package/packages/@repo/models/dist/docs-config.d.ts +0 -961
- package/packages/@repo/models/dist/docs-config.d.ts.map +0 -1
- package/packages/@repo/models/dist/docs-config.js +0 -531
- package/packages/@repo/models/dist/index.d.ts +0 -3
- package/packages/@repo/models/dist/index.d.ts.map +0 -1
- package/packages/@repo/models/dist/index.js +0 -3
- package/packages/@repo/models/dist/tenant.d.ts +0 -37
- package/packages/@repo/models/dist/tenant.d.ts.map +0 -1
- package/packages/@repo/models/dist/tenant.js +0 -1
- package/packages/@repo/models/package.json +0 -37
- package/packages/@repo/models/src/docs-config.ts +0 -629
- package/packages/@repo/models/src/index.ts +0 -3
- package/packages/@repo/models/src/tenant.ts +0 -44
- package/packages/@repo/prebuild/dist/index.d.ts +0 -2
- package/packages/@repo/prebuild/dist/index.d.ts.map +0 -1
- package/packages/@repo/prebuild/dist/index.js +0 -2
- package/packages/@repo/prebuild/dist/openapi.d.ts +0 -43
- package/packages/@repo/prebuild/dist/openapi.d.ts.map +0 -1
- package/packages/@repo/prebuild/dist/openapi.js +0 -86
- package/packages/@repo/prebuild/package.json +0 -39
- package/packages/@repo/prebuild/src/index.ts +0 -2
- package/packages/@repo/prebuild/src/openapi.ts +0 -154
- package/packages/@repo/previewing/dist/blob-source.d.ts +0 -16
- package/packages/@repo/previewing/dist/blob-source.d.ts.map +0 -1
- package/packages/@repo/previewing/dist/blob-source.js +0 -128
- package/packages/@repo/previewing/dist/config-loader.d.ts +0 -134
- package/packages/@repo/previewing/dist/config-loader.d.ts.map +0 -1
- package/packages/@repo/previewing/dist/config-loader.js +0 -231
- package/packages/@repo/previewing/dist/constants.d.ts +0 -15
- package/packages/@repo/previewing/dist/constants.d.ts.map +0 -1
- package/packages/@repo/previewing/dist/constants.js +0 -14
- package/packages/@repo/previewing/dist/content-index.d.ts +0 -7
- package/packages/@repo/previewing/dist/content-index.d.ts.map +0 -1
- package/packages/@repo/previewing/dist/content-index.js +0 -291
- package/packages/@repo/previewing/dist/content-source.d.ts +0 -12
- package/packages/@repo/previewing/dist/content-source.d.ts.map +0 -1
- package/packages/@repo/previewing/dist/content-source.js +0 -1
- package/packages/@repo/previewing/dist/fs-source.d.ts +0 -11
- package/packages/@repo/previewing/dist/fs-source.d.ts.map +0 -1
- package/packages/@repo/previewing/dist/fs-source.js +0 -71
- package/packages/@repo/previewing/dist/index.d.ts +0 -16
- package/packages/@repo/previewing/dist/index.d.ts.map +0 -1
- package/packages/@repo/previewing/dist/index.js +0 -13
- package/packages/@repo/previewing/dist/markdown/agent-markdown.d.ts +0 -3
- package/packages/@repo/previewing/dist/markdown/agent-markdown.d.ts.map +0 -1
- package/packages/@repo/previewing/dist/markdown/agent-markdown.js +0 -176
- package/packages/@repo/previewing/dist/markdown/format.d.ts +0 -8
- package/packages/@repo/previewing/dist/markdown/format.d.ts.map +0 -1
- package/packages/@repo/previewing/dist/markdown/format.js +0 -43
- package/packages/@repo/previewing/dist/markdown/links.d.ts +0 -3
- package/packages/@repo/previewing/dist/markdown/links.d.ts.map +0 -1
- package/packages/@repo/previewing/dist/markdown/links.js +0 -31
- package/packages/@repo/previewing/dist/openapi-pages.d.ts +0 -7
- package/packages/@repo/previewing/dist/openapi-pages.d.ts.map +0 -1
- package/packages/@repo/previewing/dist/openapi-pages.js +0 -200
- package/packages/@repo/previewing/dist/search-index.d.ts +0 -4
- package/packages/@repo/previewing/dist/search-index.d.ts.map +0 -1
- package/packages/@repo/previewing/dist/search-index.js +0 -23
- package/packages/@repo/previewing/dist/serialization.d.ts +0 -13
- package/packages/@repo/previewing/dist/serialization.d.ts.map +0 -1
- package/packages/@repo/previewing/dist/serialization.js +0 -108
- package/packages/@repo/previewing/dist/toc-index.d.ts +0 -5
- package/packages/@repo/previewing/dist/toc-index.d.ts.map +0 -1
- package/packages/@repo/previewing/dist/toc-index.js +0 -53
- package/packages/@repo/previewing/dist/types.d.ts +0 -92
- package/packages/@repo/previewing/dist/types.d.ts.map +0 -1
- package/packages/@repo/previewing/dist/types.js +0 -1
- package/packages/@repo/previewing/dist/utility-index.d.ts +0 -7
- package/packages/@repo/previewing/dist/utility-index.d.ts.map +0 -1
- package/packages/@repo/previewing/dist/utility-index.js +0 -201
- package/packages/@repo/previewing/package.json +0 -41
- package/packages/@repo/previewing/src/blob-source.ts +0 -185
- package/packages/@repo/previewing/src/config-loader.ts +0 -316
- package/packages/@repo/previewing/src/constants.ts +0 -16
- package/packages/@repo/previewing/src/content-index.ts +0 -384
- package/packages/@repo/previewing/src/content-source.ts +0 -12
- package/packages/@repo/previewing/src/fs-source.ts +0 -103
- package/packages/@repo/previewing/src/index.ts +0 -71
- package/packages/@repo/previewing/src/markdown/agent-markdown.ts +0 -254
- package/packages/@repo/previewing/src/markdown/format.ts +0 -63
- package/packages/@repo/previewing/src/markdown/links.ts +0 -46
- package/packages/@repo/previewing/src/openapi-pages.ts +0 -319
- package/packages/@repo/previewing/src/search-index.ts +0 -38
- package/packages/@repo/previewing/src/serialization.ts +0 -191
- package/packages/@repo/previewing/src/toc-index.ts +0 -72
- package/packages/@repo/previewing/src/types.ts +0 -105
- package/packages/@repo/previewing/src/utility-index.ts +0 -304
- package/packages/@repo/validation/dist/index.d.ts +0 -12
- package/packages/@repo/validation/dist/index.d.ts.map +0 -1
- package/packages/@repo/validation/dist/index.js +0 -30
- package/packages/@repo/validation/package.json +0 -38
- package/packages/@repo/validation/src/blodemd-docs-schema.json +0 -3575
- package/packages/@repo/validation/src/index.ts +0 -59
- package/scripts/prepare-package.mjs +0 -53
- package/scripts/repo-packages.mjs +0 -8
|
@@ -1,629 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
|
|
3
|
-
const UrlOrPathSchema = z.string().min(1);
|
|
4
|
-
const SlugSchema = z
|
|
5
|
-
.string()
|
|
6
|
-
.min(1)
|
|
7
|
-
// Lowercase alphanumeric segments joined by single hyphens: no leading,
|
|
8
|
-
// trailing, or consecutive hyphens, and never a bare "-".
|
|
9
|
-
.regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);
|
|
10
|
-
|
|
11
|
-
export const DocsColorsSchema = z
|
|
12
|
-
.object({
|
|
13
|
-
background: z.string().optional(),
|
|
14
|
-
border: z.string().optional(),
|
|
15
|
-
dark: z.string().optional(),
|
|
16
|
-
light: z.string().optional(),
|
|
17
|
-
muted: z.string().optional(),
|
|
18
|
-
primary: z.string().min(1),
|
|
19
|
-
surface: z.string().optional(),
|
|
20
|
-
})
|
|
21
|
-
.strict();
|
|
22
|
-
|
|
23
|
-
export const DocsFontsSchema = z
|
|
24
|
-
.object({
|
|
25
|
-
body: z.string().optional(),
|
|
26
|
-
cssUrl: z.string().optional(),
|
|
27
|
-
heading: z.string().optional(),
|
|
28
|
-
mono: z.string().optional(),
|
|
29
|
-
provider: z.enum(["google", "local", "custom"]).optional(),
|
|
30
|
-
})
|
|
31
|
-
.strict();
|
|
32
|
-
|
|
33
|
-
export const DocsLogoSchema = z
|
|
34
|
-
.object({
|
|
35
|
-
alt: z.string().optional(),
|
|
36
|
-
dark: UrlOrPathSchema.optional(),
|
|
37
|
-
href: z.string().min(1).optional(),
|
|
38
|
-
light: UrlOrPathSchema.optional(),
|
|
39
|
-
})
|
|
40
|
-
.strict();
|
|
41
|
-
|
|
42
|
-
export const DocsNavLinkSchema = z
|
|
43
|
-
.object({
|
|
44
|
-
href: z.string().min(1),
|
|
45
|
-
label: z.string().min(1),
|
|
46
|
-
})
|
|
47
|
-
.strict();
|
|
48
|
-
|
|
49
|
-
export const DocsNavAnchorSchema = z
|
|
50
|
-
.object({
|
|
51
|
-
href: z.string().min(1),
|
|
52
|
-
label: z.string().min(1),
|
|
53
|
-
})
|
|
54
|
-
.strict();
|
|
55
|
-
|
|
56
|
-
export const DocsNavLocaleSchema = z
|
|
57
|
-
.object({
|
|
58
|
-
label: z.string().min(1),
|
|
59
|
-
locale: z.string().optional(),
|
|
60
|
-
url: z.string().min(1),
|
|
61
|
-
})
|
|
62
|
-
.strict();
|
|
63
|
-
|
|
64
|
-
export const DocsNavVersionSchema = z
|
|
65
|
-
.object({
|
|
66
|
-
label: z.string().min(1),
|
|
67
|
-
url: z.string().min(1),
|
|
68
|
-
})
|
|
69
|
-
.strict();
|
|
70
|
-
|
|
71
|
-
export const DocsOpenApiSourceSchema = z
|
|
72
|
-
.object({
|
|
73
|
-
basePath: z.string().optional(),
|
|
74
|
-
directory: z.string().optional(),
|
|
75
|
-
include: z.array(z.string()).optional(),
|
|
76
|
-
source: z.string().min(1),
|
|
77
|
-
})
|
|
78
|
-
.strict();
|
|
79
|
-
|
|
80
|
-
export const DocsNavGroupSchema = z
|
|
81
|
-
.object({
|
|
82
|
-
expanded: z.boolean().optional(),
|
|
83
|
-
group: z.string().optional(),
|
|
84
|
-
hidden: z.boolean().optional(),
|
|
85
|
-
openapi: z.union([z.string().min(1), DocsOpenApiSourceSchema]).optional(),
|
|
86
|
-
pages: z.array(z.string()).optional(),
|
|
87
|
-
})
|
|
88
|
-
.strict();
|
|
89
|
-
|
|
90
|
-
export const DocsNavTabSchema = z
|
|
91
|
-
.object({
|
|
92
|
-
groups: z.array(DocsNavGroupSchema).optional(),
|
|
93
|
-
href: z.string().min(1).optional(),
|
|
94
|
-
icon: z.string().optional(),
|
|
95
|
-
label: z.string().min(1),
|
|
96
|
-
pages: z.array(z.string()).optional(),
|
|
97
|
-
})
|
|
98
|
-
.strict()
|
|
99
|
-
.refine(
|
|
100
|
-
(value) =>
|
|
101
|
-
Boolean(value.groups?.length || value.pages?.length || value.href),
|
|
102
|
-
{ message: "tab must define groups, pages, or href", path: [] }
|
|
103
|
-
);
|
|
104
|
-
|
|
105
|
-
export const DocsNavigationSchema = z
|
|
106
|
-
.object({
|
|
107
|
-
global: z
|
|
108
|
-
.object({
|
|
109
|
-
anchors: z.array(DocsNavAnchorSchema).optional(),
|
|
110
|
-
links: z.array(DocsNavLinkSchema).optional(),
|
|
111
|
-
})
|
|
112
|
-
.strict()
|
|
113
|
-
.optional(),
|
|
114
|
-
groups: z.array(DocsNavGroupSchema).optional(),
|
|
115
|
-
hidden: z.array(z.string()).optional(),
|
|
116
|
-
languages: z.array(DocsNavLocaleSchema).optional(),
|
|
117
|
-
pages: z.array(z.string()).optional(),
|
|
118
|
-
tabs: z.array(DocsNavTabSchema).optional(),
|
|
119
|
-
versions: z.array(DocsNavVersionSchema).optional(),
|
|
120
|
-
})
|
|
121
|
-
.strict();
|
|
122
|
-
|
|
123
|
-
export const DocsScriptsSchema = z
|
|
124
|
-
.object({
|
|
125
|
-
body: z.array(z.string()).optional(),
|
|
126
|
-
head: z.array(z.string()).optional(),
|
|
127
|
-
})
|
|
128
|
-
.strict();
|
|
129
|
-
|
|
130
|
-
export const DocsSeoSchema = z
|
|
131
|
-
.object({
|
|
132
|
-
indexing: z.enum(["all", "default"]).optional(),
|
|
133
|
-
})
|
|
134
|
-
.strict();
|
|
135
|
-
|
|
136
|
-
export const DocsFeatureFlagsSchema = z
|
|
137
|
-
.object({
|
|
138
|
-
rightToc: z.boolean().optional(),
|
|
139
|
-
search: z.boolean().optional(),
|
|
140
|
-
themeToggle: z.boolean().optional(),
|
|
141
|
-
toc: z.boolean().optional(),
|
|
142
|
-
})
|
|
143
|
-
.strict();
|
|
144
|
-
|
|
145
|
-
export const DocsOpenApiProxySchema = z
|
|
146
|
-
.object({
|
|
147
|
-
allowedHosts: z.array(z.string()).optional(),
|
|
148
|
-
enabled: z.boolean().optional(),
|
|
149
|
-
})
|
|
150
|
-
.strict();
|
|
151
|
-
|
|
152
|
-
const MintlifyLogoSchema = z.union([
|
|
153
|
-
UrlOrPathSchema,
|
|
154
|
-
z
|
|
155
|
-
.object({
|
|
156
|
-
dark: UrlOrPathSchema,
|
|
157
|
-
href: z.string().min(1).optional(),
|
|
158
|
-
light: UrlOrPathSchema,
|
|
159
|
-
})
|
|
160
|
-
.strict(),
|
|
161
|
-
]);
|
|
162
|
-
|
|
163
|
-
const MintlifyFaviconSchema = z.union([
|
|
164
|
-
UrlOrPathSchema,
|
|
165
|
-
z
|
|
166
|
-
.object({
|
|
167
|
-
dark: UrlOrPathSchema,
|
|
168
|
-
light: UrlOrPathSchema,
|
|
169
|
-
})
|
|
170
|
-
.strict(),
|
|
171
|
-
]);
|
|
172
|
-
|
|
173
|
-
const MintlifyNavbarLinkSchema = z
|
|
174
|
-
.object({
|
|
175
|
-
href: z.string().min(1),
|
|
176
|
-
icon: z.string().optional(),
|
|
177
|
-
iconType: z.string().optional(),
|
|
178
|
-
label: z.string().optional(),
|
|
179
|
-
type: z.enum(["discord", "github"]).optional(),
|
|
180
|
-
})
|
|
181
|
-
.strict();
|
|
182
|
-
|
|
183
|
-
const MintlifyNavbarPrimarySchema = z
|
|
184
|
-
.object({
|
|
185
|
-
href: z.string().min(1),
|
|
186
|
-
label: z.string().optional(),
|
|
187
|
-
type: z.enum(["button", "discord", "github"]),
|
|
188
|
-
})
|
|
189
|
-
.strict();
|
|
190
|
-
|
|
191
|
-
const MintlifyNavbarSchema = z
|
|
192
|
-
.object({
|
|
193
|
-
links: z.array(MintlifyNavbarLinkSchema).optional(),
|
|
194
|
-
primary: MintlifyNavbarPrimarySchema.optional(),
|
|
195
|
-
})
|
|
196
|
-
.strict();
|
|
197
|
-
|
|
198
|
-
const MintlifyNavigationGlobalSchema = z
|
|
199
|
-
.object({
|
|
200
|
-
anchors: z
|
|
201
|
-
.array(
|
|
202
|
-
z
|
|
203
|
-
.object({
|
|
204
|
-
anchor: z.string().min(1),
|
|
205
|
-
color: z
|
|
206
|
-
.object({
|
|
207
|
-
dark: z.string().optional(),
|
|
208
|
-
light: z.string().optional(),
|
|
209
|
-
})
|
|
210
|
-
.strict()
|
|
211
|
-
.optional(),
|
|
212
|
-
hidden: z.boolean().optional(),
|
|
213
|
-
href: z.string().min(1),
|
|
214
|
-
icon: z.string().optional(),
|
|
215
|
-
iconType: z.string().optional(),
|
|
216
|
-
})
|
|
217
|
-
.strict()
|
|
218
|
-
)
|
|
219
|
-
.optional(),
|
|
220
|
-
})
|
|
221
|
-
.strict();
|
|
222
|
-
|
|
223
|
-
const MintlifyNavigationGroupSchema = z
|
|
224
|
-
.object({
|
|
225
|
-
expanded: z.boolean().optional(),
|
|
226
|
-
group: z.string().min(1),
|
|
227
|
-
hidden: z.boolean().optional(),
|
|
228
|
-
icon: z.string().optional(),
|
|
229
|
-
pages: z.array(z.string()).optional(),
|
|
230
|
-
root: z.string().optional(),
|
|
231
|
-
tag: z.string().optional(),
|
|
232
|
-
})
|
|
233
|
-
.strict();
|
|
234
|
-
|
|
235
|
-
const MintlifyNavTabSchema = z
|
|
236
|
-
.object({
|
|
237
|
-
groups: z.array(MintlifyNavigationGroupSchema).optional(),
|
|
238
|
-
hidden: z.boolean().optional(),
|
|
239
|
-
href: z.string().min(1).optional(),
|
|
240
|
-
icon: z.string().optional(),
|
|
241
|
-
pages: z.array(z.string()).optional(),
|
|
242
|
-
tab: z.string().min(1),
|
|
243
|
-
})
|
|
244
|
-
.strict();
|
|
245
|
-
|
|
246
|
-
const MintlifyNavigationSchema = z
|
|
247
|
-
.object({
|
|
248
|
-
global: MintlifyNavigationGlobalSchema.optional(),
|
|
249
|
-
groups: z.array(MintlifyNavigationGroupSchema).optional(),
|
|
250
|
-
languages: z
|
|
251
|
-
.array(
|
|
252
|
-
z
|
|
253
|
-
.object({
|
|
254
|
-
default: z.boolean().optional(),
|
|
255
|
-
hidden: z.boolean().optional(),
|
|
256
|
-
href: z.string().min(1),
|
|
257
|
-
language: z.string().min(1),
|
|
258
|
-
})
|
|
259
|
-
.strict()
|
|
260
|
-
)
|
|
261
|
-
.optional(),
|
|
262
|
-
pages: z.array(z.string()).optional(),
|
|
263
|
-
tabs: z.array(MintlifyNavTabSchema).optional(),
|
|
264
|
-
versions: z
|
|
265
|
-
.array(
|
|
266
|
-
z
|
|
267
|
-
.object({
|
|
268
|
-
default: z.boolean().optional(),
|
|
269
|
-
hidden: z.boolean().optional(),
|
|
270
|
-
href: z.string().min(1),
|
|
271
|
-
version: z.string().min(1),
|
|
272
|
-
})
|
|
273
|
-
.strict()
|
|
274
|
-
)
|
|
275
|
-
.optional(),
|
|
276
|
-
})
|
|
277
|
-
.strict()
|
|
278
|
-
.refine(
|
|
279
|
-
(value) =>
|
|
280
|
-
Boolean(
|
|
281
|
-
value.groups?.length ||
|
|
282
|
-
value.pages?.length ||
|
|
283
|
-
value.tabs?.length ||
|
|
284
|
-
value.languages?.length ||
|
|
285
|
-
value.versions?.length
|
|
286
|
-
),
|
|
287
|
-
{
|
|
288
|
-
message:
|
|
289
|
-
"navigation must define at least one of groups, pages, tabs, languages, or versions",
|
|
290
|
-
path: [],
|
|
291
|
-
}
|
|
292
|
-
);
|
|
293
|
-
|
|
294
|
-
const MintlifyApiSchema = z
|
|
295
|
-
.object({
|
|
296
|
-
asyncapi: z
|
|
297
|
-
.union([z.string(), z.array(z.string()), DocsOpenApiSourceSchema])
|
|
298
|
-
.optional(),
|
|
299
|
-
examples: z
|
|
300
|
-
.object({
|
|
301
|
-
autogenerate: z.boolean().optional(),
|
|
302
|
-
defaults: z.enum(["all", "required"]).optional(),
|
|
303
|
-
languages: z.array(z.string()).optional(),
|
|
304
|
-
prefill: z.boolean().optional(),
|
|
305
|
-
})
|
|
306
|
-
.strict()
|
|
307
|
-
.optional(),
|
|
308
|
-
mdx: z
|
|
309
|
-
.object({
|
|
310
|
-
auth: z
|
|
311
|
-
.object({
|
|
312
|
-
method: z.enum(["basic", "bearer", "cobo", "key"]).optional(),
|
|
313
|
-
name: z.string().optional(),
|
|
314
|
-
})
|
|
315
|
-
.strict()
|
|
316
|
-
.optional(),
|
|
317
|
-
server: z
|
|
318
|
-
.union([z.string().min(1), z.array(z.string().min(1))])
|
|
319
|
-
.optional(),
|
|
320
|
-
})
|
|
321
|
-
.strict()
|
|
322
|
-
.optional(),
|
|
323
|
-
openapi: z
|
|
324
|
-
.union([z.string(), z.array(z.string()), DocsOpenApiSourceSchema])
|
|
325
|
-
.optional(),
|
|
326
|
-
params: z
|
|
327
|
-
.object({
|
|
328
|
-
expanded: z.enum(["all", "closed"]).optional(),
|
|
329
|
-
})
|
|
330
|
-
.strict()
|
|
331
|
-
.optional(),
|
|
332
|
-
playground: z
|
|
333
|
-
.object({
|
|
334
|
-
credentials: z.boolean().optional(),
|
|
335
|
-
display: z.enum(["auth", "interactive", "none", "simple"]).optional(),
|
|
336
|
-
proxy: z.boolean().optional(),
|
|
337
|
-
})
|
|
338
|
-
.strict()
|
|
339
|
-
.optional(),
|
|
340
|
-
url: z.literal("full").optional(),
|
|
341
|
-
})
|
|
342
|
-
.strict();
|
|
343
|
-
|
|
344
|
-
const MintlifyAppearanceSchema = z
|
|
345
|
-
.object({
|
|
346
|
-
default: z.enum(["dark", "light", "system"]).optional(),
|
|
347
|
-
strict: z.boolean().optional(),
|
|
348
|
-
})
|
|
349
|
-
.strict();
|
|
350
|
-
|
|
351
|
-
const MintlifyMetadataSchema = z
|
|
352
|
-
.object({
|
|
353
|
-
timestamp: z.boolean().optional(),
|
|
354
|
-
})
|
|
355
|
-
.strict();
|
|
356
|
-
|
|
357
|
-
const MintlifySearchSchema = z
|
|
358
|
-
.object({
|
|
359
|
-
prompt: z.string().optional(),
|
|
360
|
-
})
|
|
361
|
-
.strict();
|
|
362
|
-
|
|
363
|
-
export const ContextualBuiltinOptionSchema = z.enum([
|
|
364
|
-
"add-mcp",
|
|
365
|
-
"aistudio",
|
|
366
|
-
"assistant",
|
|
367
|
-
"chatgpt",
|
|
368
|
-
"claude",
|
|
369
|
-
"copy",
|
|
370
|
-
"cursor",
|
|
371
|
-
"devin",
|
|
372
|
-
"devin-mcp",
|
|
373
|
-
"gemini",
|
|
374
|
-
"grok",
|
|
375
|
-
"mcp",
|
|
376
|
-
"perplexity",
|
|
377
|
-
"view",
|
|
378
|
-
"vscode",
|
|
379
|
-
"windsurf",
|
|
380
|
-
]);
|
|
381
|
-
|
|
382
|
-
const ContextualCustomHrefQuerySchema = z
|
|
383
|
-
.object({
|
|
384
|
-
key: z.string().min(1),
|
|
385
|
-
value: z.string().min(1),
|
|
386
|
-
})
|
|
387
|
-
.strict();
|
|
388
|
-
|
|
389
|
-
const ContextualCustomHrefObjectSchema = z
|
|
390
|
-
.object({
|
|
391
|
-
base: z.string().min(1),
|
|
392
|
-
query: z.array(ContextualCustomHrefQuerySchema),
|
|
393
|
-
})
|
|
394
|
-
.strict();
|
|
395
|
-
|
|
396
|
-
export const ContextualCustomOptionSchema = z
|
|
397
|
-
.object({
|
|
398
|
-
description: z.string().min(1),
|
|
399
|
-
href: z.union([z.string().min(1), ContextualCustomHrefObjectSchema]),
|
|
400
|
-
icon: z.string().min(1),
|
|
401
|
-
iconType: z.string().optional(),
|
|
402
|
-
title: z.string().min(1),
|
|
403
|
-
})
|
|
404
|
-
.strict();
|
|
405
|
-
|
|
406
|
-
export const ContextualOptionSchema = z.union([
|
|
407
|
-
ContextualBuiltinOptionSchema,
|
|
408
|
-
ContextualCustomOptionSchema,
|
|
409
|
-
]);
|
|
410
|
-
|
|
411
|
-
export const DocsContextualSchema = z
|
|
412
|
-
.object({
|
|
413
|
-
display: z.enum(["header", "toc"]).optional(),
|
|
414
|
-
options: z.array(ContextualOptionSchema),
|
|
415
|
-
})
|
|
416
|
-
.strict();
|
|
417
|
-
|
|
418
|
-
export type ContextualBuiltinOption = z.infer<
|
|
419
|
-
typeof ContextualBuiltinOptionSchema
|
|
420
|
-
>;
|
|
421
|
-
export type ContextualCustomOption = z.infer<
|
|
422
|
-
typeof ContextualCustomOptionSchema
|
|
423
|
-
>;
|
|
424
|
-
export type ContextualOption = z.infer<typeof ContextualOptionSchema>;
|
|
425
|
-
export type DocsContextual = z.infer<typeof DocsContextualSchema>;
|
|
426
|
-
|
|
427
|
-
export const DocsConfigSchema = z
|
|
428
|
-
.object({
|
|
429
|
-
$schema: z.string().optional(),
|
|
430
|
-
api: MintlifyApiSchema.optional(),
|
|
431
|
-
appearance: MintlifyAppearanceSchema.optional(),
|
|
432
|
-
contextual: DocsContextualSchema.optional(),
|
|
433
|
-
description: z.string().optional(),
|
|
434
|
-
favicon: MintlifyFaviconSchema.optional(),
|
|
435
|
-
logo: MintlifyLogoSchema.optional(),
|
|
436
|
-
metadata: MintlifyMetadataSchema.optional(),
|
|
437
|
-
name: z.string().min(1),
|
|
438
|
-
navbar: MintlifyNavbarSchema.optional(),
|
|
439
|
-
navigation: MintlifyNavigationSchema,
|
|
440
|
-
search: MintlifySearchSchema.optional(),
|
|
441
|
-
seo: DocsSeoSchema.optional(),
|
|
442
|
-
slug: SlugSchema.optional(),
|
|
443
|
-
})
|
|
444
|
-
.strict();
|
|
445
|
-
|
|
446
|
-
export type DocsConfig = z.infer<typeof DocsConfigSchema>;
|
|
447
|
-
|
|
448
|
-
export const ContentTypeSchema = z.enum([
|
|
449
|
-
"site",
|
|
450
|
-
"blog",
|
|
451
|
-
"docs",
|
|
452
|
-
"courses",
|
|
453
|
-
"products",
|
|
454
|
-
"notes",
|
|
455
|
-
"forms",
|
|
456
|
-
"sheets",
|
|
457
|
-
"slides",
|
|
458
|
-
"todos",
|
|
459
|
-
]);
|
|
460
|
-
|
|
461
|
-
export type ContentType = z.infer<typeof ContentTypeSchema>;
|
|
462
|
-
|
|
463
|
-
const FrontmatterBaseSchema = z
|
|
464
|
-
.object({
|
|
465
|
-
description: z.string().optional(),
|
|
466
|
-
hidden: z.boolean().optional(),
|
|
467
|
-
title: z.string().min(1),
|
|
468
|
-
})
|
|
469
|
-
.passthrough();
|
|
470
|
-
|
|
471
|
-
const FrontmatterBlogSchema = FrontmatterBaseSchema.extend({
|
|
472
|
-
date: z.string().min(1),
|
|
473
|
-
tags: z.array(z.string()).optional(),
|
|
474
|
-
}).passthrough();
|
|
475
|
-
|
|
476
|
-
const FrontmatterCoursesSchema = FrontmatterBaseSchema.extend({
|
|
477
|
-
order: z.number(),
|
|
478
|
-
}).passthrough();
|
|
479
|
-
|
|
480
|
-
const FrontmatterProductsSchema = FrontmatterBaseSchema.extend({
|
|
481
|
-
currency: z.string().min(1),
|
|
482
|
-
price: z.number(),
|
|
483
|
-
sku: z.string().min(1),
|
|
484
|
-
}).passthrough();
|
|
485
|
-
|
|
486
|
-
const FrontmatterNotesSchema = FrontmatterBaseSchema.extend({
|
|
487
|
-
date: z.string().min(1),
|
|
488
|
-
}).passthrough();
|
|
489
|
-
|
|
490
|
-
const FormFieldSchema = z
|
|
491
|
-
.object({
|
|
492
|
-
id: z.string().min(1),
|
|
493
|
-
label: z.string().min(1),
|
|
494
|
-
options: z.array(z.string()).optional(),
|
|
495
|
-
required: z.boolean().optional(),
|
|
496
|
-
type: z.string().min(1),
|
|
497
|
-
})
|
|
498
|
-
.passthrough();
|
|
499
|
-
|
|
500
|
-
const FrontmatterFormsSchema = FrontmatterBaseSchema.extend({
|
|
501
|
-
fields: z.array(FormFieldSchema).min(1),
|
|
502
|
-
}).passthrough();
|
|
503
|
-
|
|
504
|
-
const FrontmatterSheetsSchema = FrontmatterBaseSchema.extend({
|
|
505
|
-
columns: z.array(z.string()).min(1),
|
|
506
|
-
}).passthrough();
|
|
507
|
-
|
|
508
|
-
const FrontmatterTodosSchema = FrontmatterBaseSchema.extend({
|
|
509
|
-
date: z.string().min(1),
|
|
510
|
-
}).passthrough();
|
|
511
|
-
|
|
512
|
-
export const PageModeSchema = z.enum([
|
|
513
|
-
"default",
|
|
514
|
-
"wide",
|
|
515
|
-
"custom",
|
|
516
|
-
"frame",
|
|
517
|
-
"center",
|
|
518
|
-
]);
|
|
519
|
-
|
|
520
|
-
export type PageMode = z.infer<typeof PageModeSchema>;
|
|
521
|
-
|
|
522
|
-
const FrontmatterDocsSchema = FrontmatterBaseSchema.extend({
|
|
523
|
-
deprecated: z.boolean().optional(),
|
|
524
|
-
hideApiMarker: z.boolean().optional(),
|
|
525
|
-
hideFooterPagination: z.boolean().optional(),
|
|
526
|
-
icon: z.string().optional(),
|
|
527
|
-
iconType: z
|
|
528
|
-
.enum([
|
|
529
|
-
"regular",
|
|
530
|
-
"solid",
|
|
531
|
-
"light",
|
|
532
|
-
"thin",
|
|
533
|
-
"sharp-solid",
|
|
534
|
-
"duotone",
|
|
535
|
-
"brands",
|
|
536
|
-
])
|
|
537
|
-
.optional(),
|
|
538
|
-
keywords: z.array(z.string()).optional(),
|
|
539
|
-
mode: PageModeSchema.optional(),
|
|
540
|
-
noindex: z.boolean().optional(),
|
|
541
|
-
sidebarTitle: z.string().optional(),
|
|
542
|
-
tag: z.string().optional(),
|
|
543
|
-
url: z.string().url().optional(),
|
|
544
|
-
}).passthrough();
|
|
545
|
-
|
|
546
|
-
export type DocsFrontmatter = z.infer<typeof FrontmatterDocsSchema>;
|
|
547
|
-
|
|
548
|
-
export const FrontmatterSchemaByType = {
|
|
549
|
-
blog: FrontmatterBlogSchema,
|
|
550
|
-
courses: FrontmatterCoursesSchema,
|
|
551
|
-
docs: FrontmatterDocsSchema,
|
|
552
|
-
forms: FrontmatterFormsSchema,
|
|
553
|
-
notes: FrontmatterNotesSchema,
|
|
554
|
-
products: FrontmatterProductsSchema,
|
|
555
|
-
sheets: FrontmatterSheetsSchema,
|
|
556
|
-
site: FrontmatterBaseSchema,
|
|
557
|
-
slides: FrontmatterBaseSchema,
|
|
558
|
-
todos: FrontmatterTodosSchema,
|
|
559
|
-
} as const;
|
|
560
|
-
|
|
561
|
-
export type FrontmatterByType = {
|
|
562
|
-
[Key in ContentType]: z.infer<(typeof FrontmatterSchemaByType)[Key]>;
|
|
563
|
-
};
|
|
564
|
-
|
|
565
|
-
export const CollectionIndexSchema = z
|
|
566
|
-
.object({
|
|
567
|
-
description: z.string().optional(),
|
|
568
|
-
hidden: z.boolean().optional(),
|
|
569
|
-
slug: z.string().min(1),
|
|
570
|
-
title: z.string().optional(),
|
|
571
|
-
})
|
|
572
|
-
.strict();
|
|
573
|
-
|
|
574
|
-
export const CollectionSortSchema = z
|
|
575
|
-
.object({
|
|
576
|
-
direction: z.enum(["asc", "desc"]).optional(),
|
|
577
|
-
field: z.enum(["date", "order", "title", "price"]).optional(),
|
|
578
|
-
})
|
|
579
|
-
.strict();
|
|
580
|
-
|
|
581
|
-
export const CollectionConfigSchema = z
|
|
582
|
-
.object({
|
|
583
|
-
id: z.string().min(1),
|
|
584
|
-
index: CollectionIndexSchema.optional(),
|
|
585
|
-
navigation: DocsNavigationSchema.optional(),
|
|
586
|
-
openapi: z
|
|
587
|
-
.union([z.string(), z.array(z.string()), DocsOpenApiSourceSchema])
|
|
588
|
-
.optional(),
|
|
589
|
-
root: z.string().optional(),
|
|
590
|
-
slugPrefix: z.string().optional(),
|
|
591
|
-
sort: CollectionSortSchema.optional(),
|
|
592
|
-
type: ContentTypeSchema,
|
|
593
|
-
})
|
|
594
|
-
.strict();
|
|
595
|
-
|
|
596
|
-
export const SiteConfigSchema = z
|
|
597
|
-
.object({
|
|
598
|
-
collections: z.array(CollectionConfigSchema).min(1),
|
|
599
|
-
colors: DocsColorsSchema.optional(),
|
|
600
|
-
contextual: DocsContextualSchema.optional(),
|
|
601
|
-
description: z.string().optional(),
|
|
602
|
-
favicon: UrlOrPathSchema.optional(),
|
|
603
|
-
features: DocsFeatureFlagsSchema.optional(),
|
|
604
|
-
fonts: DocsFontsSchema.optional(),
|
|
605
|
-
logo: DocsLogoSchema.optional(),
|
|
606
|
-
metadata: z
|
|
607
|
-
.object({
|
|
608
|
-
defaultTitle: z.string().optional(),
|
|
609
|
-
ogImage: UrlOrPathSchema.optional(),
|
|
610
|
-
titleTemplate: z.string().optional(),
|
|
611
|
-
})
|
|
612
|
-
.strict()
|
|
613
|
-
.optional(),
|
|
614
|
-
name: z.string().min(1),
|
|
615
|
-
navigation: DocsNavigationSchema.optional(),
|
|
616
|
-
openapiProxy: DocsOpenApiProxySchema.optional(),
|
|
617
|
-
scripts: DocsScriptsSchema.optional(),
|
|
618
|
-
seo: DocsSeoSchema.optional(),
|
|
619
|
-
slug: SlugSchema.optional(),
|
|
620
|
-
theme: z.string().optional(),
|
|
621
|
-
})
|
|
622
|
-
.strict();
|
|
623
|
-
|
|
624
|
-
export type SiteConfig = z.infer<typeof SiteConfigSchema>;
|
|
625
|
-
export type CollectionConfig = z.infer<typeof CollectionConfigSchema>;
|
|
626
|
-
export type DocsNavigation = z.infer<typeof DocsNavigationSchema>;
|
|
627
|
-
export type DocsNavGroup = z.infer<typeof DocsNavGroupSchema>;
|
|
628
|
-
export type DocsNavTab = z.infer<typeof DocsNavTabSchema>;
|
|
629
|
-
export type DocsOpenApiSource = z.infer<typeof DocsOpenApiSourceSchema>;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export interface TenantAnalyticsGa4 {
|
|
2
|
-
measurementId: string;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
export interface TenantAnalyticsPosthog {
|
|
6
|
-
projectKey: string;
|
|
7
|
-
host?: string;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface TenantAnalytics {
|
|
11
|
-
ga4?: TenantAnalyticsGa4;
|
|
12
|
-
posthog?: TenantAnalyticsPosthog;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export interface Tenant {
|
|
16
|
-
id: string;
|
|
17
|
-
slug: string;
|
|
18
|
-
name: string;
|
|
19
|
-
description?: string;
|
|
20
|
-
activeDeploymentId?: string;
|
|
21
|
-
activeDeploymentManifestUrl?: string;
|
|
22
|
-
analytics?: TenantAnalytics;
|
|
23
|
-
primaryDomain: string;
|
|
24
|
-
subdomain: string;
|
|
25
|
-
customDomains: string[];
|
|
26
|
-
pathPrefix?: string;
|
|
27
|
-
docsPath?: string;
|
|
28
|
-
status: "active" | "disabled";
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export interface DomainRecord {
|
|
32
|
-
type: "A" | "AAAA" | "CNAME" | "TXT" | "MX" | "NS" | "CAA";
|
|
33
|
-
name: string;
|
|
34
|
-
value: string;
|
|
35
|
-
ttl?: string;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export interface DomainStatus {
|
|
39
|
-
status:
|
|
40
|
-
| "Valid Configuration"
|
|
41
|
-
| "Pending Verification"
|
|
42
|
-
| "Invalid Configuration";
|
|
43
|
-
dnsRecords: DomainRecord[];
|
|
44
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,cAAc,CAAC"}
|