@nuxtseo/protocol 0.2.1 → 0.4.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/v1/account.d.ts +8 -104
- package/dist/v1/account.js +4 -2
- package/dist/v1/actions.d.ts +706 -0
- package/dist/v1/actions.js +20 -0
- package/dist/v1/audit.d.ts +412 -10
- package/dist/v1/audit.js +24 -1
- package/dist/v1/backlinks.d.ts +448 -4
- package/dist/v1/backlinks.js +53 -1
- package/dist/v1/core.d.ts +50 -1
- package/dist/v1/core.js +39 -2
- package/dist/v1/gsc.d.ts +424 -12
- package/dist/v1/gsc.js +36 -5
- package/dist/v1/index.d.ts +0 -3
- package/dist/v1/index.js +0 -3
- package/dist/v1/pages.d.ts +72 -2
- package/dist/v1/pages.js +17 -1
- package/dist/v1/performance.d.ts +22 -16
- package/dist/v1/performance.js +54 -29
- package/dist/v1/research.d.ts +170 -2
- package/dist/v1/research.js +43 -0
- package/dist/v1/sitemaps.d.ts +6 -6
- package/dist/v1/sitemaps.js +2 -1
- package/dist/v1/sites.d.ts +298 -0
- package/dist/v1/sites.js +21 -2
- package/dist/v1/timeline.d.ts +4 -4
- package/dist/v1/timeline.js +4 -0
- package/generated/openapi.v1.json +1 -1
- package/package.json +3 -8
- package/dist/v1/content.d.ts +0 -2745
- package/dist/v1/content.js +0 -326
package/dist/v1/audit.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z as schema } from 'zod';
|
|
2
|
-
import { defineOperation, defineRegistry, defineResponseObject, defineSuccessEnvelope, publicV1ErrorEnvelope, publicV1StandardRatePolicy, } from './core.js';
|
|
2
|
+
import { defineOperation, defineRegistry, defineResponseObject, defineSuccessEnvelope, publicV1ErrorEnvelope, publicV1PageSchema, publicV1StandardRatePolicy, } from './core.js';
|
|
3
3
|
export const auditSiteParamsSchema = schema.strictObject({
|
|
4
4
|
siteId: schema.string().min(1),
|
|
5
5
|
});
|
|
@@ -137,6 +137,7 @@ export const contentDecayRowSchema = defineResponseObject({
|
|
|
137
137
|
export const auditContentDecayDataSchema = defineResponseObject({
|
|
138
138
|
connected: schema.boolean(),
|
|
139
139
|
rows: schema.array(contentDecayRowSchema.producer),
|
|
140
|
+
page: publicV1PageSchema.producer,
|
|
140
141
|
total: schema.number(),
|
|
141
142
|
clicksLost: schema.number(),
|
|
142
143
|
window: schema.strictObject({
|
|
@@ -149,6 +150,7 @@ export const auditContentDecayDataSchema = defineResponseObject({
|
|
|
149
150
|
}, {
|
|
150
151
|
connected: schema.boolean(),
|
|
151
152
|
rows: schema.array(contentDecayRowSchema.client),
|
|
153
|
+
page: publicV1PageSchema.client.optional(),
|
|
152
154
|
total: schema.number(),
|
|
153
155
|
clicksLost: schema.number(),
|
|
154
156
|
window: schema.looseObject({
|
|
@@ -196,7 +198,12 @@ export const duplicateClusterSchema = defineResponseObject({
|
|
|
196
198
|
});
|
|
197
199
|
export const auditDuplicateClustersDataSchema = defineResponseObject({
|
|
198
200
|
connected: schema.boolean(),
|
|
201
|
+
/**
|
|
202
|
+
* Deprecated alias of `rows`. Kept for one minor version, then removed.
|
|
203
|
+
*/
|
|
199
204
|
clusters: schema.array(duplicateClusterSchema.producer),
|
|
205
|
+
rows: schema.array(duplicateClusterSchema.producer),
|
|
206
|
+
page: publicV1PageSchema.producer,
|
|
200
207
|
total: schema.number(),
|
|
201
208
|
pagesAffected: schema.number(),
|
|
202
209
|
/**
|
|
@@ -209,6 +216,8 @@ export const auditDuplicateClustersDataSchema = defineResponseObject({
|
|
|
209
216
|
}, {
|
|
210
217
|
connected: schema.boolean(),
|
|
211
218
|
clusters: schema.array(duplicateClusterSchema.client),
|
|
219
|
+
rows: schema.array(duplicateClusterSchema.client).optional(),
|
|
220
|
+
page: publicV1PageSchema.client.optional(),
|
|
212
221
|
total: schema.number(),
|
|
213
222
|
pagesAffected: schema.number(),
|
|
214
223
|
crawlSettingsId: schema.number().nullable().optional(),
|
|
@@ -241,6 +250,7 @@ export const auditLinkOpportunitiesDataSchema = defineResponseObject({
|
|
|
241
250
|
connected: schema.boolean(),
|
|
242
251
|
textUnavailable: schema.boolean(),
|
|
243
252
|
rows: schema.array(linkOpportunityRowSchema.producer),
|
|
253
|
+
page: publicV1PageSchema.producer,
|
|
244
254
|
total: schema.number(),
|
|
245
255
|
pagesScanned: schema.number(),
|
|
246
256
|
pagesTotal: schema.number(),
|
|
@@ -248,6 +258,7 @@ export const auditLinkOpportunitiesDataSchema = defineResponseObject({
|
|
|
248
258
|
connected: schema.boolean(),
|
|
249
259
|
textUnavailable: schema.boolean(),
|
|
250
260
|
rows: schema.array(linkOpportunityRowSchema.client),
|
|
261
|
+
page: publicV1PageSchema.client.optional(),
|
|
251
262
|
total: schema.number(),
|
|
252
263
|
pagesScanned: schema.number(),
|
|
253
264
|
pagesTotal: schema.number(),
|
|
@@ -346,6 +357,7 @@ const auditReadErrors = [
|
|
|
346
357
|
'auth_expired',
|
|
347
358
|
'forbidden',
|
|
348
359
|
'not_found',
|
|
360
|
+
'conflict',
|
|
349
361
|
'rate_limited',
|
|
350
362
|
'provider_unavailable',
|
|
351
363
|
'contract_violation',
|
|
@@ -445,6 +457,7 @@ export const auditContentDecayOperation = defineOperation({
|
|
|
445
457
|
position: 8.4,
|
|
446
458
|
prevPosition: 5.1,
|
|
447
459
|
}],
|
|
460
|
+
page: { total: 1, limit: 1, offset: 0, hasMore: false },
|
|
448
461
|
total: 1,
|
|
449
462
|
clicksLost: 18,
|
|
450
463
|
window: {
|
|
@@ -494,6 +507,15 @@ export const auditDuplicateClustersOperation = defineOperation({
|
|
|
494
507
|
keepPath: '/guides/alpha',
|
|
495
508
|
titles: { distinct: 1, sampled: 3, verdict: 'shared' },
|
|
496
509
|
}],
|
|
510
|
+
rows: [{
|
|
511
|
+
pathPattern: '/guides/*',
|
|
512
|
+
size: 3,
|
|
513
|
+
exactDuplicates: 2,
|
|
514
|
+
members: [{ url: 'https://example.com/guides/alpha', path: '/guides/alpha', clicks: 14, impressions: 200 }],
|
|
515
|
+
keepPath: '/guides/alpha',
|
|
516
|
+
titles: { distinct: 1, sampled: 3, verdict: 'shared' },
|
|
517
|
+
}],
|
|
518
|
+
page: { total: 1, limit: 1, offset: 0, hasMore: false },
|
|
497
519
|
total: 1,
|
|
498
520
|
pagesAffected: 3,
|
|
499
521
|
},
|
|
@@ -541,6 +563,7 @@ export const auditLinkOpportunitiesOperation = defineOperation({
|
|
|
541
563
|
clicks: 18,
|
|
542
564
|
position: 8.2,
|
|
543
565
|
}],
|
|
566
|
+
page: { total: 1, limit: 1, offset: 0, hasMore: false },
|
|
544
567
|
total: 1,
|
|
545
568
|
pagesScanned: 152,
|
|
546
569
|
pagesTotal: 154,
|