@haakco/custd-sdk 0.0.0-stage → 3.71.1

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 (196) hide show
  1. package/README.md +958 -2
  2. package/dist/admin-accounting-evidence.d.ts +48 -0
  3. package/dist/admin-accounting-evidence.js +24 -0
  4. package/dist/admin-app-releases.d.ts +116 -0
  5. package/dist/admin-app-releases.js +8 -0
  6. package/dist/admin-apps.d.ts +120 -0
  7. package/dist/admin-apps.js +47 -0
  8. package/dist/admin-auth-project-domain.d.ts +125 -0
  9. package/dist/admin-auth-project-domain.js +37 -0
  10. package/dist/admin-auth-projects.d.ts +989 -0
  11. package/dist/admin-auth-projects.js +527 -0
  12. package/dist/admin-campaign-email.d.ts +120 -0
  13. package/dist/admin-campaign-email.js +64 -0
  14. package/dist/admin-client-setup.d.ts +122 -0
  15. package/dist/admin-client-setup.js +408 -0
  16. package/dist/admin-data-labels.d.ts +124 -0
  17. package/dist/admin-data-labels.js +51 -0
  18. package/dist/admin-data-scopes.d.ts +93 -0
  19. package/dist/admin-data-scopes.js +154 -0
  20. package/dist/admin-email-relay.d.ts +66 -0
  21. package/dist/admin-email-relay.js +25 -0
  22. package/dist/admin-environment-policy.d.ts +32 -0
  23. package/dist/admin-environment-policy.js +26 -0
  24. package/dist/admin-error-issues.d.ts +91 -0
  25. package/dist/admin-error-issues.js +52 -0
  26. package/dist/admin-event-types.d.ts +57 -0
  27. package/dist/admin-event-types.js +28 -0
  28. package/dist/admin-impersonation.d.ts +48 -0
  29. package/dist/admin-impersonation.js +27 -0
  30. package/dist/admin-ingest-claims.d.ts +35 -0
  31. package/dist/admin-ingest-claims.js +26 -0
  32. package/dist/admin-managed-audit.d.ts +13 -0
  33. package/dist/admin-managed-audit.js +13 -0
  34. package/dist/admin-measurement-projects.d.ts +166 -0
  35. package/dist/admin-measurement-projects.js +120 -0
  36. package/dist/admin-notification-destinations.d.ts +31 -0
  37. package/dist/admin-notification-destinations.js +19 -0
  38. package/dist/admin-notification-webhooks.d.ts +64 -0
  39. package/dist/admin-notification-webhooks.js +42 -0
  40. package/dist/admin-oauth-client-admissions.d.ts +65 -0
  41. package/dist/admin-oauth-client-admissions.js +46 -0
  42. package/dist/admin-offboarding.d.ts +123 -0
  43. package/dist/admin-offboarding.js +129 -0
  44. package/dist/admin-predictions.d.ts +266 -0
  45. package/dist/admin-predictions.js +93 -0
  46. package/dist/admin-privacy-erasures.d.ts +74 -0
  47. package/dist/admin-privacy-erasures.js +73 -0
  48. package/dist/admin-retention.d.ts +99 -0
  49. package/dist/admin-retention.js +60 -0
  50. package/dist/admin-rls.d.ts +94 -0
  51. package/dist/admin-rls.js +33 -0
  52. package/dist/admin-sdk-usage.d.ts +41 -0
  53. package/dist/admin-sdk-usage.js +23 -0
  54. package/dist/admin-site-ai.d.ts +72 -0
  55. package/dist/admin-site-ai.js +1 -0
  56. package/dist/admin-site-analytics.d.ts +52 -0
  57. package/dist/admin-site-analytics.js +14 -0
  58. package/dist/admin-site-audit-pages.d.ts +76 -0
  59. package/dist/admin-site-audit-pages.js +27 -0
  60. package/dist/admin-site-campaign-links.d.ts +40 -0
  61. package/dist/admin-site-campaign-links.js +9 -0
  62. package/dist/admin-site-domains.d.ts +733 -0
  63. package/dist/admin-site-domains.js +768 -0
  64. package/dist/admin-site-export.d.ts +76 -0
  65. package/dist/admin-site-export.js +15 -0
  66. package/dist/admin-site-insights-tasks.d.ts +44 -0
  67. package/dist/admin-site-insights-tasks.js +28 -0
  68. package/dist/admin-site-insights.d.ts +527 -0
  69. package/dist/admin-site-insights.js +61 -0
  70. package/dist/admin-site-links.d.ts +87 -0
  71. package/dist/admin-site-links.js +16 -0
  72. package/dist/admin-site-monitors.d.ts +110 -0
  73. package/dist/admin-site-monitors.js +25 -0
  74. package/dist/admin-site-next-actions.d.ts +93 -0
  75. package/dist/admin-site-next-actions.js +36 -0
  76. package/dist/admin-site-page-queries.d.ts +63 -0
  77. package/dist/admin-site-page-queries.js +20 -0
  78. package/dist/admin-site-rankings.d.ts +98 -0
  79. package/dist/admin-site-rankings.js +46 -0
  80. package/dist/admin-site-regional-trends.d.ts +30 -0
  81. package/dist/admin-site-regional-trends.js +1 -0
  82. package/dist/admin-site-saved-reports.d.ts +45 -0
  83. package/dist/admin-site-saved-reports.js +13 -0
  84. package/dist/admin-site-search-pool.d.ts +77 -0
  85. package/dist/admin-site-search-pool.js +41 -0
  86. package/dist/admin-site-search-value.d.ts +97 -0
  87. package/dist/admin-site-search-value.js +29 -0
  88. package/dist/admin-site-status-page.d.ts +57 -0
  89. package/dist/admin-site-status-page.js +10 -0
  90. package/dist/admin-site-traffic.d.ts +145 -0
  91. package/dist/admin-site-traffic.js +32 -0
  92. package/dist/admin-site-web-data.d.ts +258 -0
  93. package/dist/admin-site-web-data.js +60 -0
  94. package/dist/admin-subject-exports.d.ts +79 -0
  95. package/dist/admin-subject-exports.js +44 -0
  96. package/dist/admin-support-access.d.ts +32 -0
  97. package/dist/admin-support-access.js +21 -0
  98. package/dist/admin-system.d.ts +283 -0
  99. package/dist/admin-system.js +65 -0
  100. package/dist/admin-tenant-storage.d.ts +35 -0
  101. package/dist/admin-tenant-storage.js +24 -0
  102. package/dist/admin-timeplans.d.ts +512 -0
  103. package/dist/admin-timeplans.js +200 -0
  104. package/dist/admin-uncertainty-models.d.ts +42 -0
  105. package/dist/admin-uncertainty-models.js +53 -0
  106. package/dist/admin-usage.d.ts +124 -0
  107. package/dist/admin-usage.js +169 -0
  108. package/dist/admin-users.d.ts +124 -0
  109. package/dist/admin-users.js +82 -0
  110. package/dist/admin-workflow-timings.d.ts +367 -0
  111. package/dist/admin-workflow-timings.js +117 -0
  112. package/dist/analytics-events.d.ts +167 -0
  113. package/dist/analytics-events.js +197 -0
  114. package/dist/analytics-reads.d.ts +81 -0
  115. package/dist/analytics-reads.js +5 -0
  116. package/dist/app-account.d.ts +84 -0
  117. package/dist/app-account.js +177 -0
  118. package/dist/app-alerts.d.ts +120 -0
  119. package/dist/app-alerts.js +44 -0
  120. package/dist/app-items.d.ts +786 -0
  121. package/dist/app-items.js +524 -0
  122. package/dist/app-live.d.ts +84 -0
  123. package/dist/app-live.js +228 -0
  124. package/dist/app-meetings.d.ts +95 -0
  125. package/dist/app-meetings.js +26 -0
  126. package/dist/app-models.d.ts +271 -0
  127. package/dist/app-models.js +83 -0
  128. package/dist/app-push.d.ts +64 -0
  129. package/dist/app-push.js +178 -0
  130. package/dist/backend-lifecycle.d.ts +85 -0
  131. package/dist/backend-lifecycle.js +212 -0
  132. package/dist/browser-manifest.json +7 -0
  133. package/dist/browser-script-BWnwDjAC.js +711 -0
  134. package/dist/browser-script.d.ts +1 -0
  135. package/dist/browser-script.js +5 -0
  136. package/dist/browser-sign-in.d.ts +153 -0
  137. package/dist/browser-sign-in.js +410 -0
  138. package/dist/browser-tracker.d.ts +142 -0
  139. package/dist/browser-tracker.js +775 -0
  140. package/dist/browser-web-vitals.d.ts +22 -0
  141. package/dist/browser-web-vitals.js +116 -0
  142. package/dist/browser.d.ts +10 -0
  143. package/dist/browser.js +10 -0
  144. package/dist/download-stream.d.ts +16 -0
  145. package/dist/download-stream.js +55 -0
  146. package/dist/error-capture.d.ts +62 -0
  147. package/dist/error-capture.js +168 -0
  148. package/dist/hosted-app.d.ts +115 -0
  149. package/dist/hosted-app.js +275 -0
  150. package/dist/index.d.ts +2324 -0
  151. package/dist/index.js +2226 -0
  152. package/dist/ingest-operations.d.ts +483 -0
  153. package/dist/ingest-operations.js +154 -0
  154. package/dist/measurement.d.ts +164 -0
  155. package/dist/measurement.js +104 -0
  156. package/dist/mobile-adapter.d.ts +25 -0
  157. package/dist/mobile-adapter.js +57 -0
  158. package/dist/mobile-context.d.ts +32 -0
  159. package/dist/mobile-context.js +156 -0
  160. package/dist/mobile-queue.d.ts +22 -0
  161. package/dist/mobile-queue.js +73 -0
  162. package/dist/oauth.d.ts +1 -0
  163. package/dist/oauth.js +8 -0
  164. package/dist/parsers.d.ts +149 -0
  165. package/dist/parsers.js +115 -0
  166. package/dist/public-reads.d.ts +79 -0
  167. package/dist/public-reads.js +57 -0
  168. package/dist/reporting-catalogue.d.ts +264 -0
  169. package/dist/reporting-catalogue.js +5 -0
  170. package/dist/reporting-state.d.ts +46 -0
  171. package/dist/reporting-state.js +76 -0
  172. package/dist/response-lists.d.ts +16 -0
  173. package/dist/response-lists.generated.d.ts +7 -0
  174. package/dist/response-lists.generated.js +1927 -0
  175. package/dist/response-lists.js +70 -0
  176. package/dist/response-validation.d.ts +30 -0
  177. package/dist/response-validation.js +94 -0
  178. package/dist/runtime-readiness.d.ts +30 -0
  179. package/dist/runtime-readiness.js +150 -0
  180. package/dist/schema-registry.d.ts +45 -0
  181. package/dist/schema-registry.js +9 -0
  182. package/dist/secure-url.d.ts +4 -0
  183. package/dist/secure-url.js +23 -0
  184. package/dist/site-ai-owner.d.ts +34 -0
  185. package/dist/site-ai-owner.js +99 -0
  186. package/dist/site-monitor-reports.d.ts +15 -0
  187. package/dist/site-monitor-reports.js +87 -0
  188. package/dist/testing/fake-custd.d.ts +150 -0
  189. package/dist/testing/fake-custd.js +842 -0
  190. package/dist/testing/fake-results.d.ts +30 -0
  191. package/dist/testing/fake-results.js +293 -0
  192. package/dist/testing.d.ts +2 -0
  193. package/dist/testing.js +3 -0
  194. package/dist/version.d.ts +10 -0
  195. package/dist/version.js +10 -0
  196. package/package.json +57 -4
