@intlayer/backend-contract 0.0.0-stage → 9.7.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/cjs/ai.cjs +267 -0
- package/dist/cjs/ai.cjs.map +1 -0
- package/dist/cjs/analytics.cjs +175 -0
- package/dist/cjs/analytics.cjs.map +1 -0
- package/dist/cjs/asset.cjs +88 -0
- package/dist/cjs/asset.cjs.map +1 -0
- package/dist/cjs/blogComment.cjs +98 -0
- package/dist/cjs/blogComment.cjs.map +1 -0
- package/dist/cjs/cliSessionToken.cjs +40 -0
- package/dist/cjs/cliSessionToken.cjs.map +1 -0
- package/dist/cjs/common.cjs +42 -0
- package/dist/cjs/common.cjs.map +1 -0
- package/dist/cjs/defineRoute.cjs +26 -0
- package/dist/cjs/defineRoute.cjs.map +1 -0
- package/dist/cjs/demo.cjs +22 -0
- package/dist/cjs/demo.cjs.map +1 -0
- package/dist/cjs/dictionary.cjs +168 -0
- package/dist/cjs/dictionary.cjs.map +1 -0
- package/dist/cjs/environment.cjs +91 -0
- package/dist/cjs/environment.cjs.map +1 -0
- package/dist/cjs/eventListener.cjs +19 -0
- package/dist/cjs/eventListener.cjs.map +1 -0
- package/dist/cjs/gitProviders.cjs +361 -0
- package/dist/cjs/gitProviders.cjs.map +1 -0
- package/dist/cjs/newsletter.cjs +50 -0
- package/dist/cjs/newsletter.cjs.map +1 -0
- package/dist/cjs/oAuth2.cjs +62 -0
- package/dist/cjs/oAuth2.cjs.map +1 -0
- package/dist/cjs/organization.cjs +226 -0
- package/dist/cjs/organization.cjs.map +1 -0
- package/dist/cjs/project.cjs +401 -0
- package/dist/cjs/project.cjs.map +1 -0
- package/dist/cjs/public.cjs +60 -0
- package/dist/cjs/public.cjs.map +1 -0
- package/dist/cjs/responseData.cjs +33 -0
- package/dist/cjs/responseData.cjs.map +1 -0
- package/dist/cjs/reviewer.cjs +401 -0
- package/dist/cjs/reviewer.cjs.map +1 -0
- package/dist/cjs/scan.cjs +235 -0
- package/dist/cjs/scan.cjs.map +1 -0
- package/dist/cjs/search.cjs +40 -0
- package/dist/cjs/search.cjs.map +1 -0
- package/dist/cjs/session.cjs +56 -0
- package/dist/cjs/session.cjs.map +1 -0
- package/dist/cjs/showcaseProject.cjs +185 -0
- package/dist/cjs/showcaseProject.cjs.map +1 -0
- package/dist/cjs/stripe.cjs +388 -0
- package/dist/cjs/stripe.cjs.map +1 -0
- package/dist/cjs/tag.cjs +83 -0
- package/dist/cjs/tag.cjs.map +1 -0
- package/dist/cjs/translation.cjs +54 -0
- package/dist/cjs/translation.cjs.map +1 -0
- package/dist/cjs/user.cjs +153 -0
- package/dist/cjs/user.cjs.map +1 -0
- package/dist/esm/ai.mjs +261 -0
- package/dist/esm/ai.mjs.map +1 -0
- package/dist/esm/analytics.mjs +168 -0
- package/dist/esm/analytics.mjs.map +1 -0
- package/dist/esm/asset.mjs +86 -0
- package/dist/esm/asset.mjs.map +1 -0
- package/dist/esm/blogComment.mjs +94 -0
- package/dist/esm/blogComment.mjs.map +1 -0
- package/dist/esm/cliSessionToken.mjs +39 -0
- package/dist/esm/cliSessionToken.mjs.map +1 -0
- package/dist/esm/common.mjs +35 -0
- package/dist/esm/common.mjs.map +1 -0
- package/dist/esm/defineRoute.mjs +23 -0
- package/dist/esm/defineRoute.mjs.map +1 -0
- package/dist/esm/demo.mjs +21 -0
- package/dist/esm/demo.mjs.map +1 -0
- package/dist/esm/dictionary.mjs +163 -0
- package/dist/esm/dictionary.mjs.map +1 -0
- package/dist/esm/environment.mjs +90 -0
- package/dist/esm/environment.mjs.map +1 -0
- package/dist/esm/eventListener.mjs +18 -0
- package/dist/esm/eventListener.mjs.map +1 -0
- package/dist/esm/gitProviders.mjs +352 -0
- package/dist/esm/gitProviders.mjs.map +1 -0
- package/dist/esm/newsletter.mjs +49 -0
- package/dist/esm/newsletter.mjs.map +1 -0
- package/dist/esm/oAuth2.mjs +60 -0
- package/dist/esm/oAuth2.mjs.map +1 -0
- package/dist/esm/organization.mjs +219 -0
- package/dist/esm/organization.mjs.map +1 -0
- package/dist/esm/project.mjs +387 -0
- package/dist/esm/project.mjs.map +1 -0
- package/dist/esm/public.mjs +58 -0
- package/dist/esm/public.mjs.map +1 -0
- package/dist/esm/responseData.mjs +30 -0
- package/dist/esm/responseData.mjs.map +1 -0
- package/dist/esm/reviewer.mjs +390 -0
- package/dist/esm/reviewer.mjs.map +1 -0
- package/dist/esm/scan.mjs +225 -0
- package/dist/esm/scan.mjs.map +1 -0
- package/dist/esm/search.mjs +38 -0
- package/dist/esm/search.mjs.map +1 -0
- package/dist/esm/session.mjs +53 -0
- package/dist/esm/session.mjs.map +1 -0
- package/dist/esm/showcaseProject.mjs +182 -0
- package/dist/esm/showcaseProject.mjs.map +1 -0
- package/dist/esm/stripe.mjs +379 -0
- package/dist/esm/stripe.mjs.map +1 -0
- package/dist/esm/tag.mjs +81 -0
- package/dist/esm/tag.mjs.map +1 -0
- package/dist/esm/translation.mjs +53 -0
- package/dist/esm/translation.mjs.map +1 -0
- package/dist/esm/user.mjs +149 -0
- package/dist/esm/user.mjs.map +1 -0
- package/dist/types/@intlayer/config/dist/types/defaultValues/dictionary.d.ts +1 -0
- package/dist/types/@intlayer/config/dist/types/defaultValues/index.d.ts +3 -0
- package/dist/types/@intlayer/config/dist/types/defaultValues/internationalization.d.ts +2 -0
- package/dist/types/@intlayer/config/dist/types/defaultValues/routing.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/dictionaryManipulator/plainDynamicLoader.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/dictionaryManipulator/qualifiedDynamicLoader.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/formatters/compact.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/formatters/currency.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/formatters/date.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/formatters/index.d.ts +9 -0
- package/dist/types/@intlayer/core/dist/types/formatters/list.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/formatters/number.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/formatters/percentage.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/formatters/relativeTime.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/formatters/units.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/interpreter/dictionaryTransformCache.d.ts +4 -0
- package/dist/types/@intlayer/core/dist/types/interpreter/getCondition.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/interpreter/getContent/deepTransform.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/interpreter/getContent/getContent.d.ts +3 -0
- package/dist/types/@intlayer/core/dist/types/interpreter/getContent/index.d.ts +3 -0
- package/dist/types/@intlayer/core/dist/types/interpreter/getContent/plugins.d.ts +7 -0
- package/dist/types/@intlayer/core/dist/types/interpreter/getDictionary.d.ts +4 -0
- package/dist/types/@intlayer/core/dist/types/interpreter/getDictionaryAsync.d.ts +6 -0
- package/dist/types/@intlayer/core/dist/types/interpreter/getEnumeration.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/interpreter/getGender.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/interpreter/getInsertion.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/interpreter/getIntlayer.d.ts +4 -0
- package/dist/types/@intlayer/core/dist/types/interpreter/getIntlayerAsync.d.ts +4 -0
- package/dist/types/@intlayer/core/dist/types/interpreter/getNesting.d.ts +6 -0
- package/dist/types/@intlayer/core/dist/types/interpreter/getPlural.d.ts +3 -0
- package/dist/types/@intlayer/core/dist/types/interpreter/getSelect.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/interpreter/getTranslation.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/interpreter/index.d.ts +19 -0
- package/dist/types/@intlayer/core/dist/types/interpreter/interpolableNode.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/interpreter/resolveInterpreterLocale.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/localization/comparePaths.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/localization/domainUtils.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/localization/generateSitemap.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/localization/getBrowserLocale.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/localization/getCanonicalPath.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/localization/getHTMLTextDir.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/localization/getLocale.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/localization/getLocaleFromPath.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/localization/getLocaleFromRequest.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/localization/getLocaleLang.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/localization/getLocaleName.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/localization/getLocalizedPath.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/localization/getLocalizedUrl.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/localization/getMultilingualUrls.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/localization/getPathWithoutLocale.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/localization/getPrefix.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/localization/index.d.ts +23 -0
- package/dist/types/@intlayer/core/dist/types/localization/localeDetector.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/localization/localeMapper.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/localization/localeResolver.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/localization/resolveBrowserLocale.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/localization/rewriteMatch.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/localization/rewriteUtils.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/localization/validatePrefix.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/markdown/index.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/condition/condition.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/condition/index.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/enumeration/enumeration.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/enumeration/index.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/file/file.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/file/index.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/gender/gender.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/gender/index.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/html/html.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/html/index.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/index.d.ts +22 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/insertion/index.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/insertion/insertion.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/markdown/index.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/markdown/markdown.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/nesting/index.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/nesting/nesting.d.ts +4 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/plural/index.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/plural/plural.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/select/index.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/select/select.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/translation/index.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/translation/translation.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/utils/index.d.ts +3 -0
- package/dist/types/@intlayer/core/dist/types/utils/intl.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/utils/isSameKeyPath.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/utils/localeStorage.d.ts +2 -0
- package/dist/types/ai.d.ts +549 -0
- package/dist/types/ai.d.ts.map +1 -0
- package/dist/types/analytics.d.ts +378 -0
- package/dist/types/analytics.d.ts.map +1 -0
- package/dist/types/asset.d.ts +207 -0
- package/dist/types/asset.d.ts.map +1 -0
- package/dist/types/blogComment.d.ts +241 -0
- package/dist/types/blogComment.d.ts.map +1 -0
- package/dist/types/cliSessionToken.d.ts +264 -0
- package/dist/types/cliSessionToken.d.ts.map +1 -0
- package/dist/types/common.d.ts +32 -0
- package/dist/types/common.d.ts.map +1 -0
- package/dist/types/defineRoute.d.ts +57 -0
- package/dist/types/defineRoute.d.ts.map +1 -0
- package/dist/types/demo.d.ts +21 -0
- package/dist/types/demo.d.ts.map +1 -0
- package/dist/types/dictionary.d.ts +360 -0
- package/dist/types/dictionary.d.ts.map +1 -0
- package/dist/types/environment.d.ts +285 -0
- package/dist/types/environment.d.ts.map +1 -0
- package/dist/types/eventListener.d.ts +17 -0
- package/dist/types/eventListener.d.ts.map +1 -0
- package/dist/types/gitProviders.d.ts +807 -0
- package/dist/types/gitProviders.d.ts.map +1 -0
- package/dist/types/intlayer/dist/types/index.d.ts +13 -0
- package/dist/types/newsletter.d.ts +165 -0
- package/dist/types/newsletter.d.ts.map +1 -0
- package/dist/types/oAuth2.d.ts +482 -0
- package/dist/types/oAuth2.d.ts.map +1 -0
- package/dist/types/organization.d.ts +1069 -0
- package/dist/types/organization.d.ts.map +1 -0
- package/dist/types/project.d.ts +1735 -0
- package/dist/types/project.d.ts.map +1 -0
- package/dist/types/public.d.ts +109 -0
- package/dist/types/public.d.ts.map +1 -0
- package/dist/types/responseData.d.ts +68 -0
- package/dist/types/responseData.d.ts.map +1 -0
- package/dist/types/reviewer.d.ts +1239 -0
- package/dist/types/reviewer.d.ts.map +1 -0
- package/dist/types/scan.d.ts +625 -0
- package/dist/types/scan.d.ts.map +1 -0
- package/dist/types/search.d.ts +55 -0
- package/dist/types/search.d.ts.map +1 -0
- package/dist/types/session.d.ts +286 -0
- package/dist/types/session.d.ts.map +1 -0
- package/dist/types/showcaseProject.d.ts +550 -0
- package/dist/types/showcaseProject.d.ts.map +1 -0
- package/dist/types/stripe.d.ts +1219 -0
- package/dist/types/stripe.d.ts.map +1 -0
- package/dist/types/tag.d.ts +193 -0
- package/dist/types/tag.d.ts.map +1 -0
- package/dist/types/translation.d.ts +162 -0
- package/dist/types/translation.d.ts.map +1 -0
- package/dist/types/user.d.ts +447 -0
- package/dist/types/user.d.ts.map +1 -0
- package/package.json +300 -4
- package/README.md +0 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reviewer.d.ts","names":[],"sources":["../../src/reviewer.ts"],"mappings":"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"}
|
|
@@ -0,0 +1,625 @@
|
|
|
1
|
+
import { RouteBodyInput, RouteDefinition, RouteGroup, RouteParams, RouteQuerystring } from "./defineRoute.js";
|
|
2
|
+
import { PaginatedResponse, ResponseData } from "./responseData.js";
|
|
3
|
+
import { z } from "zod/mini";
|
|
4
|
+
//#region src/scan.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Locale routing strategies detected on a website. Mirrors
|
|
7
|
+
* `@intlayer/engine/scan` (asserted equal there: engine depends on the
|
|
8
|
+
* contract, not the reverse).
|
|
9
|
+
*/
|
|
10
|
+
export declare const routingStrategySchema: z.ZodMiniEnum<{
|
|
11
|
+
domain: "domain";
|
|
12
|
+
"no-prefix": "no-prefix";
|
|
13
|
+
"prefix-all": "prefix-all";
|
|
14
|
+
"prefix-no-default": "prefix-no-default";
|
|
15
|
+
"search-params": "search-params";
|
|
16
|
+
subdomain: "subdomain";
|
|
17
|
+
unknown: "unknown";
|
|
18
|
+
}>;
|
|
19
|
+
/** Technology categories of the scan signatures (mirrors engine). */
|
|
20
|
+
export declare const technologyCategorySchema: z.ZodMiniEnum<{
|
|
21
|
+
cms: "cms";
|
|
22
|
+
framework: "framework";
|
|
23
|
+
"i18n-library": "i18n-library";
|
|
24
|
+
tms: "tms";
|
|
25
|
+
"translation-proxy": "translation-proxy";
|
|
26
|
+
}>;
|
|
27
|
+
/** Where a host scan came from. */
|
|
28
|
+
export declare const hostScanSourceSchema: z.ZodMiniEnum<{
|
|
29
|
+
background: "background";
|
|
30
|
+
extension: "extension";
|
|
31
|
+
recursive: "recursive";
|
|
32
|
+
scan: "scan";
|
|
33
|
+
}>;
|
|
34
|
+
/** Technology detected on a host. */
|
|
35
|
+
export declare const hostTechnologySchema: z.ZodMiniObject<{
|
|
36
|
+
id: z.ZodMiniString<string>;
|
|
37
|
+
name: z.ZodMiniString<string>;
|
|
38
|
+
category: z.ZodMiniEnum<{
|
|
39
|
+
cms: "cms";
|
|
40
|
+
framework: "framework";
|
|
41
|
+
"i18n-library": "i18n-library";
|
|
42
|
+
tms: "tms";
|
|
43
|
+
"translation-proxy": "translation-proxy";
|
|
44
|
+
}>;
|
|
45
|
+
version: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
/** One scan of a host. */
|
|
48
|
+
export declare const hostScanSchema: z.ZodMiniObject<{
|
|
49
|
+
url: z.ZodMiniString<string>;
|
|
50
|
+
source: z.ZodMiniEnum<{
|
|
51
|
+
background: "background";
|
|
52
|
+
extension: "extension";
|
|
53
|
+
recursive: "recursive";
|
|
54
|
+
scan: "scan";
|
|
55
|
+
}>;
|
|
56
|
+
score: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
57
|
+
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
58
|
+
technologies: z.ZodMiniArray<z.ZodMiniObject<{
|
|
59
|
+
id: z.ZodMiniString<string>;
|
|
60
|
+
name: z.ZodMiniString<string>;
|
|
61
|
+
category: z.ZodMiniEnum<{
|
|
62
|
+
cms: "cms";
|
|
63
|
+
framework: "framework";
|
|
64
|
+
"i18n-library": "i18n-library";
|
|
65
|
+
tms: "tms";
|
|
66
|
+
"translation-proxy": "translation-proxy";
|
|
67
|
+
}>;
|
|
68
|
+
version: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
69
|
+
}, z.core.$strip>>;
|
|
70
|
+
routingStrategy: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
71
|
+
domain: "domain";
|
|
72
|
+
"no-prefix": "no-prefix";
|
|
73
|
+
"prefix-all": "prefix-all";
|
|
74
|
+
"prefix-no-default": "prefix-no-default";
|
|
75
|
+
"search-params": "search-params";
|
|
76
|
+
subdomain: "subdomain";
|
|
77
|
+
unknown: "unknown";
|
|
78
|
+
}>>;
|
|
79
|
+
locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
80
|
+
scannedAt: z.ZodMiniString<string>;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
export declare const scannedHostSummarySchema: z.ZodMiniObject<{
|
|
83
|
+
id: z.ZodMiniString<string>;
|
|
84
|
+
host: z.ZodMiniString<string>;
|
|
85
|
+
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
86
|
+
technologies: z.ZodMiniArray<z.ZodMiniObject<{
|
|
87
|
+
id: z.ZodMiniString<string>;
|
|
88
|
+
name: z.ZodMiniString<string>;
|
|
89
|
+
category: z.ZodMiniEnum<{
|
|
90
|
+
cms: "cms";
|
|
91
|
+
framework: "framework";
|
|
92
|
+
"i18n-library": "i18n-library";
|
|
93
|
+
tms: "tms";
|
|
94
|
+
"translation-proxy": "translation-proxy";
|
|
95
|
+
}>;
|
|
96
|
+
version: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
97
|
+
}, z.core.$strip>>;
|
|
98
|
+
routingStrategy: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
99
|
+
domain: "domain";
|
|
100
|
+
"no-prefix": "no-prefix";
|
|
101
|
+
"prefix-all": "prefix-all";
|
|
102
|
+
"prefix-no-default": "prefix-no-default";
|
|
103
|
+
"search-params": "search-params";
|
|
104
|
+
subdomain: "subdomain";
|
|
105
|
+
unknown: "unknown";
|
|
106
|
+
}>>;
|
|
107
|
+
locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
108
|
+
lastScore: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
109
|
+
lastScannedAt: z.ZodMiniString<string>;
|
|
110
|
+
scanCount: z.ZodMiniNumber<number>;
|
|
111
|
+
}, z.core.$strip>;
|
|
112
|
+
export declare const scannedHostDetailSchema: z.ZodMiniObject<{
|
|
113
|
+
id: z.ZodMiniString<string>;
|
|
114
|
+
host: z.ZodMiniString<string>;
|
|
115
|
+
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
116
|
+
technologies: z.ZodMiniArray<z.ZodMiniObject<{
|
|
117
|
+
id: z.ZodMiniString<string>;
|
|
118
|
+
name: z.ZodMiniString<string>;
|
|
119
|
+
category: z.ZodMiniEnum<{
|
|
120
|
+
cms: "cms";
|
|
121
|
+
framework: "framework";
|
|
122
|
+
"i18n-library": "i18n-library";
|
|
123
|
+
tms: "tms";
|
|
124
|
+
"translation-proxy": "translation-proxy";
|
|
125
|
+
}>;
|
|
126
|
+
version: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
127
|
+
}, z.core.$strip>>;
|
|
128
|
+
routingStrategy: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
129
|
+
domain: "domain";
|
|
130
|
+
"no-prefix": "no-prefix";
|
|
131
|
+
"prefix-all": "prefix-all";
|
|
132
|
+
"prefix-no-default": "prefix-no-default";
|
|
133
|
+
"search-params": "search-params";
|
|
134
|
+
subdomain: "subdomain";
|
|
135
|
+
unknown: "unknown";
|
|
136
|
+
}>>;
|
|
137
|
+
locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
138
|
+
lastScore: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
139
|
+
lastScannedAt: z.ZodMiniString<string>;
|
|
140
|
+
scanCount: z.ZodMiniNumber<number>;
|
|
141
|
+
scans: z.ZodMiniArray<z.ZodMiniObject<{
|
|
142
|
+
url: z.ZodMiniString<string>;
|
|
143
|
+
source: z.ZodMiniEnum<{
|
|
144
|
+
background: "background";
|
|
145
|
+
extension: "extension";
|
|
146
|
+
recursive: "recursive";
|
|
147
|
+
scan: "scan";
|
|
148
|
+
}>;
|
|
149
|
+
score: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
150
|
+
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
151
|
+
technologies: z.ZodMiniArray<z.ZodMiniObject<{
|
|
152
|
+
id: z.ZodMiniString<string>;
|
|
153
|
+
name: z.ZodMiniString<string>;
|
|
154
|
+
category: z.ZodMiniEnum<{
|
|
155
|
+
cms: "cms";
|
|
156
|
+
framework: "framework";
|
|
157
|
+
"i18n-library": "i18n-library";
|
|
158
|
+
tms: "tms";
|
|
159
|
+
"translation-proxy": "translation-proxy";
|
|
160
|
+
}>;
|
|
161
|
+
version: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
162
|
+
}, z.core.$strip>>;
|
|
163
|
+
routingStrategy: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
164
|
+
domain: "domain";
|
|
165
|
+
"no-prefix": "no-prefix";
|
|
166
|
+
"prefix-all": "prefix-all";
|
|
167
|
+
"prefix-no-default": "prefix-no-default";
|
|
168
|
+
"search-params": "search-params";
|
|
169
|
+
subdomain: "subdomain";
|
|
170
|
+
unknown: "unknown";
|
|
171
|
+
}>>;
|
|
172
|
+
locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
173
|
+
scannedAt: z.ZodMiniString<string>;
|
|
174
|
+
}, z.core.$strip>>;
|
|
175
|
+
}, z.core.$strip>;
|
|
176
|
+
/** Usage of a technology across scanned hosts. */
|
|
177
|
+
export declare const technologyUsageSchema: z.ZodMiniObject<{
|
|
178
|
+
id: z.ZodMiniString<string>;
|
|
179
|
+
name: z.ZodMiniString<string>;
|
|
180
|
+
category: z.ZodMiniEnum<{
|
|
181
|
+
cms: "cms";
|
|
182
|
+
framework: "framework";
|
|
183
|
+
"i18n-library": "i18n-library";
|
|
184
|
+
tms: "tms";
|
|
185
|
+
"translation-proxy": "translation-proxy";
|
|
186
|
+
}>;
|
|
187
|
+
version: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
188
|
+
hostCount: z.ZodMiniNumber<number>;
|
|
189
|
+
lastSeenAt: z.ZodMiniString<string>;
|
|
190
|
+
}, z.core.$strip>;
|
|
191
|
+
export declare const recursiveAuditStatusSchema: z.ZodMiniObject<{
|
|
192
|
+
job: z.ZodMiniObject<{
|
|
193
|
+
_id: z.ZodMiniString<string>;
|
|
194
|
+
targetUrl: z.ZodMiniString<string>;
|
|
195
|
+
userId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
196
|
+
status: z.ZodMiniEnum<{
|
|
197
|
+
cancelled: "cancelled";
|
|
198
|
+
completed: "completed";
|
|
199
|
+
failed: "failed";
|
|
200
|
+
paused: "paused";
|
|
201
|
+
pending: "pending";
|
|
202
|
+
running: "running";
|
|
203
|
+
}>;
|
|
204
|
+
progress: z.ZodMiniNumber<number>;
|
|
205
|
+
totalPageCount: z.ZodMiniNumber<number>;
|
|
206
|
+
completedPageCount: z.ZodMiniNumber<number>;
|
|
207
|
+
createdAt: z.ZodMiniString<string>;
|
|
208
|
+
updatedAt: z.ZodMiniString<string>;
|
|
209
|
+
}, z.core.$loose>;
|
|
210
|
+
pages: z.ZodMiniArray<z.ZodMiniObject<{
|
|
211
|
+
_id: z.ZodMiniString<string>;
|
|
212
|
+
url: z.ZodMiniString<string>;
|
|
213
|
+
status: z.ZodMiniEnum<{
|
|
214
|
+
completed: "completed";
|
|
215
|
+
failed: "failed";
|
|
216
|
+
pending: "pending";
|
|
217
|
+
running: "running";
|
|
218
|
+
}>;
|
|
219
|
+
score: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
220
|
+
error: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
221
|
+
results: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniUnknown>>;
|
|
222
|
+
}, z.core.$loose>>;
|
|
223
|
+
}, z.core.$strip>;
|
|
224
|
+
/** REST contract of the `/api/scan` routes (i18n website scanner). */
|
|
225
|
+
export declare const scanContract: RouteGroup<"/api/scan", {
|
|
226
|
+
readonly scan: RouteDefinition<"GET", "/", {
|
|
227
|
+
readonly querystring: z.ZodMiniObject<{
|
|
228
|
+
url: z.ZodMiniString<string>;
|
|
229
|
+
refresh: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
230
|
+
}, z.core.$strip>;
|
|
231
|
+
}>;
|
|
232
|
+
readonly getTechnologyUsage: RouteDefinition<"GET", "/technologies", {
|
|
233
|
+
readonly querystring: z.ZodMiniObject<{
|
|
234
|
+
category: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
235
|
+
}, z.core.$strip>;
|
|
236
|
+
readonly response: {
|
|
237
|
+
200: z.ZodMiniObject<{
|
|
238
|
+
success: z.ZodMiniBoolean<boolean>;
|
|
239
|
+
status: z.ZodMiniNumber<number>;
|
|
240
|
+
message: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
241
|
+
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
242
|
+
data: z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniObject<{
|
|
243
|
+
id: z.ZodMiniString<string>;
|
|
244
|
+
name: z.ZodMiniString<string>;
|
|
245
|
+
category: z.ZodMiniEnum<{
|
|
246
|
+
cms: "cms";
|
|
247
|
+
framework: "framework";
|
|
248
|
+
"i18n-library": "i18n-library";
|
|
249
|
+
tms: "tms";
|
|
250
|
+
"translation-proxy": "translation-proxy";
|
|
251
|
+
}>;
|
|
252
|
+
version: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
253
|
+
hostCount: z.ZodMiniNumber<number>;
|
|
254
|
+
lastSeenAt: z.ZodMiniString<string>;
|
|
255
|
+
}, z.core.$strip>>>;
|
|
256
|
+
error: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
257
|
+
code: z.ZodMiniString<string>;
|
|
258
|
+
title: z.ZodMiniString<string>;
|
|
259
|
+
message: z.ZodMiniString<string>;
|
|
260
|
+
}, z.core.$loose>, z.ZodMiniArray<z.ZodMiniObject<{
|
|
261
|
+
code: z.ZodMiniString<string>;
|
|
262
|
+
title: z.ZodMiniString<string>;
|
|
263
|
+
message: z.ZodMiniString<string>;
|
|
264
|
+
}, z.core.$loose>>]>>;
|
|
265
|
+
}, z.core.$strip>;
|
|
266
|
+
};
|
|
267
|
+
}>;
|
|
268
|
+
readonly getScannedHosts: RouteDefinition<"GET", "/hosts", {
|
|
269
|
+
readonly querystring: z.ZodMiniObject<{
|
|
270
|
+
page: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>>;
|
|
271
|
+
pageSize: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>>;
|
|
272
|
+
technologyId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
273
|
+
category: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
274
|
+
search: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
275
|
+
}, z.core.$strip>;
|
|
276
|
+
readonly response: {
|
|
277
|
+
200: z.ZodMiniObject<{
|
|
278
|
+
success: z.ZodMiniBoolean<boolean>;
|
|
279
|
+
status: z.ZodMiniNumber<number>;
|
|
280
|
+
message: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
281
|
+
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
282
|
+
data: z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniObject<{
|
|
283
|
+
id: z.ZodMiniString<string>;
|
|
284
|
+
host: z.ZodMiniString<string>;
|
|
285
|
+
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
286
|
+
technologies: z.ZodMiniArray<z.ZodMiniObject<{
|
|
287
|
+
id: z.ZodMiniString<string>;
|
|
288
|
+
name: z.ZodMiniString<string>;
|
|
289
|
+
category: z.ZodMiniEnum<{
|
|
290
|
+
cms: "cms";
|
|
291
|
+
framework: "framework";
|
|
292
|
+
"i18n-library": "i18n-library";
|
|
293
|
+
tms: "tms";
|
|
294
|
+
"translation-proxy": "translation-proxy";
|
|
295
|
+
}>;
|
|
296
|
+
version: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
297
|
+
}, z.core.$strip>>;
|
|
298
|
+
routingStrategy: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
299
|
+
domain: "domain";
|
|
300
|
+
"no-prefix": "no-prefix";
|
|
301
|
+
"prefix-all": "prefix-all";
|
|
302
|
+
"prefix-no-default": "prefix-no-default";
|
|
303
|
+
"search-params": "search-params";
|
|
304
|
+
subdomain: "subdomain";
|
|
305
|
+
unknown: "unknown";
|
|
306
|
+
}>>;
|
|
307
|
+
locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
308
|
+
lastScore: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
309
|
+
lastScannedAt: z.ZodMiniString<string>;
|
|
310
|
+
scanCount: z.ZodMiniNumber<number>;
|
|
311
|
+
}, z.core.$strip>>>;
|
|
312
|
+
error: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
313
|
+
code: z.ZodMiniString<string>;
|
|
314
|
+
title: z.ZodMiniString<string>;
|
|
315
|
+
message: z.ZodMiniString<string>;
|
|
316
|
+
}, z.core.$loose>, z.ZodMiniArray<z.ZodMiniObject<{
|
|
317
|
+
code: z.ZodMiniString<string>;
|
|
318
|
+
title: z.ZodMiniString<string>;
|
|
319
|
+
message: z.ZodMiniString<string>;
|
|
320
|
+
}, z.core.$loose>>]>>;
|
|
321
|
+
page: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
|
|
322
|
+
page_size: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
|
|
323
|
+
total_pages: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
|
|
324
|
+
total_items: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
|
|
325
|
+
}, z.core.$strip>;
|
|
326
|
+
};
|
|
327
|
+
}>;
|
|
328
|
+
readonly getScannedHost: RouteDefinition<"GET", "/hosts/:host", {
|
|
329
|
+
readonly params: z.ZodMiniObject<{
|
|
330
|
+
host: z.ZodMiniString<string>;
|
|
331
|
+
}, z.core.$strip>;
|
|
332
|
+
readonly response: {
|
|
333
|
+
200: z.ZodMiniObject<{
|
|
334
|
+
success: z.ZodMiniBoolean<boolean>;
|
|
335
|
+
status: z.ZodMiniNumber<number>;
|
|
336
|
+
message: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
337
|
+
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
338
|
+
data: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
339
|
+
id: z.ZodMiniString<string>;
|
|
340
|
+
host: z.ZodMiniString<string>;
|
|
341
|
+
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
342
|
+
technologies: z.ZodMiniArray<z.ZodMiniObject<{
|
|
343
|
+
id: z.ZodMiniString<string>;
|
|
344
|
+
name: z.ZodMiniString<string>;
|
|
345
|
+
category: z.ZodMiniEnum<{
|
|
346
|
+
cms: "cms";
|
|
347
|
+
framework: "framework";
|
|
348
|
+
"i18n-library": "i18n-library";
|
|
349
|
+
tms: "tms";
|
|
350
|
+
"translation-proxy": "translation-proxy";
|
|
351
|
+
}>;
|
|
352
|
+
version: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
353
|
+
}, z.core.$strip>>;
|
|
354
|
+
routingStrategy: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
355
|
+
domain: "domain";
|
|
356
|
+
"no-prefix": "no-prefix";
|
|
357
|
+
"prefix-all": "prefix-all";
|
|
358
|
+
"prefix-no-default": "prefix-no-default";
|
|
359
|
+
"search-params": "search-params";
|
|
360
|
+
subdomain: "subdomain";
|
|
361
|
+
unknown: "unknown";
|
|
362
|
+
}>>;
|
|
363
|
+
locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
364
|
+
lastScore: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
365
|
+
lastScannedAt: z.ZodMiniString<string>;
|
|
366
|
+
scanCount: z.ZodMiniNumber<number>;
|
|
367
|
+
scans: z.ZodMiniArray<z.ZodMiniObject<{
|
|
368
|
+
url: z.ZodMiniString<string>;
|
|
369
|
+
source: z.ZodMiniEnum<{
|
|
370
|
+
background: "background";
|
|
371
|
+
extension: "extension";
|
|
372
|
+
recursive: "recursive";
|
|
373
|
+
scan: "scan";
|
|
374
|
+
}>;
|
|
375
|
+
score: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
376
|
+
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
377
|
+
technologies: z.ZodMiniArray<z.ZodMiniObject<{
|
|
378
|
+
id: z.ZodMiniString<string>;
|
|
379
|
+
name: z.ZodMiniString<string>;
|
|
380
|
+
category: z.ZodMiniEnum<{
|
|
381
|
+
cms: "cms";
|
|
382
|
+
framework: "framework";
|
|
383
|
+
"i18n-library": "i18n-library";
|
|
384
|
+
tms: "tms";
|
|
385
|
+
"translation-proxy": "translation-proxy";
|
|
386
|
+
}>;
|
|
387
|
+
version: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
388
|
+
}, z.core.$strip>>;
|
|
389
|
+
routingStrategy: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
390
|
+
domain: "domain";
|
|
391
|
+
"no-prefix": "no-prefix";
|
|
392
|
+
"prefix-all": "prefix-all";
|
|
393
|
+
"prefix-no-default": "prefix-no-default";
|
|
394
|
+
"search-params": "search-params";
|
|
395
|
+
subdomain: "subdomain";
|
|
396
|
+
unknown: "unknown";
|
|
397
|
+
}>>;
|
|
398
|
+
locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
399
|
+
scannedAt: z.ZodMiniString<string>;
|
|
400
|
+
}, z.core.$strip>>;
|
|
401
|
+
}, z.core.$strip>>;
|
|
402
|
+
error: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
403
|
+
code: z.ZodMiniString<string>;
|
|
404
|
+
title: z.ZodMiniString<string>;
|
|
405
|
+
message: z.ZodMiniString<string>;
|
|
406
|
+
}, z.core.$loose>, z.ZodMiniArray<z.ZodMiniObject<{
|
|
407
|
+
code: z.ZodMiniString<string>;
|
|
408
|
+
title: z.ZodMiniString<string>;
|
|
409
|
+
message: z.ZodMiniString<string>;
|
|
410
|
+
}, z.core.$loose>>]>>;
|
|
411
|
+
}, z.core.$strip>;
|
|
412
|
+
};
|
|
413
|
+
}>;
|
|
414
|
+
readonly reportHostDetection: RouteDefinition<"POST", "/hosts/detections", {
|
|
415
|
+
/** Every field bounded: names and categories are resolved server-side. */
|
|
416
|
+
readonly body: z.ZodMiniObject<{
|
|
417
|
+
url: z.ZodMiniString<string>;
|
|
418
|
+
technologies: z.ZodMiniArray<z.ZodMiniObject<{
|
|
419
|
+
id: z.ZodMiniString<string>;
|
|
420
|
+
version: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
421
|
+
}, z.core.$strict>>;
|
|
422
|
+
routingStrategy: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
423
|
+
domain: "domain";
|
|
424
|
+
"no-prefix": "no-prefix";
|
|
425
|
+
"prefix-all": "prefix-all";
|
|
426
|
+
"prefix-no-default": "prefix-no-default";
|
|
427
|
+
"search-params": "search-params";
|
|
428
|
+
subdomain: "subdomain";
|
|
429
|
+
unknown: "unknown";
|
|
430
|
+
}>>;
|
|
431
|
+
locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
432
|
+
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
433
|
+
}, z.core.$strict>;
|
|
434
|
+
readonly response: {
|
|
435
|
+
200: z.ZodMiniObject<{
|
|
436
|
+
success: z.ZodMiniBoolean<boolean>;
|
|
437
|
+
status: z.ZodMiniNumber<number>;
|
|
438
|
+
message: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
439
|
+
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
440
|
+
data: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
441
|
+
isBackgroundScanQueued: z.ZodMiniBoolean<boolean>;
|
|
442
|
+
}, z.core.$strip>>;
|
|
443
|
+
error: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
444
|
+
code: z.ZodMiniString<string>;
|
|
445
|
+
title: z.ZodMiniString<string>;
|
|
446
|
+
message: z.ZodMiniString<string>;
|
|
447
|
+
}, z.core.$loose>, z.ZodMiniArray<z.ZodMiniObject<{
|
|
448
|
+
code: z.ZodMiniString<string>;
|
|
449
|
+
title: z.ZodMiniString<string>;
|
|
450
|
+
message: z.ZodMiniString<string>;
|
|
451
|
+
}, z.core.$loose>>]>>;
|
|
452
|
+
}, z.core.$strip>;
|
|
453
|
+
};
|
|
454
|
+
}>;
|
|
455
|
+
readonly discoverUrls: RouteDefinition<"GET", "/recursive/discover", {
|
|
456
|
+
readonly querystring: z.ZodMiniObject<{
|
|
457
|
+
url: z.ZodMiniString<string>;
|
|
458
|
+
}, z.core.$strip>;
|
|
459
|
+
readonly response: {
|
|
460
|
+
200: z.ZodMiniObject<{
|
|
461
|
+
urls: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
462
|
+
}, z.core.$strip>;
|
|
463
|
+
};
|
|
464
|
+
}>;
|
|
465
|
+
readonly startRecursive: RouteDefinition<"POST", "/recursive/start", {
|
|
466
|
+
readonly querystring: z.ZodMiniObject<{
|
|
467
|
+
url: z.ZodMiniString<string>;
|
|
468
|
+
}, z.core.$strip>;
|
|
469
|
+
readonly body: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
470
|
+
urls: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
471
|
+
}, z.core.$strip>>;
|
|
472
|
+
readonly response: {
|
|
473
|
+
200: z.ZodMiniObject<{
|
|
474
|
+
jobId: z.ZodMiniString<string>;
|
|
475
|
+
}, z.core.$strip>;
|
|
476
|
+
};
|
|
477
|
+
}>;
|
|
478
|
+
readonly getRecursiveStatus: RouteDefinition<"GET", "/recursive/:jobId", {
|
|
479
|
+
readonly params: z.ZodMiniObject<{
|
|
480
|
+
jobId: z.ZodMiniString<string>;
|
|
481
|
+
}, z.core.$strip>;
|
|
482
|
+
readonly response: {
|
|
483
|
+
200: z.ZodMiniObject<{
|
|
484
|
+
job: z.ZodMiniObject<{
|
|
485
|
+
_id: z.ZodMiniString<string>;
|
|
486
|
+
targetUrl: z.ZodMiniString<string>;
|
|
487
|
+
userId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
488
|
+
status: z.ZodMiniEnum<{
|
|
489
|
+
cancelled: "cancelled";
|
|
490
|
+
completed: "completed";
|
|
491
|
+
failed: "failed";
|
|
492
|
+
paused: "paused";
|
|
493
|
+
pending: "pending";
|
|
494
|
+
running: "running";
|
|
495
|
+
}>;
|
|
496
|
+
progress: z.ZodMiniNumber<number>;
|
|
497
|
+
totalPageCount: z.ZodMiniNumber<number>;
|
|
498
|
+
completedPageCount: z.ZodMiniNumber<number>;
|
|
499
|
+
createdAt: z.ZodMiniString<string>;
|
|
500
|
+
updatedAt: z.ZodMiniString<string>;
|
|
501
|
+
}, z.core.$loose>;
|
|
502
|
+
pages: z.ZodMiniArray<z.ZodMiniObject<{
|
|
503
|
+
_id: z.ZodMiniString<string>;
|
|
504
|
+
url: z.ZodMiniString<string>;
|
|
505
|
+
status: z.ZodMiniEnum<{
|
|
506
|
+
completed: "completed";
|
|
507
|
+
failed: "failed";
|
|
508
|
+
pending: "pending";
|
|
509
|
+
running: "running";
|
|
510
|
+
}>;
|
|
511
|
+
score: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
512
|
+
error: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
513
|
+
results: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniUnknown>>;
|
|
514
|
+
}, z.core.$loose>>;
|
|
515
|
+
}, z.core.$strip>;
|
|
516
|
+
};
|
|
517
|
+
}>;
|
|
518
|
+
readonly cancelRecursive: RouteDefinition<"POST", `/recursive/:jobId/${string}`, {
|
|
519
|
+
readonly params: z.ZodMiniObject<{
|
|
520
|
+
jobId: z.ZodMiniString<string>;
|
|
521
|
+
}, z.core.$strip>;
|
|
522
|
+
readonly response: {
|
|
523
|
+
200: z.ZodMiniObject<{
|
|
524
|
+
success: z.ZodMiniBoolean<boolean>;
|
|
525
|
+
}, z.core.$strip>;
|
|
526
|
+
};
|
|
527
|
+
}>;
|
|
528
|
+
readonly pauseRecursive: RouteDefinition<"POST", `/recursive/:jobId/${string}`, {
|
|
529
|
+
readonly params: z.ZodMiniObject<{
|
|
530
|
+
jobId: z.ZodMiniString<string>;
|
|
531
|
+
}, z.core.$strip>;
|
|
532
|
+
readonly response: {
|
|
533
|
+
200: z.ZodMiniObject<{
|
|
534
|
+
success: z.ZodMiniBoolean<boolean>;
|
|
535
|
+
}, z.core.$strip>;
|
|
536
|
+
};
|
|
537
|
+
}>;
|
|
538
|
+
readonly resumeRecursive: RouteDefinition<"POST", `/recursive/:jobId/${string}`, {
|
|
539
|
+
readonly params: z.ZodMiniObject<{
|
|
540
|
+
jobId: z.ZodMiniString<string>;
|
|
541
|
+
}, z.core.$strip>;
|
|
542
|
+
readonly response: {
|
|
543
|
+
200: z.ZodMiniObject<{
|
|
544
|
+
success: z.ZodMiniBoolean<boolean>;
|
|
545
|
+
}, z.core.$strip>;
|
|
546
|
+
};
|
|
547
|
+
}>;
|
|
548
|
+
}>;
|
|
549
|
+
/** Route definitions of the `/api/scan` group, by name. */
|
|
550
|
+
export type ScanRoutes = (typeof scanContract)['routes'];
|
|
551
|
+
export type RoutingStrategy = z.output<typeof routingStrategySchema>;
|
|
552
|
+
export type TechnologyCategory = z.output<typeof technologyCategorySchema>;
|
|
553
|
+
export type HostScanSource = z.output<typeof hostScanSourceSchema>;
|
|
554
|
+
export type HostTechnology = z.output<typeof hostTechnologySchema>;
|
|
555
|
+
export type HostScan = z.output<typeof hostScanSchema>;
|
|
556
|
+
export type ScannedHostSummary = z.output<typeof scannedHostSummarySchema>;
|
|
557
|
+
export type ScannedHostDetail = z.output<typeof scannedHostDetailSchema>;
|
|
558
|
+
export type TechnologyUsage = z.output<typeof technologyUsageSchema>;
|
|
559
|
+
export type ReportHostDetectionBody = RouteBodyInput<ScanRoutes['reportHostDetection']>;
|
|
560
|
+
export type ReportHostDetectionResult = ResponseData<{
|
|
561
|
+
isBackgroundScanQueued: boolean;
|
|
562
|
+
}>;
|
|
563
|
+
export type GetTechnologyUsageQuery = RouteQuerystring<ScanRoutes['getTechnologyUsage']>;
|
|
564
|
+
export type GetTechnologyUsageResult = ResponseData<TechnologyUsage[]>;
|
|
565
|
+
export type GetScannedHostsQuery = RouteQuerystring<ScanRoutes['getScannedHosts']>;
|
|
566
|
+
export type GetScannedHostsResult = PaginatedResponse<ScannedHostSummary>;
|
|
567
|
+
export type GetScannedHostParams = RouteParams<ScanRoutes['getScannedHost']>;
|
|
568
|
+
export type GetScannedHostResult = ResponseData<ScannedHostDetail>;
|
|
569
|
+
export type DiscoverUrlsResult = {
|
|
570
|
+
urls: string[];
|
|
571
|
+
};
|
|
572
|
+
export type StartRecursiveAuditResult = {
|
|
573
|
+
jobId: string;
|
|
574
|
+
};
|
|
575
|
+
export type GetRecursiveAuditStatusResult = z.output<typeof recursiveAuditStatusSchema>;
|
|
576
|
+
type AuditDetails = null | undefined | string | number | boolean | AuditDetails[] | {
|
|
577
|
+
[key: string]: AuditDetails;
|
|
578
|
+
};
|
|
579
|
+
type UrlAuditCheck = 'url_hasCanonical' | 'url_hasLocalizedLinks' | 'url_currentLocale' | 'url_htmlLang' | 'url_htmlDir' | 'url_ogLocale' | 'url_hreflang' | 'url_hreflangReciprocal' | 'url_hasXDefault' | 'url_allAnchorsLocalized' | 'url_hasLangSelector' | 'url_unusedBundleContent';
|
|
580
|
+
/** Audit check identifier (`url_*` checks are suffixed with the URL). */
|
|
581
|
+
export type AuditDataList<Url extends string = string> = `${UrlAuditCheck}${Url}` | 'robots_robotsPresent' | 'robots_noLocalizedUrlsForgotten' | 'sitemap_sitemapPresent' | 'sitemap_noLocalizedUrlsForgotten' | 'sitemap_hasXDefault' | 'sitemap_hasAlternates';
|
|
582
|
+
export type AuditData = {
|
|
583
|
+
successDetails?: AuditDetails;
|
|
584
|
+
warningsDetails?: AuditDetails;
|
|
585
|
+
errorsDetails?: AuditDetails;
|
|
586
|
+
};
|
|
587
|
+
/** Locale routing detected on a page (mirrors engine `RoutingDetection`). */
|
|
588
|
+
export type RoutingDetection = {
|
|
589
|
+
strategy: RoutingStrategy;
|
|
590
|
+
confidence: 'high' | 'low';
|
|
591
|
+
locales: string[];
|
|
592
|
+
defaultLocale?: string;
|
|
593
|
+
searchParamName?: string;
|
|
594
|
+
hostLocales?: Record<string, string>;
|
|
595
|
+
urlLocale?: string;
|
|
596
|
+
evidence: string;
|
|
597
|
+
};
|
|
598
|
+
/** Technology detected on a page (mirrors engine `DetectedTechnology`). */
|
|
599
|
+
export type DetectedTechnology = HostTechnology & {
|
|
600
|
+
evidence: string;
|
|
601
|
+
};
|
|
602
|
+
export type DomainData = {
|
|
603
|
+
discoveredUrls: Record<string, string[]>;
|
|
604
|
+
discoveredLocales: string[];
|
|
605
|
+
defaultLocale: string;
|
|
606
|
+
image: string;
|
|
607
|
+
title: string;
|
|
608
|
+
description: string;
|
|
609
|
+
routing: RoutingDetection;
|
|
610
|
+
technologies: DetectedTechnology[];
|
|
611
|
+
};
|
|
612
|
+
export type AuditEvent = {
|
|
613
|
+
type?: AuditDataList;
|
|
614
|
+
status?: 'started' | 'success' | 'warning' | 'error';
|
|
615
|
+
data?: AuditData;
|
|
616
|
+
score?: number;
|
|
617
|
+
progress?: number;
|
|
618
|
+
message?: string;
|
|
619
|
+
globalError?: string;
|
|
620
|
+
domainData?: Partial<DomainData>;
|
|
621
|
+
/** ISO date, sent first when the result is replayed from the cache. */
|
|
622
|
+
cachedAt?: string;
|
|
623
|
+
};
|
|
624
|
+
//#endregion
|
|
625
|
+
//# sourceMappingURL=scan.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scan.d.ts","names":[],"sources":["../../src/scan.ts"],"mappings":";;;;;;;;;qBAqBa,uBAAqB,EAAA;;;;;;;;;;qBAWrB,0BAAwB,EAAA;;;;;;;;qBASxB,sBAAoB,EAAA;;;;;;;qBAQpB,sBAAoB,EAAA;;;;;;;;;;;GAK/B,EAAA,KAAA;;qBAGW,gBAAc,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GASzB,EAAA,KAAA;qBAEW,0BAAwB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAUnC,EAAA,KAAA;qBAEW,yBAAuB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAGlC,EAAA,KAAA;;qBAGW,uBAAqB,EAAA;;;;;;;;;;;;;GAIhC,EAAA,KAAA;qBA8BW,4BAA0B,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAGrC,EAAA,KAAA;;qBAsBW;;;;;;;+BAsBU;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAcA;;;;;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAWA;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAmCV;;;;;;;;;;;;;;;;;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;yBAYU;;;;;MAAH,KAAG,EAAA;;;;;2BAUA;;;;;;;;MAAH,KAAG,EAAA;;;;;+BASA;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAtHF;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;YAyIT,qBAAqB;YAErB,kBAAkB,EAAE,cAAc;YAClC,qBAAqB,EAAE,cAAc;YACrC,iBAAiB,EAAE,cAAc;YACjC,iBAAiB,EAAE,cAAc;YACjC,WAAW,EAAE,cAAc;YAC3B,qBAAqB,EAAE,cAAc;YACrC,oBAAoB,EAAE,cAAc;YACpC,kBAAkB,EAAE,cAAc;YAElC,0BAA0B,eACpC;YAEU,4BAA4B;EACtC;;YAEU,0BAA0B,iBACpC;YAEU,2BAA2B,aAAa;YACxC,uBAAuB,iBACjC;YAEU,wBAAwB,kBAAkB;YAC1C,uBAAuB,YAAY;YACnC,uBAAuB,aAAa;YACpC;EAAuB;;YACvB;EAA8B;;YAC9B,gCAAgC,EAAE,cACrC;KAIJ,8DAMD;GACG,cAAc;;KAEhB;;YAeO,cAAc,kCACnB,gBAAgB;YAQX;EACV,iBAAiB;EACjB,kBAAkB;EAClB,gBAAgB;;;YAIN;EACV,UAAU;EACV;EACA;EACA;EACA;EACA,cAAc;EACd;EACA;;;YAIU,qBAAqB;EAAmB;;YAExC;EACV,gBAAgB;EAChB;EACA;EACA;EACA;EACA;EACA,SAAS;EACT,cAAc;;YAGJ;EACV,OAAO;EACP;EACA,OAAO;EACP;EACA;EACA;EACA;EACA,aAAa,QAAQ;;EAErB"}
|