@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.
- package/README.md +958 -2
- package/dist/admin-accounting-evidence.d.ts +48 -0
- package/dist/admin-accounting-evidence.js +24 -0
- package/dist/admin-app-releases.d.ts +116 -0
- package/dist/admin-app-releases.js +8 -0
- package/dist/admin-apps.d.ts +120 -0
- package/dist/admin-apps.js +47 -0
- package/dist/admin-auth-project-domain.d.ts +125 -0
- package/dist/admin-auth-project-domain.js +37 -0
- package/dist/admin-auth-projects.d.ts +989 -0
- package/dist/admin-auth-projects.js +527 -0
- package/dist/admin-campaign-email.d.ts +120 -0
- package/dist/admin-campaign-email.js +64 -0
- package/dist/admin-client-setup.d.ts +122 -0
- package/dist/admin-client-setup.js +408 -0
- package/dist/admin-data-labels.d.ts +124 -0
- package/dist/admin-data-labels.js +51 -0
- package/dist/admin-data-scopes.d.ts +93 -0
- package/dist/admin-data-scopes.js +154 -0
- package/dist/admin-email-relay.d.ts +66 -0
- package/dist/admin-email-relay.js +25 -0
- package/dist/admin-environment-policy.d.ts +32 -0
- package/dist/admin-environment-policy.js +26 -0
- package/dist/admin-error-issues.d.ts +91 -0
- package/dist/admin-error-issues.js +52 -0
- package/dist/admin-event-types.d.ts +57 -0
- package/dist/admin-event-types.js +28 -0
- package/dist/admin-impersonation.d.ts +48 -0
- package/dist/admin-impersonation.js +27 -0
- package/dist/admin-ingest-claims.d.ts +35 -0
- package/dist/admin-ingest-claims.js +26 -0
- package/dist/admin-managed-audit.d.ts +13 -0
- package/dist/admin-managed-audit.js +13 -0
- package/dist/admin-measurement-projects.d.ts +166 -0
- package/dist/admin-measurement-projects.js +120 -0
- package/dist/admin-notification-destinations.d.ts +31 -0
- package/dist/admin-notification-destinations.js +19 -0
- package/dist/admin-notification-webhooks.d.ts +64 -0
- package/dist/admin-notification-webhooks.js +42 -0
- package/dist/admin-oauth-client-admissions.d.ts +65 -0
- package/dist/admin-oauth-client-admissions.js +46 -0
- package/dist/admin-offboarding.d.ts +123 -0
- package/dist/admin-offboarding.js +129 -0
- package/dist/admin-predictions.d.ts +266 -0
- package/dist/admin-predictions.js +93 -0
- package/dist/admin-privacy-erasures.d.ts +74 -0
- package/dist/admin-privacy-erasures.js +73 -0
- package/dist/admin-retention.d.ts +99 -0
- package/dist/admin-retention.js +60 -0
- package/dist/admin-rls.d.ts +94 -0
- package/dist/admin-rls.js +33 -0
- package/dist/admin-sdk-usage.d.ts +41 -0
- package/dist/admin-sdk-usage.js +23 -0
- package/dist/admin-site-ai.d.ts +72 -0
- package/dist/admin-site-ai.js +1 -0
- package/dist/admin-site-analytics.d.ts +52 -0
- package/dist/admin-site-analytics.js +14 -0
- package/dist/admin-site-audit-pages.d.ts +76 -0
- package/dist/admin-site-audit-pages.js +27 -0
- package/dist/admin-site-campaign-links.d.ts +40 -0
- package/dist/admin-site-campaign-links.js +9 -0
- package/dist/admin-site-domains.d.ts +733 -0
- package/dist/admin-site-domains.js +768 -0
- package/dist/admin-site-export.d.ts +76 -0
- package/dist/admin-site-export.js +15 -0
- package/dist/admin-site-insights-tasks.d.ts +44 -0
- package/dist/admin-site-insights-tasks.js +28 -0
- package/dist/admin-site-insights.d.ts +527 -0
- package/dist/admin-site-insights.js +61 -0
- package/dist/admin-site-links.d.ts +87 -0
- package/dist/admin-site-links.js +16 -0
- package/dist/admin-site-monitors.d.ts +110 -0
- package/dist/admin-site-monitors.js +25 -0
- package/dist/admin-site-next-actions.d.ts +93 -0
- package/dist/admin-site-next-actions.js +36 -0
- package/dist/admin-site-page-queries.d.ts +63 -0
- package/dist/admin-site-page-queries.js +20 -0
- package/dist/admin-site-rankings.d.ts +98 -0
- package/dist/admin-site-rankings.js +46 -0
- package/dist/admin-site-regional-trends.d.ts +30 -0
- package/dist/admin-site-regional-trends.js +1 -0
- package/dist/admin-site-saved-reports.d.ts +45 -0
- package/dist/admin-site-saved-reports.js +13 -0
- package/dist/admin-site-search-pool.d.ts +77 -0
- package/dist/admin-site-search-pool.js +41 -0
- package/dist/admin-site-search-value.d.ts +97 -0
- package/dist/admin-site-search-value.js +29 -0
- package/dist/admin-site-status-page.d.ts +57 -0
- package/dist/admin-site-status-page.js +10 -0
- package/dist/admin-site-traffic.d.ts +145 -0
- package/dist/admin-site-traffic.js +32 -0
- package/dist/admin-site-web-data.d.ts +258 -0
- package/dist/admin-site-web-data.js +60 -0
- package/dist/admin-subject-exports.d.ts +79 -0
- package/dist/admin-subject-exports.js +44 -0
- package/dist/admin-support-access.d.ts +32 -0
- package/dist/admin-support-access.js +21 -0
- package/dist/admin-system.d.ts +283 -0
- package/dist/admin-system.js +65 -0
- package/dist/admin-tenant-storage.d.ts +35 -0
- package/dist/admin-tenant-storage.js +24 -0
- package/dist/admin-timeplans.d.ts +512 -0
- package/dist/admin-timeplans.js +200 -0
- package/dist/admin-uncertainty-models.d.ts +42 -0
- package/dist/admin-uncertainty-models.js +53 -0
- package/dist/admin-usage.d.ts +124 -0
- package/dist/admin-usage.js +169 -0
- package/dist/admin-users.d.ts +124 -0
- package/dist/admin-users.js +82 -0
- package/dist/admin-workflow-timings.d.ts +367 -0
- package/dist/admin-workflow-timings.js +117 -0
- package/dist/analytics-events.d.ts +167 -0
- package/dist/analytics-events.js +197 -0
- package/dist/analytics-reads.d.ts +81 -0
- package/dist/analytics-reads.js +5 -0
- package/dist/app-account.d.ts +84 -0
- package/dist/app-account.js +177 -0
- package/dist/app-alerts.d.ts +120 -0
- package/dist/app-alerts.js +44 -0
- package/dist/app-items.d.ts +786 -0
- package/dist/app-items.js +524 -0
- package/dist/app-live.d.ts +84 -0
- package/dist/app-live.js +228 -0
- package/dist/app-meetings.d.ts +95 -0
- package/dist/app-meetings.js +26 -0
- package/dist/app-models.d.ts +271 -0
- package/dist/app-models.js +83 -0
- package/dist/app-push.d.ts +64 -0
- package/dist/app-push.js +178 -0
- package/dist/backend-lifecycle.d.ts +85 -0
- package/dist/backend-lifecycle.js +212 -0
- package/dist/browser-manifest.json +7 -0
- package/dist/browser-script-BWnwDjAC.js +711 -0
- package/dist/browser-script.d.ts +1 -0
- package/dist/browser-script.js +5 -0
- package/dist/browser-sign-in.d.ts +153 -0
- package/dist/browser-sign-in.js +410 -0
- package/dist/browser-tracker.d.ts +142 -0
- package/dist/browser-tracker.js +775 -0
- package/dist/browser-web-vitals.d.ts +22 -0
- package/dist/browser-web-vitals.js +116 -0
- package/dist/browser.d.ts +10 -0
- package/dist/browser.js +10 -0
- package/dist/download-stream.d.ts +16 -0
- package/dist/download-stream.js +55 -0
- package/dist/error-capture.d.ts +62 -0
- package/dist/error-capture.js +168 -0
- package/dist/hosted-app.d.ts +115 -0
- package/dist/hosted-app.js +275 -0
- package/dist/index.d.ts +2324 -0
- package/dist/index.js +2226 -0
- package/dist/ingest-operations.d.ts +483 -0
- package/dist/ingest-operations.js +154 -0
- package/dist/measurement.d.ts +164 -0
- package/dist/measurement.js +104 -0
- package/dist/mobile-adapter.d.ts +25 -0
- package/dist/mobile-adapter.js +57 -0
- package/dist/mobile-context.d.ts +32 -0
- package/dist/mobile-context.js +156 -0
- package/dist/mobile-queue.d.ts +22 -0
- package/dist/mobile-queue.js +73 -0
- package/dist/oauth.d.ts +1 -0
- package/dist/oauth.js +8 -0
- package/dist/parsers.d.ts +149 -0
- package/dist/parsers.js +115 -0
- package/dist/public-reads.d.ts +79 -0
- package/dist/public-reads.js +57 -0
- package/dist/reporting-catalogue.d.ts +264 -0
- package/dist/reporting-catalogue.js +5 -0
- package/dist/reporting-state.d.ts +46 -0
- package/dist/reporting-state.js +76 -0
- package/dist/response-lists.d.ts +16 -0
- package/dist/response-lists.generated.d.ts +7 -0
- package/dist/response-lists.generated.js +1927 -0
- package/dist/response-lists.js +70 -0
- package/dist/response-validation.d.ts +30 -0
- package/dist/response-validation.js +94 -0
- package/dist/runtime-readiness.d.ts +30 -0
- package/dist/runtime-readiness.js +150 -0
- package/dist/schema-registry.d.ts +45 -0
- package/dist/schema-registry.js +9 -0
- package/dist/secure-url.d.ts +4 -0
- package/dist/secure-url.js +23 -0
- package/dist/site-ai-owner.d.ts +34 -0
- package/dist/site-ai-owner.js +99 -0
- package/dist/site-monitor-reports.d.ts +15 -0
- package/dist/site-monitor-reports.js +87 -0
- package/dist/testing/fake-custd.d.ts +150 -0
- package/dist/testing/fake-custd.js +842 -0
- package/dist/testing/fake-results.d.ts +30 -0
- package/dist/testing/fake-results.js +293 -0
- package/dist/testing.d.ts +2 -0
- package/dist/testing.js +3 -0
- package/dist/version.d.ts +10 -0
- package/dist/version.js +10 -0
- package/package.json +57 -4
|
@@ -0,0 +1,733 @@
|
|
|
1
|
+
import type { SiteAIConsentRequest, SiteAIOwnerHandoff, SiteAIOwnerHandoffRequest, SiteAISettings, SiteAISettingsRequest, SiteAITenantUsage } from "./admin-site-ai.js";
|
|
2
|
+
import type { SiteAnalyticsConnection, SiteAnalyticsConnectionRequest, SiteAnalyticsReport } from "./admin-site-analytics.js";
|
|
3
|
+
import type { SiteAuditDelta, SiteAuditPageList, SiteLighthousePages, SiteLighthouseRequestOptions } from "./admin-site-audit-pages.js";
|
|
4
|
+
import type { SiteCampaignLink, SiteCampaignLinkList, SiteCampaignLinkRequest } from "./admin-site-campaign-links.js";
|
|
5
|
+
import type { SiteInsightsExport, SiteSearchMetricPage, SiteSearchMetricsQuery } from "./admin-site-export.js";
|
|
6
|
+
import type { IndexNowState, IndexNowSubmission, IndexNowSubmissionRequest, SiteLighthouseHistory, SiteObservedWording, SitePageCheckRequest, SitePageCheckResponse, SitePageFacts, SitePageRecheck, SitePageRecheckList, SitePageWordingQuery, SiteProjectContext, SiteProjectContextRequest, SiteRemedy, SiteReport, SiteReportShareCreated, SiteReportShareList, SiteReportShareRequest, SiteRobotsTestRequest, SiteRobotsTestResponse, SiteSearchInspection, SiteSearchInspectionList, SiteSearchRowPage, SiteSearchRowsQuery, SiteUptimeHistory, SiteWordingCompare, SiteWordingCompareRequest } from "./admin-site-insights.js";
|
|
7
|
+
import type { SiteReferringDomains } from "./admin-site-links.js";
|
|
8
|
+
import type { PrivateUptimeCredential, PrivateUptimeMonitor, PrivateUptimeWork, SiteHeartbeatCreateRequest, SiteHeartbeatCredential, SiteHeartbeatList, SiteMaintenanceWindow, SiteMaintenanceWindowRequest, SiteMaintenanceWindows } from "./admin-site-monitors.js";
|
|
9
|
+
import type { SiteNextActions, SitePortfolioSummary } from "./admin-site-next-actions.js";
|
|
10
|
+
import type { SitePageSearchQueries } from "./admin-site-page-queries.js";
|
|
11
|
+
import type { SiteRankings, SiteTrackedKeyword, SiteTrackedKeywordUpdate, SiteTrackKeywordRequest } from "./admin-site-rankings.js";
|
|
12
|
+
import type { SiteRegionalTrends } from "./admin-site-regional-trends.js";
|
|
13
|
+
import type { SavedSiteReport, SavedSiteReportList, SavedSiteReportRequest, SiteReportRequestOptions } from "./admin-site-saved-reports.js";
|
|
14
|
+
import type { SearchPoolQueryPage, SearchPoolSetting } from "./admin-site-search-pool.js";
|
|
15
|
+
import type { SiteFindingImpact, SiteSearchValue } from "./admin-site-search-value.js";
|
|
16
|
+
import type { SiteStatusPage, SiteStatusPageDraft, SiteStatusPagePublication, SiteStatusPageSettings, SiteStatusUpdateHistory, SiteStatusUpdateRequest } from "./admin-site-status-page.js";
|
|
17
|
+
import type { AccessLogHourReplay, SiteAIVisibility, SiteTraffic } from "./admin-site-traffic.js";
|
|
18
|
+
import type { SiteContentGap, SiteKeywordClusters, SiteKeywordList, SiteKeywordListRequest, SiteKeywordLists, SiteTopicTrends, SiteWebDomains, SiteWebPages, SiteWebPagesQuery } from "./admin-site-web-data.js";
|
|
19
|
+
import type { RequestOptions } from "./index.js";
|
|
20
|
+
/** A 409 on requestAudit: the tenant has not proven control of the domain yet. */
|
|
21
|
+
export declare const SITE_DOMAIN_NOT_VERIFIED_CODE = "site_domain_not_verified";
|
|
22
|
+
/** A 409 on connectSearch: this Custd deployment has no account or key for the provider. */
|
|
23
|
+
export declare const SITE_SEARCH_NOT_CONFIGURED_CODE = "site_search_not_configured";
|
|
24
|
+
/** A 404 on disconnectSearch: the domain is not connected to that provider. */
|
|
25
|
+
export declare const SITE_SEARCH_CONNECTION_NOT_FOUND_CODE = "site_search_connection_not_found";
|
|
26
|
+
/** A 409 on retrySearchImport: only a failing connection retries now; reconnect a revoked one. */
|
|
27
|
+
export declare const SITE_SEARCH_RETRY_NOT_FAILING_CODE = "site_search_retry_not_failing";
|
|
28
|
+
/**
|
|
29
|
+
* The stable rule IDs a SiteFinding carries in `rule`, from Custd's siteaudit
|
|
30
|
+
* rule catalogue. Key a client-side fix or display on these, never on the title.
|
|
31
|
+
* New rules can appear in findings before an SDK release names them.
|
|
32
|
+
*/
|
|
33
|
+
export declare const SiteRule: {
|
|
34
|
+
readonly PageStatus: "crawl.page-status";
|
|
35
|
+
readonly RedirectChain: "crawl.redirect-chain";
|
|
36
|
+
readonly Soft404: "crawl.soft-404";
|
|
37
|
+
readonly HTTPSRedirect: "host.https-redirect";
|
|
38
|
+
readonly CanonicalHost: "host.canonical-host";
|
|
39
|
+
readonly RobotsMissing: "robots.missing";
|
|
40
|
+
readonly RobotsInvalid: "robots.invalid";
|
|
41
|
+
readonly RobotsNoSitemap: "robots.no-sitemap";
|
|
42
|
+
readonly SitemapMissing: "sitemap.missing";
|
|
43
|
+
readonly SitemapInvalid: "sitemap.invalid";
|
|
44
|
+
readonly SitemapURLStatus: "sitemap.url-not-ok";
|
|
45
|
+
readonly SitemapNoindex: "sitemap.noindex-url";
|
|
46
|
+
readonly SitemapLastmod: "sitemap.lastmod-missing";
|
|
47
|
+
readonly CanonicalMissing: "canonical.missing";
|
|
48
|
+
readonly CanonicalInvalid: "canonical.invalid";
|
|
49
|
+
readonly CanonicalNotOK: "canonical.not-ok";
|
|
50
|
+
readonly TitleMissing: "title.missing";
|
|
51
|
+
readonly TitleLength: "title.length";
|
|
52
|
+
readonly TitleDuplicate: "title.duplicate";
|
|
53
|
+
readonly DescMissing: "description.missing";
|
|
54
|
+
readonly DescLength: "description.length";
|
|
55
|
+
readonly DescDuplicate: "description.duplicate";
|
|
56
|
+
readonly HeadingH1: "heading.h1";
|
|
57
|
+
readonly LangMissing: "html.lang-missing";
|
|
58
|
+
readonly HTMLTooLarge: "html.too-large";
|
|
59
|
+
readonly OpenGraphMissing: "og.missing";
|
|
60
|
+
readonly OpenGraphImageMissing: "og.image-missing";
|
|
61
|
+
readonly OpenGraphImageUnreachable: "og.image-unreachable";
|
|
62
|
+
readonly TwitterCardMissing: "twitter.card-missing";
|
|
63
|
+
readonly ImageAltMissing: "image.alt-missing";
|
|
64
|
+
readonly ImageTooLarge: "image.too-large";
|
|
65
|
+
readonly ImageLegacyFormat: "image.legacy-format";
|
|
66
|
+
readonly ImageDimensions: "image.missing-dimensions";
|
|
67
|
+
readonly ImageNotLazy: "image.not-lazy";
|
|
68
|
+
readonly NoCompression: "http.no-compression";
|
|
69
|
+
readonly StaticCache: "cache.static-assets";
|
|
70
|
+
readonly JSRequired: "ai.js-required";
|
|
71
|
+
readonly AnswerBotBlocked: "ai.answer-bot-blocked";
|
|
72
|
+
readonly TrainingBlocked: "ai.training-bot-blocked";
|
|
73
|
+
readonly BotRefused: "ai.bot-refused";
|
|
74
|
+
readonly JSONLDMissing: "jsonld.missing";
|
|
75
|
+
readonly JSONLDInvalid: "jsonld.invalid";
|
|
76
|
+
readonly JSONLDNoEntity: "jsonld.no-entity";
|
|
77
|
+
readonly LLMSMissing: "llms.missing";
|
|
78
|
+
readonly LLMSInvalid: "llms.invalid";
|
|
79
|
+
readonly RedirectLoop: "crawl.redirect-loop";
|
|
80
|
+
readonly OrphanPage: "crawl.orphan-page";
|
|
81
|
+
readonly DeepPage: "crawl.deep-page";
|
|
82
|
+
readonly NoInternalLinks: "crawl.no-internal-links";
|
|
83
|
+
readonly NoindexPage: "crawl.noindex-page";
|
|
84
|
+
readonly HomeNoindex: "crawl.home-noindex";
|
|
85
|
+
readonly NofollowPage: "robots.nofollow";
|
|
86
|
+
readonly CanonicalElsewhere: "canonical.points-elsewhere";
|
|
87
|
+
readonly CanonicalConflict: "canonical.conflict";
|
|
88
|
+
readonly HeadingSkip: "heading.order-skip";
|
|
89
|
+
readonly ThinContent: "content.thin";
|
|
90
|
+
readonly DuplicateContent: "content.duplicate";
|
|
91
|
+
readonly NearDuplicate: "content.near-duplicate";
|
|
92
|
+
readonly HreflangInvalidCode: "hreflang.invalid-code";
|
|
93
|
+
readonly HreflangMissingSelf: "hreflang.missing-self-reference";
|
|
94
|
+
readonly HreflangMissingReturn: "hreflang.missing-return-link";
|
|
95
|
+
readonly HreflangMissingXDefault: "hreflang.missing-x-default";
|
|
96
|
+
readonly HreflangTargetNotIndexable: "hreflang.target-not-indexable";
|
|
97
|
+
readonly SlowResponse: "http.slow-response";
|
|
98
|
+
readonly UptimeDown: "uptime.down";
|
|
99
|
+
readonly UptimeSlow: "uptime.slow";
|
|
100
|
+
readonly TLSInvalid: "tls.invalid";
|
|
101
|
+
readonly TLSExpiring: "tls.expiring";
|
|
102
|
+
readonly TLSExpiringSoon: "tls.expiring-soon";
|
|
103
|
+
readonly RegistrationExpiring: "registration.expiring";
|
|
104
|
+
readonly LighthouseDesktopDrop: "lighthouse.desktop-score-drop";
|
|
105
|
+
readonly LighthouseMobileDrop: "lighthouse.mobile-score-drop";
|
|
106
|
+
readonly SearchLowCTR: "search.low-ctr";
|
|
107
|
+
readonly SearchPositionDrop: "search.position-drop";
|
|
108
|
+
readonly BrokenFragment: "crawl.broken-fragment";
|
|
109
|
+
readonly SitemapBlockedURL: "sitemap.blocked-url";
|
|
110
|
+
readonly LogsCrawlerNotFound: "logs.crawler-not-found";
|
|
111
|
+
};
|
|
112
|
+
export type SiteRuleId = (typeof SiteRule)[keyof typeof SiteRule];
|
|
113
|
+
/** Per-call options. `companySlug` names the tenant when a system administrator acts for one. */
|
|
114
|
+
export type SiteDomainRequestOptions = RequestOptions & {
|
|
115
|
+
companySlug?: string;
|
|
116
|
+
};
|
|
117
|
+
export type SiteDomainCreateRequest = {
|
|
118
|
+
/**
|
|
119
|
+
* The Site the host belongs to. Omitted, a site-bound credential gets its own Site and anyone
|
|
120
|
+
* else the Site Custd places the host on: the Site holding it with or without www., else the
|
|
121
|
+
* Site named after it, else the only Site, or SITE_CHOICE_REQUIRED_CODE when none is decided. A
|
|
122
|
+
* tenant with no Site gets one named after the host, which needs tenant-admin access.
|
|
123
|
+
*/
|
|
124
|
+
siteUuid?: string;
|
|
125
|
+
host: string;
|
|
126
|
+
};
|
|
127
|
+
/** How to prove control: publish either the DNS TXT record or the well-known file. */
|
|
128
|
+
export type SiteDomainVerification = {
|
|
129
|
+
dnsRecordName: string;
|
|
130
|
+
dnsRecordValue: string;
|
|
131
|
+
fileUrl: string;
|
|
132
|
+
fileContent: string;
|
|
133
|
+
};
|
|
134
|
+
export type SiteDomainVerifiedBy = "dns" | "file" | "attested" | "parent" | "operator";
|
|
135
|
+
/** The credential that vouched for a domain, and when. */
|
|
136
|
+
export type SiteDomainAttestation = {
|
|
137
|
+
clientId: string;
|
|
138
|
+
attestedAt: string;
|
|
139
|
+
};
|
|
140
|
+
export type SiteDomainOwnership = {
|
|
141
|
+
verified: boolean;
|
|
142
|
+
verifiedAt?: string;
|
|
143
|
+
verifiedBy?: SiteDomainVerifiedBy;
|
|
144
|
+
lastCheckedAt?: string;
|
|
145
|
+
lastCheckFailure?: string;
|
|
146
|
+
instructions: SiteDomainVerification;
|
|
147
|
+
/** The parent domain whose verification covers this one; set only when verifiedBy is "parent". */
|
|
148
|
+
verifiedViaDomainUuid?: string;
|
|
149
|
+
attestation?: SiteDomainAttestation;
|
|
150
|
+
};
|
|
151
|
+
/** One audit run's findings counted by severity. */
|
|
152
|
+
export type SiteAuditSummary = {
|
|
153
|
+
high: number;
|
|
154
|
+
medium: number;
|
|
155
|
+
low: number;
|
|
156
|
+
info: number;
|
|
157
|
+
pagesChecked: number;
|
|
158
|
+
requests: number;
|
|
159
|
+
truncated: boolean;
|
|
160
|
+
};
|
|
161
|
+
export type SiteDomainAudit = {
|
|
162
|
+
requestedAt?: string;
|
|
163
|
+
lastAuditedAt?: string;
|
|
164
|
+
lastSummary?: SiteAuditSummary;
|
|
165
|
+
lastFailure?: string;
|
|
166
|
+
};
|
|
167
|
+
/**
|
|
168
|
+
* paused sends no requests; uptime (the default) checks the home page every
|
|
169
|
+
* five minutes and the certificate every six hours; warm adds one anonymous
|
|
170
|
+
* home page GET every minute.
|
|
171
|
+
*/
|
|
172
|
+
export type SiteCheckMode = "paused" | "uptime" | "warm";
|
|
173
|
+
/** failing is one failed check; down is an open incident (two or more in a row). */
|
|
174
|
+
export type SiteUptimeStatus = "unknown" | "up" | "failing" | "down" | "paused";
|
|
175
|
+
export type SiteProbeSpec = {
|
|
176
|
+
kind: "ping";
|
|
177
|
+
} | {
|
|
178
|
+
kind: "tcp";
|
|
179
|
+
port: number;
|
|
180
|
+
} | {
|
|
181
|
+
kind: "dns";
|
|
182
|
+
expectedAddresses?: string[];
|
|
183
|
+
} | {
|
|
184
|
+
kind: "http-delivery";
|
|
185
|
+
protocol?: "http1.1" | "http2";
|
|
186
|
+
};
|
|
187
|
+
export type SiteProbeDetail = {
|
|
188
|
+
resolvedIp?: string;
|
|
189
|
+
addresses?: string[];
|
|
190
|
+
missingAddresses?: string[];
|
|
191
|
+
unexpectedAddresses?: string[];
|
|
192
|
+
statusCode?: number;
|
|
193
|
+
negotiatedProtocol?: string;
|
|
194
|
+
tlsVersion?: string;
|
|
195
|
+
bytesRead?: number;
|
|
196
|
+
timings?: {
|
|
197
|
+
dnsMs?: number;
|
|
198
|
+
connectMs?: number;
|
|
199
|
+
tlsMs?: number;
|
|
200
|
+
firstByteMs?: number;
|
|
201
|
+
totalMs: number;
|
|
202
|
+
};
|
|
203
|
+
cache?: {
|
|
204
|
+
cacheControl?: string;
|
|
205
|
+
age?: string;
|
|
206
|
+
cacheStatus?: string;
|
|
207
|
+
server?: string;
|
|
208
|
+
via?: string;
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
export type SiteProbe = SiteProbeSpec & {
|
|
212
|
+
status: SiteUptimeStatus;
|
|
213
|
+
lastCheckedAt?: string;
|
|
214
|
+
responseMs?: number;
|
|
215
|
+
lastFailure?: string;
|
|
216
|
+
detail?: SiteProbeDetail;
|
|
217
|
+
};
|
|
218
|
+
export type SiteProbeList = {
|
|
219
|
+
probes: SiteProbe[];
|
|
220
|
+
};
|
|
221
|
+
export type SiteUptime = {
|
|
222
|
+
status: SiteUptimeStatus;
|
|
223
|
+
lastCheckedAt?: string;
|
|
224
|
+
statusCode?: number;
|
|
225
|
+
responseMs?: number;
|
|
226
|
+
lastFailure?: string;
|
|
227
|
+
consecutiveFailures: number;
|
|
228
|
+
};
|
|
229
|
+
export type SiteTLS = {
|
|
230
|
+
lastCheckedAt?: string;
|
|
231
|
+
validTo?: string;
|
|
232
|
+
issuer?: string;
|
|
233
|
+
lastFailure?: string;
|
|
234
|
+
};
|
|
235
|
+
/** Average home page response time with warming off and on; each is absent until measured. */
|
|
236
|
+
export type SiteWarming = {
|
|
237
|
+
lastWarmedAt?: string;
|
|
238
|
+
unwarmedResponseMs?: number;
|
|
239
|
+
warmedResponseMs?: number;
|
|
240
|
+
};
|
|
241
|
+
/** One outage, from the first failed check to the first passing one. resolvedAt is absent while open. */
|
|
242
|
+
export type SiteIncident = {
|
|
243
|
+
incidentUuid: string;
|
|
244
|
+
startedAt: string;
|
|
245
|
+
openedAt: string;
|
|
246
|
+
resolvedAt?: string;
|
|
247
|
+
/** When a person acknowledged the open incident; absent until acknowledged. */
|
|
248
|
+
acknowledgedAt?: string;
|
|
249
|
+
cause: string;
|
|
250
|
+
failedChecks: number;
|
|
251
|
+
};
|
|
252
|
+
export type SiteIncidentList = {
|
|
253
|
+
incidents: SiteIncident[];
|
|
254
|
+
};
|
|
255
|
+
/** The field collection period and available 75th-percentile Web Vitals. */
|
|
256
|
+
export type SiteChromeUXObservation = {
|
|
257
|
+
firstDate: string;
|
|
258
|
+
lastDate: string;
|
|
259
|
+
lcpMs?: number;
|
|
260
|
+
inpMs?: number;
|
|
261
|
+
cls?: number;
|
|
262
|
+
};
|
|
263
|
+
/** A lookup without an observation returned no field data for the origin. */
|
|
264
|
+
export type SiteChromeUX = {
|
|
265
|
+
checkedAt: string;
|
|
266
|
+
observation?: SiteChromeUXObservation;
|
|
267
|
+
};
|
|
268
|
+
/** Registry lookup. An absent expiry date means the registry did not supply one. */
|
|
269
|
+
export type SiteRegistration = {
|
|
270
|
+
domain: string;
|
|
271
|
+
source?: string;
|
|
272
|
+
readAt: string;
|
|
273
|
+
expiresAt?: string;
|
|
274
|
+
};
|
|
275
|
+
/** What a domain's uptime probe expects from the response, beyond a successful status. */
|
|
276
|
+
export type SiteHTTPExpectations = {
|
|
277
|
+
statusCode?: number;
|
|
278
|
+
bodyContains?: string;
|
|
279
|
+
json?: {
|
|
280
|
+
field: string;
|
|
281
|
+
value: string;
|
|
282
|
+
};
|
|
283
|
+
maxResponseMs?: number;
|
|
284
|
+
};
|
|
285
|
+
export type SiteDomainChecks = {
|
|
286
|
+
mode: SiteCheckMode;
|
|
287
|
+
httpExpectations?: SiteHTTPExpectations;
|
|
288
|
+
uptime: SiteUptime;
|
|
289
|
+
tls: SiteTLS;
|
|
290
|
+
warming: SiteWarming;
|
|
291
|
+
openIncident?: SiteIncident;
|
|
292
|
+
chromeUx?: SiteChromeUX;
|
|
293
|
+
registration?: SiteRegistration;
|
|
294
|
+
};
|
|
295
|
+
/** A host a Site has claimed. Only a verified domain is audited or checked. */
|
|
296
|
+
export type SiteDomain = {
|
|
297
|
+
domainUuid: string;
|
|
298
|
+
siteUuid: string;
|
|
299
|
+
host: string;
|
|
300
|
+
ownership: SiteDomainOwnership;
|
|
301
|
+
audit: SiteDomainAudit;
|
|
302
|
+
checks: SiteDomainChecks;
|
|
303
|
+
createdAt: string;
|
|
304
|
+
};
|
|
305
|
+
export type SiteDomainList = {
|
|
306
|
+
domains: SiteDomain[];
|
|
307
|
+
};
|
|
308
|
+
export type SiteFindingState = "open" | "fixed" | "all";
|
|
309
|
+
export type SiteFindingSeverity = "high" | "medium" | "low" | "info";
|
|
310
|
+
export type SiteFindingHistory = {
|
|
311
|
+
firstSeenAt: string;
|
|
312
|
+
lastSeenAt: string;
|
|
313
|
+
fixed: boolean;
|
|
314
|
+
fixedAt?: string;
|
|
315
|
+
};
|
|
316
|
+
export type SiteFindingSuggestion = {
|
|
317
|
+
explanation: string;
|
|
318
|
+
nextStep: string;
|
|
319
|
+
};
|
|
320
|
+
/** One problem found on a verified domain, with the advice to fix it. `rule` is a SiteRule ID. */
|
|
321
|
+
export type SiteFinding = {
|
|
322
|
+
findingUuid: string;
|
|
323
|
+
rule: string;
|
|
324
|
+
severity: SiteFindingSeverity;
|
|
325
|
+
title: string;
|
|
326
|
+
url: string;
|
|
327
|
+
evidence: string;
|
|
328
|
+
fix: string;
|
|
329
|
+
source: string;
|
|
330
|
+
remedy: SiteRemedy;
|
|
331
|
+
history: SiteFindingHistory;
|
|
332
|
+
/** A one-page recheck decides this rule, so requestPageRecheck can confirm the fix. Absent before 3.51. */
|
|
333
|
+
recheckable?: boolean;
|
|
334
|
+
/** Whether the finding may be dismissed instead of fixed. */
|
|
335
|
+
dismissible?: boolean;
|
|
336
|
+
suggestion?: SiteFindingSuggestion;
|
|
337
|
+
};
|
|
338
|
+
/** A domain's findings, most severe first. */
|
|
339
|
+
export type SiteFindingList = {
|
|
340
|
+
findings: SiteFinding[];
|
|
341
|
+
};
|
|
342
|
+
export declare const SITE_FINDING_DISMISSAL_SCOPES: {
|
|
343
|
+
readonly rule: "rule";
|
|
344
|
+
readonly url: "url";
|
|
345
|
+
};
|
|
346
|
+
/** Whether a dismissal hides the finding's rule everywhere or only at the finding's URL. */
|
|
347
|
+
export type SiteFindingDismissalScope = (typeof SITE_FINDING_DISMISSAL_SCOPES)[keyof typeof SITE_FINDING_DISMISSAL_SCOPES];
|
|
348
|
+
/** Hides a currently observed finding, with the reason a person gives. */
|
|
349
|
+
export type SiteFindingDismissalRequest = {
|
|
350
|
+
findingUuid: string;
|
|
351
|
+
scope: SiteFindingDismissalScope;
|
|
352
|
+
reason: string;
|
|
353
|
+
};
|
|
354
|
+
/** A current dismissal. url is absent for a rule-wide dismissal. */
|
|
355
|
+
export type SiteFindingDismissal = {
|
|
356
|
+
dismissalUuid: string;
|
|
357
|
+
rule: string;
|
|
358
|
+
url?: string;
|
|
359
|
+
title: string;
|
|
360
|
+
reason: string;
|
|
361
|
+
dismissedAt: string;
|
|
362
|
+
};
|
|
363
|
+
export type SiteFindingDismissals = {
|
|
364
|
+
dismissals: SiteFindingDismissal[];
|
|
365
|
+
};
|
|
366
|
+
export declare const SITE_BROWSER_COLLECTOR_MODES: {
|
|
367
|
+
readonly enabled: "enabled";
|
|
368
|
+
readonly disabled: "disabled";
|
|
369
|
+
};
|
|
370
|
+
export type SiteBrowserCollectorMode = (typeof SITE_BROWSER_COLLECTOR_MODES)[keyof typeof SITE_BROWSER_COLLECTOR_MODES];
|
|
371
|
+
/** The desired collector state. environment is required when enabling. */
|
|
372
|
+
export type SiteBrowserCollectorRequest = {
|
|
373
|
+
mode: SiteBrowserCollectorMode;
|
|
374
|
+
environment?: string;
|
|
375
|
+
};
|
|
376
|
+
/** A Site's browser collector. browserKey is absent when disabled; treat it as a write credential. */
|
|
377
|
+
export type SiteBrowserCollector = {
|
|
378
|
+
siteUuid: string;
|
|
379
|
+
mode: SiteBrowserCollectorMode;
|
|
380
|
+
browserKey?: string;
|
|
381
|
+
environment?: string;
|
|
382
|
+
allowedOrigin?: string;
|
|
383
|
+
};
|
|
384
|
+
/** Where one Site's alerts go. An absent emailRecipient means the tenant's own alert destinations. */
|
|
385
|
+
export type SiteAlertDestination = {
|
|
386
|
+
siteUuid: string;
|
|
387
|
+
emailRecipient?: string;
|
|
388
|
+
};
|
|
389
|
+
export type SiteAlertDestinationRequest = {
|
|
390
|
+
/** A site-bound credential may omit it for its own Site. */
|
|
391
|
+
siteUuid?: string;
|
|
392
|
+
/** An empty string sends the Site's alerts to the tenant's destinations again. */
|
|
393
|
+
emailRecipient: string;
|
|
394
|
+
};
|
|
395
|
+
export type SiteSearchProvider = "google" | "bing";
|
|
396
|
+
export type SiteSearchConnectionStatus = "pending" | "active" | "failing" | "revoked";
|
|
397
|
+
/** Which providers this deployment imports from, and the Google account to add to a property. */
|
|
398
|
+
export type SiteSearchAccount = {
|
|
399
|
+
googleConfigured: boolean;
|
|
400
|
+
googleServiceAccountEmail?: string;
|
|
401
|
+
bingConfigured: boolean;
|
|
402
|
+
};
|
|
403
|
+
/**
|
|
404
|
+
* property is "sc-domain:example.com" or a URL prefix ending in "/" for Google,
|
|
405
|
+
* and a URL prefix ending in "/" for Bing. apiKey is Bing only and write-only.
|
|
406
|
+
*/
|
|
407
|
+
export type SiteSearchConnectionRequest = {
|
|
408
|
+
property: string;
|
|
409
|
+
apiKey?: string;
|
|
410
|
+
};
|
|
411
|
+
export type SiteSearchConnection = {
|
|
412
|
+
provider: SiteSearchProvider;
|
|
413
|
+
property: string;
|
|
414
|
+
status: SiteSearchConnectionStatus;
|
|
415
|
+
/** The last day imported, YYYY-MM-DD. */
|
|
416
|
+
importedThrough?: string;
|
|
417
|
+
lastImportedAt?: string;
|
|
418
|
+
lastFailure?: string;
|
|
419
|
+
};
|
|
420
|
+
/** Summed search numbers. ctr is 0..1; position is absent when unknown. */
|
|
421
|
+
export type SiteSearchTotals = {
|
|
422
|
+
clicks: number;
|
|
423
|
+
impressions: number;
|
|
424
|
+
ctr: number;
|
|
425
|
+
position?: number;
|
|
426
|
+
};
|
|
427
|
+
export type SiteSearchDay = {
|
|
428
|
+
day: string;
|
|
429
|
+
clicks: number;
|
|
430
|
+
impressions: number;
|
|
431
|
+
};
|
|
432
|
+
export type SiteSearchSource = {
|
|
433
|
+
provider: SiteSearchProvider;
|
|
434
|
+
source: string;
|
|
435
|
+
granularity: "daily" | "weekly";
|
|
436
|
+
from?: string;
|
|
437
|
+
to?: string;
|
|
438
|
+
/** Days with data inside the window. */
|
|
439
|
+
days: number;
|
|
440
|
+
importedAt?: string;
|
|
441
|
+
totals: SiteSearchTotals;
|
|
442
|
+
/** Totals for the same number of days before the window, if any. */
|
|
443
|
+
previous?: SiteSearchTotals;
|
|
444
|
+
/** Each imported day's totals, oldest first; Bing's are week buckets. */
|
|
445
|
+
daily: SiteSearchDay[];
|
|
446
|
+
};
|
|
447
|
+
/** One page URL or query text and its totals. */
|
|
448
|
+
export type SiteSearchRow = {
|
|
449
|
+
provider: SiteSearchProvider;
|
|
450
|
+
key: string;
|
|
451
|
+
totals: SiteSearchTotals;
|
|
452
|
+
};
|
|
453
|
+
export type SiteSearchPerformance = {
|
|
454
|
+
domainUuid: string;
|
|
455
|
+
days: number;
|
|
456
|
+
connections: SiteSearchConnection[];
|
|
457
|
+
sources: SiteSearchSource[];
|
|
458
|
+
topPages: SiteSearchRow[];
|
|
459
|
+
topQueries: SiteSearchRow[];
|
|
460
|
+
strikingDistance: SiteSearchRow[];
|
|
461
|
+
};
|
|
462
|
+
type NonAdminRequester = <T>(method: string, path: string, body?: unknown, options?: RequestOptions) => Promise<T>;
|
|
463
|
+
export declare class SiteDomainAdminClient {
|
|
464
|
+
private readonly request;
|
|
465
|
+
constructor(request: NonAdminRequester);
|
|
466
|
+
/** Reads the domain's network checks and their latest results. */
|
|
467
|
+
listProbes(domainUuid: string, options?: SiteDomainRequestOptions): Promise<SiteProbeList>;
|
|
468
|
+
/** Replaces the domain's network checks. Pass an empty array to disable them. */
|
|
469
|
+
setProbes(domainUuid: string, probes: readonly SiteProbeSpec[], options?: SiteDomainRequestOptions): Promise<SiteProbeList>;
|
|
470
|
+
/** Claims a host for a Site and returns the verification instructions. */
|
|
471
|
+
create(body: SiteDomainCreateRequest, options?: SiteDomainRequestOptions): Promise<SiteDomain>;
|
|
472
|
+
/** Lists one Site's domains. A site-bound credential may omit siteUuid for its own Site. */
|
|
473
|
+
list(siteUuid?: string, options?: SiteDomainRequestOptions): Promise<SiteDomainList>;
|
|
474
|
+
get(domainUuid: string, options?: SiteDomainRequestOptions): Promise<SiteDomain>;
|
|
475
|
+
/**
|
|
476
|
+
* Checks the DNS record or well-known file now. An unproven domain comes back
|
|
477
|
+
* with ownership.verified false and the reason in ownership.lastCheckFailure.
|
|
478
|
+
*/
|
|
479
|
+
verify(domainUuid: string, options?: SiteDomainRequestOptions): Promise<SiteDomain>;
|
|
480
|
+
/**
|
|
481
|
+
* Attests that this credential has proven the tenant controls the domain,
|
|
482
|
+
* which verifies it (verifiedBy "attested") and its subdomains. Only a
|
|
483
|
+
* site-bound credential holding site_domains.attest may attest its own Site's domains.
|
|
484
|
+
*/
|
|
485
|
+
attest(domainUuid: string, options?: SiteDomainRequestOptions): Promise<SiteDomain>;
|
|
486
|
+
/** Withdraws this credential's attestation; the domain stays verified only by its own proof or a verified parent. */
|
|
487
|
+
unattest(domainUuid: string, options?: SiteDomainRequestOptions): Promise<SiteDomain>;
|
|
488
|
+
/** Queues an audit for the scheduler's next tick. An unverified domain is refused with SITE_DOMAIN_NOT_VERIFIED_CODE. */
|
|
489
|
+
requestAudit(domainUuid: string, options?: SiteDomainRequestOptions): Promise<SiteDomain>;
|
|
490
|
+
/** Lists a domain's findings, most severe first. An omitted state lets the server default to open. */
|
|
491
|
+
listFindings(domainUuid: string, state?: SiteFindingState, options?: SiteDomainRequestOptions): Promise<SiteFindingList>;
|
|
492
|
+
/** Removes a domain and its findings. */
|
|
493
|
+
delete(domainUuid: string, options?: SiteDomainRequestOptions): Promise<void>;
|
|
494
|
+
/** Chooses how a domain is checked. It works before verification, so a domain can be paused before its first check. */
|
|
495
|
+
setCheckMode(domainUuid: string, mode: SiteCheckMode, options?: SiteDomainRequestOptions): Promise<SiteDomain>;
|
|
496
|
+
/** Lists a domain's recent outages, newest first (at most twenty). */
|
|
497
|
+
listIncidents(domainUuid: string, options?: SiteDomainRequestOptions): Promise<SiteIncidentList>;
|
|
498
|
+
/** Reads a Site's alert address. A site-bound credential may omit siteUuid. */
|
|
499
|
+
getAlertDestination(siteUuid?: string, options?: SiteDomainRequestOptions): Promise<SiteAlertDestination>;
|
|
500
|
+
/** Emails a Site's alerts to emailRecipient, or back to the tenant's destinations when it is empty. */
|
|
501
|
+
setAlertDestination(body: SiteAlertDestinationRequest, options?: SiteDomainRequestOptions): Promise<SiteAlertDestination>;
|
|
502
|
+
/** Reads which search providers this Custd deployment can import from. */
|
|
503
|
+
getSearchAccount(options?: SiteDomainRequestOptions): Promise<SiteSearchAccount>;
|
|
504
|
+
/** Reads the tenant's AI policy and current provider terms version. */
|
|
505
|
+
getAISettings(options?: SiteDomainRequestOptions): Promise<SiteAISettings>;
|
|
506
|
+
/** Replaces the tenant's AI mode and cap. The API key is write-only. */
|
|
507
|
+
setAISettings(body: SiteAISettingsRequest, options?: SiteDomainRequestOptions): Promise<SiteAISettings>;
|
|
508
|
+
/** Records explicit acceptance of the supplied terms version or revokes consent. */
|
|
509
|
+
setAIConsent(body: SiteAIConsentRequest, options?: SiteDomainRequestOptions): Promise<SiteAISettings>;
|
|
510
|
+
/** Creates a one-time code the tenant owner redeems by form POST to manage AI settings. */
|
|
511
|
+
createAIOwnerHandoff(body: SiteAIOwnerHandoffRequest, options?: RequestOptions): Promise<SiteAIOwnerHandoff>;
|
|
512
|
+
/** Reads the tenant's current UTC month's AI usage. */
|
|
513
|
+
getAIUsage(options?: SiteDomainRequestOptions): Promise<SiteAITenantUsage>;
|
|
514
|
+
/** Reads whether the tenant takes part in the shared search pool, and the pool's rules. */
|
|
515
|
+
getSearchPool(options?: SiteDomainRequestOptions): Promise<SearchPoolSetting>;
|
|
516
|
+
/** Joins (true) or leaves (false) the shared search pool for the whole tenant. */
|
|
517
|
+
/**
|
|
518
|
+
* Joins (with the terms version the caller accepted) or leaves the shared search pool.
|
|
519
|
+
* Joining without a termsVersion is refused before any request; leaving sends only joined.
|
|
520
|
+
*/
|
|
521
|
+
setSearchPool(joined: boolean, termsVersion?: string, options?: SiteDomainRequestOptions): Promise<SearchPoolSetting>;
|
|
522
|
+
/**
|
|
523
|
+
* Reads pooled queries matching `search` (at most 100 characters), `limit` 1..200; omitted, 50.
|
|
524
|
+
* Before joining it is refused with SITE_SEARCH_POOL_NOT_JOINED_CODE.
|
|
525
|
+
*/
|
|
526
|
+
listSearchPoolQueries(search?: string, limit?: number, options?: SiteDomainRequestOptions): Promise<SearchPoolQueryPage>;
|
|
527
|
+
/** Reads a domain's search numbers over the last `days` days (1..90); omitted, the server uses 28. */
|
|
528
|
+
getSearchPerformance(domainUuid: string, days?: number, options?: SiteDomainRequestOptions): Promise<SiteSearchPerformance>;
|
|
529
|
+
/** Connects a domain to a provider, or replaces its property or key. Refused with SITE_SEARCH_NOT_CONFIGURED_CODE when the deployment lacks the provider. */
|
|
530
|
+
connectSearch(domainUuid: string, provider: SiteSearchProvider, body: SiteSearchConnectionRequest, options?: SiteDomainRequestOptions): Promise<SiteSearchConnection>;
|
|
531
|
+
/** Removes a provider connection and the numbers imported through it. */
|
|
532
|
+
disconnectSearch(domainUuid: string, provider: SiteSearchProvider, options?: SiteDomainRequestOptions): Promise<void>;
|
|
533
|
+
/** Reads what the latest audit or recheck read from one page of the domain. */
|
|
534
|
+
/** Retries a failing search import now; anything else is refused with SITE_SEARCH_RETRY_NOT_FAILING_CODE. */
|
|
535
|
+
retrySearchImport(domainUuid: string, provider: SiteSearchProvider, options?: SiteDomainRequestOptions): Promise<SiteSearchConnection>;
|
|
536
|
+
/** Reads the searches one page shows for, with title options and pages that could link to it. */
|
|
537
|
+
getPageSearchQueries(domainUuid: string, url: string, options?: SiteDomainRequestOptions): Promise<SitePageSearchQueries>;
|
|
538
|
+
/** Reads the domain's GA4 landing pages, key events and channels; empty until connected and imported. */
|
|
539
|
+
getAnalytics(domainUuid: string, options?: SiteDomainRequestOptions): Promise<SiteAnalyticsReport>;
|
|
540
|
+
/** Connects the domain to a GA4 property; a bad ID is refused with SITE_ANALYTICS_PROPERTY_INVALID_CODE. */
|
|
541
|
+
connectAnalytics(domainUuid: string, body: SiteAnalyticsConnectionRequest, options?: SiteDomainRequestOptions): Promise<SiteAnalyticsConnection>;
|
|
542
|
+
/** Disconnects GA4; an unconnected domain is refused with SITE_ANALYTICS_CONNECTION_NOT_FOUND_CODE. */
|
|
543
|
+
disconnectAnalytics(domainUuid: string, options?: SiteDomainRequestOptions): Promise<void>;
|
|
544
|
+
/** Exports everything Site Insights holds for the domain and its Site, except the daily search metrics. */
|
|
545
|
+
getExport(domainUuid: string, options?: SiteDomainRequestOptions): Promise<SiteInsightsExport>;
|
|
546
|
+
/** Pages through the domain's daily search metrics; the export's search.metricRows is the total. */
|
|
547
|
+
listExportSearchMetrics(domainUuid: string, query?: SiteSearchMetricsQuery, options?: SiteDomainRequestOptions): Promise<SiteSearchMetricPage>;
|
|
548
|
+
/** Reads what the last audit or recheck saw on a page; an unread page is refused with SITE_PAGE_NOT_READ_CODE. */
|
|
549
|
+
getPageFacts(domainUuid: string, url: string, options?: SiteDomainRequestOptions): Promise<SitePageFacts>;
|
|
550
|
+
/**
|
|
551
|
+
* Queues one page of a verified domain for recheck (202). A page already queued comes back as it is;
|
|
552
|
+
* past the hourly allowance the server refuses with SITE_PAGE_RECHECK_LIMIT_CODE, and a page of
|
|
553
|
+
* another host with SITE_PAGE_NOT_ON_DOMAIN_CODE.
|
|
554
|
+
*/
|
|
555
|
+
requestPageRecheck(domainUuid: string, url: string, options?: SiteDomainRequestOptions): Promise<SitePageRecheck>;
|
|
556
|
+
getPageRecheck(domainUuid: string, recheckUuid: string, options?: SiteDomainRequestOptions): Promise<SitePageRecheck>;
|
|
557
|
+
/** Reads up to SITE_PAGE_RECHECK_READ_LIMIT of the domain's rechecks at once; unknown ids are left out. */
|
|
558
|
+
listPageRechecks(domainUuid: string, recheckUuids: readonly string[], options?: SiteDomainRequestOptions): Promise<SitePageRecheckList>;
|
|
559
|
+
/** Runs the one-page checks on draft HTML, and the draft tools it asks for; nothing is fetched or stored. */
|
|
560
|
+
checkPage(domainUuid: string, body: SitePageCheckRequest, options?: SiteDomainRequestOptions): Promise<SitePageCheckResponse>;
|
|
561
|
+
/** Measures how much wording two drafts share, as the near-duplicate rule does; nothing is stored. */
|
|
562
|
+
compareWording(domainUuid: string, body: SiteWordingCompareRequest, options?: SiteDomainRequestOptions): Promise<SiteWordingCompare>;
|
|
563
|
+
/** Compares two stored page observations on a verified domain without fetching either URL. */
|
|
564
|
+
comparePageWording(domainUuid: string, { firstUrl, secondUrl }: SitePageWordingQuery, options?: SiteDomainRequestOptions): Promise<SiteObservedWording>;
|
|
565
|
+
/** Tests a URL against a pasted robots.txt, or the domain's live file when robotsTxt is omitted. */
|
|
566
|
+
testRobots(domainUuid: string, body: SiteRobotsTestRequest, options?: SiteDomainRequestOptions): Promise<SiteRobotsTestResponse>;
|
|
567
|
+
/** Pages through one dimension of the domain's imported search rows; `unavailable` names providers without it. */
|
|
568
|
+
listSearchRows(domainUuid: string, query?: SiteSearchRowsQuery, options?: SiteDomainRequestOptions): Promise<SiteSearchRowPage>;
|
|
569
|
+
/** Lists the domain's latest URL inspections and the tenant's daily use. */
|
|
570
|
+
listSearchInspections(domainUuid: string, options?: SiteDomainRequestOptions): Promise<SiteSearchInspectionList>;
|
|
571
|
+
/**
|
|
572
|
+
* Queues a Search Console URL Inspection (202). Refusals carry SITE_SEARCH_INSPECTION_URL_INVALID_CODE,
|
|
573
|
+
* SITE_SEARCH_INSPECTION_NOT_CONNECTED_CODE or SITE_SEARCH_INSPECTION_LIMIT_CODE.
|
|
574
|
+
*/
|
|
575
|
+
requestSearchInspection(domainUuid: string, url: string, options?: SiteDomainRequestOptions): Promise<SiteSearchInspection>;
|
|
576
|
+
/** Reads a Site's brands, competitors and markets. A site-bound credential may omit siteUuid. */
|
|
577
|
+
getProjectContext(siteUuid?: string, options?: SiteDomainRequestOptions): Promise<SiteProjectContext>;
|
|
578
|
+
/** Replaces a Site's project context; an omitted list is sent empty and clears it. */
|
|
579
|
+
setProjectContext(body: SiteProjectContextRequest, options?: SiteDomainRequestOptions): Promise<SiteProjectContext>;
|
|
580
|
+
/** Reads public trends matching a Site's audience and saved terms. A site token may omit siteUuid. */
|
|
581
|
+
getRegionalTrends(siteUuid?: string, options?: SiteDomainRequestOptions): Promise<SiteRegionalTrends>;
|
|
582
|
+
/** Reads the domain's status and its most important next actions, most important first. */
|
|
583
|
+
getNextActions(domainUuid: string, options?: SiteDomainRequestOptions): Promise<SiteNextActions>;
|
|
584
|
+
/** Reads every domain's status, open findings and first action, worst first (only its own Site's for a site-bound credential). */
|
|
585
|
+
getPortfolioSummary(options?: SiteDomainRequestOptions): Promise<SitePortfolioSummary>;
|
|
586
|
+
/** Reads the client report without private verification or connection details, in options.template over options.days. */
|
|
587
|
+
getReport(domainUuid: string, options?: SiteReportRequestOptions): Promise<SiteReport>;
|
|
588
|
+
/** Reads uptime windows, ninety daily bars and hourly response times over `responseDays` (1..90). */
|
|
589
|
+
getUptimeHistory(domainUuid: string, responseDays?: number, options?: SiteDomainRequestOptions): Promise<SiteUptimeHistory>;
|
|
590
|
+
/**
|
|
591
|
+
* Reads scheduled desktop and mobile lab runs over `days` (1..30); omitted, the server uses seven.
|
|
592
|
+
* options.url reads one extra page's runs instead of the home page's.
|
|
593
|
+
*/
|
|
594
|
+
getLighthouseHistory(domainUuid: string, days?: number, options?: SiteLighthouseRequestOptions): Promise<SiteLighthouseHistory>;
|
|
595
|
+
/** Reads the extra pages Lighthouse measures beside the home page. */
|
|
596
|
+
getLighthousePages(domainUuid: string, options?: SiteDomainRequestOptions): Promise<SiteLighthousePages>;
|
|
597
|
+
/** Replaces the extra pages (at most five); an empty list clears them. Refused with SITE_LIGHTHOUSE_PAGE_NOT_EXTRA_CODE. */
|
|
598
|
+
setLighthousePages(domainUuid: string, urls: string[], options?: SiteDomainRequestOptions): Promise<SiteLighthousePages>;
|
|
599
|
+
/** Pages through the URLs the latest audit crawled; the server defaults limit to 50 (at most 200). */
|
|
600
|
+
listAuditPages(domainUuid: string, offset?: number, limit?: number, options?: SiteDomainRequestOptions): Promise<SiteAuditPageList>;
|
|
601
|
+
/** Reads the findings the latest audit opened, reopened and fixed. */
|
|
602
|
+
getAuditDelta(domainUuid: string, options?: SiteDomainRequestOptions): Promise<SiteAuditDelta>;
|
|
603
|
+
/** Lists the domain's saved reports, newest content first. */
|
|
604
|
+
listSavedReports(domainUuid: string, options?: SiteDomainRequestOptions): Promise<SavedSiteReportList>;
|
|
605
|
+
/** Generates and saves a report. Refused with SAVED_SITE_REPORT_NAME_TAKEN_CODE or SAVED_SITE_REPORT_LIMIT_CODE. */
|
|
606
|
+
saveReport(domainUuid: string, body: SavedSiteReportRequest, options?: SiteDomainRequestOptions): Promise<SavedSiteReport>;
|
|
607
|
+
getSavedReport(domainUuid: string, reportUuid: string, options?: SiteDomainRequestOptions): Promise<SavedSiteReport>;
|
|
608
|
+
/** Renames or regenerates a saved report; its shares open the new content. */
|
|
609
|
+
replaceSavedReport(domainUuid: string, reportUuid: string, body: SavedSiteReportRequest, options?: SiteDomainRequestOptions): Promise<SavedSiteReport>;
|
|
610
|
+
/** Deletes a saved report. */
|
|
611
|
+
deleteSavedReport(domainUuid: string, reportUuid: string, options?: SiteDomainRequestOptions): Promise<void>;
|
|
612
|
+
/** Lists the domain's active campaign links, newest first, and archived ones too with includeArchived. */
|
|
613
|
+
listCampaignLinks(domainUuid: string, includeArchived?: boolean, options?: SiteDomainRequestOptions): Promise<SiteCampaignLinkList>;
|
|
614
|
+
/**
|
|
615
|
+
* Saves a tagged page link (201). Refused with SITE_CAMPAIGN_LINK_TAKEN_CODE or
|
|
616
|
+
* SITE_CAMPAIGN_LINK_LIMIT_CODE, and a page of another host with SITE_PAGE_NOT_ON_DOMAIN_CODE.
|
|
617
|
+
*/
|
|
618
|
+
createCampaignLink(domainUuid: string, body: SiteCampaignLinkRequest, options?: SiteDomainRequestOptions): Promise<SiteCampaignLink>;
|
|
619
|
+
/** Archives a link: it stays listed with archived links and its tagged URL is free again. */
|
|
620
|
+
archiveCampaignLink(domainUuid: string, linkUuid: string, options?: SiteDomainRequestOptions): Promise<SiteCampaignLink>;
|
|
621
|
+
/** Reads the Site's saved status-page draft and current publication, if any. */
|
|
622
|
+
getStatusPageSettings(domainUuid: string, options?: SiteDomainRequestOptions): Promise<SiteStatusPageSettings>;
|
|
623
|
+
/** Shows the selected components as customers would see them, without publishing. */
|
|
624
|
+
previewStatusPage(domainUuid: string, draft: SiteStatusPageDraft, options?: SiteDomainRequestOptions): Promise<SiteStatusPage>;
|
|
625
|
+
/** Publishes the selected components; build the customer link with siteStatusPagePublicUrl. */
|
|
626
|
+
publishStatusPage(domainUuid: string, draft: SiteStatusPageDraft, options?: SiteDomainRequestOptions): Promise<SiteStatusPagePublication>;
|
|
627
|
+
/** Removes public access and keeps the draft. */
|
|
628
|
+
unpublishStatusPage(domainUuid: string, options?: SiteDomainRequestOptions): Promise<void>;
|
|
629
|
+
/** Publishes a reviewed message and notifies confirmed subscribers; requestUuid makes a retry safe. */
|
|
630
|
+
postStatusPageUpdate(domainUuid: string, request: SiteStatusUpdateRequest, options?: SiteDomainRequestOptions): Promise<SiteStatusUpdateHistory>;
|
|
631
|
+
/** Lists live report shares. Tokens are returned only on creation. */
|
|
632
|
+
listReportShares(domainUuid: string, options?: SiteDomainRequestOptions): Promise<SiteReportShareList>;
|
|
633
|
+
/** Creates a public report share. Copy the token once; creation is never retried automatically. */
|
|
634
|
+
createReportShare(domainUuid: string, body?: SiteReportShareRequest, options?: SiteDomainRequestOptions): Promise<SiteReportShareCreated>;
|
|
635
|
+
/** Revokes a share; later public reads fail. */
|
|
636
|
+
revokeReportShare(domainUuid: string, shareUuid: string, options?: SiteDomainRequestOptions): Promise<void>;
|
|
637
|
+
/** Reads the domain's IndexNow setup, today's use and its recent submissions. */
|
|
638
|
+
getIndexNow(domainUuid: string, options?: SiteDomainRequestOptions): Promise<IndexNowState>;
|
|
639
|
+
/** Enables IndexNow and returns the key to host at keyLocation. An unverified domain is refused with SITE_INDEXNOW_DOMAIN_UNVERIFIED_CODE. */
|
|
640
|
+
enableIndexNow(domainUuid: string, options?: SiteDomainRequestOptions): Promise<IndexNowState>;
|
|
641
|
+
/** Disables IndexNow for the domain. */
|
|
642
|
+
disableIndexNow(domainUuid: string, options?: SiteDomainRequestOptions): Promise<void>;
|
|
643
|
+
/** Checks the hosted key file now. A failed check is not an error: it comes back in lastCheckFailure. */
|
|
644
|
+
verifyIndexNowKey(domainUuid: string, options?: SiteDomainRequestOptions): Promise<IndexNowState>;
|
|
645
|
+
/**
|
|
646
|
+
* Queues URLs for IndexNow (202). Refusals carry SITE_INDEXNOW_NOT_ENABLED_CODE,
|
|
647
|
+
* SITE_INDEXNOW_KEY_UNVERIFIED_CODE, SITE_INDEXNOW_URLS_INVALID_CODE or SITE_INDEXNOW_LIMIT_CODE.
|
|
648
|
+
*/
|
|
649
|
+
submitIndexNow(domainUuid: string, body: IndexNowSubmissionRequest, options?: SiteDomainRequestOptions): Promise<IndexNowSubmission>;
|
|
650
|
+
/** Reads the Site's own and competitor domains and their inventory state. */
|
|
651
|
+
getWebDomains(siteUuid?: string, options?: SiteDomainRequestOptions): Promise<SiteWebDomains>;
|
|
652
|
+
/** Pages through one inventoried domain's URLs; pass the previous page's `next` as `after`. */
|
|
653
|
+
listWebPages(domain: string, query?: SiteWebPagesQuery, options?: SiteDomainRequestOptions): Promise<SiteWebPages>;
|
|
654
|
+
/** Reads the domains linking to one of the Site's web domains, per source, with its authority and lost links. */
|
|
655
|
+
getReferringDomains(domain: string, siteUuid?: string, options?: SiteDomainRequestOptions): Promise<SiteReferringDomains>;
|
|
656
|
+
/** Reads monthly Wikipedia interest in the Site's brands and seed term. */
|
|
657
|
+
getTopicTrends(siteUuid?: string, options?: SiteDomainRequestOptions): Promise<SiteTopicTrends>;
|
|
658
|
+
/** Reads the topics competitors cover and the Site does not, optionally around a seed term. */
|
|
659
|
+
getContentGap(siteUuid?: string, seed?: string, options?: SiteDomainRequestOptions): Promise<SiteContentGap>;
|
|
660
|
+
listKeywordLists(siteUuid?: string, options?: SiteDomainRequestOptions): Promise<SiteKeywordLists>;
|
|
661
|
+
/** Creates or replaces the named list. A new list past the limit is refused with SITE_KEYWORD_LIST_LIMIT_CODE. */
|
|
662
|
+
saveKeywordList(body: SiteKeywordListRequest, siteUuid?: string, options?: SiteDomainRequestOptions): Promise<SiteKeywordList>;
|
|
663
|
+
/** Deletes the named list. An unknown name is refused with SITE_KEYWORD_LIST_NOT_FOUND_CODE. */
|
|
664
|
+
deleteKeywordList(name: string, siteUuid?: string, options?: SiteDomainRequestOptions): Promise<void>;
|
|
665
|
+
/** Groups the named list's keywords by shared stem with the Site's own search numbers. */
|
|
666
|
+
getKeywordClusters(name: string, siteUuid?: string, options?: SiteDomainRequestOptions): Promise<SiteKeywordClusters>;
|
|
667
|
+
/** Compares search for a finding's page over `days` (7..90) before and after it was fixed; omitted, 28. */
|
|
668
|
+
getFindingSearchImpact(domainUuid: string, findingUuid: string, days?: number, options?: SiteDomainRequestOptions): Promise<SiteFindingImpact>;
|
|
669
|
+
/** Reads search landing pages with the goal events (1..5 event types) credited to them over `days` (1..90). */
|
|
670
|
+
getSearchValue(domainUuid: string, goals: string[], days?: number, options?: SiteDomainRequestOptions): Promise<SiteSearchValue>;
|
|
671
|
+
/** Reads the domain's access-log traffic over UTC days `from`..`to` (YYYY-MM-DD); omitted, the server picks them. */
|
|
672
|
+
getTraffic(domainUuid: string, from?: string, to?: string, options?: SiteDomainRequestOptions): Promise<SiteTraffic>;
|
|
673
|
+
/** Reads AI crawler requests and AI-assistant referrals over UTC days `from`..`to`. */
|
|
674
|
+
getAIVisibility(domainUuid: string, from?: string, to?: string, options?: SiteDomainRequestOptions): Promise<SiteAIVisibility>;
|
|
675
|
+
/**
|
|
676
|
+
* Has the access-log task read one UTC hour again (202). System administrators only; the route is
|
|
677
|
+
* platform-wide. A bad hour is refused with ACCESS_LOG_HOUR_INVALID_CODE.
|
|
678
|
+
*/
|
|
679
|
+
replayAccessLogHour(hourStart: Date | string, options?: RequestOptions): Promise<AccessLogHourReplay>;
|
|
680
|
+
/** Reads tracked keywords and each day's rank over `days` (1..90); omitted, the server uses 28. */
|
|
681
|
+
getRankings(domainUuid: string, days?: number, options?: SiteDomainRequestOptions): Promise<SiteRankings>;
|
|
682
|
+
/**
|
|
683
|
+
* Starts tracking a keyword (201). Refusals carry SITE_TRACKED_KEYWORD_INVALID_CODE,
|
|
684
|
+
* SITE_TRACKED_KEYWORD_LIMIT_CODE or SITE_TRACKED_KEYWORD_DUPLICATE_CODE.
|
|
685
|
+
*/
|
|
686
|
+
trackKeyword(domainUuid: string, body: SiteTrackKeywordRequest, options?: SiteDomainRequestOptions): Promise<SiteTrackedKeyword>;
|
|
687
|
+
/** Pauses or resumes a keyword and, when notifyPosition is set, changes its alert position. */
|
|
688
|
+
updateTrackedKeyword(domainUuid: string, keywordUuid: string, body: SiteTrackedKeywordUpdate, options?: SiteDomainRequestOptions): Promise<SiteTrackedKeyword>;
|
|
689
|
+
/** Stops tracking a keyword and removes its observations. */
|
|
690
|
+
untrackKeyword(domainUuid: string, keywordUuid: string, options?: SiteDomainRequestOptions): Promise<void>;
|
|
691
|
+
/** Approves a domain as a HaakCo system administrator, which verifies it (verifiedBy "operator"). */
|
|
692
|
+
approve(domainUuid: string, options?: SiteDomainRequestOptions): Promise<SiteDomain>;
|
|
693
|
+
/** Withdraws a system administrator's approval; the domain stays verified only by its own proof. */
|
|
694
|
+
withdrawApproval(domainUuid: string, options?: SiteDomainRequestOptions): Promise<SiteDomain>;
|
|
695
|
+
/** Queues a public uptime check for a verified domain with active checks and returns the domain. */
|
|
696
|
+
requestUptimeCheck(domainUuid: string, options?: SiteDomainRequestOptions): Promise<SiteDomain>;
|
|
697
|
+
/** Records that a person has seen the open incident without resolving it. */
|
|
698
|
+
acknowledgeIncident(domainUuid: string, incidentUuid: string, options?: SiteDomainRequestOptions): Promise<SiteIncident>;
|
|
699
|
+
/** Lists the domain's current rule- and URL-scoped finding dismissals. */
|
|
700
|
+
listFindingDismissals(domainUuid: string, options?: SiteDomainRequestOptions): Promise<SiteFindingDismissals>;
|
|
701
|
+
/** Hides a currently observed finding at the requested scope. */
|
|
702
|
+
dismissFinding(domainUuid: string, body: SiteFindingDismissalRequest, options?: SiteDomainRequestOptions): Promise<SiteFindingDismissal>;
|
|
703
|
+
/** Removes a dismissal so a still-observed finding returns to active reporting. */
|
|
704
|
+
restoreFinding(domainUuid: string, dismissalUuid: string, options?: SiteDomainRequestOptions): Promise<void>;
|
|
705
|
+
/** Lists the domain's scheduled-job heartbeat monitors, without their tokens. */
|
|
706
|
+
listHeartbeats(domainUuid: string, options?: SiteDomainRequestOptions): Promise<SiteHeartbeatList>;
|
|
707
|
+
/** Creates a heartbeat monitor and returns its one-time write credential. */
|
|
708
|
+
createHeartbeat(domainUuid: string, body: SiteHeartbeatCreateRequest, options?: SiteDomainRequestOptions): Promise<SiteHeartbeatCredential>;
|
|
709
|
+
/** Revokes the heartbeat's write token and returns its replacement. */
|
|
710
|
+
rotateHeartbeat(domainUuid: string, monitorUuid: string, options?: SiteDomainRequestOptions): Promise<SiteHeartbeatCredential>;
|
|
711
|
+
/** Removes the heartbeat monitor and revokes its write token. */
|
|
712
|
+
deleteHeartbeat(domainUuid: string, monitorUuid: string, options?: SiteDomainRequestOptions): Promise<void>;
|
|
713
|
+
/** Lists the domain's current and historical maintenance windows. */
|
|
714
|
+
listMaintenance(domainUuid: string, options?: SiteDomainRequestOptions): Promise<SiteMaintenanceWindows>;
|
|
715
|
+
/** Schedules a one-off maintenance window on a verified domain. */
|
|
716
|
+
scheduleMaintenance(domainUuid: string, body: SiteMaintenanceWindowRequest, options?: SiteDomainRequestOptions): Promise<SiteMaintenanceWindow>;
|
|
717
|
+
/** Cancels a scheduled or active window and returns its historical record. */
|
|
718
|
+
cancelMaintenance(domainUuid: string, windowUuid: string, options?: SiteDomainRequestOptions): Promise<SiteMaintenanceWindow>;
|
|
719
|
+
/** Reads the domain's private uptime monitor and its latest result. */
|
|
720
|
+
getPrivateUptime(domainUuid: string, options?: SiteDomainRequestOptions): Promise<PrivateUptimeMonitor>;
|
|
721
|
+
/** Creates a private uptime monitor and returns its one-time write credential. */
|
|
722
|
+
createPrivateUptime(domainUuid: string, networkLabel: string, options?: SiteDomainRequestOptions): Promise<PrivateUptimeCredential>;
|
|
723
|
+
/** Queues a check for the private probe. */
|
|
724
|
+
requestPrivateUptime(domainUuid: string, options?: SiteDomainRequestOptions): Promise<PrivateUptimeWork>;
|
|
725
|
+
/** Revokes the private probe's write token and returns its replacement. */
|
|
726
|
+
rotatePrivateUptime(domainUuid: string, monitorUuid: string, options?: SiteDomainRequestOptions): Promise<PrivateUptimeCredential>;
|
|
727
|
+
/** Removes the private uptime monitor and revokes its write token. */
|
|
728
|
+
deletePrivateUptime(domainUuid: string, monitorUuid: string, options?: SiteDomainRequestOptions): Promise<void>;
|
|
729
|
+
/** Enables or disables the browser collector of a domain the Site credential owns. Repeating an enable returns the same key. */
|
|
730
|
+
setBrowserCollector(domainUuid: string, body: SiteBrowserCollectorRequest, options?: SiteDomainRequestOptions): Promise<SiteBrowserCollector>;
|
|
731
|
+
private send;
|
|
732
|
+
}
|
|
733
|
+
export {};
|