@gscdump/contracts 0.40.1 → 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 +80 -80
- package/package.json +2 -2
package/dist/_chunks/schemas.mjs
CHANGED
|
@@ -90,14 +90,6 @@ const indexingNextActions = [
|
|
|
90
90
|
"retry_indexing",
|
|
91
91
|
"none"
|
|
92
92
|
];
|
|
93
|
-
const lifecycleWebhookEvents = [
|
|
94
|
-
"user.lifecycle.changed",
|
|
95
|
-
"site.lifecycle.changed",
|
|
96
|
-
"site.analytics.ready",
|
|
97
|
-
"site.indexing.ready",
|
|
98
|
-
"site.auth.failed",
|
|
99
|
-
"job.failed"
|
|
100
|
-
];
|
|
101
93
|
const lifecycleErrorCodes = [
|
|
102
94
|
"missing_refresh_token",
|
|
103
95
|
"missing_analytics_scope",
|
|
@@ -152,6 +144,38 @@ const searchTypeSchema = z.enum([
|
|
|
152
144
|
"discover",
|
|
153
145
|
"googleNews"
|
|
154
146
|
]);
|
|
147
|
+
const SEARCH_TYPE_CAPABILITIES = {
|
|
148
|
+
web: {
|
|
149
|
+
queries: true,
|
|
150
|
+
dimensions: true
|
|
151
|
+
},
|
|
152
|
+
image: {
|
|
153
|
+
queries: true,
|
|
154
|
+
dimensions: true
|
|
155
|
+
},
|
|
156
|
+
video: {
|
|
157
|
+
queries: true,
|
|
158
|
+
dimensions: true
|
|
159
|
+
},
|
|
160
|
+
news: {
|
|
161
|
+
queries: true,
|
|
162
|
+
dimensions: true
|
|
163
|
+
},
|
|
164
|
+
discover: {
|
|
165
|
+
queries: false,
|
|
166
|
+
dimensions: false
|
|
167
|
+
},
|
|
168
|
+
googleNews: {
|
|
169
|
+
queries: false,
|
|
170
|
+
dimensions: false
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
function searchTypeSupportsQueries(searchType) {
|
|
174
|
+
return SEARCH_TYPE_CAPABILITIES[searchType].queries;
|
|
175
|
+
}
|
|
176
|
+
function searchTypeSupportsDimensions(searchType) {
|
|
177
|
+
return SEARCH_TYPE_CAPABILITIES[searchType].dimensions;
|
|
178
|
+
}
|
|
155
179
|
const builderStateSchema = z.object({ searchType: searchTypeSchema.optional() }).loose();
|
|
156
180
|
const gscComparisonFilterSchema = z.enum([
|
|
157
181
|
"new",
|
|
@@ -265,11 +289,6 @@ const gscRowQueryResponseSchema = z.object({
|
|
|
265
289
|
rows: z.array(unknownRecord),
|
|
266
290
|
meta: gscRowQueryMetaSchema
|
|
267
291
|
}).loose();
|
|
268
|
-
const indexingUrlStatusSchema = z.enum([
|
|
269
|
-
"indexed",
|
|
270
|
-
"not_indexed",
|
|
271
|
-
"pending"
|
|
272
|
-
]);
|
|
273
292
|
const indexingUrlRowSchema = z.object({
|
|
274
293
|
url: z.string(),
|
|
275
294
|
issueType: z.string().nullable().optional(),
|
|
@@ -691,6 +710,28 @@ const teamCatalogRefSchema = z.object({
|
|
|
691
710
|
catalogTablesReady: z.boolean(),
|
|
692
711
|
readsEnabled: z.boolean()
|
|
693
712
|
}).loose();
|
|
713
|
+
const bindPartnerTeamCatalogSchema = z.object({
|
|
714
|
+
catalogUri: z.string().min(1),
|
|
715
|
+
warehouse: z.string().min(1),
|
|
716
|
+
namespace: z.string().min(1).optional(),
|
|
717
|
+
bucket: z.string().min(1).optional()
|
|
718
|
+
});
|
|
719
|
+
const bindPartnerTeamCatalogResponseSchema = z.object({
|
|
720
|
+
teamId: z.string(),
|
|
721
|
+
status: z.literal("ready"),
|
|
722
|
+
catalogUri: z.string().min(1),
|
|
723
|
+
warehouse: z.string().min(1),
|
|
724
|
+
bucket: z.string().min(1),
|
|
725
|
+
namespace: z.string().min(1)
|
|
726
|
+
}).loose();
|
|
727
|
+
const siteIntIdCrosswalkResponseSchema = z.object({
|
|
728
|
+
crosswalk: z.record(z.string(), z.number().int().positive()),
|
|
729
|
+
sites: z.array(z.object({
|
|
730
|
+
siteId: z.string(),
|
|
731
|
+
intId: z.number().int().positive(),
|
|
732
|
+
siteUrl: z.string()
|
|
733
|
+
}).loose())
|
|
734
|
+
}).loose();
|
|
694
735
|
const dataQueryOptionsSchema = z.object({
|
|
695
736
|
comparison: builderStateSchema.optional(),
|
|
696
737
|
filter: gscComparisonFilterSchema.optional(),
|
|
@@ -732,18 +773,6 @@ const gscdumpAnalysisParamsSchema = gscdumpAnalysisBaseParamsSchema.extend({ pre
|
|
|
732
773
|
message: "brandTerms is required for brand/non-brand presets"
|
|
733
774
|
});
|
|
734
775
|
});
|
|
735
|
-
const gscdumpAnalysisBundleParamsSchema = gscdumpAnalysisBaseParamsSchema.extend({ presets: z.array(gscdumpAnalysisPresetSchema).min(1).max(8) }).superRefine((value, ctx) => {
|
|
736
|
-
if (value.presets.some((preset) => preset === "brand-only" || preset === "non-brand") && !value.brandTerms?.trim()) ctx.addIssue({
|
|
737
|
-
code: "custom",
|
|
738
|
-
path: ["brandTerms"],
|
|
739
|
-
message: "brandTerms is required for brand/non-brand presets"
|
|
740
|
-
});
|
|
741
|
-
if (value.presets.some((preset) => preset === "movers-rising" || preset === "movers-declining" || preset === "decay") && (!value.prevStartDate || !value.prevEndDate)) ctx.addIssue({
|
|
742
|
-
code: "custom",
|
|
743
|
-
path: ["prevStartDate"],
|
|
744
|
-
message: "prevStartDate and prevEndDate are required for comparison presets"
|
|
745
|
-
});
|
|
746
|
-
});
|
|
747
776
|
const gscdumpAnalysisMetaSchema = z.object({
|
|
748
777
|
siteUrl: z.string(),
|
|
749
778
|
params: z.object({
|
|
@@ -1147,6 +1176,17 @@ const gscdumpAnalysisSourcesResponseSchema = z.object({
|
|
|
1147
1176
|
maxFiles: z.number()
|
|
1148
1177
|
})
|
|
1149
1178
|
}).loose();
|
|
1179
|
+
const queryDimSourceResponseSchema = z.object({ file: z.object({
|
|
1180
|
+
url: z.string(),
|
|
1181
|
+
bytes: z.number(),
|
|
1182
|
+
contentHash: z.string()
|
|
1183
|
+
}).loose().nullable() }).loose();
|
|
1184
|
+
const bulkFileResolutionResponseSchema = z.object({
|
|
1185
|
+
generatedAt: z.string(),
|
|
1186
|
+
siteCount: z.number(),
|
|
1187
|
+
maxSites: z.number(),
|
|
1188
|
+
results: z.record(z.string(), gscdumpAnalysisSourcesResponseSchema)
|
|
1189
|
+
}).loose();
|
|
1150
1190
|
const gscdumpKeywordSparklinesParamsSchema = z.object({
|
|
1151
1191
|
keywords: z.array(z.string()).min(1).max(20),
|
|
1152
1192
|
startDate: z.string(),
|
|
@@ -1192,10 +1232,6 @@ const gscdumpPageTrendResponseSchema = z.object({
|
|
|
1192
1232
|
syncStatus: z.string().nullable()
|
|
1193
1233
|
}).loose()
|
|
1194
1234
|
}).loose();
|
|
1195
|
-
const gscdumpDateRangeParamsSchema = z.object({
|
|
1196
|
-
startDate: z.string(),
|
|
1197
|
-
endDate: z.string()
|
|
1198
|
-
});
|
|
1199
1235
|
const gscdumpIndexPercentParamsSchema = z.object({
|
|
1200
1236
|
invisibleLimit: z.number().optional(),
|
|
1201
1237
|
invisibleOffset: z.number().optional(),
|
|
@@ -1298,11 +1334,70 @@ const createPartnerTeamSchema = z.object({
|
|
|
1298
1334
|
name: z.string().min(2).max(60),
|
|
1299
1335
|
personalTeam: z.boolean().optional()
|
|
1300
1336
|
});
|
|
1337
|
+
const renamePartnerTeamSchema = z.object({ name: z.string().min(2).max(60) });
|
|
1301
1338
|
const addPartnerTeamMemberSchema = z.object({
|
|
1302
1339
|
userId: z.string(),
|
|
1303
1340
|
role: gscdumpTeamRoleSchema
|
|
1304
1341
|
});
|
|
1305
1342
|
const bindPartnerSiteTeamSchema = z.object({ teamId: z.string().nullable() });
|
|
1343
|
+
const partnerTeamCreatedResponseSchema = z.object({ team: gscdumpTeamRowSchema }).loose();
|
|
1344
|
+
const partnerTeamRenamedResponseSchema = z.object({
|
|
1345
|
+
ok: z.literal(true),
|
|
1346
|
+
name: z.string()
|
|
1347
|
+
}).loose();
|
|
1348
|
+
const partnerTeamDeletedResponseSchema = z.object({ ok: z.literal(true) }).loose();
|
|
1349
|
+
const partnerTeamMembersResponseSchema = z.object({ members: z.array(gscdumpTeamMemberRowSchema) }).loose();
|
|
1350
|
+
const partnerTeamMemberAddedResponseSchema = z.object({
|
|
1351
|
+
ok: z.literal(true),
|
|
1352
|
+
role: gscdumpTeamRoleSchema,
|
|
1353
|
+
alreadyExisted: z.boolean().optional()
|
|
1354
|
+
}).loose();
|
|
1355
|
+
const partnerTeamMemberRoleResponseSchema = z.object({
|
|
1356
|
+
ok: z.literal(true),
|
|
1357
|
+
role: gscdumpTeamRoleSchema
|
|
1358
|
+
}).loose();
|
|
1359
|
+
const partnerTeamMemberRemovedResponseSchema = z.object({ ok: z.literal(true) }).loose();
|
|
1360
|
+
const partnerSiteTeamBindingResponseSchema = z.object({
|
|
1361
|
+
ok: z.literal(true),
|
|
1362
|
+
teamId: z.string().nullable()
|
|
1363
|
+
}).loose();
|
|
1364
|
+
const gscVerificationMethodSchema = z.enum([
|
|
1365
|
+
"META",
|
|
1366
|
+
"FILE",
|
|
1367
|
+
"DNS_TXT",
|
|
1368
|
+
"DNS_CNAME",
|
|
1369
|
+
"ANALYTICS",
|
|
1370
|
+
"TAG_MANAGER"
|
|
1371
|
+
]);
|
|
1372
|
+
const gscVerificationSiteSchema = z.object({
|
|
1373
|
+
type: z.enum(["SITE", "INET_DOMAIN"]),
|
|
1374
|
+
identifier: z.string().min(1)
|
|
1375
|
+
});
|
|
1376
|
+
const gscVerificationDnsRecordSchema = z.object({
|
|
1377
|
+
type: z.enum(["TXT", "CNAME"]),
|
|
1378
|
+
host: z.string().min(1),
|
|
1379
|
+
value: z.string().min(1)
|
|
1380
|
+
});
|
|
1381
|
+
const gscVerificationRequestSchema = z.object({
|
|
1382
|
+
userId: z.string().optional(),
|
|
1383
|
+
siteUrl: z.string().min(1),
|
|
1384
|
+
method: gscVerificationMethodSchema.optional()
|
|
1385
|
+
});
|
|
1386
|
+
const gscVerificationTokenResponseSchema = z.object({
|
|
1387
|
+
siteUrl: z.string().min(1),
|
|
1388
|
+
site: gscVerificationSiteSchema,
|
|
1389
|
+
method: gscVerificationMethodSchema,
|
|
1390
|
+
token: z.string(),
|
|
1391
|
+
metaContent: z.string().nullable(),
|
|
1392
|
+
dnsRecord: gscVerificationDnsRecordSchema.nullable()
|
|
1393
|
+
}).loose();
|
|
1394
|
+
const gscAddAndVerifyResponseSchema = z.object({
|
|
1395
|
+
siteUrl: z.string().min(1),
|
|
1396
|
+
site: gscVerificationSiteSchema,
|
|
1397
|
+
method: gscVerificationMethodSchema,
|
|
1398
|
+
verified: z.literal(true),
|
|
1399
|
+
owners: z.array(z.string())
|
|
1400
|
+
}).loose();
|
|
1306
1401
|
const partnerRealtimeEventSchema = z.discriminatedUnion("event", [
|
|
1307
1402
|
z.object({
|
|
1308
1403
|
event: z.literal("sync.progress"),
|
|
@@ -1431,16 +1526,6 @@ const partnerRealtimeEventSchema = z.discriminatedUnion("event", [
|
|
|
1431
1526
|
}).loose()
|
|
1432
1527
|
]);
|
|
1433
1528
|
const canonicalWebhookEventTypeSchema = z.enum(CANONICAL_WEBHOOK_EVENTS);
|
|
1434
|
-
const webhookEventTypeSchema = canonicalWebhookEventTypeSchema;
|
|
1435
|
-
const jobFailedWebhookPayloadSchema = z.object({
|
|
1436
|
-
event: z.literal("job.failed"),
|
|
1437
|
-
siteId: z.string(),
|
|
1438
|
-
siteUrl: z.string(),
|
|
1439
|
-
table: z.string(),
|
|
1440
|
-
date: z.string(),
|
|
1441
|
-
error: z.string(),
|
|
1442
|
-
timestamp: z.number()
|
|
1443
|
-
}).loose();
|
|
1444
1529
|
const partnerWebhookDataSchema = unknownRecord;
|
|
1445
1530
|
const partnerWebhookEnvelopeSchema = z.object({
|
|
1446
1531
|
contractVersion: z.literal(WEBHOOK_CONTRACT_VERSION),
|
|
@@ -1464,7 +1549,6 @@ const analyticsEndpointSchemas = {
|
|
|
1464
1549
|
analyticsSitemaps: { response: sitemapIndexSchema },
|
|
1465
1550
|
analyticsInspectionHistory: { response: inspectionHistoryResponseSchema },
|
|
1466
1551
|
analyticsInspections: { response: inspectionIndexSchema },
|
|
1467
|
-
analyticsRows: { response: gscRowQueryResponseSchema },
|
|
1468
1552
|
analyticsRollup: { response: rollupEnvelopeSchema },
|
|
1469
1553
|
analyticsBackfill: {
|
|
1470
1554
|
body: backfillRangeSchema,
|
|
@@ -1481,8 +1565,71 @@ const analyticsEndpointSchemas = {
|
|
|
1481
1565
|
},
|
|
1482
1566
|
analyticsSitemapChanges: { response: sitemapChangesResponseSchema },
|
|
1483
1567
|
analyticsAnalysisSources: { response: gscdumpAnalysisSourcesResponseSchema },
|
|
1568
|
+
analyticsQueryDimSource: { response: queryDimSourceResponseSchema },
|
|
1569
|
+
analyticsBulkSources: { response: bulkFileResolutionResponseSchema },
|
|
1484
1570
|
analyticsSourceInfo: { response: sourceInfoResponseSchema }
|
|
1485
1571
|
};
|
|
1572
|
+
const partnerSitemapActionSchema = z.discriminatedUnion("action", [
|
|
1573
|
+
z.object({
|
|
1574
|
+
action: z.literal("submit"),
|
|
1575
|
+
sitemapUrl: z.string().min(1)
|
|
1576
|
+
}),
|
|
1577
|
+
z.object({
|
|
1578
|
+
action: z.literal("delete"),
|
|
1579
|
+
sitemapUrl: z.string().min(1)
|
|
1580
|
+
}),
|
|
1581
|
+
z.object({ action: z.literal("refresh") }),
|
|
1582
|
+
z.object({ action: z.literal("auto-discover") })
|
|
1583
|
+
]);
|
|
1584
|
+
const partnerSitemapActionResponseSchema = z.discriminatedUnion("action", [
|
|
1585
|
+
z.object({
|
|
1586
|
+
success: z.boolean(),
|
|
1587
|
+
action: z.enum(["submitted", "deleted"]),
|
|
1588
|
+
sitemapUrl: z.string().min(1),
|
|
1589
|
+
sitemapCount: z.number().int().nonnegative()
|
|
1590
|
+
}).loose(),
|
|
1591
|
+
z.object({
|
|
1592
|
+
success: z.literal(true),
|
|
1593
|
+
action: z.literal("refreshed"),
|
|
1594
|
+
sitemapCount: z.number().int().nonnegative(),
|
|
1595
|
+
changed: z.boolean()
|
|
1596
|
+
}).loose(),
|
|
1597
|
+
z.object({
|
|
1598
|
+
success: z.boolean(),
|
|
1599
|
+
action: z.literal("auto-discover"),
|
|
1600
|
+
discovered: z.string().nullable(),
|
|
1601
|
+
submitError: z.string().nullable().optional(),
|
|
1602
|
+
sitemapCount: z.number().int().nonnegative()
|
|
1603
|
+
}).loose()
|
|
1604
|
+
]);
|
|
1605
|
+
const gscdumpSitemapMembershipParamsSchema = z.object({
|
|
1606
|
+
urls: z.array(z.string().min(1).max(2048)).max(500),
|
|
1607
|
+
maxAgeDays: z.number().int().positive().max(365).optional()
|
|
1608
|
+
});
|
|
1609
|
+
const gscdumpSitemapMembershipUrlSchema = z.object({
|
|
1610
|
+
url: z.string(),
|
|
1611
|
+
normalized: z.string(),
|
|
1612
|
+
inSitemap: z.boolean(),
|
|
1613
|
+
sitemapUrl: z.string().nullable().optional(),
|
|
1614
|
+
lastSeenAt: z.string().nullable().optional(),
|
|
1615
|
+
lastmod: z.string().nullable().optional(),
|
|
1616
|
+
sitemapFetchedAt: z.string().nullable().optional()
|
|
1617
|
+
}).loose();
|
|
1618
|
+
const gscdumpSitemapMembershipResponseSchema = z.object({
|
|
1619
|
+
urls: z.array(gscdumpSitemapMembershipUrlSchema),
|
|
1620
|
+
meta: z.object({
|
|
1621
|
+
available: z.boolean(),
|
|
1622
|
+
reason: z.enum([
|
|
1623
|
+
"empty",
|
|
1624
|
+
"site_url_cap_exceeded",
|
|
1625
|
+
"stale_sitemaps"
|
|
1626
|
+
]).nullable(),
|
|
1627
|
+
requested: z.number().int().nonnegative(),
|
|
1628
|
+
checked: z.number().int().nonnegative(),
|
|
1629
|
+
matched: z.number().int().nonnegative(),
|
|
1630
|
+
newestFetchedAt: z.string().nullable()
|
|
1631
|
+
}).loose()
|
|
1632
|
+
}).loose();
|
|
1486
1633
|
const partnerControlEndpointSchemas = {
|
|
1487
1634
|
appUser: { response: gscdumpUserMeResponseSchema },
|
|
1488
1635
|
appHealth: { response: gscdumpHealthResponseSchema },
|
|
@@ -1524,12 +1671,16 @@ const partnerControlEndpointSchemas = {
|
|
|
1524
1671
|
options: dataDetailOptionsSchema,
|
|
1525
1672
|
response: gscdumpDataDetailResponseSchema
|
|
1526
1673
|
},
|
|
1527
|
-
getAnalysis: {
|
|
1528
|
-
query: gscdumpAnalysisParamsSchema,
|
|
1529
|
-
response: gscdumpAnalysisResponseSchema
|
|
1530
|
-
},
|
|
1531
1674
|
getSitemaps: { response: gscdumpSitemapsResponseSchema },
|
|
1532
1675
|
getSitemapChanges: { response: gscdumpSitemapChangesResponseSchema },
|
|
1676
|
+
postSitemaps: {
|
|
1677
|
+
body: partnerSitemapActionSchema,
|
|
1678
|
+
response: partnerSitemapActionResponseSchema
|
|
1679
|
+
},
|
|
1680
|
+
getSitemapMembership: {
|
|
1681
|
+
body: gscdumpSitemapMembershipParamsSchema,
|
|
1682
|
+
response: gscdumpSitemapMembershipResponseSchema
|
|
1683
|
+
},
|
|
1533
1684
|
getIndexing: { response: gscdumpIndexingResponseSchema },
|
|
1534
1685
|
getIndexingUrls: {
|
|
1535
1686
|
query: indexingUrlsParamsSchema,
|
|
@@ -1539,7 +1690,7 @@ const partnerControlEndpointSchemas = {
|
|
|
1539
1690
|
query: indexingDiagnosticsParamsSchema,
|
|
1540
1691
|
response: gscdumpIndexingDiagnosticsResponseSchema
|
|
1541
1692
|
},
|
|
1542
|
-
|
|
1693
|
+
requestIndexingInspect: {
|
|
1543
1694
|
body: indexingInspectRequestSchema,
|
|
1544
1695
|
response: indexingInspectAnyResponseSchema
|
|
1545
1696
|
},
|
|
@@ -1565,10 +1716,6 @@ const partnerControlEndpointSchemas = {
|
|
|
1565
1716
|
query: gscdumpPageTrendParamsSchema,
|
|
1566
1717
|
response: gscdumpPageTrendResponseSchema
|
|
1567
1718
|
},
|
|
1568
|
-
getDateRangeInsight: {
|
|
1569
|
-
query: gscdumpDateRangeParamsSchema,
|
|
1570
|
-
response: unknownRecord
|
|
1571
|
-
},
|
|
1572
1719
|
getCanonicalMismatches: { response: gscdumpCanonicalMismatchesResponseSchema },
|
|
1573
1720
|
getIndexPercent: {
|
|
1574
1721
|
query: gscdumpIndexPercentParamsSchema,
|
|
@@ -1577,19 +1724,40 @@ const partnerControlEndpointSchemas = {
|
|
|
1577
1724
|
getSiteReport: { response: gscdumpSiteReportResponseSchema },
|
|
1578
1725
|
createTeam: {
|
|
1579
1726
|
body: createPartnerTeamSchema,
|
|
1580
|
-
response:
|
|
1727
|
+
response: partnerTeamCreatedResponseSchema
|
|
1581
1728
|
},
|
|
1582
|
-
|
|
1729
|
+
renameTeam: {
|
|
1730
|
+
body: renamePartnerTeamSchema,
|
|
1731
|
+
response: partnerTeamRenamedResponseSchema
|
|
1732
|
+
},
|
|
1733
|
+
deleteTeam: { response: partnerTeamDeletedResponseSchema },
|
|
1734
|
+
listTeamMembers: { response: partnerTeamMembersResponseSchema },
|
|
1583
1735
|
addTeamMember: {
|
|
1584
1736
|
body: addPartnerTeamMemberSchema,
|
|
1585
|
-
response:
|
|
1737
|
+
response: partnerTeamMemberAddedResponseSchema
|
|
1738
|
+
},
|
|
1739
|
+
updateTeamMemberRole: {
|
|
1740
|
+
body: z.object({ role: gscdumpTeamRoleSchema }),
|
|
1741
|
+
response: partnerTeamMemberRoleResponseSchema
|
|
1586
1742
|
},
|
|
1743
|
+
removeTeamMember: { response: partnerTeamMemberRemovedResponseSchema },
|
|
1587
1744
|
bindSiteToTeam: {
|
|
1588
1745
|
body: bindPartnerSiteTeamSchema,
|
|
1589
|
-
response:
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1746
|
+
response: partnerSiteTeamBindingResponseSchema
|
|
1747
|
+
},
|
|
1748
|
+
getTeamCatalog: { response: teamCatalogRefSchema },
|
|
1749
|
+
bindTeamCatalog: {
|
|
1750
|
+
body: bindPartnerTeamCatalogSchema,
|
|
1751
|
+
response: bindPartnerTeamCatalogResponseSchema
|
|
1752
|
+
},
|
|
1753
|
+
getUserSiteIntIdCrosswalk: { response: siteIntIdCrosswalkResponseSchema },
|
|
1754
|
+
requestSiteVerificationToken: {
|
|
1755
|
+
body: gscVerificationRequestSchema,
|
|
1756
|
+
response: gscVerificationTokenResponseSchema
|
|
1757
|
+
},
|
|
1758
|
+
addAndVerifySite: {
|
|
1759
|
+
body: gscVerificationRequestSchema,
|
|
1760
|
+
response: gscAddAndVerifyResponseSchema
|
|
1593
1761
|
},
|
|
1594
1762
|
realtimeEvent: { message: partnerRealtimeEventSchema },
|
|
1595
1763
|
webhook: { message: partnerWebhookEnvelopeSchema }
|
|
@@ -1598,4 +1766,4 @@ const partnerEndpointSchemas = {
|
|
|
1598
1766
|
...analyticsEndpointSchemas,
|
|
1599
1767
|
...partnerControlEndpointSchemas
|
|
1600
1768
|
};
|
|
1601
|
-
export { CANONICAL_WEBHOOK_EVENTS, GSCDUMP_ONBOARDING_CONTRACT_VERSION, GSCDUMP_OPTIONAL_INDEXING_SCOPE, GSCDUMP_REQUIRED_ANALYTICS_SCOPE, GSCDUMP_WRITE_ANALYTICS_SCOPE, VALID_WEBHOOK_EVENTS, WEBHOOK_CONTRACT_VERSION, WEBHOOK_CONTRACT_VERSION_HEADER, WEBHOOK_DELIVERY_HEADER, WEBHOOK_EVENT_HEADER, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_TIMESTAMP_HEADER, accountNextActions, accountStatuses, addPartnerTeamMemberSchema, analyticsEndpointSchemas, analyticsNextActions, analyticsStatuses, backfillRangeSchema, backfillResponseSchema, bindPartnerSiteTeamSchema, builderStateSchema, bulkRegisterPartnerSitesResponseSchema, bulkRegisterPartnerSitesSchema, canonicalWebhookEventTypeSchema, countriesResponseSchema, countryRowSchema, createPartnerTeamSchema, dataDetailOptionsSchema, dataQueryOptionsSchema, gscApiRangeSchema, gscComparisonFilterSchema, gscRowQueryMetaSchema, gscRowQueryResponseSchema,
|
|
1769
|
+
export { CANONICAL_WEBHOOK_EVENTS, GSCDUMP_ONBOARDING_CONTRACT_VERSION, GSCDUMP_OPTIONAL_INDEXING_SCOPE, GSCDUMP_REQUIRED_ANALYTICS_SCOPE, GSCDUMP_WRITE_ANALYTICS_SCOPE, SEARCH_TYPE_CAPABILITIES, VALID_WEBHOOK_EVENTS, WEBHOOK_CONTRACT_VERSION, WEBHOOK_CONTRACT_VERSION_HEADER, WEBHOOK_DELIVERY_HEADER, WEBHOOK_EVENT_HEADER, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_TIMESTAMP_HEADER, accountNextActions, accountStatuses, addPartnerTeamMemberSchema, analyticsEndpointSchemas, analyticsNextActions, analyticsStatuses, backfillRangeSchema, backfillResponseSchema, bindPartnerSiteTeamSchema, bindPartnerTeamCatalogResponseSchema, bindPartnerTeamCatalogSchema, builderStateSchema, bulkFileResolutionResponseSchema, bulkRegisterPartnerSitesResponseSchema, bulkRegisterPartnerSitesSchema, 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, gscdumpIndexingUrlsResponseSchema, gscdumpKeywordSparklinesParamsSchema, gscdumpKeywordSparklinesResponseSchema, gscdumpMetaSchema, gscdumpPageTrendParamsSchema, gscdumpPageTrendResponseSchema, gscdumpPermissionRecoverySchema, gscdumpQueryTrendParamsSchema, gscdumpQueryTrendResponseSchema, gscdumpSiteRegistrationSchema, gscdumpSiteReportResponseSchema, gscdumpSitemapChangesResponseSchema, gscdumpSitemapMembershipParamsSchema, gscdumpSitemapMembershipResponseSchema, gscdumpSitemapMembershipUrlSchema, gscdumpSitemapsResponseSchema, gscdumpSyncJobsResponseSchema, gscdumpSyncProgressResponseSchema, gscdumpTeamMemberRowSchema, gscdumpTeamRoleSchema, gscdumpTeamRowSchema, gscdumpTopAssociationParamsSchema, gscdumpTopAssociationResponseSchema, gscdumpTotalsSchema, gscdumpUserMeResponseSchema, gscdumpUserRegistrationSchema, gscdumpUserSettingsSchema, gscdumpUserSiteSchema, gscdumpUserStatusSchema, hasOptionalIndexingScope, hasRequiredAnalyticsScope, indexingDiagnosticsParamsSchema, indexingDiagnosticsSchema, indexingInspectAnyResponseSchema, indexingInspectRateLimitedSchema, indexingInspectRequestSchema, indexingInspectResponseSchema, indexingInspectResultSchema, indexingIssueSchema, indexingNextActions, indexingStatuses, indexingUrlRowSchema, indexingUrlsParamsSchema, indexingUrlsResponseSchema, inspectionHistoryRecordSchema, inspectionHistoryResponseSchema, inspectionIndexSchema, inspectionRecordRawSchema, lifecycleErrorCodes, lifecycleErrorSchema, lifecycleProgressSchema, parseGrantedScopes, partnerControlEndpointSchemas, partnerEndpointSchemas, partnerLifecycleAccountSchema, partnerLifecycleResponseSchema, partnerLifecycleSiteSchema, partnerRealtimeEventSchema, partnerSiteTeamBindingResponseSchema, partnerSitemapActionResponseSchema, partnerSitemapActionSchema, partnerTeamCreatedResponseSchema, partnerTeamDeletedResponseSchema, partnerTeamMemberAddedResponseSchema, partnerTeamMemberRemovedResponseSchema, partnerTeamMemberRoleResponseSchema, partnerTeamMembersResponseSchema, partnerTeamRenamedResponseSchema, partnerWebhookDataSchema, partnerWebhookEnvelopeSchema, propertyNextActions, propertyStatuses, queryDimSourceResponseSchema, querySourceModes, registerPartnerSiteSchema, registerPartnerUserSchema, renamePartnerTeamSchema, rollupEnvelopeSchema, scheduleStateSchema, searchAppearanceResponseSchema, searchAppearanceRowSchema, searchTypeSchema, searchTypeSupportsDimensions, searchTypeSupportsQueries, siteIntIdCrosswalkResponseSchema, siteListItemSchema, sitemapChangesResponseSchema, sitemapHistoryRecordSchema, sitemapHistoryResponseSchema, sitemapIndexSchema, sitemapNextActions, sitemapStatuses, sourceInfoResponseSchema, teamCatalogRefSchema, updatePartnerUserTokensSchema, whoamiResponseSchema };
|