@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,258 @@
|
|
|
1
|
+
/** A 404 on deleteKeywordList or getKeywordClusters: the Site has no list of that name. */
|
|
2
|
+
export declare const SITE_KEYWORD_LIST_NOT_FOUND_CODE = "site_keyword_list_not_found";
|
|
3
|
+
/** A 409 on saveKeywordList: the Site keeps the most lists; delete one first. */
|
|
4
|
+
export declare const SITE_KEYWORD_LIST_LIMIT_CODE = "site_keyword_list_limit";
|
|
5
|
+
/** Where keyword demand and related keywords come from. */
|
|
6
|
+
export declare const SITE_KEYWORD_DEMAND_SOURCE_BING = "bing_keyword_research";
|
|
7
|
+
/** Why a keyword list has demand numbers or not. */
|
|
8
|
+
export declare const SiteKeywordDemandState: {
|
|
9
|
+
readonly Available: "available";
|
|
10
|
+
readonly NoMarket: "no_market";
|
|
11
|
+
readonly NoBing: "no_bing";
|
|
12
|
+
};
|
|
13
|
+
export type SiteKeywordDemandState = (typeof SiteKeywordDemandState)[keyof typeof SiteKeywordDemandState];
|
|
14
|
+
/** Whether an inventoried domain is the Site's own or a named competitor. */
|
|
15
|
+
export declare const SiteWebDomainRole: {
|
|
16
|
+
readonly Own: "own";
|
|
17
|
+
readonly Competitor: "competitor";
|
|
18
|
+
};
|
|
19
|
+
export type SiteWebDomainRole = (typeof SiteWebDomainRole)[keyof typeof SiteWebDomainRole];
|
|
20
|
+
/** Where a page was found; newer sources may appear. */
|
|
21
|
+
export declare const SiteWebPageSource: {
|
|
22
|
+
readonly Sitemap: "sitemap";
|
|
23
|
+
readonly Wayback: "wayback";
|
|
24
|
+
};
|
|
25
|
+
/** The state of one inventory source for a domain. */
|
|
26
|
+
export declare const SiteWebInventoryStatus: {
|
|
27
|
+
readonly Pending: "pending";
|
|
28
|
+
readonly Done: "done";
|
|
29
|
+
readonly Partial: "partial";
|
|
30
|
+
readonly Unavailable: "unavailable";
|
|
31
|
+
readonly Failed: "failed";
|
|
32
|
+
};
|
|
33
|
+
export type SiteWebInventoryStatus = (typeof SiteWebInventoryStatus)[keyof typeof SiteWebInventoryStatus];
|
|
34
|
+
/** A domain's band in the Tranco top-sites list. */
|
|
35
|
+
export declare const SiteTrancoBand: {
|
|
36
|
+
readonly Top1K: "top-1k";
|
|
37
|
+
readonly Top10K: "top-10k";
|
|
38
|
+
readonly Top100K: "top-100k";
|
|
39
|
+
readonly Top1M: "top-1m";
|
|
40
|
+
readonly Unranked: "unranked";
|
|
41
|
+
readonly Unknown: "unknown";
|
|
42
|
+
};
|
|
43
|
+
export type SiteTrancoBand = (typeof SiteTrancoBand)[keyof typeof SiteTrancoBand];
|
|
44
|
+
/** Whether a term's Wikipedia article was found. */
|
|
45
|
+
export declare const SiteTopicTrendStatus: {
|
|
46
|
+
readonly Pending: "pending";
|
|
47
|
+
readonly Found: "found";
|
|
48
|
+
readonly NoArticle: "no_article";
|
|
49
|
+
readonly Failed: "failed";
|
|
50
|
+
};
|
|
51
|
+
export type SiteTopicTrendStatus = (typeof SiteTopicTrendStatus)[keyof typeof SiteTopicTrendStatus];
|
|
52
|
+
/** Where a trend term came from: a brand name or the content-gap seed. */
|
|
53
|
+
export declare const SiteTopicTrendSource: {
|
|
54
|
+
readonly Brand: "brand";
|
|
55
|
+
readonly Seed: "seed";
|
|
56
|
+
};
|
|
57
|
+
export type SiteTopicTrendSource = (typeof SiteTopicTrendSource)[keyof typeof SiteTopicTrendSource];
|
|
58
|
+
/** Whether the Site's own pages and queries could be read for a content gap. */
|
|
59
|
+
export declare const SiteContentGapCoverage: {
|
|
60
|
+
readonly Available: "available";
|
|
61
|
+
readonly Unavailable: "unavailable";
|
|
62
|
+
};
|
|
63
|
+
export type SiteContentGapCoverage = (typeof SiteContentGapCoverage)[keyof typeof SiteContentGapCoverage];
|
|
64
|
+
/** One inventoried domain. trancoRank, trancoListDay and inventoryAt are absent until known. */
|
|
65
|
+
export type SiteWebDomain = {
|
|
66
|
+
domain: string;
|
|
67
|
+
/** A SiteWebDomainRole value. */
|
|
68
|
+
role: SiteWebDomainRole;
|
|
69
|
+
/** A SiteTrancoBand value. */
|
|
70
|
+
trancoBand: SiteTrancoBand;
|
|
71
|
+
trancoRank?: number;
|
|
72
|
+
trancoListDay?: string;
|
|
73
|
+
/** A SiteWebInventoryStatus value. */
|
|
74
|
+
sitemapStatus: SiteWebInventoryStatus;
|
|
75
|
+
/** A SiteWebInventoryStatus value. */
|
|
76
|
+
waybackStatus: SiteWebInventoryStatus;
|
|
77
|
+
pageCount: number;
|
|
78
|
+
lastFailure?: string;
|
|
79
|
+
inventoryAt?: string;
|
|
80
|
+
nextInventoryAt: string;
|
|
81
|
+
};
|
|
82
|
+
export type SiteWebDomains = {
|
|
83
|
+
siteUuid: string;
|
|
84
|
+
domains: SiteWebDomain[];
|
|
85
|
+
};
|
|
86
|
+
export type SiteWebPage = {
|
|
87
|
+
url: string;
|
|
88
|
+
/** SiteWebPageSource values. */
|
|
89
|
+
sources: string[];
|
|
90
|
+
firstSeen: string;
|
|
91
|
+
lastSeen: string;
|
|
92
|
+
};
|
|
93
|
+
/** listWebPages' options; `after` is the previous page's `next`. */
|
|
94
|
+
export type SiteWebPagesQuery = {
|
|
95
|
+
siteUuid?: string;
|
|
96
|
+
after?: string;
|
|
97
|
+
limit?: number;
|
|
98
|
+
};
|
|
99
|
+
/** One page of a domain's URLs; `next` is absent on the last page. */
|
|
100
|
+
export type SiteWebPages = {
|
|
101
|
+
siteUuid: string;
|
|
102
|
+
domain: string;
|
|
103
|
+
pages: SiteWebPage[];
|
|
104
|
+
next?: string;
|
|
105
|
+
};
|
|
106
|
+
export type SiteTopicTrendMonth = {
|
|
107
|
+
/** YYYY-MM. */
|
|
108
|
+
month: string;
|
|
109
|
+
views: number;
|
|
110
|
+
};
|
|
111
|
+
/** One term's Wikipedia page views; checkedAt is absent until first checked. */
|
|
112
|
+
export type SiteTopicTrend = {
|
|
113
|
+
term: string;
|
|
114
|
+
/** A SiteTopicTrendSource value. */
|
|
115
|
+
source: SiteTopicTrendSource;
|
|
116
|
+
project: string;
|
|
117
|
+
article: string;
|
|
118
|
+
/** A SiteTopicTrendStatus value. */
|
|
119
|
+
status: SiteTopicTrendStatus;
|
|
120
|
+
lastFailure?: string;
|
|
121
|
+
checkedAt?: string;
|
|
122
|
+
months: SiteTopicTrendMonth[];
|
|
123
|
+
};
|
|
124
|
+
export type SiteTopicTrends = {
|
|
125
|
+
siteUuid: string;
|
|
126
|
+
trends: SiteTopicTrend[];
|
|
127
|
+
};
|
|
128
|
+
export type SiteContentGapCompetitor = {
|
|
129
|
+
domain: string;
|
|
130
|
+
/** A SiteWebInventoryStatus value. */
|
|
131
|
+
sitemapStatus: string;
|
|
132
|
+
/** A SiteWebInventoryStatus value. */
|
|
133
|
+
waybackStatus: string;
|
|
134
|
+
pageCount: number;
|
|
135
|
+
};
|
|
136
|
+
export type SiteContentGapPage = SiteWebPage & {
|
|
137
|
+
domain: string;
|
|
138
|
+
};
|
|
139
|
+
/** A topic competitors cover and the Site does not. */
|
|
140
|
+
export type SiteContentGapTopic = {
|
|
141
|
+
topic: string;
|
|
142
|
+
label: string;
|
|
143
|
+
competitors: string[];
|
|
144
|
+
pageCount: number;
|
|
145
|
+
pages: SiteContentGapPage[];
|
|
146
|
+
};
|
|
147
|
+
/** partial is true while a competitor's inventory is incomplete. */
|
|
148
|
+
export type SiteContentGap = {
|
|
149
|
+
siteUuid: string;
|
|
150
|
+
seed?: string;
|
|
151
|
+
/** A SiteContentGapCoverage value. */
|
|
152
|
+
ownCoverage: SiteContentGapCoverage;
|
|
153
|
+
ownPages: number;
|
|
154
|
+
ownQueries: number;
|
|
155
|
+
partial: boolean;
|
|
156
|
+
competitors: SiteContentGapCompetitor[];
|
|
157
|
+
topics: SiteContentGapTopic[];
|
|
158
|
+
};
|
|
159
|
+
/** One keyword Bing relates to a list's seed term, with its searches over the period. */
|
|
160
|
+
export type SiteRelatedKeyword = {
|
|
161
|
+
keyword: string;
|
|
162
|
+
impressions: number;
|
|
163
|
+
broadImpressions: number;
|
|
164
|
+
};
|
|
165
|
+
/** What Bing relates to a list's seed term in the Site's first market, from..to (YYYY-MM-DD). */
|
|
166
|
+
export type SiteRelatedKeywords = {
|
|
167
|
+
/** SITE_KEYWORD_DEMAND_SOURCE_BING. */
|
|
168
|
+
source: string;
|
|
169
|
+
market: string;
|
|
170
|
+
from: string;
|
|
171
|
+
to: string;
|
|
172
|
+
checkedAt: string;
|
|
173
|
+
keywords: SiteRelatedKeyword[];
|
|
174
|
+
};
|
|
175
|
+
/** One search result Custd sampled for a keyword list's market. */
|
|
176
|
+
export type SiteMarketSearchHit = {
|
|
177
|
+
title: string;
|
|
178
|
+
url: string;
|
|
179
|
+
authority: number;
|
|
180
|
+
date?: string;
|
|
181
|
+
};
|
|
182
|
+
export type SiteMarketSample = {
|
|
183
|
+
observedAt: string;
|
|
184
|
+
hits: SiteMarketSearchHit[] | null;
|
|
185
|
+
};
|
|
186
|
+
export type SiteKeywordList = {
|
|
187
|
+
name: string;
|
|
188
|
+
seedTerm?: string;
|
|
189
|
+
keywords: string[];
|
|
190
|
+
/** Whether Custd samples the seed term's search market for this list. */
|
|
191
|
+
marketSampleEnabled: boolean;
|
|
192
|
+
/** The latest market sample; absent until one is taken. */
|
|
193
|
+
marketSample?: SiteMarketSample;
|
|
194
|
+
createdAt: string;
|
|
195
|
+
updatedAt: string;
|
|
196
|
+
/** Absent until Bing has been asked about the seed term, without a seed, or from an older server. */
|
|
197
|
+
related?: SiteRelatedKeywords;
|
|
198
|
+
};
|
|
199
|
+
export type SiteKeywordLists = {
|
|
200
|
+
siteUuid: string;
|
|
201
|
+
lists: SiteKeywordList[];
|
|
202
|
+
};
|
|
203
|
+
/** Replaces the named list, or creates it. */
|
|
204
|
+
export type SiteKeywordListRequest = {
|
|
205
|
+
name: string;
|
|
206
|
+
seedTerm?: string;
|
|
207
|
+
keywords: string[];
|
|
208
|
+
/** Samples the seed term's search market for this list. */
|
|
209
|
+
marketSampleEnabled?: boolean;
|
|
210
|
+
};
|
|
211
|
+
/** clicks, impressions and avgPosition are absent when no keyword in the cluster has search numbers. */
|
|
212
|
+
export type SiteKeywordCluster = {
|
|
213
|
+
cluster: string;
|
|
214
|
+
keywords: string[];
|
|
215
|
+
keywordCount: number;
|
|
216
|
+
measuredKeywords: number;
|
|
217
|
+
clicks?: number;
|
|
218
|
+
impressions?: number;
|
|
219
|
+
avgPosition?: number;
|
|
220
|
+
/** Bing's latest weekly searches for the cluster's keywords, summed; absent when Bing reported none. */
|
|
221
|
+
bingWeeklyImpressions?: number;
|
|
222
|
+
};
|
|
223
|
+
export type SiteStrikingKeyword = {
|
|
224
|
+
keyword: string;
|
|
225
|
+
clicks: number;
|
|
226
|
+
impressions: number;
|
|
227
|
+
position: number;
|
|
228
|
+
};
|
|
229
|
+
export type SiteKeywordClusters = {
|
|
230
|
+
siteUuid: string;
|
|
231
|
+
name: string;
|
|
232
|
+
metricsSource: string;
|
|
233
|
+
metricsDays: number;
|
|
234
|
+
totalKeywords: number;
|
|
235
|
+
clusters: SiteKeywordCluster[];
|
|
236
|
+
strikingDistance: SiteStrikingKeyword[];
|
|
237
|
+
/** Bing demand for the list's keywords; absent from an older server. */
|
|
238
|
+
demand?: SiteKeywordDemandSet;
|
|
239
|
+
};
|
|
240
|
+
/** One keyword's Bing searches in the latest week Bing reported. A number Bing did not report is absent, never 0. */
|
|
241
|
+
export type SiteKeywordDemand = {
|
|
242
|
+
keyword: string;
|
|
243
|
+
weeklyImpressions?: number;
|
|
244
|
+
broadImpressions?: number;
|
|
245
|
+
/** YYYY-MM-DD. */
|
|
246
|
+
weekOf?: string;
|
|
247
|
+
checkedAt: string;
|
|
248
|
+
lastFailure?: string;
|
|
249
|
+
};
|
|
250
|
+
/** Holds only keywords Bing has been asked about; state says why it is empty. */
|
|
251
|
+
export type SiteKeywordDemandSet = {
|
|
252
|
+
/** A SiteKeywordDemandState value. */
|
|
253
|
+
state: SiteKeywordDemandState;
|
|
254
|
+
/** SITE_KEYWORD_DEMAND_SOURCE_BING. */
|
|
255
|
+
source: string;
|
|
256
|
+
market?: string;
|
|
257
|
+
keywords: SiteKeywordDemand[];
|
|
258
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
// Public web data about a Site and its competitors: the domains Custd
|
|
2
|
+
// inventories, their pages, topic interest, the content gap, and the Site's
|
|
3
|
+
// keyword lists with their search clusters. SiteDomainAdminClient sends them.
|
|
4
|
+
// A site-bound credential may omit siteUuid for its own Site.
|
|
5
|
+
/** A 404 on deleteKeywordList or getKeywordClusters: the Site has no list of that name. */
|
|
6
|
+
export const SITE_KEYWORD_LIST_NOT_FOUND_CODE = "site_keyword_list_not_found";
|
|
7
|
+
/** A 409 on saveKeywordList: the Site keeps the most lists; delete one first. */
|
|
8
|
+
export const SITE_KEYWORD_LIST_LIMIT_CODE = "site_keyword_list_limit";
|
|
9
|
+
/** Where keyword demand and related keywords come from. */
|
|
10
|
+
export const SITE_KEYWORD_DEMAND_SOURCE_BING = "bing_keyword_research";
|
|
11
|
+
/** Why a keyword list has demand numbers or not. */
|
|
12
|
+
export const SiteKeywordDemandState = {
|
|
13
|
+
Available: "available",
|
|
14
|
+
NoMarket: "no_market",
|
|
15
|
+
NoBing: "no_bing",
|
|
16
|
+
};
|
|
17
|
+
/** Whether an inventoried domain is the Site's own or a named competitor. */
|
|
18
|
+
export const SiteWebDomainRole = {
|
|
19
|
+
Own: "own",
|
|
20
|
+
Competitor: "competitor",
|
|
21
|
+
};
|
|
22
|
+
/** Where a page was found; newer sources may appear. */
|
|
23
|
+
export const SiteWebPageSource = {
|
|
24
|
+
Sitemap: "sitemap",
|
|
25
|
+
Wayback: "wayback",
|
|
26
|
+
};
|
|
27
|
+
/** The state of one inventory source for a domain. */
|
|
28
|
+
export const SiteWebInventoryStatus = {
|
|
29
|
+
Pending: "pending",
|
|
30
|
+
Done: "done",
|
|
31
|
+
Partial: "partial",
|
|
32
|
+
Unavailable: "unavailable",
|
|
33
|
+
Failed: "failed",
|
|
34
|
+
};
|
|
35
|
+
/** A domain's band in the Tranco top-sites list. */
|
|
36
|
+
export const SiteTrancoBand = {
|
|
37
|
+
Top1K: "top-1k",
|
|
38
|
+
Top10K: "top-10k",
|
|
39
|
+
Top100K: "top-100k",
|
|
40
|
+
Top1M: "top-1m",
|
|
41
|
+
Unranked: "unranked",
|
|
42
|
+
Unknown: "unknown",
|
|
43
|
+
};
|
|
44
|
+
/** Whether a term's Wikipedia article was found. */
|
|
45
|
+
export const SiteTopicTrendStatus = {
|
|
46
|
+
Pending: "pending",
|
|
47
|
+
Found: "found",
|
|
48
|
+
NoArticle: "no_article",
|
|
49
|
+
Failed: "failed",
|
|
50
|
+
};
|
|
51
|
+
/** Where a trend term came from: a brand name or the content-gap seed. */
|
|
52
|
+
export const SiteTopicTrendSource = {
|
|
53
|
+
Brand: "brand",
|
|
54
|
+
Seed: "seed",
|
|
55
|
+
};
|
|
56
|
+
/** Whether the Site's own pages and queries could be read for a content gap. */
|
|
57
|
+
export const SiteContentGapCoverage = {
|
|
58
|
+
Available: "available",
|
|
59
|
+
Unavailable: "unavailable",
|
|
60
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { RequestOptions } from "./index.js";
|
|
2
|
+
/** What a subject export covers. A request may ask for both; each artifact is access or portability. */
|
|
3
|
+
export type SubjectExportScope = "access" | "portability" | "both";
|
|
4
|
+
/** The artifact a download names: the server serves access or portability, never both at once. */
|
|
5
|
+
export type SubjectExportArtifactScope = Exclude<SubjectExportScope, "both">;
|
|
6
|
+
export type SubjectExportStatus = "queued" | "running" | "complete" | "failed" | "cancelled" | "expired";
|
|
7
|
+
/** One store's progress for a subject export. */
|
|
8
|
+
export type SubjectExportStoreProgress = {
|
|
9
|
+
store: string;
|
|
10
|
+
deletedCount: number;
|
|
11
|
+
retainedExceptions: number;
|
|
12
|
+
lastError?: string;
|
|
13
|
+
lastCompletedAt?: string;
|
|
14
|
+
};
|
|
15
|
+
/** The status of one subject export request, as create, get, list, cancel and force return it. */
|
|
16
|
+
export type SubjectExport = {
|
|
17
|
+
id: string;
|
|
18
|
+
opaqueSubjectId: string;
|
|
19
|
+
scope: SubjectExportScope;
|
|
20
|
+
state: SubjectExportStatus;
|
|
21
|
+
idempotencyKey: string;
|
|
22
|
+
requestedAt: string;
|
|
23
|
+
expiresAt: string;
|
|
24
|
+
completedAt?: string;
|
|
25
|
+
lastProgressAt?: string;
|
|
26
|
+
lastActionSafeNext?: string;
|
|
27
|
+
error?: string;
|
|
28
|
+
perStoreProgress: SubjectExportStoreProgress[];
|
|
29
|
+
};
|
|
30
|
+
export type SubjectExportListResponse = {
|
|
31
|
+
requests: SubjectExport[];
|
|
32
|
+
};
|
|
33
|
+
/** The body for POST /admin/subject-exports. idempotencyKey makes a retry safe. */
|
|
34
|
+
export type SubjectExportCreateRequest = {
|
|
35
|
+
opaqueSubjectId: string;
|
|
36
|
+
scope: SubjectExportScope;
|
|
37
|
+
idempotencyKey: string;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* One stored export artifact's identity, location and integrity metadata, as
|
|
41
|
+
* GET /admin/subject-exports/{requestId}/download returns it. It names object
|
|
42
|
+
* keys, not a signed URL.
|
|
43
|
+
*/
|
|
44
|
+
export type SubjectExportDownloadResponse = {
|
|
45
|
+
id: string;
|
|
46
|
+
requestId: string;
|
|
47
|
+
scope: SubjectExportScope;
|
|
48
|
+
objectKey: string;
|
|
49
|
+
s3Key: string;
|
|
50
|
+
encryptionKeyId: string;
|
|
51
|
+
checksumSha256: string;
|
|
52
|
+
byteSize: number;
|
|
53
|
+
recordCount: number;
|
|
54
|
+
generatedAt: string;
|
|
55
|
+
expiresAt: string;
|
|
56
|
+
};
|
|
57
|
+
/** force's options: companySlug names the tenant that owns the export. */
|
|
58
|
+
export type SubjectExportForceOptions = RequestOptions & {
|
|
59
|
+
companySlug?: string;
|
|
60
|
+
};
|
|
61
|
+
type AdminRequester = <T>(method: string, path: string, body?: unknown, options?: RequestOptions) => Promise<T>;
|
|
62
|
+
export declare class SubjectExportClient {
|
|
63
|
+
private readonly request;
|
|
64
|
+
constructor(request: AdminRequester);
|
|
65
|
+
create(body: SubjectExportCreateRequest, options?: RequestOptions): Promise<SubjectExport>;
|
|
66
|
+
/** Lists the tenant's subject exports, newest first. The server default is 100; it accepts 1 to 1000. */
|
|
67
|
+
list(limit?: number, options?: RequestOptions): Promise<SubjectExportListResponse>;
|
|
68
|
+
get(requestId: string, options?: RequestOptions): Promise<SubjectExport>;
|
|
69
|
+
/** Stops a queued or running export and returns its cancelled status. */
|
|
70
|
+
cancel(requestId: string, options?: RequestOptions): Promise<SubjectExport>;
|
|
71
|
+
/** Returns one stored artifact's metadata; scope names the artifact. The object keys are tenant data; do not log them. */
|
|
72
|
+
download(requestId: string, scope: SubjectExportArtifactScope, options?: RequestOptions): Promise<SubjectExportDownloadResponse>;
|
|
73
|
+
/**
|
|
74
|
+
* Restarts a stuck export. The route is system-admin only and names the owning tenant in companySlug;
|
|
75
|
+
* without one the client's actingCompanySlug is sent.
|
|
76
|
+
*/
|
|
77
|
+
force(requestId: string, options?: SubjectExportForceOptions): Promise<SubjectExport>;
|
|
78
|
+
}
|
|
79
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// SubjectExportClient owns per-tenant subject export requests. The download
|
|
2
|
+
// surface returns artifact metadata the SDK surfaces only to the caller; its
|
|
3
|
+
// object keys are tenant data and must not be logged or echoed into errors.
|
|
4
|
+
function exportPath(requestId, action = "") {
|
|
5
|
+
return `/subject-exports/${encodeURIComponent(requestId)}${action}`;
|
|
6
|
+
}
|
|
7
|
+
function normalizeExport(request) {
|
|
8
|
+
return { ...request, perStoreProgress: request.perStoreProgress ?? [] };
|
|
9
|
+
}
|
|
10
|
+
export class SubjectExportClient {
|
|
11
|
+
constructor(request) {
|
|
12
|
+
this.request = request;
|
|
13
|
+
}
|
|
14
|
+
async create(body, options) {
|
|
15
|
+
return normalizeExport(await this.request("POST", "/subject-exports", body, options));
|
|
16
|
+
}
|
|
17
|
+
/** Lists the tenant's subject exports, newest first. The server default is 100; it accepts 1 to 1000. */
|
|
18
|
+
async list(limit, options) {
|
|
19
|
+
const query = limit === undefined ? "" : `?${new URLSearchParams({ limit: String(limit) })}`;
|
|
20
|
+
const list = await this.request("GET", `/subject-exports${query}`, undefined, options);
|
|
21
|
+
return { requests: (list.requests ?? []).map(normalizeExport) };
|
|
22
|
+
}
|
|
23
|
+
async get(requestId, options) {
|
|
24
|
+
return normalizeExport(await this.request("GET", exportPath(requestId), undefined, options));
|
|
25
|
+
}
|
|
26
|
+
/** Stops a queued or running export and returns its cancelled status. */
|
|
27
|
+
async cancel(requestId, options) {
|
|
28
|
+
return normalizeExport(await this.request("POST", exportPath(requestId, "/cancel"), undefined, options));
|
|
29
|
+
}
|
|
30
|
+
/** Returns one stored artifact's metadata; scope names the artifact. The object keys are tenant data; do not log them. */
|
|
31
|
+
download(requestId, scope, options) {
|
|
32
|
+
const query = new URLSearchParams({ scope });
|
|
33
|
+
return this.request("GET", `${exportPath(requestId, "/download")}?${query}`, undefined, options);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Restarts a stuck export. The route is system-admin only and names the owning tenant in companySlug;
|
|
37
|
+
* without one the client's actingCompanySlug is sent.
|
|
38
|
+
*/
|
|
39
|
+
async force(requestId, options = {}) {
|
|
40
|
+
const { companySlug, ...requestOptions } = options;
|
|
41
|
+
const query = companySlug ? `?${new URLSearchParams({ companySlug })}` : "";
|
|
42
|
+
return normalizeExport(await this.request("POST", `${exportPath(requestId, "/force")}${query}`, undefined, requestOptions));
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Time-boxed support access grants: a tenant lets a HaakCo operator into its data for a stated
|
|
3
|
+
* reason until a stated time, and can revoke the grant early.
|
|
4
|
+
*/
|
|
5
|
+
import type { RequestOptions } from "./index.js";
|
|
6
|
+
/** One grant. `revokedAt` is null until the grant is revoked. */
|
|
7
|
+
export type SupportAccessGrant = {
|
|
8
|
+
supportAccessGrantUuid: string;
|
|
9
|
+
companySlug: string;
|
|
10
|
+
operatorUserUuid: string;
|
|
11
|
+
reason: string;
|
|
12
|
+
startsAt: string;
|
|
13
|
+
expiresAt: string;
|
|
14
|
+
revokedAt: string | null;
|
|
15
|
+
};
|
|
16
|
+
export type SupportAccessGrantListResponse = {
|
|
17
|
+
grants: SupportAccessGrant[];
|
|
18
|
+
};
|
|
19
|
+
export type SupportAccessGrantCreateRequest = {
|
|
20
|
+
companySlug: string;
|
|
21
|
+
reason: string;
|
|
22
|
+
expiresAt: string;
|
|
23
|
+
};
|
|
24
|
+
type AdminRequester = <T>(method: string, path: string, body?: unknown, options?: RequestOptions) => Promise<T>;
|
|
25
|
+
export declare class SupportAccessAdminClient {
|
|
26
|
+
private readonly request;
|
|
27
|
+
constructor(request: AdminRequester);
|
|
28
|
+
list(companySlug?: string, options?: RequestOptions): Promise<SupportAccessGrantListResponse>;
|
|
29
|
+
create(body: SupportAccessGrantCreateRequest, options?: RequestOptions): Promise<SupportAccessGrant>;
|
|
30
|
+
revoke(supportAccessGrantUuid: string, options?: RequestOptions): Promise<void>;
|
|
31
|
+
}
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Time-boxed support access grants: a tenant lets a HaakCo operator into its data for a stated
|
|
3
|
+
* reason until a stated time, and can revoke the grant early.
|
|
4
|
+
*/
|
|
5
|
+
const grantsPath = "/support-access";
|
|
6
|
+
export class SupportAccessAdminClient {
|
|
7
|
+
constructor(request) {
|
|
8
|
+
this.request = request;
|
|
9
|
+
}
|
|
10
|
+
async list(companySlug, options) {
|
|
11
|
+
const path = companySlug ? `${grantsPath}?companySlug=${encodeURIComponent(companySlug)}` : grantsPath;
|
|
12
|
+
const list = await this.request("GET", path, undefined, options);
|
|
13
|
+
return { grants: list.grants ?? [] };
|
|
14
|
+
}
|
|
15
|
+
create(body, options) {
|
|
16
|
+
return this.request("POST", grantsPath, body, options);
|
|
17
|
+
}
|
|
18
|
+
revoke(supportAccessGrantUuid, options) {
|
|
19
|
+
return this.request("POST", `${grantsPath}/${encodeURIComponent(supportAccessGrantUuid)}/revoke`, undefined, options);
|
|
20
|
+
}
|
|
21
|
+
}
|