@gscdump/contracts 0.40.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/endpoints.d.mts +315 -136
- package/dist/_chunks/endpoints.mjs +15 -16
- package/dist/_chunks/routes.mjs +10 -11
- package/dist/_chunks/schemas.d.mts +938 -234
- package/dist/_chunks/schemas.mjs +225 -57
- package/dist/_chunks/types.d.mts +139 -146
- package/dist/analytics.d.mts +2 -2
- package/dist/archetypes.d.mts +3 -4
- package/dist/archetypes.mjs +1 -9
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +3 -3
- package/dist/partner.d.mts +2 -2
- package/dist/partner.mjs +2 -2
- package/dist/v1/index.d.mts +62 -62
- package/package.json +2 -2
|
@@ -28,6 +28,76 @@ declare const analyticsEndpoints: {
|
|
|
28
28
|
}>>;
|
|
29
29
|
}, import("zod/v4/core").$loose>>;
|
|
30
30
|
};
|
|
31
|
+
readonly getBulkSources: {
|
|
32
|
+
method: "GET";
|
|
33
|
+
path: "/api/__gsc/bulk-sources";
|
|
34
|
+
} & {
|
|
35
|
+
readonly response: import("zod").ZodObject<{
|
|
36
|
+
generatedAt: import("zod").ZodString;
|
|
37
|
+
siteCount: import("zod").ZodNumber;
|
|
38
|
+
maxSites: import("zod").ZodNumber;
|
|
39
|
+
results: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
40
|
+
siteId: import("zod").ZodString;
|
|
41
|
+
searchType: import("zod").ZodEnum<{
|
|
42
|
+
web: "web";
|
|
43
|
+
image: "image";
|
|
44
|
+
video: "video";
|
|
45
|
+
news: "news";
|
|
46
|
+
discover: "discover";
|
|
47
|
+
googleNews: "googleNews";
|
|
48
|
+
}>;
|
|
49
|
+
range: import("zod").ZodObject<{
|
|
50
|
+
start: import("zod").ZodString;
|
|
51
|
+
end: import("zod").ZodString;
|
|
52
|
+
}, import("zod/v4/core").$strip>;
|
|
53
|
+
snapshotVersion: import("zod").ZodString;
|
|
54
|
+
generatedAt: import("zod").ZodString;
|
|
55
|
+
tables: import("zod").ZodArray<import("zod").ZodObject<{
|
|
56
|
+
table: import("zod").ZodEnum<{
|
|
57
|
+
pages: "pages";
|
|
58
|
+
queries: "queries";
|
|
59
|
+
countries: "countries";
|
|
60
|
+
page_queries: "page_queries";
|
|
61
|
+
dates: "dates";
|
|
62
|
+
search_appearance: "search_appearance";
|
|
63
|
+
search_appearance_pages: "search_appearance_pages";
|
|
64
|
+
search_appearance_queries: "search_appearance_queries";
|
|
65
|
+
search_appearance_page_queries: "search_appearance_page_queries";
|
|
66
|
+
}>;
|
|
67
|
+
mode: import("zod").ZodEnum<{
|
|
68
|
+
browser: "browser";
|
|
69
|
+
server: "server";
|
|
70
|
+
}>;
|
|
71
|
+
files: import("zod").ZodArray<import("zod").ZodObject<{
|
|
72
|
+
url: import("zod").ZodString;
|
|
73
|
+
bytes: import("zod").ZodNumber;
|
|
74
|
+
contentHash: import("zod").ZodString;
|
|
75
|
+
rowCount: import("zod").ZodNumber;
|
|
76
|
+
}, import("zod/v4/core").$loose>>;
|
|
77
|
+
overlay: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
78
|
+
url: import("zod").ZodString;
|
|
79
|
+
bytes: import("zod").ZodNumber;
|
|
80
|
+
contentHash: import("zod").ZodString;
|
|
81
|
+
rowCount: import("zod").ZodNumber;
|
|
82
|
+
}, import("zod/v4/core").$loose>>;
|
|
83
|
+
totalBytes: import("zod").ZodNumber;
|
|
84
|
+
totalRows: import("zod").ZodNumber;
|
|
85
|
+
}, import("zod/v4/core").$loose>>;
|
|
86
|
+
serverTail: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
87
|
+
engine: import("zod").ZodEnum<{
|
|
88
|
+
"r2-sql": "r2-sql";
|
|
89
|
+
duckdb: "duckdb";
|
|
90
|
+
}>;
|
|
91
|
+
endpoint: import("zod").ZodString;
|
|
92
|
+
}, import("zod/v4/core").$strip>>;
|
|
93
|
+
eligibilityCeiling: import("zod").ZodObject<{
|
|
94
|
+
maxBytes: import("zod").ZodNumber;
|
|
95
|
+
maxRows: import("zod").ZodNumber;
|
|
96
|
+
maxFiles: import("zod").ZodNumber;
|
|
97
|
+
}, import("zod/v4/core").$strip>;
|
|
98
|
+
}, import("zod/v4/core").$loose>>;
|
|
99
|
+
}, import("zod/v4/core").$loose>;
|
|
100
|
+
};
|
|
31
101
|
readonly getSourceInfo: {
|
|
32
102
|
method: "GET";
|
|
33
103
|
path: (siteId: string) => string;
|
|
@@ -111,26 +181,22 @@ declare const analyticsEndpoints: {
|
|
|
111
181
|
}, import("zod/v4/core").$strip>;
|
|
112
182
|
}, import("zod/v4/core").$loose>;
|
|
113
183
|
};
|
|
114
|
-
readonly
|
|
115
|
-
method: "
|
|
116
|
-
path: (siteId: string) => string;
|
|
117
|
-
};
|
|
118
|
-
readonly queryRows: {
|
|
119
|
-
method: "POST";
|
|
184
|
+
readonly getQueryDimSource: {
|
|
185
|
+
method: "GET";
|
|
120
186
|
path: (siteId: string) => string;
|
|
121
187
|
} & {
|
|
122
188
|
readonly response: import("zod").ZodObject<{
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
sql: "sql";
|
|
129
|
-
}>;
|
|
130
|
-
queryMs: import("zod").ZodNumber;
|
|
131
|
-
}, import("zod/v4/core").$loose>;
|
|
189
|
+
file: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
190
|
+
url: import("zod").ZodString;
|
|
191
|
+
bytes: import("zod").ZodNumber;
|
|
192
|
+
contentHash: import("zod").ZodString;
|
|
193
|
+
}, import("zod/v4/core").$loose>>;
|
|
132
194
|
}, import("zod/v4/core").$loose>;
|
|
133
195
|
};
|
|
196
|
+
readonly analyze: {
|
|
197
|
+
method: "POST";
|
|
198
|
+
path: (siteId: string) => string;
|
|
199
|
+
};
|
|
134
200
|
readonly getRollup: {
|
|
135
201
|
method: "GET";
|
|
136
202
|
path: (siteId: string, rollupId: string) => string;
|
|
@@ -719,6 +785,19 @@ declare const partnerEndpoints: {
|
|
|
719
785
|
}, import("zod/v4/core").$loose>>;
|
|
720
786
|
}, import("zod/v4/core").$loose>;
|
|
721
787
|
};
|
|
788
|
+
readonly getUserSiteIntIdCrosswalk: {
|
|
789
|
+
method: "GET";
|
|
790
|
+
path: (userId: string) => string;
|
|
791
|
+
} & {
|
|
792
|
+
readonly response: import("zod").ZodObject<{
|
|
793
|
+
crosswalk: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodNumber>;
|
|
794
|
+
sites: import("zod").ZodArray<import("zod").ZodObject<{
|
|
795
|
+
siteId: import("zod").ZodString;
|
|
796
|
+
intId: import("zod").ZodNumber;
|
|
797
|
+
siteUrl: import("zod").ZodString;
|
|
798
|
+
}, import("zod/v4/core").$loose>>;
|
|
799
|
+
}, import("zod/v4/core").$loose>;
|
|
800
|
+
};
|
|
722
801
|
readonly getSyncStatus: {
|
|
723
802
|
method: "GET";
|
|
724
803
|
path: (siteId: string) => string;
|
|
@@ -1017,6 +1096,88 @@ declare const partnerEndpoints: {
|
|
|
1017
1096
|
}, import("zod/v4/core").$strip>;
|
|
1018
1097
|
}, import("zod/v4/core").$loose>;
|
|
1019
1098
|
};
|
|
1099
|
+
readonly requestSiteVerificationToken: {
|
|
1100
|
+
method: "POST";
|
|
1101
|
+
path: "/partner/sites/verification-token";
|
|
1102
|
+
} & {
|
|
1103
|
+
readonly body: import("zod").ZodObject<{
|
|
1104
|
+
userId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1105
|
+
siteUrl: import("zod").ZodString;
|
|
1106
|
+
method: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1107
|
+
META: "META";
|
|
1108
|
+
FILE: "FILE";
|
|
1109
|
+
DNS_TXT: "DNS_TXT";
|
|
1110
|
+
DNS_CNAME: "DNS_CNAME";
|
|
1111
|
+
ANALYTICS: "ANALYTICS";
|
|
1112
|
+
TAG_MANAGER: "TAG_MANAGER";
|
|
1113
|
+
}>>;
|
|
1114
|
+
}, import("zod/v4/core").$strip>;
|
|
1115
|
+
readonly response: import("zod").ZodObject<{
|
|
1116
|
+
siteUrl: import("zod").ZodString;
|
|
1117
|
+
site: import("zod").ZodObject<{
|
|
1118
|
+
type: import("zod").ZodEnum<{
|
|
1119
|
+
SITE: "SITE";
|
|
1120
|
+
INET_DOMAIN: "INET_DOMAIN";
|
|
1121
|
+
}>;
|
|
1122
|
+
identifier: import("zod").ZodString;
|
|
1123
|
+
}, import("zod/v4/core").$strip>;
|
|
1124
|
+
method: import("zod").ZodEnum<{
|
|
1125
|
+
META: "META";
|
|
1126
|
+
FILE: "FILE";
|
|
1127
|
+
DNS_TXT: "DNS_TXT";
|
|
1128
|
+
DNS_CNAME: "DNS_CNAME";
|
|
1129
|
+
ANALYTICS: "ANALYTICS";
|
|
1130
|
+
TAG_MANAGER: "TAG_MANAGER";
|
|
1131
|
+
}>;
|
|
1132
|
+
token: import("zod").ZodString;
|
|
1133
|
+
metaContent: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1134
|
+
dnsRecord: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
1135
|
+
type: import("zod").ZodEnum<{
|
|
1136
|
+
TXT: "TXT";
|
|
1137
|
+
CNAME: "CNAME";
|
|
1138
|
+
}>;
|
|
1139
|
+
host: import("zod").ZodString;
|
|
1140
|
+
value: import("zod").ZodString;
|
|
1141
|
+
}, import("zod/v4/core").$strip>>;
|
|
1142
|
+
}, import("zod/v4/core").$loose>;
|
|
1143
|
+
};
|
|
1144
|
+
readonly addAndVerifySite: {
|
|
1145
|
+
method: "POST";
|
|
1146
|
+
path: "/partner/sites/add-and-verify";
|
|
1147
|
+
} & {
|
|
1148
|
+
readonly body: import("zod").ZodObject<{
|
|
1149
|
+
userId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1150
|
+
siteUrl: import("zod").ZodString;
|
|
1151
|
+
method: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1152
|
+
META: "META";
|
|
1153
|
+
FILE: "FILE";
|
|
1154
|
+
DNS_TXT: "DNS_TXT";
|
|
1155
|
+
DNS_CNAME: "DNS_CNAME";
|
|
1156
|
+
ANALYTICS: "ANALYTICS";
|
|
1157
|
+
TAG_MANAGER: "TAG_MANAGER";
|
|
1158
|
+
}>>;
|
|
1159
|
+
}, import("zod/v4/core").$strip>;
|
|
1160
|
+
readonly response: import("zod").ZodObject<{
|
|
1161
|
+
siteUrl: import("zod").ZodString;
|
|
1162
|
+
site: import("zod").ZodObject<{
|
|
1163
|
+
type: import("zod").ZodEnum<{
|
|
1164
|
+
SITE: "SITE";
|
|
1165
|
+
INET_DOMAIN: "INET_DOMAIN";
|
|
1166
|
+
}>;
|
|
1167
|
+
identifier: import("zod").ZodString;
|
|
1168
|
+
}, import("zod/v4/core").$strip>;
|
|
1169
|
+
method: import("zod").ZodEnum<{
|
|
1170
|
+
META: "META";
|
|
1171
|
+
FILE: "FILE";
|
|
1172
|
+
DNS_TXT: "DNS_TXT";
|
|
1173
|
+
DNS_CNAME: "DNS_CNAME";
|
|
1174
|
+
ANALYTICS: "ANALYTICS";
|
|
1175
|
+
TAG_MANAGER: "TAG_MANAGER";
|
|
1176
|
+
}>;
|
|
1177
|
+
verified: import("zod").ZodLiteral<true>;
|
|
1178
|
+
owners: import("zod").ZodArray<import("zod").ZodString>;
|
|
1179
|
+
}, import("zod/v4/core").$loose>;
|
|
1180
|
+
};
|
|
1020
1181
|
readonly deleteUser: {
|
|
1021
1182
|
method: "DELETE";
|
|
1022
1183
|
path: (userId: string) => string;
|
|
@@ -1250,69 +1411,6 @@ declare const partnerEndpoints: {
|
|
|
1250
1411
|
}, import("zod/v4/core").$loose>;
|
|
1251
1412
|
}, import("zod/v4/core").$strip>;
|
|
1252
1413
|
};
|
|
1253
|
-
readonly getAnalysis: {
|
|
1254
|
-
method: "GET";
|
|
1255
|
-
path: (siteId: string) => string;
|
|
1256
|
-
} & {
|
|
1257
|
-
readonly query: import("zod").ZodObject<{
|
|
1258
|
-
startDate: import("zod").ZodString;
|
|
1259
|
-
endDate: import("zod").ZodString;
|
|
1260
|
-
prevStartDate: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1261
|
-
prevEndDate: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1262
|
-
brandTerms: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1263
|
-
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1264
|
-
offset: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1265
|
-
search: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1266
|
-
minImpressions: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1267
|
-
minPosition: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1268
|
-
maxPosition: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1269
|
-
maxCtr: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1270
|
-
searchType: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1271
|
-
web: "web";
|
|
1272
|
-
image: "image";
|
|
1273
|
-
video: "video";
|
|
1274
|
-
news: "news";
|
|
1275
|
-
discover: "discover";
|
|
1276
|
-
googleNews: "googleNews";
|
|
1277
|
-
}>>;
|
|
1278
|
-
preset: import("zod").ZodEnum<{
|
|
1279
|
-
"striking-distance": "striking-distance";
|
|
1280
|
-
opportunity: "opportunity";
|
|
1281
|
-
decay: "decay";
|
|
1282
|
-
"zero-click": "zero-click";
|
|
1283
|
-
"non-brand": "non-brand";
|
|
1284
|
-
"brand-only": "brand-only";
|
|
1285
|
-
"movers-rising": "movers-rising";
|
|
1286
|
-
"movers-declining": "movers-declining";
|
|
1287
|
-
}>;
|
|
1288
|
-
}, import("zod/v4/core").$strip>;
|
|
1289
|
-
readonly response: import("zod").ZodObject<{
|
|
1290
|
-
preset: import("zod").ZodEnum<{
|
|
1291
|
-
"striking-distance": "striking-distance";
|
|
1292
|
-
opportunity: "opportunity";
|
|
1293
|
-
decay: "decay";
|
|
1294
|
-
"zero-click": "zero-click";
|
|
1295
|
-
"non-brand": "non-brand";
|
|
1296
|
-
"brand-only": "brand-only";
|
|
1297
|
-
"movers-rising": "movers-rising";
|
|
1298
|
-
"movers-declining": "movers-declining";
|
|
1299
|
-
}>;
|
|
1300
|
-
keywords: import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1301
|
-
totalCount: import("zod").ZodNumber;
|
|
1302
|
-
summary: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
|
|
1303
|
-
meta: import("zod").ZodObject<{
|
|
1304
|
-
siteUrl: import("zod").ZodString;
|
|
1305
|
-
params: import("zod").ZodObject<{
|
|
1306
|
-
brandTerms: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
1307
|
-
startDate: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1308
|
-
endDate: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1309
|
-
prevStartDate: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1310
|
-
prevEndDate: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1311
|
-
}, import("zod/v4/core").$strip>;
|
|
1312
|
-
presetDescription: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1313
|
-
}, import("zod/v4/core").$loose>;
|
|
1314
|
-
}, import("zod/v4/core").$loose>;
|
|
1315
|
-
};
|
|
1316
1414
|
readonly getSitemaps: {
|
|
1317
1415
|
method: "GET";
|
|
1318
1416
|
path: (siteId: string) => string;
|
|
@@ -1374,13 +1472,73 @@ declare const partnerEndpoints: {
|
|
|
1374
1472
|
}, import("zod/v4/core").$strip>>;
|
|
1375
1473
|
}, import("zod/v4/core").$loose>;
|
|
1376
1474
|
};
|
|
1377
|
-
readonly
|
|
1475
|
+
readonly postSitemaps: {
|
|
1378
1476
|
method: "POST";
|
|
1379
1477
|
path: (siteId: string) => string;
|
|
1478
|
+
} & {
|
|
1479
|
+
readonly body: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
1480
|
+
action: import("zod").ZodLiteral<"submit">;
|
|
1481
|
+
sitemapUrl: import("zod").ZodString;
|
|
1482
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1483
|
+
action: import("zod").ZodLiteral<"delete">;
|
|
1484
|
+
sitemapUrl: import("zod").ZodString;
|
|
1485
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1486
|
+
action: import("zod").ZodLiteral<"refresh">;
|
|
1487
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1488
|
+
action: import("zod").ZodLiteral<"auto-discover">;
|
|
1489
|
+
}, import("zod/v4/core").$strip>], "action">;
|
|
1490
|
+
readonly response: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
1491
|
+
success: import("zod").ZodBoolean;
|
|
1492
|
+
action: import("zod").ZodEnum<{
|
|
1493
|
+
deleted: "deleted";
|
|
1494
|
+
submitted: "submitted";
|
|
1495
|
+
}>;
|
|
1496
|
+
sitemapUrl: import("zod").ZodString;
|
|
1497
|
+
sitemapCount: import("zod").ZodNumber;
|
|
1498
|
+
}, import("zod/v4/core").$loose>, import("zod").ZodObject<{
|
|
1499
|
+
success: import("zod").ZodLiteral<true>;
|
|
1500
|
+
action: import("zod").ZodLiteral<"refreshed">;
|
|
1501
|
+
sitemapCount: import("zod").ZodNumber;
|
|
1502
|
+
changed: import("zod").ZodBoolean;
|
|
1503
|
+
}, import("zod/v4/core").$loose>, import("zod").ZodObject<{
|
|
1504
|
+
success: import("zod").ZodBoolean;
|
|
1505
|
+
action: import("zod").ZodLiteral<"auto-discover">;
|
|
1506
|
+
discovered: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1507
|
+
submitError: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
1508
|
+
sitemapCount: import("zod").ZodNumber;
|
|
1509
|
+
}, import("zod/v4/core").$loose>], "action">;
|
|
1380
1510
|
};
|
|
1381
|
-
readonly
|
|
1511
|
+
readonly getSitemapMembership: {
|
|
1382
1512
|
method: "POST";
|
|
1383
1513
|
path: (siteId: string) => string;
|
|
1514
|
+
} & {
|
|
1515
|
+
readonly body: import("zod").ZodObject<{
|
|
1516
|
+
urls: import("zod").ZodArray<import("zod").ZodString>;
|
|
1517
|
+
maxAgeDays: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1518
|
+
}, import("zod/v4/core").$strip>;
|
|
1519
|
+
readonly response: import("zod").ZodObject<{
|
|
1520
|
+
urls: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1521
|
+
url: import("zod").ZodString;
|
|
1522
|
+
normalized: import("zod").ZodString;
|
|
1523
|
+
inSitemap: import("zod").ZodBoolean;
|
|
1524
|
+
sitemapUrl: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
1525
|
+
lastSeenAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
1526
|
+
lastmod: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
1527
|
+
sitemapFetchedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
1528
|
+
}, import("zod/v4/core").$loose>>;
|
|
1529
|
+
meta: import("zod").ZodObject<{
|
|
1530
|
+
available: import("zod").ZodBoolean;
|
|
1531
|
+
reason: import("zod").ZodNullable<import("zod").ZodEnum<{
|
|
1532
|
+
empty: "empty";
|
|
1533
|
+
site_url_cap_exceeded: "site_url_cap_exceeded";
|
|
1534
|
+
stale_sitemaps: "stale_sitemaps";
|
|
1535
|
+
}>>;
|
|
1536
|
+
requested: import("zod").ZodNumber;
|
|
1537
|
+
checked: import("zod").ZodNumber;
|
|
1538
|
+
matched: import("zod").ZodNumber;
|
|
1539
|
+
newestFetchedAt: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1540
|
+
}, import("zod/v4/core").$loose>;
|
|
1541
|
+
}, import("zod/v4/core").$loose>;
|
|
1384
1542
|
};
|
|
1385
1543
|
readonly getIndexing: {
|
|
1386
1544
|
method: "GET";
|
|
@@ -1463,8 +1621,8 @@ declare const partnerEndpoints: {
|
|
|
1463
1621
|
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1464
1622
|
offset: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1465
1623
|
status: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1466
|
-
pending: "pending";
|
|
1467
1624
|
indexed: "indexed";
|
|
1625
|
+
pending: "pending";
|
|
1468
1626
|
not_indexed: "not_indexed";
|
|
1469
1627
|
}>>;
|
|
1470
1628
|
issue: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -1771,40 +1929,6 @@ declare const partnerEndpoints: {
|
|
|
1771
1929
|
}, import("zod/v4/core").$loose>;
|
|
1772
1930
|
}, import("zod/v4/core").$loose>;
|
|
1773
1931
|
};
|
|
1774
|
-
readonly getContentVelocity: {
|
|
1775
|
-
method: "GET";
|
|
1776
|
-
path: (siteId: string) => string;
|
|
1777
|
-
};
|
|
1778
|
-
readonly getCtrCurve: {
|
|
1779
|
-
method: "GET";
|
|
1780
|
-
path: (siteId: string) => string;
|
|
1781
|
-
} & {
|
|
1782
|
-
readonly query: import("zod").ZodObject<{
|
|
1783
|
-
startDate: import("zod").ZodString;
|
|
1784
|
-
endDate: import("zod").ZodString;
|
|
1785
|
-
}, import("zod/v4/core").$strip>;
|
|
1786
|
-
readonly response: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
1787
|
-
};
|
|
1788
|
-
readonly getDarkTraffic: {
|
|
1789
|
-
method: "GET";
|
|
1790
|
-
path: (siteId: string) => string;
|
|
1791
|
-
} & {
|
|
1792
|
-
readonly query: import("zod").ZodObject<{
|
|
1793
|
-
startDate: import("zod").ZodString;
|
|
1794
|
-
endDate: import("zod").ZodString;
|
|
1795
|
-
}, import("zod/v4/core").$strip>;
|
|
1796
|
-
readonly response: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
1797
|
-
};
|
|
1798
|
-
readonly getDeviceGap: {
|
|
1799
|
-
method: "GET";
|
|
1800
|
-
path: (siteId: string) => string;
|
|
1801
|
-
} & {
|
|
1802
|
-
readonly query: import("zod").ZodObject<{
|
|
1803
|
-
startDate: import("zod").ZodString;
|
|
1804
|
-
endDate: import("zod").ZodString;
|
|
1805
|
-
}, import("zod/v4/core").$strip>;
|
|
1806
|
-
readonly response: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
1807
|
-
};
|
|
1808
1932
|
readonly getIndexPercent: {
|
|
1809
1933
|
method: "GET";
|
|
1810
1934
|
path: (siteId: string) => string;
|
|
@@ -1855,26 +1979,6 @@ declare const partnerEndpoints: {
|
|
|
1855
1979
|
}, import("zod/v4/core").$loose>;
|
|
1856
1980
|
}, import("zod/v4/core").$loose>;
|
|
1857
1981
|
};
|
|
1858
|
-
readonly getKeywordBreadth: {
|
|
1859
|
-
method: "GET";
|
|
1860
|
-
path: (siteId: string) => string;
|
|
1861
|
-
} & {
|
|
1862
|
-
readonly query: import("zod").ZodObject<{
|
|
1863
|
-
startDate: import("zod").ZodString;
|
|
1864
|
-
endDate: import("zod").ZodString;
|
|
1865
|
-
}, import("zod/v4/core").$strip>;
|
|
1866
|
-
readonly response: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
1867
|
-
};
|
|
1868
|
-
readonly getPositionDistribution: {
|
|
1869
|
-
method: "GET";
|
|
1870
|
-
path: (siteId: string) => string;
|
|
1871
|
-
} & {
|
|
1872
|
-
readonly query: import("zod").ZodObject<{
|
|
1873
|
-
startDate: import("zod").ZodString;
|
|
1874
|
-
endDate: import("zod").ZodString;
|
|
1875
|
-
}, import("zod/v4/core").$strip>;
|
|
1876
|
-
readonly response: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
1877
|
-
};
|
|
1878
1982
|
readonly createTeam: {
|
|
1879
1983
|
method: "POST";
|
|
1880
1984
|
path: "/partner/teams";
|
|
@@ -1898,10 +2002,22 @@ declare const partnerEndpoints: {
|
|
|
1898
2002
|
readonly renameTeam: {
|
|
1899
2003
|
method: "PATCH";
|
|
1900
2004
|
path: (teamId: string) => string;
|
|
2005
|
+
} & {
|
|
2006
|
+
readonly body: import("zod").ZodObject<{
|
|
2007
|
+
name: import("zod").ZodString;
|
|
2008
|
+
}, import("zod/v4/core").$strip>;
|
|
2009
|
+
readonly response: import("zod").ZodObject<{
|
|
2010
|
+
ok: import("zod").ZodLiteral<true>;
|
|
2011
|
+
name: import("zod").ZodString;
|
|
2012
|
+
}, import("zod/v4/core").$loose>;
|
|
1901
2013
|
};
|
|
1902
2014
|
readonly deleteTeam: {
|
|
1903
2015
|
method: "DELETE";
|
|
1904
2016
|
path: (teamId: string) => string;
|
|
2017
|
+
} & {
|
|
2018
|
+
readonly response: import("zod").ZodObject<{
|
|
2019
|
+
ok: import("zod").ZodLiteral<true>;
|
|
2020
|
+
}, import("zod/v4/core").$loose>;
|
|
1905
2021
|
};
|
|
1906
2022
|
readonly listTeamMembers: {
|
|
1907
2023
|
method: "GET";
|
|
@@ -1935,15 +2051,43 @@ declare const partnerEndpoints: {
|
|
|
1935
2051
|
viewer: "viewer";
|
|
1936
2052
|
}>;
|
|
1937
2053
|
}, import("zod/v4/core").$strip>;
|
|
1938
|
-
readonly response: import("zod").
|
|
2054
|
+
readonly response: import("zod").ZodObject<{
|
|
2055
|
+
ok: import("zod").ZodLiteral<true>;
|
|
2056
|
+
role: import("zod").ZodEnum<{
|
|
2057
|
+
admin: "admin";
|
|
2058
|
+
editor: "editor";
|
|
2059
|
+
viewer: "viewer";
|
|
2060
|
+
}>;
|
|
2061
|
+
alreadyExisted: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
2062
|
+
}, import("zod/v4/core").$loose>;
|
|
1939
2063
|
};
|
|
1940
2064
|
readonly updateTeamMemberRole: {
|
|
1941
2065
|
method: "PATCH";
|
|
1942
2066
|
path: (teamId: string, userId: string) => string;
|
|
2067
|
+
} & {
|
|
2068
|
+
readonly body: import("zod").ZodObject<{
|
|
2069
|
+
role: import("zod").ZodEnum<{
|
|
2070
|
+
admin: "admin";
|
|
2071
|
+
editor: "editor";
|
|
2072
|
+
viewer: "viewer";
|
|
2073
|
+
}>;
|
|
2074
|
+
}, import("zod/v4/core").$strip>;
|
|
2075
|
+
readonly response: import("zod").ZodObject<{
|
|
2076
|
+
ok: import("zod").ZodLiteral<true>;
|
|
2077
|
+
role: import("zod").ZodEnum<{
|
|
2078
|
+
admin: "admin";
|
|
2079
|
+
editor: "editor";
|
|
2080
|
+
viewer: "viewer";
|
|
2081
|
+
}>;
|
|
2082
|
+
}, import("zod/v4/core").$loose>;
|
|
1943
2083
|
};
|
|
1944
2084
|
readonly removeTeamMember: {
|
|
1945
2085
|
method: "DELETE";
|
|
1946
2086
|
path: (teamId: string, userId: string) => string;
|
|
2087
|
+
} & {
|
|
2088
|
+
readonly response: import("zod").ZodObject<{
|
|
2089
|
+
ok: import("zod").ZodLiteral<true>;
|
|
2090
|
+
}, import("zod/v4/core").$loose>;
|
|
1947
2091
|
};
|
|
1948
2092
|
readonly bindSiteToTeam: {
|
|
1949
2093
|
method: "PATCH";
|
|
@@ -1957,5 +2101,40 @@ declare const partnerEndpoints: {
|
|
|
1957
2101
|
teamId: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1958
2102
|
}, import("zod/v4/core").$loose>;
|
|
1959
2103
|
};
|
|
2104
|
+
readonly getTeamCatalog: {
|
|
2105
|
+
method: "GET";
|
|
2106
|
+
path: (teamId: string) => string;
|
|
2107
|
+
} & {
|
|
2108
|
+
readonly response: import("zod").ZodObject<{
|
|
2109
|
+
teamId: import("zod").ZodString;
|
|
2110
|
+
catalogUri: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2111
|
+
warehouse: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2112
|
+
bucket: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2113
|
+
namespace: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2114
|
+
provisioningState: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2115
|
+
keyEncoding: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2116
|
+
catalogTablesReady: import("zod").ZodBoolean;
|
|
2117
|
+
readsEnabled: import("zod").ZodBoolean;
|
|
2118
|
+
}, import("zod/v4/core").$loose>;
|
|
2119
|
+
};
|
|
2120
|
+
readonly bindTeamCatalog: {
|
|
2121
|
+
method: "POST";
|
|
2122
|
+
path: (teamId: string) => string;
|
|
2123
|
+
} & {
|
|
2124
|
+
readonly body: import("zod").ZodObject<{
|
|
2125
|
+
catalogUri: import("zod").ZodString;
|
|
2126
|
+
warehouse: import("zod").ZodString;
|
|
2127
|
+
namespace: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2128
|
+
bucket: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2129
|
+
}, import("zod/v4/core").$strip>;
|
|
2130
|
+
readonly response: import("zod").ZodObject<{
|
|
2131
|
+
teamId: import("zod").ZodString;
|
|
2132
|
+
status: import("zod").ZodLiteral<"ready">;
|
|
2133
|
+
catalogUri: import("zod").ZodString;
|
|
2134
|
+
warehouse: import("zod").ZodString;
|
|
2135
|
+
bucket: import("zod").ZodString;
|
|
2136
|
+
namespace: import("zod").ZodString;
|
|
2137
|
+
}, import("zod/v4/core").$loose>;
|
|
2138
|
+
};
|
|
1960
2139
|
};
|
|
1961
2140
|
export { analyticsEndpoints, partnerEndpoints };
|
|
@@ -11,10 +11,11 @@ const noSchema = {};
|
|
|
11
11
|
const analyticsEndpoints = {
|
|
12
12
|
whoami: defineEndpoint("GET", analyticsRoutes.whoami, analyticsEndpointSchemas.analyticsWhoami),
|
|
13
13
|
listSites: defineEndpoint("GET", analyticsRoutes.sites, analyticsEndpointSchemas.analyticsSites),
|
|
14
|
+
getBulkSources: defineEndpoint("GET", analyticsRoutes.bulkSources, analyticsEndpointSchemas.analyticsBulkSources),
|
|
14
15
|
getSourceInfo: defineEndpoint("GET", analyticsRoutes.site.sourceInfo, analyticsEndpointSchemas.analyticsSourceInfo),
|
|
15
16
|
getAnalysisSources: defineEndpoint("GET", analyticsRoutes.site.analysisSources, analyticsEndpointSchemas.analyticsAnalysisSources),
|
|
17
|
+
getQueryDimSource: defineEndpoint("GET", analyticsRoutes.site.queryDimSource, analyticsEndpointSchemas.analyticsQueryDimSource),
|
|
16
18
|
analyze: defineEndpoint("POST", analyticsRoutes.site.analyze, noSchema),
|
|
17
|
-
queryRows: defineEndpoint("POST", analyticsRoutes.site.rows, analyticsEndpointSchemas.analyticsRows),
|
|
18
19
|
getRollup: defineEndpoint("GET", analyticsRoutes.site.rollup, analyticsEndpointSchemas.analyticsRollup),
|
|
19
20
|
requestBackfill: defineEndpoint("POST", analyticsRoutes.site.backfill, analyticsEndpointSchemas.analyticsBackfill),
|
|
20
21
|
getSitemaps: defineEndpoint("GET", analyticsRoutes.site.sitemaps, analyticsEndpointSchemas.analyticsSitemaps),
|
|
@@ -33,25 +34,27 @@ const partnerEndpoints = {
|
|
|
33
34
|
updateUserTokens: defineEndpoint("PATCH", partnerRoutes.users.tokens, partnerControlEndpointSchemas.updateUserTokens),
|
|
34
35
|
getUserStatus: defineEndpoint("GET", partnerRoutes.users.status, partnerControlEndpointSchemas.getUserStatus),
|
|
35
36
|
getUserLifecycle: defineEndpoint("GET", partnerRoutes.partner.users.lifecycle, partnerControlEndpointSchemas.getUserLifecycle),
|
|
37
|
+
getUserSiteIntIdCrosswalk: defineEndpoint("GET", partnerRoutes.partner.users.siteIntIdCrosswalk, partnerControlEndpointSchemas.getUserSiteIntIdCrosswalk),
|
|
36
38
|
getSyncStatus: defineEndpoint("GET", partnerRoutes.sites.syncStatus, noSchema),
|
|
37
39
|
getUserSites: defineEndpoint("GET", partnerRoutes.users.sites, partnerControlEndpointSchemas.getUserSites),
|
|
38
40
|
getAvailableSites: defineEndpoint("GET", partnerRoutes.users.availableSites, partnerControlEndpointSchemas.getAvailableSites),
|
|
39
41
|
registerSite: defineEndpoint("POST", partnerRoutes.partner.sites.register, partnerControlEndpointSchemas.registerSite),
|
|
40
42
|
bulkRegisterSites: defineEndpoint("POST", partnerRoutes.partner.sites.bulkRegister, partnerControlEndpointSchemas.bulkRegisterSites),
|
|
43
|
+
requestSiteVerificationToken: defineEndpoint("POST", partnerRoutes.partner.sites.verificationToken, partnerControlEndpointSchemas.requestSiteVerificationToken),
|
|
44
|
+
addAndVerifySite: defineEndpoint("POST", partnerRoutes.partner.sites.addAndVerify, partnerControlEndpointSchemas.addAndVerifySite),
|
|
41
45
|
deleteUser: defineEndpoint("DELETE", partnerRoutes.partner.users.byId, partnerControlEndpointSchemas.deleteUser),
|
|
42
46
|
deleteSite: defineEndpoint("DELETE", partnerRoutes.sites.byId, noSchema),
|
|
43
47
|
getAnalysisSources: defineEndpoint("GET", partnerRoutes.sites.analysisSources, partnerControlEndpointSchemas.getAnalysisSources),
|
|
44
48
|
getData: defineEndpoint("GET", partnerRoutes.sites.data, partnerControlEndpointSchemas.getData),
|
|
45
49
|
getDataDetail: defineEndpoint("GET", partnerRoutes.sites.dataDetail, partnerControlEndpointSchemas.getDataDetail),
|
|
46
|
-
getAnalysis: defineEndpoint("GET", partnerRoutes.sites.analysis, partnerControlEndpointSchemas.getAnalysis),
|
|
47
50
|
getSitemaps: defineEndpoint("GET", partnerRoutes.sites.sitemaps, partnerControlEndpointSchemas.getSitemaps),
|
|
48
51
|
getSitemapChanges: defineEndpoint("GET", partnerRoutes.sites.sitemapChanges, partnerControlEndpointSchemas.getSitemapChanges),
|
|
49
|
-
|
|
50
|
-
|
|
52
|
+
postSitemaps: defineEndpoint("POST", partnerRoutes.sites.sitemaps, partnerControlEndpointSchemas.postSitemaps),
|
|
53
|
+
getSitemapMembership: defineEndpoint("POST", partnerRoutes.sites.sitemapMembership, partnerControlEndpointSchemas.getSitemapMembership),
|
|
51
54
|
getIndexing: defineEndpoint("GET", partnerRoutes.sites.indexing, partnerControlEndpointSchemas.getIndexing),
|
|
52
55
|
getIndexingUrls: defineEndpoint("GET", partnerRoutes.sites.indexingUrls, partnerControlEndpointSchemas.getIndexingUrls),
|
|
53
56
|
getIndexingDiagnostics: defineEndpoint("GET", partnerRoutes.sites.indexingDiagnostics, partnerControlEndpointSchemas.getIndexingDiagnostics),
|
|
54
|
-
requestIndexingInspect: defineEndpoint("POST", partnerRoutes.sites.indexingInspect, partnerControlEndpointSchemas.
|
|
57
|
+
requestIndexingInspect: defineEndpoint("POST", partnerRoutes.sites.indexingInspect, partnerControlEndpointSchemas.requestIndexingInspect),
|
|
55
58
|
getUserSettings: defineEndpoint("GET", partnerRoutes.settings.user, partnerControlEndpointSchemas.getUserSettings),
|
|
56
59
|
patchUserSettings: defineEndpoint("PATCH", partnerRoutes.settings.user, partnerControlEndpointSchemas.patchUserSettings),
|
|
57
60
|
recoverPermission: defineEndpoint("POST", partnerRoutes.sites.recoverPermission, partnerControlEndpointSchemas.recoverPermission),
|
|
@@ -60,20 +63,16 @@ const partnerEndpoints = {
|
|
|
60
63
|
getQueryTrend: defineEndpoint("GET", partnerRoutes.sites.queryTrend, partnerControlEndpointSchemas.getQueryTrend),
|
|
61
64
|
getPageTrend: defineEndpoint("GET", partnerRoutes.sites.pageTrend, partnerControlEndpointSchemas.getPageTrend),
|
|
62
65
|
getCanonicalMismatches: defineEndpoint("GET", partnerRoutes.sites.canonicalMismatches, partnerControlEndpointSchemas.getCanonicalMismatches),
|
|
63
|
-
getContentVelocity: defineEndpoint("GET", partnerRoutes.sites.contentVelocity, noSchema),
|
|
64
|
-
getCtrCurve: defineEndpoint("GET", partnerRoutes.sites.ctrCurve, partnerControlEndpointSchemas.getDateRangeInsight),
|
|
65
|
-
getDarkTraffic: defineEndpoint("GET", partnerRoutes.sites.darkTraffic, partnerControlEndpointSchemas.getDateRangeInsight),
|
|
66
|
-
getDeviceGap: defineEndpoint("GET", partnerRoutes.sites.deviceGap, partnerControlEndpointSchemas.getDateRangeInsight),
|
|
67
66
|
getIndexPercent: defineEndpoint("GET", partnerRoutes.sites.indexPercent, partnerControlEndpointSchemas.getIndexPercent),
|
|
68
|
-
getKeywordBreadth: defineEndpoint("GET", partnerRoutes.sites.keywordBreadth, partnerControlEndpointSchemas.getDateRangeInsight),
|
|
69
|
-
getPositionDistribution: defineEndpoint("GET", partnerRoutes.sites.positionDistribution, partnerControlEndpointSchemas.getDateRangeInsight),
|
|
70
67
|
createTeam: defineEndpoint("POST", partnerRoutes.teams.create, partnerControlEndpointSchemas.createTeam),
|
|
71
|
-
renameTeam: defineEndpoint("PATCH", partnerRoutes.teams.byId,
|
|
72
|
-
deleteTeam: defineEndpoint("DELETE", partnerRoutes.teams.byId,
|
|
68
|
+
renameTeam: defineEndpoint("PATCH", partnerRoutes.teams.byId, partnerControlEndpointSchemas.renameTeam),
|
|
69
|
+
deleteTeam: defineEndpoint("DELETE", partnerRoutes.teams.byId, partnerControlEndpointSchemas.deleteTeam),
|
|
73
70
|
listTeamMembers: defineEndpoint("GET", partnerRoutes.teams.members, partnerControlEndpointSchemas.listTeamMembers),
|
|
74
71
|
addTeamMember: defineEndpoint("POST", partnerRoutes.teams.members, partnerControlEndpointSchemas.addTeamMember),
|
|
75
|
-
updateTeamMemberRole: defineEndpoint("PATCH", partnerRoutes.teams.member,
|
|
76
|
-
removeTeamMember: defineEndpoint("DELETE", partnerRoutes.teams.member,
|
|
77
|
-
bindSiteToTeam: defineEndpoint("PATCH", partnerRoutes.partner.users.siteTeam, partnerControlEndpointSchemas.bindSiteToTeam)
|
|
72
|
+
updateTeamMemberRole: defineEndpoint("PATCH", partnerRoutes.teams.member, partnerControlEndpointSchemas.updateTeamMemberRole),
|
|
73
|
+
removeTeamMember: defineEndpoint("DELETE", partnerRoutes.teams.member, partnerControlEndpointSchemas.removeTeamMember),
|
|
74
|
+
bindSiteToTeam: defineEndpoint("PATCH", partnerRoutes.partner.users.siteTeam, partnerControlEndpointSchemas.bindSiteToTeam),
|
|
75
|
+
getTeamCatalog: defineEndpoint("GET", partnerRoutes.teams.catalog, partnerControlEndpointSchemas.getTeamCatalog),
|
|
76
|
+
bindTeamCatalog: defineEndpoint("POST", partnerRoutes.teams.catalog, partnerControlEndpointSchemas.bindTeamCatalog)
|
|
78
77
|
};
|
|
79
78
|
export { analyticsEndpoints, partnerEndpoints };
|