@haakco/custd-sdk 2.4.0 → 3.71.2
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/LICENSE +21 -0
- package/README.md +586 -40
- 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 +22 -0
- package/dist/admin-client-setup.js +11 -1
- 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 +20 -6
- package/dist/admin-offboarding.js +27 -6
- package/dist/admin-predictions.d.ts +127 -8
- package/dist/admin-predictions.js +22 -12
- package/dist/admin-privacy-erasures.d.ts +24 -12
- package/dist/admin-privacy-erasures.js +3 -2
- package/dist/admin-retention.d.ts +72 -24
- package/dist/admin-retention.js +38 -13
- 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 +58 -27
- package/dist/admin-subject-exports.js +32 -16
- 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 +22 -14
- package/dist/admin-tenant-storage.js +13 -14
- package/dist/admin-timeplans.d.ts +276 -2
- package/dist/admin-timeplans.js +54 -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 +82 -0
- package/dist/analytics-events.js +157 -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 +2 -2
- package/dist/browser-manifest.json +5 -5
- package/dist/browser-script-BWnwDjAC.js +711 -0
- package/dist/browser-sign-in.d.ts +153 -0
- package/dist/browser-sign-in.js +410 -0
- package/dist/browser-tracker.d.ts +95 -0
- package/dist/browser-tracker.js +362 -40
- package/dist/browser-web-vitals.d.ts +22 -0
- package/dist/browser-web-vitals.js +116 -0
- package/dist/browser.d.ts +9 -0
- package/dist/browser.js +9 -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 +1168 -154
- package/dist/index.js +682 -162
- 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/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/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/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 +2 -2
- package/dist/version.js +1 -1
- package/package.json +25 -14
- package/dist/browser-script-BvgjdZSO.js +0 -429
- package/dist/fixtures.d.ts +0 -10
- package/dist/fixtures.js +0 -57
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/** Public feed evidence that matched a saved Site term. */
|
|
2
|
+
export type SiteRegionalTrendMatch = {
|
|
3
|
+
topic: string;
|
|
4
|
+
sourceUrl: string;
|
|
5
|
+
publishedAt: string;
|
|
6
|
+
discussionUrl?: string;
|
|
7
|
+
matchedTerm: string;
|
|
8
|
+
};
|
|
9
|
+
/** Evidence for one configured Site market. */
|
|
10
|
+
export type SiteRegionalTrendMarket = {
|
|
11
|
+
supported: boolean;
|
|
12
|
+
country: string;
|
|
13
|
+
checkedAt?: string;
|
|
14
|
+
stale: boolean;
|
|
15
|
+
matches: SiteRegionalTrendMatch[];
|
|
16
|
+
};
|
|
17
|
+
/** Global technical discussion evidence for a Site that opted in. */
|
|
18
|
+
export type SiteTechnicalTrends = {
|
|
19
|
+
source: string;
|
|
20
|
+
checkedAt?: string;
|
|
21
|
+
stale: boolean;
|
|
22
|
+
matches: SiteRegionalTrendMatch[];
|
|
23
|
+
};
|
|
24
|
+
export type SiteRegionalTrends = {
|
|
25
|
+
siteUuid: string;
|
|
26
|
+
source: string;
|
|
27
|
+
hasSavedTerms: boolean;
|
|
28
|
+
markets: SiteRegionalTrendMarket[];
|
|
29
|
+
technical?: SiteTechnicalTrends;
|
|
30
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { SiteDomainRequestOptions } from "./admin-site-domains.js";
|
|
2
|
+
import type { SiteReport } from "./admin-site-insights.js";
|
|
3
|
+
/** A 409 on saveReport or replaceSavedReport: the domain already has a report with this name. */
|
|
4
|
+
export declare const SAVED_SITE_REPORT_NAME_TAKEN_CODE = "saved_site_report_name_taken";
|
|
5
|
+
/** A 409 on saveReport: the domain already keeps the most saved reports; delete or replace one. */
|
|
6
|
+
export declare const SAVED_SITE_REPORT_LIMIT_CODE = "saved_site_report_limit";
|
|
7
|
+
/** How many saved reports one domain keeps. */
|
|
8
|
+
export declare const SITE_SAVED_REPORTS_MAX = 20;
|
|
9
|
+
/** Which sections a report carries; executive is the summary a client reads first. */
|
|
10
|
+
export declare const SiteReportTemplate: {
|
|
11
|
+
readonly Executive: "executive";
|
|
12
|
+
readonly Full: "full";
|
|
13
|
+
};
|
|
14
|
+
export type SiteReportTemplate = (typeof SiteReportTemplate)[keyof typeof SiteReportTemplate];
|
|
15
|
+
/** getReport's options: the template (default full) and the search window in days (1..90, default 28). */
|
|
16
|
+
export type SiteReportRequestOptions = SiteDomainRequestOptions & {
|
|
17
|
+
template?: string;
|
|
18
|
+
days?: number;
|
|
19
|
+
};
|
|
20
|
+
/** The server defaults template to full and days to 28 (1..90). */
|
|
21
|
+
export type SavedSiteReportRequest = {
|
|
22
|
+
name: string;
|
|
23
|
+
/** A SiteReportTemplate value. */
|
|
24
|
+
template?: SiteReportTemplate;
|
|
25
|
+
days?: number;
|
|
26
|
+
};
|
|
27
|
+
export type SavedSiteReportSummary = {
|
|
28
|
+
reportUuid: string;
|
|
29
|
+
name: string;
|
|
30
|
+
/** A SiteReportTemplate value. */
|
|
31
|
+
template: SiteReportTemplate;
|
|
32
|
+
days: number;
|
|
33
|
+
generatedAt: string;
|
|
34
|
+
createdAt: string;
|
|
35
|
+
/** Unexpired shares that open this report. */
|
|
36
|
+
liveShares: number;
|
|
37
|
+
};
|
|
38
|
+
/** A saved report: its summary fields and the report as it was generated. */
|
|
39
|
+
export type SavedSiteReport = SavedSiteReportSummary & {
|
|
40
|
+
report: SiteReport;
|
|
41
|
+
};
|
|
42
|
+
export type SavedSiteReportList = {
|
|
43
|
+
reports: SavedSiteReportSummary[];
|
|
44
|
+
maxReports: number;
|
|
45
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// A domain's client report in a chosen template and window, and the saved
|
|
2
|
+
// copies a tenant keeps and shares. SiteDomainAdminClient sends them.
|
|
3
|
+
/** A 409 on saveReport or replaceSavedReport: the domain already has a report with this name. */
|
|
4
|
+
export const SAVED_SITE_REPORT_NAME_TAKEN_CODE = "saved_site_report_name_taken";
|
|
5
|
+
/** A 409 on saveReport: the domain already keeps the most saved reports; delete or replace one. */
|
|
6
|
+
export const SAVED_SITE_REPORT_LIMIT_CODE = "saved_site_report_limit";
|
|
7
|
+
/** How many saved reports one domain keeps. */
|
|
8
|
+
export const SITE_SAVED_REPORTS_MAX = 20;
|
|
9
|
+
/** Which sections a report carries; executive is the summary a client reads first. */
|
|
10
|
+
export const SiteReportTemplate = {
|
|
11
|
+
Executive: "executive",
|
|
12
|
+
Full: "full",
|
|
13
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/** A 403 on listSearchPoolQueries: the tenant has not joined the pool. */
|
|
2
|
+
export declare const SITE_SEARCH_POOL_NOT_JOINED_CODE = "site_search_pool_not_joined";
|
|
3
|
+
/** A 403 on any pool call: a credential bound to one Site cannot read or change the tenant's pool. */
|
|
4
|
+
export declare const SITE_SEARCH_POOL_SITE_BOUND_CODE = "site_search_pool_site_bound";
|
|
5
|
+
/** A 400 on setSearchPool: joined must be true or false. */
|
|
6
|
+
export declare const SITE_SEARCH_POOL_SETTING_INVALID_CODE = "site_search_pool_setting_invalid";
|
|
7
|
+
/**
|
|
8
|
+
* The shared search pool terms version current at this SDK release. Joining is consent the
|
|
9
|
+
* caller gives: read the live version from SearchPoolSetting.termsVersion, show those terms,
|
|
10
|
+
* and pass the version accepted to setSearchPool. A missing or stale version is a plain 400.
|
|
11
|
+
*/
|
|
12
|
+
export declare const SEARCH_POOL_TERMS_VERSION = "2026-11-18";
|
|
13
|
+
/** A 400 on listSearchPoolQueries: search or limit is out of range. */
|
|
14
|
+
export declare const SITE_SEARCH_POOL_QUERY_INVALID_CODE = "site_search_pool_query_invalid";
|
|
15
|
+
/** listSearchPoolQueries returns this many queries when limit is omitted. */
|
|
16
|
+
export declare const SEARCH_POOL_QUERIES_DEFAULT_LIMIT = 50;
|
|
17
|
+
export declare const SEARCH_POOL_QUERIES_MAX_LIMIT = 200;
|
|
18
|
+
/** The longest listSearchPoolQueries search text. */
|
|
19
|
+
export declare const SEARCH_POOL_SEARCH_MAX_LENGTH = 100;
|
|
20
|
+
/** Distinct tenants a query needs before it is pooled. */
|
|
21
|
+
export declare const SEARCH_POOL_MIN_CONTRIBUTORS = 5;
|
|
22
|
+
/** Pooled impressions a query needs over the window. */
|
|
23
|
+
export declare const SEARCH_POOL_MIN_IMPRESSIONS = 100;
|
|
24
|
+
/** The days the pool covers. */
|
|
25
|
+
export declare const SEARCH_POOL_WINDOW_DAYS = 28;
|
|
26
|
+
/** A pooled query's impressions over the window. */
|
|
27
|
+
export declare const SearchPoolDemandBand: {
|
|
28
|
+
readonly Hundreds: "100_999";
|
|
29
|
+
readonly Thousands: "1k_10k";
|
|
30
|
+
readonly TensOfThousands: "10k_100k";
|
|
31
|
+
readonly HundredThousandPlus: "100k_plus";
|
|
32
|
+
};
|
|
33
|
+
export type SearchPoolDemandBand = (typeof SearchPoolDemandBand)[keyof typeof SearchPoolDemandBand];
|
|
34
|
+
/** Whether the tenant takes part in the pool, as SiteRankings.pool reports it. */
|
|
35
|
+
export declare const SearchPoolAccess: {
|
|
36
|
+
readonly Joined: "joined";
|
|
37
|
+
readonly NotJoined: "not_joined";
|
|
38
|
+
};
|
|
39
|
+
export type SearchPoolAccess = (typeof SearchPoolAccess)[keyof typeof SearchPoolAccess];
|
|
40
|
+
export type SearchPoolSetting = {
|
|
41
|
+
/** true while the tenant contributes to and may read the pool. */
|
|
42
|
+
joined: boolean;
|
|
43
|
+
/** Absent while not joined. */
|
|
44
|
+
joinedAt?: string;
|
|
45
|
+
/** The terms version joining needs now. */
|
|
46
|
+
termsVersion: string;
|
|
47
|
+
/** The terms version the tenant accepted when it joined; absent while not joined. */
|
|
48
|
+
acceptedTermsVersion?: string;
|
|
49
|
+
minContributors: number;
|
|
50
|
+
minImpressions: number;
|
|
51
|
+
windowDays: number;
|
|
52
|
+
};
|
|
53
|
+
/** Percent of pooled impressions at each position range, rounded to 5. */
|
|
54
|
+
export type SearchPoolPositions = {
|
|
55
|
+
top3: number;
|
|
56
|
+
top10: number;
|
|
57
|
+
top20: number;
|
|
58
|
+
beyond20: number;
|
|
59
|
+
};
|
|
60
|
+
export type SearchPoolBand = {
|
|
61
|
+
/** A SearchPoolDemandBand value. */
|
|
62
|
+
demandBand: SearchPoolDemandBand;
|
|
63
|
+
positions: SearchPoolPositions;
|
|
64
|
+
};
|
|
65
|
+
export type SearchPoolQuery = SearchPoolBand & {
|
|
66
|
+
query: string;
|
|
67
|
+
};
|
|
68
|
+
/** from, to and computedAt are absent before the first rollup. */
|
|
69
|
+
export type SearchPoolQueryPage = {
|
|
70
|
+
/** YYYY-MM-DD. */
|
|
71
|
+
from?: string;
|
|
72
|
+
/** YYYY-MM-DD. */
|
|
73
|
+
to?: string;
|
|
74
|
+
computedAt?: string;
|
|
75
|
+
/** Busiest demand band first, then by query. */
|
|
76
|
+
queries: SearchPoolQuery[];
|
|
77
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// The tenant's opt-in shared search pool: Search Console queries pooled across
|
|
2
|
+
// contributing tenants into demand bands and position shares, never a
|
|
3
|
+
// tenant's own numbers. SiteDomainAdminClient sends the calls; they are
|
|
4
|
+
// tenant-wide, and a site-bound credential is refused.
|
|
5
|
+
/** A 403 on listSearchPoolQueries: the tenant has not joined the pool. */
|
|
6
|
+
export const SITE_SEARCH_POOL_NOT_JOINED_CODE = "site_search_pool_not_joined";
|
|
7
|
+
/** A 403 on any pool call: a credential bound to one Site cannot read or change the tenant's pool. */
|
|
8
|
+
export const SITE_SEARCH_POOL_SITE_BOUND_CODE = "site_search_pool_site_bound";
|
|
9
|
+
/** A 400 on setSearchPool: joined must be true or false. */
|
|
10
|
+
export const SITE_SEARCH_POOL_SETTING_INVALID_CODE = "site_search_pool_setting_invalid";
|
|
11
|
+
/**
|
|
12
|
+
* The shared search pool terms version current at this SDK release. Joining is consent the
|
|
13
|
+
* caller gives: read the live version from SearchPoolSetting.termsVersion, show those terms,
|
|
14
|
+
* and pass the version accepted to setSearchPool. A missing or stale version is a plain 400.
|
|
15
|
+
*/
|
|
16
|
+
export const SEARCH_POOL_TERMS_VERSION = "2026-11-18";
|
|
17
|
+
/** A 400 on listSearchPoolQueries: search or limit is out of range. */
|
|
18
|
+
export const SITE_SEARCH_POOL_QUERY_INVALID_CODE = "site_search_pool_query_invalid";
|
|
19
|
+
/** listSearchPoolQueries returns this many queries when limit is omitted. */
|
|
20
|
+
export const SEARCH_POOL_QUERIES_DEFAULT_LIMIT = 50;
|
|
21
|
+
export const SEARCH_POOL_QUERIES_MAX_LIMIT = 200;
|
|
22
|
+
/** The longest listSearchPoolQueries search text. */
|
|
23
|
+
export const SEARCH_POOL_SEARCH_MAX_LENGTH = 100;
|
|
24
|
+
/** Distinct tenants a query needs before it is pooled. */
|
|
25
|
+
export const SEARCH_POOL_MIN_CONTRIBUTORS = 5;
|
|
26
|
+
/** Pooled impressions a query needs over the window. */
|
|
27
|
+
export const SEARCH_POOL_MIN_IMPRESSIONS = 100;
|
|
28
|
+
/** The days the pool covers. */
|
|
29
|
+
export const SEARCH_POOL_WINDOW_DAYS = 28;
|
|
30
|
+
/** A pooled query's impressions over the window. */
|
|
31
|
+
export const SearchPoolDemandBand = {
|
|
32
|
+
Hundreds: "100_999",
|
|
33
|
+
Thousands: "1k_10k",
|
|
34
|
+
TensOfThousands: "10k_100k",
|
|
35
|
+
HundredThousandPlus: "100k_plus",
|
|
36
|
+
};
|
|
37
|
+
/** Whether the tenant takes part in the pool, as SiteRankings.pool reports it. */
|
|
38
|
+
export const SearchPoolAccess = {
|
|
39
|
+
Joined: "joined",
|
|
40
|
+
NotJoined: "not_joined",
|
|
41
|
+
};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import type { SiteSearchProvider, SiteSearchTotals } from "./admin-site-domains.js";
|
|
2
|
+
/** getFindingSearchImpact compares this many days before and after the fix when days is omitted. */
|
|
3
|
+
export declare const SITE_FINDING_IMPACT_DEFAULT_DAYS = 28;
|
|
4
|
+
export declare const SITE_FINDING_IMPACT_MIN_DAYS = 7;
|
|
5
|
+
export declare const SITE_FINDING_IMPACT_MAX_DAYS = 90;
|
|
6
|
+
/** getSearchValue reads this many days when days is omitted. */
|
|
7
|
+
export declare const SITE_SEARCH_VALUE_DEFAULT_DAYS = 28;
|
|
8
|
+
export declare const SITE_SEARCH_VALUE_MAX_DAYS = 90;
|
|
9
|
+
/** The most goal event types one getSearchValue call names. */
|
|
10
|
+
export declare const SITE_SEARCH_VALUE_MAX_GOALS = 5;
|
|
11
|
+
/** The most pages a search value read returns. */
|
|
12
|
+
export declare const SITE_SEARCH_VALUE_MAX_PAGES = 50;
|
|
13
|
+
/**
|
|
14
|
+
* Whether a finding's impact could be measured. A source and each of its periods
|
|
15
|
+
* are measured or insufficient; the impact itself is open while the finding is.
|
|
16
|
+
*/
|
|
17
|
+
export declare const SiteFindingImpactStatus: {
|
|
18
|
+
readonly Open: "open";
|
|
19
|
+
readonly Measured: "measured";
|
|
20
|
+
readonly Insufficient: "insufficient";
|
|
21
|
+
};
|
|
22
|
+
export type SiteFindingImpactStatus = (typeof SiteFindingImpactStatus)[keyof typeof SiteFindingImpactStatus];
|
|
23
|
+
/** How much of the goal data could be read. */
|
|
24
|
+
export declare const SiteSearchGoalStatus: {
|
|
25
|
+
readonly Measured: "measured";
|
|
26
|
+
readonly Partial: "partial";
|
|
27
|
+
readonly Unavailable: "unavailable";
|
|
28
|
+
};
|
|
29
|
+
export type SiteSearchGoalStatus = (typeof SiteSearchGoalStatus)[keyof typeof SiteSearchGoalStatus];
|
|
30
|
+
/** UTC days, YYYY-MM-DD. */
|
|
31
|
+
export type SiteFindingImpactWindow = {
|
|
32
|
+
from: string;
|
|
33
|
+
to: string;
|
|
34
|
+
};
|
|
35
|
+
/** One side of the comparison. clicks, impressions and ctr are absent while insufficient. */
|
|
36
|
+
export type SiteFindingImpactPeriod = {
|
|
37
|
+
/** A SiteFindingImpactStatus value: measured or insufficient. */
|
|
38
|
+
status: string;
|
|
39
|
+
coveredDays: number;
|
|
40
|
+
expectedDays: number;
|
|
41
|
+
reason?: string;
|
|
42
|
+
clicks?: number;
|
|
43
|
+
impressions?: number;
|
|
44
|
+
ctr?: number;
|
|
45
|
+
};
|
|
46
|
+
export type SiteFindingImpactSource = {
|
|
47
|
+
provider: SiteSearchProvider;
|
|
48
|
+
source: string;
|
|
49
|
+
/** daily or weekly. */
|
|
50
|
+
granularity: "daily" | "weekly";
|
|
51
|
+
/** A SiteFindingImpactStatus value: measured or insufficient. */
|
|
52
|
+
status: "measured" | "insufficient";
|
|
53
|
+
before: SiteFindingImpactPeriod;
|
|
54
|
+
after: SiteFindingImpactPeriod;
|
|
55
|
+
};
|
|
56
|
+
/** The finding's page in search before and after it was fixed. An observation, not a measured effect of the fix. */
|
|
57
|
+
export type SiteFindingImpact = {
|
|
58
|
+
findingUuid: string;
|
|
59
|
+
rule: string;
|
|
60
|
+
url: string;
|
|
61
|
+
/** The finding's URL without its fragment, as search providers report it. */
|
|
62
|
+
pageUrl: string;
|
|
63
|
+
/** A SiteFindingImpactStatus value. */
|
|
64
|
+
status: SiteFindingImpactStatus;
|
|
65
|
+
/** Absent while the finding is open, as are before and after. */
|
|
66
|
+
fixedAt?: string;
|
|
67
|
+
windowDays: number;
|
|
68
|
+
before?: SiteFindingImpactWindow;
|
|
69
|
+
after?: SiteFindingImpactWindow;
|
|
70
|
+
sources: SiteFindingImpactSource[];
|
|
71
|
+
note: string;
|
|
72
|
+
};
|
|
73
|
+
/** landings and goalConversions are absent when goals could not be matched to the page. */
|
|
74
|
+
export type SiteSearchValuePage = {
|
|
75
|
+
provider: SiteSearchProvider;
|
|
76
|
+
source: string;
|
|
77
|
+
pageUrl: string;
|
|
78
|
+
path: string;
|
|
79
|
+
search: SiteSearchTotals;
|
|
80
|
+
landings?: number;
|
|
81
|
+
goalConversions?: number;
|
|
82
|
+
};
|
|
83
|
+
export type SiteSearchValue = {
|
|
84
|
+
domainUuid: string;
|
|
85
|
+
siteUuid: string;
|
|
86
|
+
days: number;
|
|
87
|
+
from: string;
|
|
88
|
+
to: string;
|
|
89
|
+
/** The goal event types the read named. */
|
|
90
|
+
goals: string[];
|
|
91
|
+
/** A SiteSearchGoalStatus value. */
|
|
92
|
+
goalStatus: SiteSearchGoalStatus;
|
|
93
|
+
goalReason?: string;
|
|
94
|
+
/** How goals are credited to pages; show it beside the numbers. */
|
|
95
|
+
attribution: string;
|
|
96
|
+
pages: SiteSearchValuePage[];
|
|
97
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// What search did around a fixed finding, and which search landing pages lead
|
|
2
|
+
// to a Site's goals. SiteDomainAdminClient sends them. A number Custd could
|
|
3
|
+
// not measure is absent, never 0.
|
|
4
|
+
/** getFindingSearchImpact compares this many days before and after the fix when days is omitted. */
|
|
5
|
+
export const SITE_FINDING_IMPACT_DEFAULT_DAYS = 28;
|
|
6
|
+
export const SITE_FINDING_IMPACT_MIN_DAYS = 7;
|
|
7
|
+
export const SITE_FINDING_IMPACT_MAX_DAYS = 90;
|
|
8
|
+
/** getSearchValue reads this many days when days is omitted. */
|
|
9
|
+
export const SITE_SEARCH_VALUE_DEFAULT_DAYS = 28;
|
|
10
|
+
export const SITE_SEARCH_VALUE_MAX_DAYS = 90;
|
|
11
|
+
/** The most goal event types one getSearchValue call names. */
|
|
12
|
+
export const SITE_SEARCH_VALUE_MAX_GOALS = 5;
|
|
13
|
+
/** The most pages a search value read returns. */
|
|
14
|
+
export const SITE_SEARCH_VALUE_MAX_PAGES = 50;
|
|
15
|
+
/**
|
|
16
|
+
* Whether a finding's impact could be measured. A source and each of its periods
|
|
17
|
+
* are measured or insufficient; the impact itself is open while the finding is.
|
|
18
|
+
*/
|
|
19
|
+
export const SiteFindingImpactStatus = {
|
|
20
|
+
Open: "open",
|
|
21
|
+
Measured: "measured",
|
|
22
|
+
Insufficient: "insufficient",
|
|
23
|
+
};
|
|
24
|
+
/** How much of the goal data could be read. */
|
|
25
|
+
export const SiteSearchGoalStatus = {
|
|
26
|
+
Measured: "measured",
|
|
27
|
+
Partial: "partial",
|
|
28
|
+
Unavailable: "unavailable",
|
|
29
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/** A verified domain and the label customers see for it. */
|
|
2
|
+
export type SiteStatusPageSelection = {
|
|
3
|
+
domainUuid: string;
|
|
4
|
+
label: string;
|
|
5
|
+
};
|
|
6
|
+
/** The title and components to preview or publish. */
|
|
7
|
+
export type SiteStatusPageDraft = {
|
|
8
|
+
title: string;
|
|
9
|
+
components: SiteStatusPageSelection[];
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* The state a status page shows for one component: `unknown` (no recent check), `failing`
|
|
13
|
+
* (one failed check, not yet an outage), `down` (an open incident), `maintenance` (inside a
|
|
14
|
+
* scheduled maintenance window).
|
|
15
|
+
*/
|
|
16
|
+
export type SiteStatusComponentStatus = "unknown" | "up" | "failing" | "down" | "paused" | "maintenance";
|
|
17
|
+
/** The public projection of a selected component; lastCheckedAt is absent before its first check. */
|
|
18
|
+
export type SiteStatusComponent = {
|
|
19
|
+
label: string;
|
|
20
|
+
status: SiteStatusComponentStatus;
|
|
21
|
+
lastCheckedAt?: string;
|
|
22
|
+
};
|
|
23
|
+
/** An update approved for public display. */
|
|
24
|
+
export type SiteStatusUpdate = {
|
|
25
|
+
message: string;
|
|
26
|
+
publishedAt: string;
|
|
27
|
+
};
|
|
28
|
+
/** The preview of what customers can see. */
|
|
29
|
+
export type SiteStatusPage = {
|
|
30
|
+
title: string;
|
|
31
|
+
components: SiteStatusComponent[];
|
|
32
|
+
updates: SiteStatusUpdate[];
|
|
33
|
+
};
|
|
34
|
+
/** Identifies a published status page; build its link with siteStatusPagePublicUrl. */
|
|
35
|
+
export type SiteStatusPagePublication = {
|
|
36
|
+
publicKey: string;
|
|
37
|
+
publishedAt: string;
|
|
38
|
+
};
|
|
39
|
+
/** The private editor state for the Site; each part is absent until saved or published. */
|
|
40
|
+
export type SiteStatusPageSettings = {
|
|
41
|
+
draft?: SiteStatusPageDraft;
|
|
42
|
+
publication?: SiteStatusPagePublication;
|
|
43
|
+
};
|
|
44
|
+
/** A reviewed customer message and a stable ID, so a retry does not post it twice. */
|
|
45
|
+
export type SiteStatusUpdateRequest = {
|
|
46
|
+
requestUuid: string;
|
|
47
|
+
message: string;
|
|
48
|
+
};
|
|
49
|
+
/** The latest published updates. */
|
|
50
|
+
export type SiteStatusUpdateHistory = {
|
|
51
|
+
updates: SiteStatusUpdate[];
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* The link customers open, on the Custd panel origin (https://custd.com in production). The key
|
|
55
|
+
* stays in the fragment, so it is never sent to a server or written to an access log.
|
|
56
|
+
*/
|
|
57
|
+
export declare function siteStatusPagePublicUrl(panelOrigin: string, publication: SiteStatusPagePublication): string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// A Site's public status page: chosen verified domains under customer-facing labels, and the
|
|
2
|
+
// reviewed updates published on it. SiteDomainAdminClient sends the calls, naming the Site by
|
|
3
|
+
// one of its domains.
|
|
4
|
+
/**
|
|
5
|
+
* The link customers open, on the Custd panel origin (https://custd.com in production). The key
|
|
6
|
+
* stays in the fragment, so it is never sent to a server or written to an access log.
|
|
7
|
+
*/
|
|
8
|
+
export function siteStatusPagePublicUrl(panelOrigin, publication) {
|
|
9
|
+
return `${panelOrigin.replace(/\/+$/, "")}/status-page#${publication.publicKey}`;
|
|
10
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
/** A 400 on replayAccessLogHour: hourStart must start a finished UTC hour within the last 28 days. */
|
|
2
|
+
export declare const ACCESS_LOG_HOUR_INVALID_CODE = "access_log_hour_invalid";
|
|
3
|
+
/** The key that collects the rows beyond each day's top rows. */
|
|
4
|
+
export declare const TRAFFIC_OTHER_KEY = "(other)";
|
|
5
|
+
/** How much of one day was read. */
|
|
6
|
+
export declare const SiteTrafficDayCoverage: {
|
|
7
|
+
readonly Complete: "complete";
|
|
8
|
+
readonly Partial: "partial";
|
|
9
|
+
readonly Missing: "missing";
|
|
10
|
+
};
|
|
11
|
+
export type SiteTrafficDayCoverage = (typeof SiteTrafficDayCoverage)[keyof typeof SiteTrafficDayCoverage];
|
|
12
|
+
/** Whether DNS confirmed a crawler or its User-Agent only claims to be it. */
|
|
13
|
+
export declare const SiteCrawlerIdentity: {
|
|
14
|
+
readonly Verified: "verified";
|
|
15
|
+
readonly ClaimsToBe: "claims_to_be";
|
|
16
|
+
};
|
|
17
|
+
export type SiteCrawlerIdentity = (typeof SiteCrawlerIdentity)[keyof typeof SiteCrawlerIdentity];
|
|
18
|
+
/** The kind of site that referred a request. */
|
|
19
|
+
export declare const SiteReferrerClass: {
|
|
20
|
+
readonly Search: "search";
|
|
21
|
+
readonly AI: "ai";
|
|
22
|
+
readonly Social: "social";
|
|
23
|
+
readonly Other: "other";
|
|
24
|
+
};
|
|
25
|
+
export type SiteReferrerClass = (typeof SiteReferrerClass)[keyof typeof SiteReferrerClass];
|
|
26
|
+
/** How a replayed hour stood before the replay; missing when it was never read. */
|
|
27
|
+
export declare const AccessLogHourStatus: {
|
|
28
|
+
readonly Done: "done";
|
|
29
|
+
readonly Partial: "partial";
|
|
30
|
+
readonly Failed: "failed";
|
|
31
|
+
readonly Missing: "missing";
|
|
32
|
+
};
|
|
33
|
+
export type AccessLogHourStatus = (typeof AccessLogHourStatus)[keyof typeof AccessLogHourStatus];
|
|
34
|
+
/** Hours of the range by how they were read; partial hours are a lower bound. */
|
|
35
|
+
export type SiteTrafficCoverage = {
|
|
36
|
+
hoursExpected: number;
|
|
37
|
+
hoursRead: number;
|
|
38
|
+
hoursPartial: number;
|
|
39
|
+
hoursFailed: number;
|
|
40
|
+
hoursMissing: number;
|
|
41
|
+
/** Every expected hour was read whole. */
|
|
42
|
+
complete: boolean;
|
|
43
|
+
};
|
|
44
|
+
/** p95Ms is absent without a request. */
|
|
45
|
+
export type SiteTrafficTotals = {
|
|
46
|
+
requests: number;
|
|
47
|
+
bytes: number;
|
|
48
|
+
notFound: number;
|
|
49
|
+
p95Ms?: number;
|
|
50
|
+
};
|
|
51
|
+
/** One UTC day; requests, bytes and notFound are absent when nothing of the day was read. */
|
|
52
|
+
export type SiteTrafficDay = {
|
|
53
|
+
date: string;
|
|
54
|
+
/** A SiteTrafficDayCoverage value. */
|
|
55
|
+
coverage: SiteTrafficDayCoverage;
|
|
56
|
+
hoursRead: number;
|
|
57
|
+
hoursPartial: number;
|
|
58
|
+
hoursFailed: number;
|
|
59
|
+
hoursMissing: number;
|
|
60
|
+
requests?: number;
|
|
61
|
+
bytes?: number;
|
|
62
|
+
notFound?: number;
|
|
63
|
+
};
|
|
64
|
+
/** Requests for one key; TRAFFIC_OTHER_KEY collects the rest. */
|
|
65
|
+
export type SiteTrafficCount = {
|
|
66
|
+
key: string;
|
|
67
|
+
requests: number;
|
|
68
|
+
};
|
|
69
|
+
export type SiteTrafficSlowPath = {
|
|
70
|
+
path: string;
|
|
71
|
+
requests: number;
|
|
72
|
+
p95Ms: number;
|
|
73
|
+
maxMs: number;
|
|
74
|
+
};
|
|
75
|
+
export type SiteTrafficReferrerClass = {
|
|
76
|
+
/** A SiteReferrerClass value. */
|
|
77
|
+
class: SiteReferrerClass;
|
|
78
|
+
requests: number;
|
|
79
|
+
};
|
|
80
|
+
export type SiteTrafficReferrer = {
|
|
81
|
+
/** A SiteReferrerClass value. */
|
|
82
|
+
class: SiteReferrerClass;
|
|
83
|
+
domain: string;
|
|
84
|
+
requests: number;
|
|
85
|
+
};
|
|
86
|
+
export type SiteTrafficCrawler = {
|
|
87
|
+
/** A crawler slug such as googlebot or gptbot. */
|
|
88
|
+
crawler: string;
|
|
89
|
+
/** A SiteCrawlerIdentity value. */
|
|
90
|
+
identity: SiteCrawlerIdentity;
|
|
91
|
+
/** The crawler fetches pages for an AI assistant or its training. */
|
|
92
|
+
ai: boolean;
|
|
93
|
+
requests: number;
|
|
94
|
+
notFound: number;
|
|
95
|
+
};
|
|
96
|
+
/** totals is absent when no hour of the range was read. */
|
|
97
|
+
export type SiteTraffic = {
|
|
98
|
+
domainUuid: string;
|
|
99
|
+
from: string;
|
|
100
|
+
to: string;
|
|
101
|
+
generatedAt: string;
|
|
102
|
+
coverage: SiteTrafficCoverage;
|
|
103
|
+
totals?: SiteTrafficTotals;
|
|
104
|
+
/** Every day of the range, oldest first. */
|
|
105
|
+
days: SiteTrafficDay[];
|
|
106
|
+
statusClasses: SiteTrafficCount[];
|
|
107
|
+
notFoundPaths: SiteTrafficCount[];
|
|
108
|
+
slowPaths: SiteTrafficSlowPath[];
|
|
109
|
+
countries: SiteTrafficCount[];
|
|
110
|
+
referrerClasses: SiteTrafficReferrerClass[];
|
|
111
|
+
referrers: SiteTrafficReferrer[];
|
|
112
|
+
crawlers: SiteTrafficCrawler[];
|
|
113
|
+
};
|
|
114
|
+
export type SiteAIPage = {
|
|
115
|
+
/** TRAFFIC_OTHER_KEY collects the pages beyond each day's top rows. */
|
|
116
|
+
path: string;
|
|
117
|
+
verifiedCrawlerHits: number;
|
|
118
|
+
claimedCrawlerHits: number;
|
|
119
|
+
referralVisits: number;
|
|
120
|
+
};
|
|
121
|
+
export type SiteAIVisibility = {
|
|
122
|
+
domainUuid: string;
|
|
123
|
+
siteUuid: string;
|
|
124
|
+
from: string;
|
|
125
|
+
to: string;
|
|
126
|
+
generatedAt: string;
|
|
127
|
+
coverage: SiteTrafficCoverage;
|
|
128
|
+
crawlers: SiteTrafficCrawler[];
|
|
129
|
+
/** Referral visits by AI-assistant domain. */
|
|
130
|
+
assistants: SiteTrafficCount[];
|
|
131
|
+
pages: SiteAIPage[];
|
|
132
|
+
/** The latest provider answer sample, independent of the date range. */
|
|
133
|
+
answerSample?: SiteAIAnswerSample;
|
|
134
|
+
};
|
|
135
|
+
export type SiteAIAnswerSample = {
|
|
136
|
+
product: "hosting" | "custd" | "cb" | "awthy";
|
|
137
|
+
answer?: string;
|
|
138
|
+
observedAt: string;
|
|
139
|
+
};
|
|
140
|
+
export type AccessLogHourReplay = {
|
|
141
|
+
hourStart: string;
|
|
142
|
+
/** An AccessLogHourStatus value. */
|
|
143
|
+
previousStatus: AccessLogHourStatus;
|
|
144
|
+
requestedAt: string;
|
|
145
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// A domain's traffic and AI visibility read from its web server access logs,
|
|
2
|
+
// and the platform operator's replay of one access-log hour.
|
|
3
|
+
// SiteDomainAdminClient sends them. A count Custd did not read is absent, never 0.
|
|
4
|
+
/** A 400 on replayAccessLogHour: hourStart must start a finished UTC hour within the last 28 days. */
|
|
5
|
+
export const ACCESS_LOG_HOUR_INVALID_CODE = "access_log_hour_invalid";
|
|
6
|
+
/** The key that collects the rows beyond each day's top rows. */
|
|
7
|
+
export const TRAFFIC_OTHER_KEY = "(other)";
|
|
8
|
+
/** How much of one day was read. */
|
|
9
|
+
export const SiteTrafficDayCoverage = {
|
|
10
|
+
Complete: "complete",
|
|
11
|
+
Partial: "partial",
|
|
12
|
+
Missing: "missing",
|
|
13
|
+
};
|
|
14
|
+
/** Whether DNS confirmed a crawler or its User-Agent only claims to be it. */
|
|
15
|
+
export const SiteCrawlerIdentity = {
|
|
16
|
+
Verified: "verified",
|
|
17
|
+
ClaimsToBe: "claims_to_be",
|
|
18
|
+
};
|
|
19
|
+
/** The kind of site that referred a request. */
|
|
20
|
+
export const SiteReferrerClass = {
|
|
21
|
+
Search: "search",
|
|
22
|
+
AI: "ai",
|
|
23
|
+
Social: "social",
|
|
24
|
+
Other: "other",
|
|
25
|
+
};
|
|
26
|
+
/** How a replayed hour stood before the replay; missing when it was never read. */
|
|
27
|
+
export const AccessLogHourStatus = {
|
|
28
|
+
Done: "done",
|
|
29
|
+
Partial: "partial",
|
|
30
|
+
Failed: "failed",
|
|
31
|
+
Missing: "missing",
|
|
32
|
+
};
|