@@ -0,0 +1,76 @@
1
+ import type { SiteCampaignLinkList } from "./admin-site-campaign-links.js";
2
+ import type { SiteDomain, SiteFindingList, SiteIncidentList, SiteSearchProvider } from "./admin-site-domains.js";
3
+ import type { IndexNowState, SiteLighthouseHistory, SiteProjectContext, SiteSearchInspectionList, SiteUptimeHistory } from "./admin-site-insights.js";
4
+ import type { SiteRankings } from "./admin-site-rankings.js";
5
+ import type { SavedSiteReport } from "./admin-site-saved-reports.js";
6
+ import type { SiteKeywordLists, SiteTopicTrends, SiteWebDomains } from "./admin-site-web-data.js";
7
+ /** The schema an export names; a different value is a different shape. */
8
+ export declare const SITE_INSIGHTS_EXPORT_SCHEMA = "custd.site-insights-export.v1";
9
+ /** The most search metric rows one listExportSearchMetrics page returns. */
10
+ export declare const SITE_INSIGHTS_EXPORT_SEARCH_METRICS_MAX_LIMIT = 10000;
11
+ /** The search metric dimension a row is cut by; newer values may appear. */
12
+ export declare const SiteSearchMetricDimension: {
13
+ readonly Total: "total";
14
+ readonly Page: "page";
15
+ readonly Query: "query";
16
+ readonly Country: "country";
17
+ readonly Device: "device";
18
+ };
19
+ export type SiteInsightsMonitoringExport = {
20
+ findings: SiteFindingList;
21
+ findingRows: number;
22
+ incidents: SiteIncidentList;
23
+ uptime: SiteUptimeHistory;
24
+ lighthouse: SiteLighthouseHistory[];
25
+ };
26
+ /** metricRows is how many rows listExportSearchMetrics pages through. */
27
+ export type SiteInsightsSearchExport = {
28
+ rankings: SiteRankings;
29
+ inspections: SiteSearchInspectionList;
30
+ indexNow: IndexNowState;
31
+ metricRows: number;
32
+ };
33
+ export type SiteInsightsReportsExport = {
34
+ savedReports: SavedSiteReport[];
35
+ campaignLinks: SiteCampaignLinkList;
36
+ };
37
+ export type SiteInsightsSiteExport = {
38
+ projectContext: SiteProjectContext;
39
+ keywordLists: SiteKeywordLists;
40
+ webDomains: SiteWebDomains;
41
+ topicTrends: SiteTopicTrends;
42
+ };
43
+ export type SiteInsightsExport = {
44
+ /** SITE_INSIGHTS_EXPORT_SCHEMA. */
45
+ schema: string;
46
+ exportedAt: string;
47
+ domain: SiteDomain;
48
+ monitoring: SiteInsightsMonitoringExport;
49
+ search: SiteInsightsSearchExport;
50
+ reports: SiteInsightsReportsExport;
51
+ site: SiteInsightsSiteExport;
52
+ };
53
+ /** One day's search numbers for one dimension key; key is empty for the total. */
54
+ export type SiteSearchMetricDay = {
55
+ provider: SiteSearchProvider;
56
+ /** YYYY-MM-DD. */
57
+ day: string;
58
+ /** A SiteSearchMetricDimension value. */
59
+ dimension: string;
60
+ key: string;
61
+ clicks: number;
62
+ impressions: number;
63
+ avgPosition: number;
64
+ };
65
+ export type SiteSearchMetricPage = {
66
+ domainUuid: string;
67
+ offset: number;
68
+ limit: number;
69
+ total: number;
70
+ rows: SiteSearchMetricDay[];
71
+ };
72
+ /** listExportSearchMetrics' page; limit is 1..SITE_INSIGHTS_EXPORT_SEARCH_METRICS_MAX_LIMIT. */
73
+ export type SiteSearchMetricsQuery = {
74
+ offset?: number;
75
+ limit?: number;
76
+ };
@@ -0,0 +1,15 @@
1
+ // Everything Site Insights holds for one domain and its Site, as the tenant's
2
+ // own typed reads return it. Daily search metrics are paged separately.
3
+ // SiteDomainAdminClient sends the calls.
4
+ /** The schema an export names; a different value is a different shape. */
5
+ export const SITE_INSIGHTS_EXPORT_SCHEMA = "custd.site-insights-export.v1";
6
+ /** The most search metric rows one listExportSearchMetrics page returns. */
7
+ export const SITE_INSIGHTS_EXPORT_SEARCH_METRICS_MAX_LIMIT = 10000;
8
+ /** The search metric dimension a row is cut by; newer values may appear. */
9
+ export const SiteSearchMetricDimension = {
10
+ Total: "total",
11
+ Page: "page",
12
+ Query: "query",
13
+ Country: "country",
14
+ Device: "device",
15
+ };
@@ -0,0 +1,44 @@
1
+ import type { SiteAIPlatformUsage, SiteAIUsagePeriod } from "./admin-site-ai.js";
2
+ import type { RequestOptions } from "./index.js";
3
+ /** The Site Insights task names; newer tasks may appear. */
4
+ export declare const SiteInsightsTaskName: {
5
+ readonly SiteChecks: "site-checks";
6
+ readonly SiteAudits: "site-audits";
7
+ readonly SiteSearchImports: "site-search-imports";
8
+ readonly SiteWebData: "site-web-data";
9
+ readonly SiteWebGraph: "site-web-graph";
10
+ readonly SiteAccessLogs: "site-access-logs";
11
+ readonly SiteSearchPool: "site-search-pool";
12
+ };
13
+ /** One count of work a task has waiting, with what it means. */
14
+ export type SiteInsightsBacklog = {
15
+ name: string;
16
+ count: number;
17
+ meaning: string;
18
+ };
19
+ export type SiteInsightsTaskStatus = {
20
+ /** A SiteInsightsTaskName value. */
21
+ taskName: string;
22
+ registered: boolean;
23
+ enabled: boolean;
24
+ nextRunAt?: string;
25
+ lastRunAt?: string;
26
+ lastRunStatus?: string;
27
+ lastFailureAt?: string;
28
+ lastFailure?: string;
29
+ backlog: SiteInsightsBacklog[];
30
+ };
31
+ export type SiteInsightsTaskList = {
32
+ generatedAt: string;
33
+ tasks: SiteInsightsTaskStatus[];
34
+ };
35
+ type AdminRequester = <T>(method: string, path: string, body?: unknown, options?: RequestOptions) => Promise<T>;
36
+ export declare class SiteInsightsAdminClient {
37
+ private readonly request;
38
+ constructor(request: AdminRequester);
39
+ /** Reads every Site Insights task's schedule, last outcome and backlog. System administrators only. */
40
+ listTasks(options?: RequestOptions): Promise<SiteInsightsTaskList>;
41
+ /** Reads AI usage across tenants. System administrators only. */
42
+ getAIUsage(period?: SiteAIUsagePeriod, options?: RequestOptions): Promise<SiteAIPlatformUsage>;
43
+ }
44
+ export {};
@@ -0,0 +1,28 @@
1
+ // The Site Insights background tasks' state for operators: whether each is
2
+ // registered and enabled, its last and next run, and its backlog. A system
3
+ // administrator reads it platform-wide through client.admin.siteInsights.
4
+ /** The Site Insights task names; newer tasks may appear. */
5
+ export const SiteInsightsTaskName = {
6
+ SiteChecks: "site-checks",
7
+ SiteAudits: "site-audits",
8
+ SiteSearchImports: "site-search-imports",
9
+ SiteWebData: "site-web-data",
10
+ SiteWebGraph: "site-web-graph",
11
+ SiteAccessLogs: "site-access-logs",
12
+ SiteSearchPool: "site-search-pool",
13
+ };
14
+ export class SiteInsightsAdminClient {
15
+ constructor(request) {
16
+ this.request = request;
17
+ }
18
+ /** Reads every Site Insights task's schedule, last outcome and backlog. System administrators only. */
19
+ listTasks(options) {
20
+ return this.request("GET", "/site-insights/tasks", undefined, options);
21
+ }
22
+ /** Reads AI usage across tenants. System administrators only. */
23
+ getAIUsage(period, options) {
24
+ const path = "/site-insights/ai-usage";
25
+ const query = period ? `?${new URLSearchParams({ period })}` : "";
26
+ return this.request("GET", path + query, undefined, options);
27
+ }
28
+ }
@@ -0,0 +1,527 @@
1
+ import type { SiteAuditSummary, SiteFindingSeverity, SiteSearchProvider, SiteSearchRow, SiteSearchSource, SiteUptimeStatus } from "./admin-site-domains.js";
2
+ import type { SiteNextAction } from "./admin-site-next-actions.js";
3
+ /** A 400 on page tools: the URL is not on the domain's own host. */
4
+ export declare const SITE_PAGE_NOT_ON_DOMAIN_CODE = "site_page_not_on_domain";
5
+ /** A 404 on getPageFacts: no audit or recheck has read the page yet; ask for a page recheck. */
6
+ export declare const SITE_PAGE_NOT_READ_CODE = "site_page_not_read";
7
+ /** A 429 on requestPageRecheck: the domain's hourly page rechecks are used up. */
8
+ export declare const SITE_PAGE_RECHECK_LIMIT_CODE = "site_page_recheck_limit";
9
+ /** How many rechecks listPageRechecks reads in one call. */
10
+ export declare const SITE_PAGE_RECHECK_READ_LIMIT = 30;
11
+ /** A 422 on create without a siteUuid: no one Site holds the host; name the Site. */
12
+ export declare const SITE_CHOICE_REQUIRED_CODE = "site_choice_required";
13
+ /** A 400 on requestSearchInspection: the URL is not an http(s) URL on the domain's host. */
14
+ export declare const SITE_SEARCH_INSPECTION_URL_INVALID_CODE = "site_search_inspection_url_invalid";
15
+ /** A 409 on requestSearchInspection: the domain is not verified and connected to Google. */
16
+ export declare const SITE_SEARCH_INSPECTION_NOT_CONNECTED_CODE = "site_search_inspection_not_connected";
17
+ /** A 429 on requestSearchInspection: the tenant's daily URL inspections are used up. */
18
+ export declare const SITE_SEARCH_INSPECTION_LIMIT_CODE = "site_search_inspection_limit";
19
+ /** What a fix changes. A rule without a remedy shape carries no kind. */
20
+ export declare const SiteRemedyKind: {
21
+ readonly Markup: "markup";
22
+ readonly Setting: "setting";
23
+ readonly Content: "content";
24
+ readonly Server: "server";
25
+ };
26
+ export type SiteRemedyKind = (typeof SiteRemedyKind)[keyof typeof SiteRemedyKind];
27
+ /** The formats generated fix code comes in. */
28
+ export declare const SiteGeneratedFormat: {
29
+ readonly HTML: "html";
30
+ readonly RobotsTxt: "robots.txt";
31
+ /** One Apache line and one nginx line. */
32
+ readonly Redirect: "redirect";
33
+ };
34
+ /** Ready-to-copy code for one finding. It is never a published change. */
35
+ export type SiteGeneratedFix = {
36
+ format: "html" | "robots.txt" | "redirect";
37
+ code: string;
38
+ };
39
+ /** What a finding's fix changes; the recommendation itself is the finding's `fix` text. */
40
+ export type SiteRemedy = {
41
+ /** A SiteRemedyKind value; absent for a rule without a remedy shape. */
42
+ kind?: SiteRemedyKind;
43
+ /** The element, file or setting the fix changes. */
44
+ element: string;
45
+ /** Present only for rules with a generator that saw enough to fill it in. */
46
+ generated?: SiteGeneratedFix;
47
+ };
48
+ /** One finding of a one-page check: no UUID or history, because nothing is stored. */
49
+ export type SitePageFinding = {
50
+ rule: string;
51
+ severity: SiteFindingSeverity;
52
+ title: string;
53
+ url: string;
54
+ evidence: string;
55
+ fix: string;
56
+ source: string;
57
+ remedy: SiteRemedy;
58
+ };
59
+ export type SitePageRobots = {
60
+ noindex: boolean;
61
+ nofollow: boolean;
62
+ /** The X-Robots-Tag response header, empty when absent. */
63
+ header: string;
64
+ };
65
+ export type SitePageOpenGraph = {
66
+ title: string;
67
+ description: string;
68
+ image: string;
69
+ url: string;
70
+ type: string;
71
+ siteName: string;
72
+ };
73
+ export type SitePageTwitter = {
74
+ card: string;
75
+ title: string;
76
+ description: string;
77
+ image: string;
78
+ site: string;
79
+ };
80
+ export type SiteHreflangLink = {
81
+ code: string;
82
+ href: string;
83
+ };
84
+ export type SitePageHeading = {
85
+ level: number;
86
+ text: string;
87
+ };
88
+ /** fleschReadingEase is absent for a page that is not in English. */
89
+ export type SitePageReadability = {
90
+ sentences: number;
91
+ wordsPerSentence: number;
92
+ readingTimeSeconds: number;
93
+ fleschReadingEase?: number;
94
+ };
95
+ /** What the latest audit, recheck or draft check read from one page. */
96
+ export type SitePageFacts = {
97
+ url: string;
98
+ observedAt: string;
99
+ /** The page's HTTP status; 200 for a draft. */
100
+ status: number;
101
+ lang: string;
102
+ title: string;
103
+ description: string;
104
+ canonical: string;
105
+ robots: SitePageRobots;
106
+ openGraph: SitePageOpenGraph;
107
+ twitter: SitePageTwitter;
108
+ hreflang: SiteHreflangLink[];
109
+ headings: SitePageHeading[];
110
+ wordCount: number;
111
+ readability: SitePageReadability;
112
+ /** The og:image a fix would name: the largest declared image, else the first unsized one; never fetched. */
113
+ shareImage: string;
114
+ /** FAQPage JSON-LD from the page's question headings; Google shows no FAQ rich results since 7 May 2026. */
115
+ faqSchema?: SiteGeneratedFix;
116
+ };
117
+ export declare const SitePageRecheckState: {
118
+ readonly Queued: "queued";
119
+ readonly Checked: "checked";
120
+ readonly Failed: "failed";
121
+ };
122
+ export type SitePageRecheckState = (typeof SitePageRecheckState)[keyof typeof SitePageRecheckState];
123
+ /** One queued page recheck; checkedAt is absent while queued. */
124
+ export type SitePageRecheck = {
125
+ recheckUuid: string;
126
+ url: string;
127
+ state: SitePageRecheckState;
128
+ requestedAt: string;
129
+ checkedAt?: string;
130
+ failure?: string;
131
+ openRules: string[];
132
+ fixedRules: string[];
133
+ };
134
+ /** The rechecks listPageRechecks found, in the order asked. */
135
+ export type SitePageRecheckList = {
136
+ rechecks: SitePageRecheck[];
137
+ };
138
+ /** How much of a page a checkPage draft is: the whole page, or only its body content. */
139
+ export declare const SitePageCheckScope: {
140
+ readonly Page: "page";
141
+ readonly Content: "content";
142
+ };
143
+ export type SitePageCheckScope = (typeof SitePageCheckScope)[keyof typeof SitePageCheckScope];
144
+ export type SitePageCheckRequest = {
145
+ /** The address the draft will be published at, on the domain's host. */
146
+ url: string;
147
+ /** The page's full HTML, at most 512 KiB. */
148
+ html: string;
149
+ /** The page's current address on the same host, when publishing moves it; asks for the redirect. */
150
+ previousUrl?: string;
151
+ /** A search phrase, at most 100 characters, to find in the draft. */
152
+ phrase?: string;
153
+ /** A SitePageCheckScope value; omitted, the server checks the whole page. */
154
+ scope?: SitePageCheckScope;
155
+ };
156
+ /** Where one phrase appears in a draft and how often, with no target or verdict. */
157
+ export type SitePhraseUse = {
158
+ phrase: string;
159
+ inTitle: boolean;
160
+ inDescription: boolean;
161
+ inH1: boolean;
162
+ count: number;
163
+ /** Words of visible text the count is out of. */
164
+ wordCount: number;
165
+ /** count over wordCount as a percentage; 0 when the draft has no words. */
166
+ densityPercent: number;
167
+ };
168
+ /** What the page checks found on one page, without the rest of the site. The draft tools are absent unless asked for. */
169
+ export type SitePageCheckResponse = {
170
+ page: SitePageFacts;
171
+ findings: SitePageFinding[];
172
+ /** A URL slug from the draft's first h1, else its title. */
173
+ slug?: string;
174
+ /** The permanent redirect from previousUrl, format SiteGeneratedFormat.Redirect. */
175
+ redirect?: SiteGeneratedFix;
176
+ phrase?: SitePhraseUse;
177
+ /** The draft's SitePageCheckScope; absent from a recheck or an older server. */
178
+ scope?: "page" | "content";
179
+ /** Set only for scope content: the rules checked, so a rule here and not in findings passed. */
180
+ checkedRules?: string[];
181
+ };
182
+ /** Two drafts, as HTML or plain text (each at most 512 KiB), to compare. Nothing is stored. */
183
+ export type SiteWordingCompareRequest = {
184
+ first: string;
185
+ second: string;
186
+ };
187
+ /**
188
+ * How much wording two texts share, measured as the content.near-duplicate rule does; wording
189
+ * overlap, not plagiarism. Texts under minWords are not compared: compared is false and
190
+ * sharedPercent 0.
191
+ */
192
+ export type SiteWordingCompare = {
193
+ firstWords: number;
194
+ secondWords: number;
195
+ minWords: number;
196
+ compared: boolean;
197
+ sharedPercent: number;
198
+ thresholdPercent: number;
199
+ nearDuplicate: boolean;
200
+ };
201
+ /** Two distinct absolute URLs on the same verified domain. */
202
+ export type SitePageWordingQuery = {
203
+ firstUrl: string;
204
+ secondUrl: string;
205
+ };
206
+ export type SiteWordingObservationState = "unread" | "unavailable" | "short" | "ready";
207
+ /** The latest stored check of a page. An unread page has no observation timestamp. */
208
+ export type SiteWordingObservation = {
209
+ state: SiteWordingObservationState;
210
+ observedAt?: string;
211
+ };
212
+ /** Comparison is absent for unread or unavailable evidence. Short observations keep the word counts. */
213
+ export type SiteObservedWording = {
214
+ first: SiteWordingObservation;
215
+ second: SiteWordingObservation;
216
+ comparison?: SiteWordingCompare;
217
+ };
218
+ export type SiteRobotsTestRequest = {
219
+ /** A path such as /blog/post?id=1, or an http(s) URL. */
220
+ url: string;
221
+ /** The crawler's product token, such as Googlebot or GPTBot. */
222
+ userAgent: string;
223
+ /** A robots.txt to test; omit to read the domain's live file. */
224
+ robotsTxt?: string;
225
+ };
226
+ export type SiteRobotsRule = {
227
+ line: number;
228
+ directive: "allow" | "disallow";
229
+ pattern: string;
230
+ };
231
+ /** robotsStatus is absent for a pasted file or an unreachable live one; rule is absent when no rule decided. */
232
+ export type SiteRobotsTestResponse = {
233
+ allowed: boolean;
234
+ userAgent: string;
235
+ path: string;
236
+ source: "pasted" | "live";
237
+ robotsStatus?: number;
238
+ groups: string[];
239
+ rule?: SiteRobotsRule;
240
+ note?: string;
241
+ };
242
+ export type SiteSearchDimension = "page" | "query" | "country" | "device";
243
+ export type SiteSearchRowsQuery = {
244
+ /** Defaults to query on the server. */
245
+ dimension?: SiteSearchDimension;
246
+ provider?: SiteSearchProvider;
247
+ /** 1..90; the server defaults to 28. */
248
+ days?: number;
249
+ offset?: number;
250
+ /** 1..1000; the server defaults to 100. */
251
+ limit?: number;
252
+ };
253
+ /** A provider that cannot report the dimension: no data, not zero traffic. */
254
+ export type SiteSearchUnavailable = {
255
+ provider: SiteSearchProvider;
256
+ reason: string;
257
+ };
258
+ export type SiteSearchRowPage = {
259
+ domainUuid: string;
260
+ dimension: SiteSearchDimension;
261
+ /** Absent when the read spans every provider. */
262
+ provider?: SiteSearchProvider;
263
+ days: number;
264
+ offset: number;
265
+ limit: number;
266
+ /** Rows matching the read before paging. */
267
+ total: number;
268
+ rows: SiteSearchRow[];
269
+ unavailable: SiteSearchUnavailable[];
270
+ };
271
+ export type SiteSearchInspectionStatus = "queued" | "done" | "failed";
272
+ /** One URL inspection. Every result field is Google's own value and is absent when Google did not report it. */
273
+ export type SiteSearchInspection = {
274
+ inspectionUuid: string;
275
+ url: string;
276
+ status: SiteSearchInspectionStatus;
277
+ requestedAt: string;
278
+ inspectedAt?: string;
279
+ failure?: string;
280
+ /** PASS, PARTIAL, FAIL or NEUTRAL. */
281
+ verdict?: string;
282
+ coverageState?: string;
283
+ indexingState?: string;
284
+ robotsTxtState?: string;
285
+ pageFetchState?: string;
286
+ lastCrawlAt?: string;
287
+ googleCanonical?: string;
288
+ userCanonical?: string;
289
+ /** DESKTOP or MOBILE. */
290
+ crawledAs?: string;
291
+ mobileUsabilityVerdict?: string;
292
+ resultLink?: string;
293
+ };
294
+ export type SiteSearchInspectionList = {
295
+ inspections: SiteSearchInspection[];
296
+ dailyLimit: number;
297
+ /** Inspections the tenant requested in the last 24 hours. */
298
+ usedToday: number;
299
+ };
300
+ export type SiteMarket = {
301
+ /** ISO 3166-1 alpha-2, such as ZA. */
302
+ country: string;
303
+ /** ISO 639, such as en. */
304
+ language: string;
305
+ };
306
+ /** A Site's brands, named competitors and markets; updatedAt is absent until first set. */
307
+ export type SiteProjectContext = {
308
+ siteUuid: string;
309
+ brandNames: string[];
310
+ competitorDomains: string[];
311
+ markets: SiteMarket[];
312
+ hackerNewsEnabled?: boolean;
313
+ updatedAt?: string;
314
+ };
315
+ export type SiteProjectContextRequest = {
316
+ /** A site-bound credential may omit it for its own Site. */
317
+ siteUuid?: string;
318
+ brandNames?: string[];
319
+ competitorDomains?: string[];
320
+ markets?: SiteMarket[];
321
+ /** Omit to keep the saved choice. False disables technical discussion trends. */
322
+ hackerNewsEnabled?: boolean;
323
+ };
324
+ /** upPercent is absent for a window without checks. */
325
+ export type SiteUptimeWindow = {
326
+ checks: number;
327
+ upChecks: number;
328
+ upPercent?: number;
329
+ };
330
+ export type SiteUptimeWindows = {
331
+ last24h: SiteUptimeWindow;
332
+ last7d: SiteUptimeWindow;
333
+ last30d: SiteUptimeWindow;
334
+ };
335
+ export type SiteUptimeDay = SiteUptimeWindow & {
336
+ /** UTC day, YYYY-MM-DD. */
337
+ date: string;
338
+ };
339
+ export type SiteResponseHour = {
340
+ hourStart: string;
341
+ checks: number;
342
+ upChecks: number;
343
+ avgMs?: number;
344
+ maxMs?: number;
345
+ };
346
+ export type SiteUptimeHistory = {
347
+ domainUuid: string;
348
+ monitoredSince?: string;
349
+ generatedAt: string;
350
+ responseDays: number;
351
+ windows: SiteUptimeWindows;
352
+ /** Ninety UTC days, oldest first, ending today. */
353
+ days: SiteUptimeDay[];
354
+ /** Each hour with a check in the response window, oldest first. */
355
+ hours: SiteResponseHour[];
356
+ };
357
+ export type SiteLighthouseProfile = "desktop" | "mobile";
358
+ /** Each score is absent when the run did not produce it. */
359
+ export type SiteLighthouseScores = {
360
+ performance?: number;
361
+ accessibility?: number;
362
+ bestPractices?: number;
363
+ seo?: number;
364
+ };
365
+ export type SiteLighthouseMetrics = {
366
+ firstContentfulPaintMs?: number;
367
+ largestContentfulPaintMs?: number;
368
+ totalBlockingTimeMs?: number;
369
+ speedIndexMs?: number;
370
+ cumulativeLayoutShift?: number;
371
+ };
372
+ export type SiteLighthouseRun = {
373
+ profile: SiteLighthouseProfile;
374
+ observedAt: string;
375
+ outcome: "success" | "failed";
376
+ failure?: string;
377
+ url: string;
378
+ durationMs: number;
379
+ toolVersion?: string;
380
+ scores: SiteLighthouseScores;
381
+ metrics: SiteLighthouseMetrics;
382
+ };
383
+ /** The latest two successful runs of one measured page in one profile; previous* is absent after one run. */
384
+ export type SiteLighthousePageComparison = {
385
+ url: string;
386
+ profile: SiteLighthouseProfile;
387
+ latestAt: string;
388
+ latestScore: number;
389
+ previousAt?: string;
390
+ previousScore?: number;
391
+ /** A lighthouse.* regression finding is open on this page and profile. */
392
+ regressionOpen: boolean;
393
+ };
394
+ export type SiteLighthouseHistory = {
395
+ domainUuid: string;
396
+ days: number;
397
+ /** The page the runs measured: the home page unless the read named an extra page. */
398
+ url: string;
399
+ runs: SiteLighthouseRun[];
400
+ /** Every measured page compared per profile. */
401
+ pages: SiteLighthousePageComparison[];
402
+ };
403
+ export type SiteReportUptime = {
404
+ status: SiteUptimeStatus;
405
+ responseMs?: number;
406
+ downSince?: string;
407
+ monitoredSince?: string;
408
+ windows: SiteUptimeWindows;
409
+ days: SiteUptimeDay[];
410
+ };
411
+ export type SiteReportCertificate = {
412
+ validTo?: string;
413
+ issuer?: string;
414
+ /** The last certificate check failed. */
415
+ problem: boolean;
416
+ };
417
+ /** The latest successful Lighthouse run of one profile in the last 30 days. */
418
+ export type SiteReportSpeed = {
419
+ profile: SiteLighthouseProfile;
420
+ observedAt: string;
421
+ scores: SiteLighthouseScores;
422
+ metrics: SiteLighthouseMetrics;
423
+ };
424
+ export type SiteReportSearch = {
425
+ days: number;
426
+ /** Google or Bing is connected for this domain. */
427
+ connected: boolean;
428
+ sources: SiteSearchSource[];
429
+ topQueries: SiteSearchRow[];
430
+ topPages: SiteSearchRow[];
431
+ strikingDistance: SiteSearchRow[];
432
+ };
433
+ export type SiteReportFinding = {
434
+ severity: SiteFindingSeverity;
435
+ title: string;
436
+ url: string;
437
+ fix: string;
438
+ firstSeenAt: string;
439
+ };
440
+ export type SiteReportAudit = {
441
+ auditedAt?: string;
442
+ summary?: SiteAuditSummary;
443
+ findings: SiteReportFinding[];
444
+ };
445
+ /** One domain's client report, without verification, Site or search connection details. */
446
+ export type SiteReport = {
447
+ host: string;
448
+ generatedAt: string;
449
+ /** A SiteReportTemplate value; executive leaves out the technical appendix. */
450
+ template: "executive" | "full";
451
+ uptime: SiteReportUptime;
452
+ certificate: SiteReportCertificate;
453
+ speed: SiteReportSpeed[];
454
+ search: SiteReportSearch;
455
+ audit: SiteReportAudit;
456
+ /** The first three next actions, as getNextActions ranks them; absent from reports built or saved before servers sent them. */
457
+ nextActions?: SiteNextAction[];
458
+ };
459
+ export type SiteReportShare = {
460
+ shareUuid: string;
461
+ /** The saved report the share opens; absent for a share of the live report. */
462
+ reportUuid?: string;
463
+ createdAt: string;
464
+ expiresAt: string;
465
+ };
466
+ export type SiteReportShareList = {
467
+ shares: SiteReportShare[];
468
+ };
469
+ /** The server defaults to 30 days and accepts 1..90. */
470
+ export type SiteReportShareRequest = {
471
+ expiresInDays?: number;
472
+ /** Shares a saved report instead of the live one. */
473
+ reportUuid?: string;
474
+ };
475
+ /** The token opens the report at /shared-report#<token> and is shown only once. */
476
+ export type SiteReportShareCreated = {
477
+ share: SiteReportShare;
478
+ token: string;
479
+ };
480
+ /** A 409 on enableIndexNow: verify the domain first. */
481
+ export declare const SITE_INDEXNOW_DOMAIN_UNVERIFIED_CODE = "site_indexnow_domain_unverified";
482
+ /** A 409 on verifyIndexNowKey or submitIndexNow: enable IndexNow for the domain first. */
483
+ export declare const SITE_INDEXNOW_NOT_ENABLED_CODE = "site_indexnow_not_enabled";
484
+ /** A 409 on submitIndexNow: host the key file and verify it first. */
485
+ export declare const SITE_INDEXNOW_KEY_UNVERIFIED_CODE = "site_indexnow_key_unverified";
486
+ /** A 400 on submitIndexNow: urls must be 1 to 100 distinct http(s) URLs on the domain's host. */
487
+ export declare const SITE_INDEXNOW_URLS_INVALID_CODE = "site_indexnow_urls_invalid";
488
+ /** A 429 on submitIndexNow: the tenant's daily IndexNow URLs are used up. */
489
+ export declare const SITE_INDEXNOW_LIMIT_CODE = "site_indexnow_limit";
490
+ /** An IndexNow submission's status. */
491
+ export declare const IndexNowSubmissionStatus: {
492
+ readonly Queued: "queued";
493
+ readonly Accepted: "accepted";
494
+ readonly Rejected: "rejected";
495
+ readonly Failed: "failed";
496
+ };
497
+ export type IndexNowSubmissionStatus = (typeof IndexNowSubmissionStatus)[keyof typeof IndexNowSubmissionStatus];
498
+ export type IndexNowSubmissionRequest = {
499
+ /** 1 to 100 URLs on the domain's own host. */
500
+ urls: string[];
501
+ };
502
+ /** One submission; providerStatus and submittedAt are absent until IndexNow answers. */
503
+ export type IndexNowSubmission = {
504
+ submissionUuid: string;
505
+ /** An IndexNowSubmissionStatus value. */
506
+ status: IndexNowSubmissionStatus;
507
+ urls: string[];
508
+ /** IndexNow's HTTP status; 202 means received while the key is validated. */
509
+ providerStatus?: number;
510
+ failure?: string;
511
+ requestedAt: string;
512
+ submittedAt?: string;
513
+ };
514
+ /** A domain's IndexNow setup; key and keyLocation are absent while disabled. */
515
+ export type IndexNowState = {
516
+ enabled: boolean;
517
+ key?: string;
518
+ /** Serve a text file here that holds only the key. */
519
+ keyLocation?: string;
520
+ verified: boolean;
521
+ verifiedAt?: string;
522
+ lastCheckFailure?: string;
523
+ dailyUrlLimit: number;
524
+ /** URLs the tenant submitted in the last 24 hours. */
525
+ urlsToday: number;
526
+ submissions: IndexNowSubmission[];
527
+ };