@gscdump/contracts 5.2.0 → 5.3.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/analytics.d.mts +2 -2
- package/dist/endpoints.d.mts +4 -4
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +2 -2
- package/dist/indexing-coverage.d.mts +18 -18
- package/dist/partner.d.mts +2 -2
- package/dist/schemas.d.mts +94 -16
- package/dist/schemas.mjs +27 -3
- package/dist/types.d.mts +24 -0
- package/dist/v1/browser.d.mts +1 -1
- package/dist/v1/operations.d.mts +107 -44
- package/dist/v1/operations.mjs +4 -3
- package/package.json +1 -1
package/dist/schemas.d.mts
CHANGED
|
@@ -365,9 +365,9 @@ export declare const indexingUrlsResponseSchema: z.ZodObject<{
|
|
|
365
365
|
}, z.core.$loose>;
|
|
366
366
|
export declare const GSCDUMP_INDEXING_TRANSITION_FIELDS: readonly ["indexStatus", "coverageState", "robotsTxtState", "indexingState", "pageFetchState", "googleCanonical"];
|
|
367
367
|
export declare const gscdumpIndexingTransitionFieldSchema: z.ZodEnum<{
|
|
368
|
+
coverageState: "coverageState";
|
|
368
369
|
indexStatus: "indexStatus";
|
|
369
370
|
googleCanonical: "googleCanonical";
|
|
370
|
-
coverageState: "coverageState";
|
|
371
371
|
robotsTxtState: "robotsTxtState";
|
|
372
372
|
indexingState: "indexingState";
|
|
373
373
|
pageFetchState: "pageFetchState";
|
|
@@ -1409,8 +1409,8 @@ export declare const bulkRegisterPartnerSitesResponseSchema: z.ZodObject<{
|
|
|
1409
1409
|
status: z.ZodEnum<{
|
|
1410
1410
|
error: "error";
|
|
1411
1411
|
registered: "registered";
|
|
1412
|
-
already_exists: "already_exists";
|
|
1413
1412
|
not_found: "not_found";
|
|
1413
|
+
already_exists: "already_exists";
|
|
1414
1414
|
}>;
|
|
1415
1415
|
error: z.ZodOptional<z.ZodString>;
|
|
1416
1416
|
site: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -1646,6 +1646,13 @@ export declare const gscdumpSitemapGenerationSchema: z.ZodObject<{
|
|
|
1646
1646
|
source: z.ZodLiteral<"gsc_sitemaps">;
|
|
1647
1647
|
}, z.core.$strict>], "_tag">;
|
|
1648
1648
|
}, z.core.$strict>;
|
|
1649
|
+
export declare const gscdumpSitemapFeedSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1650
|
+
_tag: z.ZodLiteral<"counted">;
|
|
1651
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1652
|
+
_tag: z.ZodLiteral<"dropped">;
|
|
1653
|
+
status: z.ZodUnion<readonly [z.ZodLiteral<404>, z.ZodLiteral<410>]>;
|
|
1654
|
+
since: z.ZodNumber;
|
|
1655
|
+
}, z.core.$strict>], "_tag">;
|
|
1649
1656
|
export declare const gscdumpSitemapsResponseSchema: z.ZodObject<{
|
|
1650
1657
|
sitemaps: z.ZodArray<z.ZodObject<{
|
|
1651
1658
|
path: z.ZodString;
|
|
@@ -1658,6 +1665,13 @@ export declare const gscdumpSitemapsResponseSchema: z.ZodObject<{
|
|
|
1658
1665
|
lastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1659
1666
|
isPending: z.ZodOptional<z.ZodBoolean>;
|
|
1660
1667
|
fetchedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1668
|
+
feed: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1669
|
+
_tag: z.ZodLiteral<"counted">;
|
|
1670
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1671
|
+
_tag: z.ZodLiteral<"dropped">;
|
|
1672
|
+
status: z.ZodUnion<readonly [z.ZodLiteral<404>, z.ZodLiteral<410>]>;
|
|
1673
|
+
since: z.ZodNumber;
|
|
1674
|
+
}, z.core.$strict>], "_tag">>;
|
|
1661
1675
|
}, z.core.$loose>>;
|
|
1662
1676
|
history: z.ZodArray<z.ZodObject<{
|
|
1663
1677
|
date: z.ZodString;
|
|
@@ -1805,19 +1819,19 @@ export declare const gscdumpIndexingResponseSchema: z.ZodObject<{
|
|
|
1805
1819
|
_tag: z.ZodLiteral<"counted">;
|
|
1806
1820
|
capturedAt: z.ZodString;
|
|
1807
1821
|
counts: z.ZodObject<{
|
|
1808
|
-
indexed: z.ZodDefault<z.ZodNumber>;
|
|
1809
|
-
not_found: z.ZodDefault<z.ZodNumber>;
|
|
1810
|
-
redirect: z.ZodDefault<z.ZodNumber>;
|
|
1811
1822
|
unknown_to_google: z.ZodDefault<z.ZodNumber>;
|
|
1812
1823
|
discovered_not_indexed: z.ZodDefault<z.ZodNumber>;
|
|
1813
1824
|
crawled_not_indexed: z.ZodDefault<z.ZodNumber>;
|
|
1825
|
+
indexed: z.ZodDefault<z.ZodNumber>;
|
|
1814
1826
|
noindex: z.ZodDefault<z.ZodNumber>;
|
|
1815
1827
|
blocked_robots: z.ZodDefault<z.ZodNumber>;
|
|
1816
1828
|
soft_404: z.ZodDefault<z.ZodNumber>;
|
|
1829
|
+
not_found: z.ZodDefault<z.ZodNumber>;
|
|
1817
1830
|
server_error: z.ZodDefault<z.ZodNumber>;
|
|
1818
1831
|
access_denied: z.ZodDefault<z.ZodNumber>;
|
|
1819
1832
|
access_forbidden: z.ZodDefault<z.ZodNumber>;
|
|
1820
1833
|
blocked_4xx: z.ZodDefault<z.ZodNumber>;
|
|
1834
|
+
redirect: z.ZodDefault<z.ZodNumber>;
|
|
1821
1835
|
redirect_error: z.ZodDefault<z.ZodNumber>;
|
|
1822
1836
|
alternate_canonical: z.ZodDefault<z.ZodNumber>;
|
|
1823
1837
|
duplicate_no_canonical: z.ZodDefault<z.ZodNumber>;
|
|
@@ -2124,8 +2138,8 @@ export declare const gscdumpSyncProgressResponseSchema: z.ZodObject<{
|
|
|
2124
2138
|
authFailureCount: z.ZodNumber;
|
|
2125
2139
|
currentPhase: z.ZodEnum<{
|
|
2126
2140
|
complete: "complete";
|
|
2127
|
-
backfill: "backfill";
|
|
2128
2141
|
initial: "initial";
|
|
2142
|
+
backfill: "backfill";
|
|
2129
2143
|
}>;
|
|
2130
2144
|
isStalled: z.ZodBoolean;
|
|
2131
2145
|
stallDays: z.ZodNumber;
|
|
@@ -2520,11 +2534,43 @@ export declare const gscdumpIndexPercentResponseSchema: z.ZodObject<{
|
|
|
2520
2534
|
newestDateSynced: z.ZodNullable<z.ZodString>;
|
|
2521
2535
|
}, z.core.$loose>;
|
|
2522
2536
|
}, z.core.$loose>;
|
|
2537
|
+
export declare const gscdumpSearchConsoleGrantOutcomeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2538
|
+
_tag: z.ZodLiteral<"revoked">;
|
|
2539
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2540
|
+
_tag: z.ZodLiteral<"already-invalid">;
|
|
2541
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2542
|
+
_tag: z.ZodLiteral<"not-revoked">;
|
|
2543
|
+
reason: z.ZodEnum<{
|
|
2544
|
+
"no-token": "no-token";
|
|
2545
|
+
"other-client": "other-client";
|
|
2546
|
+
"unknown-cloud-project": "unknown-cloud-project";
|
|
2547
|
+
"shared-cloud-project": "shared-cloud-project";
|
|
2548
|
+
}>;
|
|
2549
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2550
|
+
_tag: z.ZodLiteral<"revoke-failed">;
|
|
2551
|
+
reason: z.ZodString;
|
|
2552
|
+
}, z.core.$strict>], "_tag">;
|
|
2523
2553
|
export declare const gscdumpDeletePartnerUserResponseSchema: z.ZodObject<{
|
|
2524
2554
|
ok: z.ZodLiteral<true>;
|
|
2525
2555
|
queued: z.ZodLiteral<true>;
|
|
2526
2556
|
userId: z.ZodNumber;
|
|
2527
2557
|
publicId: z.ZodString;
|
|
2558
|
+
searchConsoleGrant: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2559
|
+
_tag: z.ZodLiteral<"revoked">;
|
|
2560
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2561
|
+
_tag: z.ZodLiteral<"already-invalid">;
|
|
2562
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2563
|
+
_tag: z.ZodLiteral<"not-revoked">;
|
|
2564
|
+
reason: z.ZodEnum<{
|
|
2565
|
+
"no-token": "no-token";
|
|
2566
|
+
"other-client": "other-client";
|
|
2567
|
+
"unknown-cloud-project": "unknown-cloud-project";
|
|
2568
|
+
"shared-cloud-project": "shared-cloud-project";
|
|
2569
|
+
}>;
|
|
2570
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2571
|
+
_tag: z.ZodLiteral<"revoke-failed">;
|
|
2572
|
+
reason: z.ZodString;
|
|
2573
|
+
}, z.core.$strict>], "_tag">>;
|
|
2528
2574
|
}, z.core.$loose>;
|
|
2529
2575
|
export declare const gscdumpTeamRoleSchema: z.ZodEnum<{
|
|
2530
2576
|
admin: "admin";
|
|
@@ -3619,8 +3665,8 @@ export declare const partnerControlEndpointSchemas: {
|
|
|
3619
3665
|
authFailureCount: z.ZodNumber;
|
|
3620
3666
|
currentPhase: z.ZodEnum<{
|
|
3621
3667
|
complete: "complete";
|
|
3622
|
-
backfill: "backfill";
|
|
3623
3668
|
initial: "initial";
|
|
3669
|
+
backfill: "backfill";
|
|
3624
3670
|
}>;
|
|
3625
3671
|
isStalled: z.ZodBoolean;
|
|
3626
3672
|
stallDays: z.ZodNumber;
|
|
@@ -4226,8 +4272,8 @@ export declare const partnerControlEndpointSchemas: {
|
|
|
4226
4272
|
status: z.ZodEnum<{
|
|
4227
4273
|
error: "error";
|
|
4228
4274
|
registered: "registered";
|
|
4229
|
-
already_exists: "already_exists";
|
|
4230
4275
|
not_found: "not_found";
|
|
4276
|
+
already_exists: "already_exists";
|
|
4231
4277
|
}>;
|
|
4232
4278
|
error: z.ZodOptional<z.ZodString>;
|
|
4233
4279
|
site: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -4254,6 +4300,22 @@ export declare const partnerControlEndpointSchemas: {
|
|
|
4254
4300
|
queued: z.ZodLiteral<true>;
|
|
4255
4301
|
userId: z.ZodNumber;
|
|
4256
4302
|
publicId: z.ZodString;
|
|
4303
|
+
searchConsoleGrant: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4304
|
+
_tag: z.ZodLiteral<"revoked">;
|
|
4305
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4306
|
+
_tag: z.ZodLiteral<"already-invalid">;
|
|
4307
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4308
|
+
_tag: z.ZodLiteral<"not-revoked">;
|
|
4309
|
+
reason: z.ZodEnum<{
|
|
4310
|
+
"no-token": "no-token";
|
|
4311
|
+
"other-client": "other-client";
|
|
4312
|
+
"unknown-cloud-project": "unknown-cloud-project";
|
|
4313
|
+
"shared-cloud-project": "shared-cloud-project";
|
|
4314
|
+
}>;
|
|
4315
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4316
|
+
_tag: z.ZodLiteral<"revoke-failed">;
|
|
4317
|
+
reason: z.ZodString;
|
|
4318
|
+
}, z.core.$strict>], "_tag">>;
|
|
4257
4319
|
}, z.core.$loose>;
|
|
4258
4320
|
};
|
|
4259
4321
|
readonly getAnalysisSources: {
|
|
@@ -4491,19 +4553,19 @@ export declare const partnerControlEndpointSchemas: {
|
|
|
4491
4553
|
_tag: z.ZodLiteral<"counted">;
|
|
4492
4554
|
capturedAt: z.ZodString;
|
|
4493
4555
|
counts: z.ZodObject<{
|
|
4494
|
-
indexed: z.ZodDefault<z.ZodNumber>;
|
|
4495
|
-
not_found: z.ZodDefault<z.ZodNumber>;
|
|
4496
|
-
redirect: z.ZodDefault<z.ZodNumber>;
|
|
4497
4556
|
unknown_to_google: z.ZodDefault<z.ZodNumber>;
|
|
4498
4557
|
discovered_not_indexed: z.ZodDefault<z.ZodNumber>;
|
|
4499
4558
|
crawled_not_indexed: z.ZodDefault<z.ZodNumber>;
|
|
4559
|
+
indexed: z.ZodDefault<z.ZodNumber>;
|
|
4500
4560
|
noindex: z.ZodDefault<z.ZodNumber>;
|
|
4501
4561
|
blocked_robots: z.ZodDefault<z.ZodNumber>;
|
|
4502
4562
|
soft_404: z.ZodDefault<z.ZodNumber>;
|
|
4563
|
+
not_found: z.ZodDefault<z.ZodNumber>;
|
|
4503
4564
|
server_error: z.ZodDefault<z.ZodNumber>;
|
|
4504
4565
|
access_denied: z.ZodDefault<z.ZodNumber>;
|
|
4505
4566
|
access_forbidden: z.ZodDefault<z.ZodNumber>;
|
|
4506
4567
|
blocked_4xx: z.ZodDefault<z.ZodNumber>;
|
|
4568
|
+
redirect: z.ZodDefault<z.ZodNumber>;
|
|
4507
4569
|
redirect_error: z.ZodDefault<z.ZodNumber>;
|
|
4508
4570
|
alternate_canonical: z.ZodDefault<z.ZodNumber>;
|
|
4509
4571
|
duplicate_no_canonical: z.ZodDefault<z.ZodNumber>;
|
|
@@ -5424,8 +5486,8 @@ export declare const partnerEndpointSchemas: {
|
|
|
5424
5486
|
authFailureCount: z.ZodNumber;
|
|
5425
5487
|
currentPhase: z.ZodEnum<{
|
|
5426
5488
|
complete: "complete";
|
|
5427
|
-
backfill: "backfill";
|
|
5428
5489
|
initial: "initial";
|
|
5490
|
+
backfill: "backfill";
|
|
5429
5491
|
}>;
|
|
5430
5492
|
isStalled: z.ZodBoolean;
|
|
5431
5493
|
stallDays: z.ZodNumber;
|
|
@@ -6031,8 +6093,8 @@ export declare const partnerEndpointSchemas: {
|
|
|
6031
6093
|
status: z.ZodEnum<{
|
|
6032
6094
|
error: "error";
|
|
6033
6095
|
registered: "registered";
|
|
6034
|
-
already_exists: "already_exists";
|
|
6035
6096
|
not_found: "not_found";
|
|
6097
|
+
already_exists: "already_exists";
|
|
6036
6098
|
}>;
|
|
6037
6099
|
error: z.ZodOptional<z.ZodString>;
|
|
6038
6100
|
site: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -6059,6 +6121,22 @@ export declare const partnerEndpointSchemas: {
|
|
|
6059
6121
|
queued: z.ZodLiteral<true>;
|
|
6060
6122
|
userId: z.ZodNumber;
|
|
6061
6123
|
publicId: z.ZodString;
|
|
6124
|
+
searchConsoleGrant: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6125
|
+
_tag: z.ZodLiteral<"revoked">;
|
|
6126
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
6127
|
+
_tag: z.ZodLiteral<"already-invalid">;
|
|
6128
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
6129
|
+
_tag: z.ZodLiteral<"not-revoked">;
|
|
6130
|
+
reason: z.ZodEnum<{
|
|
6131
|
+
"no-token": "no-token";
|
|
6132
|
+
"other-client": "other-client";
|
|
6133
|
+
"unknown-cloud-project": "unknown-cloud-project";
|
|
6134
|
+
"shared-cloud-project": "shared-cloud-project";
|
|
6135
|
+
}>;
|
|
6136
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
6137
|
+
_tag: z.ZodLiteral<"revoke-failed">;
|
|
6138
|
+
reason: z.ZodString;
|
|
6139
|
+
}, z.core.$strict>], "_tag">>;
|
|
6062
6140
|
}, z.core.$loose>;
|
|
6063
6141
|
};
|
|
6064
6142
|
readonly getAnalysisSources: {
|
|
@@ -6296,19 +6374,19 @@ export declare const partnerEndpointSchemas: {
|
|
|
6296
6374
|
_tag: z.ZodLiteral<"counted">;
|
|
6297
6375
|
capturedAt: z.ZodString;
|
|
6298
6376
|
counts: z.ZodObject<{
|
|
6299
|
-
indexed: z.ZodDefault<z.ZodNumber>;
|
|
6300
|
-
not_found: z.ZodDefault<z.ZodNumber>;
|
|
6301
|
-
redirect: z.ZodDefault<z.ZodNumber>;
|
|
6302
6377
|
unknown_to_google: z.ZodDefault<z.ZodNumber>;
|
|
6303
6378
|
discovered_not_indexed: z.ZodDefault<z.ZodNumber>;
|
|
6304
6379
|
crawled_not_indexed: z.ZodDefault<z.ZodNumber>;
|
|
6380
|
+
indexed: z.ZodDefault<z.ZodNumber>;
|
|
6305
6381
|
noindex: z.ZodDefault<z.ZodNumber>;
|
|
6306
6382
|
blocked_robots: z.ZodDefault<z.ZodNumber>;
|
|
6307
6383
|
soft_404: z.ZodDefault<z.ZodNumber>;
|
|
6384
|
+
not_found: z.ZodDefault<z.ZodNumber>;
|
|
6308
6385
|
server_error: z.ZodDefault<z.ZodNumber>;
|
|
6309
6386
|
access_denied: z.ZodDefault<z.ZodNumber>;
|
|
6310
6387
|
access_forbidden: z.ZodDefault<z.ZodNumber>;
|
|
6311
6388
|
blocked_4xx: z.ZodDefault<z.ZodNumber>;
|
|
6389
|
+
redirect: z.ZodDefault<z.ZodNumber>;
|
|
6312
6390
|
redirect_error: z.ZodDefault<z.ZodNumber>;
|
|
6313
6391
|
alternate_canonical: z.ZodDefault<z.ZodNumber>;
|
|
6314
6392
|
duplicate_no_canonical: z.ZodDefault<z.ZodNumber>;
|
package/dist/schemas.mjs
CHANGED
|
@@ -711,6 +711,11 @@ const gscdumpSitemapGenerationSchema = z.object({
|
|
|
711
711
|
source: z.literal("gsc_sitemaps")
|
|
712
712
|
}).strict()])
|
|
713
713
|
}).strict();
|
|
714
|
+
const gscdumpSitemapFeedSchema = z.discriminatedUnion("_tag", [z.object({ _tag: z.literal("counted") }).strict(), z.object({
|
|
715
|
+
_tag: z.literal("dropped"),
|
|
716
|
+
status: z.union([z.literal(404), z.literal(410)]),
|
|
717
|
+
since: z.number().int().nonnegative()
|
|
718
|
+
}).strict()]);
|
|
714
719
|
const gscdumpSitemapsResponseSchema = z.object({
|
|
715
720
|
sitemaps: z.array(z.object({
|
|
716
721
|
path: z.string(),
|
|
@@ -722,7 +727,8 @@ const gscdumpSitemapsResponseSchema = z.object({
|
|
|
722
727
|
lastDownloaded: z.string().nullable().optional(),
|
|
723
728
|
lastError: z.string().nullable().optional(),
|
|
724
729
|
isPending: z.boolean().optional(),
|
|
725
|
-
fetchedAt: z.number().nullable().optional()
|
|
730
|
+
fetchedAt: z.number().nullable().optional(),
|
|
731
|
+
feed: gscdumpSitemapFeedSchema.optional()
|
|
726
732
|
}).loose()),
|
|
727
733
|
history: z.array(z.object({
|
|
728
734
|
date: z.string(),
|
|
@@ -1230,11 +1236,29 @@ const gscdumpIndexPercentResponseSchema = z.object({
|
|
|
1230
1236
|
newestDateSynced: z.string().nullable()
|
|
1231
1237
|
}).loose()
|
|
1232
1238
|
}).loose();
|
|
1239
|
+
const gscdumpSearchConsoleGrantOutcomeSchema = z.discriminatedUnion("_tag", [
|
|
1240
|
+
z.object({ _tag: z.literal("revoked") }).strict(),
|
|
1241
|
+
z.object({ _tag: z.literal("already-invalid") }).strict(),
|
|
1242
|
+
z.object({
|
|
1243
|
+
_tag: z.literal("not-revoked"),
|
|
1244
|
+
reason: z.enum([
|
|
1245
|
+
"no-token",
|
|
1246
|
+
"other-client",
|
|
1247
|
+
"unknown-cloud-project",
|
|
1248
|
+
"shared-cloud-project"
|
|
1249
|
+
])
|
|
1250
|
+
}).strict(),
|
|
1251
|
+
z.object({
|
|
1252
|
+
_tag: z.literal("revoke-failed"),
|
|
1253
|
+
reason: z.string().min(1)
|
|
1254
|
+
}).strict()
|
|
1255
|
+
]);
|
|
1233
1256
|
const gscdumpDeletePartnerUserResponseSchema = z.object({
|
|
1234
1257
|
ok: z.literal(true),
|
|
1235
1258
|
queued: z.literal(true),
|
|
1236
1259
|
userId: z.number(),
|
|
1237
|
-
publicId: z.string()
|
|
1260
|
+
publicId: z.string(),
|
|
1261
|
+
searchConsoleGrant: gscdumpSearchConsoleGrantOutcomeSchema.optional()
|
|
1238
1262
|
}).loose();
|
|
1239
1263
|
const gscdumpTeamRoleSchema = z.enum([
|
|
1240
1264
|
"admin",
|
|
@@ -1738,4 +1762,4 @@ const partnerEndpointSchemas = {
|
|
|
1738
1762
|
...analyticsEndpointSchemas,
|
|
1739
1763
|
...partnerControlEndpointSchemas
|
|
1740
1764
|
};
|
|
1741
|
-
export { GSCDUMP_INDEXING_TRANSITION_FIELDS, SEARCH_TYPE_CAPABILITIES, addPartnerTeamMemberSchema, analyticsEndpointSchemas, backfillRangeSchema, backfillResponseSchema, bindPartnerSiteTeamSchema, bindPartnerTeamCatalogResponseSchema, bindPartnerTeamCatalogSchema, builderStateSchema, bulkFileResolutionResponseSchema, bulkRegisterPartnerSitesResponseSchema, bulkRegisterPartnerSitesSchema, canonicalDifferenceKindSchema, canonicalWebhookEventTypeSchema, countriesResponseSchema, countryRowSchema, createPartnerTeamSchema, dataDetailOptionsSchema, dataQueryOptionsSchema, gscAddAndVerifyResponseSchema, gscApiRangeSchema, gscComparisonFilterSchema, gscRowQueryMetaSchema, gscRowQueryResponseSchema, gscVerificationDnsRecordSchema, gscVerificationMethodSchema, gscVerificationRequestSchema, gscVerificationSiteSchema, gscVerificationTokenResponseSchema, gscdumpAnalysisBaseParamsSchema, gscdumpAnalysisBundleResponseSchema, gscdumpAnalysisMetaSchema, gscdumpAnalysisParamsSchema, gscdumpAnalysisPresetSchema, gscdumpAnalysisResponseSchema, gscdumpAnalysisSourcesResponseSchema, gscdumpAvailableSiteSchema, gscdumpCanonicalMismatchesResponseSchema, gscdumpDataDetailResponseSchema, gscdumpDataResponseSchema, gscdumpDataRowSchema, gscdumpDeletePartnerUserResponseSchema, gscdumpHealthResponseSchema, gscdumpIndexPercentParamsSchema, gscdumpIndexPercentResponseSchema, gscdumpIndexingDiagnosticsResponseSchema, gscdumpIndexingResponseSchema, gscdumpIndexingTransitionFieldSchema, gscdumpIndexingUrlsResponseSchema, gscdumpKeywordSparklinesParamsSchema, gscdumpKeywordSparklinesResponseSchema, gscdumpMetaSchema, gscdumpPageTrendParamsSchema, gscdumpPageTrendResponseSchema, gscdumpPermissionRecoverySchema, gscdumpQueryTrendParamsSchema, gscdumpQueryTrendResponseSchema, gscdumpSiteRegistrationSchema, gscdumpSiteReportResponseSchema, gscdumpSitemapChangesResponseSchema, gscdumpSitemapExportQuerySchema, gscdumpSitemapExportResponseSchema, gscdumpSitemapGenerationSchema, gscdumpSitemapMembershipEvidenceSchema, gscdumpSitemapMembershipParamsSchema, gscdumpSitemapMembershipResponseSchema, gscdumpSitemapUrlsQuerySchema, gscdumpSitemapUrlsResponseSchema, gscdumpSitemapsResponseSchema, gscdumpSyncJobsResponseSchema, gscdumpSyncProgressResponseSchema, gscdumpTeamMemberRowSchema, gscdumpTeamRoleSchema, gscdumpTeamRowSchema, gscdumpTopAssociationParamsSchema, gscdumpTopAssociationResponseSchema, gscdumpTotalsSchema, gscdumpUserMeResponseSchema, gscdumpUserRegistrationSchema, gscdumpUserSettingsSchema, gscdumpUserSiteSchema, gscdumpUserStatusSchema, indexingDiagnosticsParamsSchema, indexingDiagnosticsSchema, indexingInspectAnyResponseSchema, indexingInspectRateLimitedSchema, indexingInspectRequestSchema, indexingInspectResponseSchema, indexingInspectResultSchema, indexingIssueSchema, indexingUrlRowSchema, indexingUrlsParamsSchema, indexingUrlsResponseSchema, inspectionHistoryRecordSchema, inspectionHistoryResponseSchema, inspectionIndexSchema, inspectionRecordRawSchema, lifecycleErrorSchema, lifecycleProgressSchema, partnerControlEndpointSchemas, partnerEndpointSchemas, partnerLifecycleAccountSchema, partnerLifecycleResponseSchema, partnerLifecycleSiteSchema, partnerRealtimeEventSchema, partnerSiteTeamBindingResponseSchema, partnerSitemapActionResponseSchema, partnerSitemapActionSchema, partnerTeamCreatedResponseSchema, partnerTeamDeletedResponseSchema, partnerTeamMemberAddedResponseSchema, partnerTeamMemberRemovedResponseSchema, partnerTeamMemberRoleResponseSchema, partnerTeamMembersResponseSchema, partnerTeamRenamedResponseSchema, partnerWebhookDataSchema, partnerWebhookEnvelopeSchema, queryDimSourceResponseSchema, registerPartnerSiteSchema, registerPartnerUserSchema, renamePartnerTeamSchema, rollupEnvelopeSchema, scheduleStateSchema, searchAppearanceResponseSchema, searchAppearanceRowSchema, searchTypeSchema, searchTypeSupportsDimensions, searchTypeSupportsQueries, siteIntIdCrosswalkResponseSchema, siteListItemSchema, sitemapChangesCompletenessSchema, sitemapChangesResponseSchema, sitemapChangesTruncationReasonSchema, sourceInfoResponseSchema, teamCatalogRefSchema, updatePartnerUserTokensSchema, whoamiResponseSchema };
|
|
1765
|
+
export { GSCDUMP_INDEXING_TRANSITION_FIELDS, SEARCH_TYPE_CAPABILITIES, addPartnerTeamMemberSchema, analyticsEndpointSchemas, backfillRangeSchema, backfillResponseSchema, bindPartnerSiteTeamSchema, bindPartnerTeamCatalogResponseSchema, bindPartnerTeamCatalogSchema, builderStateSchema, bulkFileResolutionResponseSchema, bulkRegisterPartnerSitesResponseSchema, bulkRegisterPartnerSitesSchema, canonicalDifferenceKindSchema, canonicalWebhookEventTypeSchema, countriesResponseSchema, countryRowSchema, createPartnerTeamSchema, dataDetailOptionsSchema, dataQueryOptionsSchema, gscAddAndVerifyResponseSchema, gscApiRangeSchema, gscComparisonFilterSchema, gscRowQueryMetaSchema, gscRowQueryResponseSchema, gscVerificationDnsRecordSchema, gscVerificationMethodSchema, gscVerificationRequestSchema, gscVerificationSiteSchema, gscVerificationTokenResponseSchema, gscdumpAnalysisBaseParamsSchema, gscdumpAnalysisBundleResponseSchema, gscdumpAnalysisMetaSchema, gscdumpAnalysisParamsSchema, gscdumpAnalysisPresetSchema, gscdumpAnalysisResponseSchema, gscdumpAnalysisSourcesResponseSchema, gscdumpAvailableSiteSchema, gscdumpCanonicalMismatchesResponseSchema, gscdumpDataDetailResponseSchema, gscdumpDataResponseSchema, gscdumpDataRowSchema, gscdumpDeletePartnerUserResponseSchema, gscdumpHealthResponseSchema, gscdumpIndexPercentParamsSchema, gscdumpIndexPercentResponseSchema, gscdumpIndexingDiagnosticsResponseSchema, gscdumpIndexingResponseSchema, gscdumpIndexingTransitionFieldSchema, gscdumpIndexingUrlsResponseSchema, gscdumpKeywordSparklinesParamsSchema, gscdumpKeywordSparklinesResponseSchema, gscdumpMetaSchema, gscdumpPageTrendParamsSchema, gscdumpPageTrendResponseSchema, gscdumpPermissionRecoverySchema, gscdumpQueryTrendParamsSchema, gscdumpQueryTrendResponseSchema, gscdumpSearchConsoleGrantOutcomeSchema, gscdumpSiteRegistrationSchema, gscdumpSiteReportResponseSchema, gscdumpSitemapChangesResponseSchema, gscdumpSitemapExportQuerySchema, gscdumpSitemapExportResponseSchema, gscdumpSitemapFeedSchema, gscdumpSitemapGenerationSchema, gscdumpSitemapMembershipEvidenceSchema, gscdumpSitemapMembershipParamsSchema, gscdumpSitemapMembershipResponseSchema, gscdumpSitemapUrlsQuerySchema, gscdumpSitemapUrlsResponseSchema, gscdumpSitemapsResponseSchema, gscdumpSyncJobsResponseSchema, gscdumpSyncProgressResponseSchema, gscdumpTeamMemberRowSchema, gscdumpTeamRoleSchema, gscdumpTeamRowSchema, gscdumpTopAssociationParamsSchema, gscdumpTopAssociationResponseSchema, gscdumpTotalsSchema, gscdumpUserMeResponseSchema, gscdumpUserRegistrationSchema, gscdumpUserSettingsSchema, gscdumpUserSiteSchema, gscdumpUserStatusSchema, indexingDiagnosticsParamsSchema, indexingDiagnosticsSchema, indexingInspectAnyResponseSchema, indexingInspectRateLimitedSchema, indexingInspectRequestSchema, indexingInspectResponseSchema, indexingInspectResultSchema, indexingIssueSchema, indexingUrlRowSchema, indexingUrlsParamsSchema, indexingUrlsResponseSchema, inspectionHistoryRecordSchema, inspectionHistoryResponseSchema, inspectionIndexSchema, inspectionRecordRawSchema, lifecycleErrorSchema, lifecycleProgressSchema, partnerControlEndpointSchemas, partnerEndpointSchemas, partnerLifecycleAccountSchema, partnerLifecycleResponseSchema, partnerLifecycleSiteSchema, partnerRealtimeEventSchema, partnerSiteTeamBindingResponseSchema, partnerSitemapActionResponseSchema, partnerSitemapActionSchema, partnerTeamCreatedResponseSchema, partnerTeamDeletedResponseSchema, partnerTeamMemberAddedResponseSchema, partnerTeamMemberRemovedResponseSchema, partnerTeamMemberRoleResponseSchema, partnerTeamMembersResponseSchema, partnerTeamRenamedResponseSchema, partnerWebhookDataSchema, partnerWebhookEnvelopeSchema, queryDimSourceResponseSchema, registerPartnerSiteSchema, registerPartnerUserSchema, renamePartnerTeamSchema, rollupEnvelopeSchema, scheduleStateSchema, searchAppearanceResponseSchema, searchAppearanceRowSchema, searchTypeSchema, searchTypeSupportsDimensions, searchTypeSupportsQueries, siteIntIdCrosswalkResponseSchema, siteListItemSchema, sitemapChangesCompletenessSchema, sitemapChangesResponseSchema, sitemapChangesTruncationReasonSchema, sourceInfoResponseSchema, teamCatalogRefSchema, updatePartnerUserTokensSchema, whoamiResponseSchema };
|
package/dist/types.d.mts
CHANGED
|
@@ -595,7 +595,17 @@ export interface GscdumpSitemap {
|
|
|
595
595
|
lastError: string | null;
|
|
596
596
|
isPending: boolean;
|
|
597
597
|
fetchedAt: number;
|
|
598
|
+
/** Whether the Sitemap counts toward the next Generation. Absent from hosts before gscdump.com#590. */
|
|
599
|
+
feed?: GscdumpSitemapFeed;
|
|
598
600
|
}
|
|
601
|
+
/** A Dropped Sitemap answered 404 or 410 for 3 UTC days; `since` is the epoch ms its run started (gscdump.com ADR-0015). */
|
|
602
|
+
export type GscdumpSitemapFeed = {
|
|
603
|
+
_tag: 'counted';
|
|
604
|
+
} | {
|
|
605
|
+
_tag: 'dropped';
|
|
606
|
+
status: 404 | 410;
|
|
607
|
+
since: number;
|
|
608
|
+
};
|
|
599
609
|
export interface GscdumpSitemapHistory {
|
|
600
610
|
date: string;
|
|
601
611
|
errors: number;
|
|
@@ -1006,7 +1016,21 @@ export interface DeletePartnerUserResponse {
|
|
|
1006
1016
|
queued: true;
|
|
1007
1017
|
userId: number;
|
|
1008
1018
|
publicId: string;
|
|
1019
|
+
/** Absent from hosts older than contracts 5.3.0. */
|
|
1020
|
+
searchConsoleGrant?: SearchConsoleGrantOutcome;
|
|
1009
1021
|
}
|
|
1022
|
+
/** What a partner delete did to the Search Console grant that the partner's own OAuth client issued. */
|
|
1023
|
+
export type SearchConsoleGrantOutcome = {
|
|
1024
|
+
_tag: 'revoked';
|
|
1025
|
+
} | {
|
|
1026
|
+
_tag: 'already-invalid';
|
|
1027
|
+
} | {
|
|
1028
|
+
_tag: 'not-revoked';
|
|
1029
|
+
reason: 'no-token' | 'other-client' | 'unknown-cloud-project' | 'shared-cloud-project';
|
|
1030
|
+
} | {
|
|
1031
|
+
_tag: 'revoke-failed';
|
|
1032
|
+
reason: string;
|
|
1033
|
+
};
|
|
1010
1034
|
export type GscdumpAnalysisSourcesResponse = FileResolutionResponse;
|
|
1011
1035
|
export interface SearchTypeOptions {
|
|
1012
1036
|
searchType?: GscSearchType;
|
package/dist/v1/browser.d.mts
CHANGED
|
@@ -17,12 +17,12 @@ export declare const GSCDUMP_V1_ANALYTICS_DIMENSIONS: readonly ["page", "query",
|
|
|
17
17
|
export declare function createGscdumpV1BrowserSchemas(realtimeSchemas?: RealtimeV1Schemas): {
|
|
18
18
|
analyticsRowsRequest: z.ZodObject<{
|
|
19
19
|
dimensions: z.ZodArray<z.ZodEnum<{
|
|
20
|
-
date: "date";
|
|
21
20
|
page: "page";
|
|
22
21
|
query: "query";
|
|
23
22
|
queryCanonical: "queryCanonical";
|
|
24
23
|
country: "country";
|
|
25
24
|
device: "device";
|
|
25
|
+
date: "date";
|
|
26
26
|
searchAppearance: "searchAppearance";
|
|
27
27
|
hour: "hour";
|
|
28
28
|
}>>;
|