@nuxtseo/protocol 0.2.1 → 0.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/v1/account.d.ts +8 -96
- package/dist/v1/account.js +4 -2
- package/dist/v1/actions.d.ts +634 -0
- package/dist/v1/actions.js +6 -0
- package/dist/v1/audit.d.ts +402 -0
- package/dist/v1/audit.js +23 -1
- package/dist/v1/backlinks.d.ts +444 -0
- package/dist/v1/backlinks.js +51 -1
- package/dist/v1/content.d.ts +184 -0
- package/dist/v1/content.js +15 -0
- package/dist/v1/core.d.ts +49 -0
- package/dist/v1/core.js +39 -0
- package/dist/v1/gsc.d.ts +424 -12
- package/dist/v1/gsc.js +36 -5
- package/dist/v1/pages.d.ts +70 -0
- package/dist/v1/pages.js +16 -1
- package/dist/v1/performance.d.ts +10 -4
- package/dist/v1/performance.js +48 -29
- package/dist/v1/research.d.ts +168 -0
- package/dist/v1/research.js +42 -0
- package/dist/v1/sites.d.ts +298 -0
- package/dist/v1/sites.js +21 -2
- package/generated/openapi.v1.json +1 -1
- package/package.json +1 -1
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(),
|
|
@@ -445,6 +456,7 @@ export const auditContentDecayOperation = defineOperation({
|
|
|
445
456
|
position: 8.4,
|
|
446
457
|
prevPosition: 5.1,
|
|
447
458
|
}],
|
|
459
|
+
page: { total: 1, limit: 1, offset: 0, hasMore: false },
|
|
448
460
|
total: 1,
|
|
449
461
|
clicksLost: 18,
|
|
450
462
|
window: {
|
|
@@ -494,6 +506,15 @@ export const auditDuplicateClustersOperation = defineOperation({
|
|
|
494
506
|
keepPath: '/guides/alpha',
|
|
495
507
|
titles: { distinct: 1, sampled: 3, verdict: 'shared' },
|
|
496
508
|
}],
|
|
509
|
+
rows: [{
|
|
510
|
+
pathPattern: '/guides/*',
|
|
511
|
+
size: 3,
|
|
512
|
+
exactDuplicates: 2,
|
|
513
|
+
members: [{ url: 'https://example.com/guides/alpha', path: '/guides/alpha', clicks: 14, impressions: 200 }],
|
|
514
|
+
keepPath: '/guides/alpha',
|
|
515
|
+
titles: { distinct: 1, sampled: 3, verdict: 'shared' },
|
|
516
|
+
}],
|
|
517
|
+
page: { total: 1, limit: 1, offset: 0, hasMore: false },
|
|
497
518
|
total: 1,
|
|
498
519
|
pagesAffected: 3,
|
|
499
520
|
},
|
|
@@ -541,6 +562,7 @@ export const auditLinkOpportunitiesOperation = defineOperation({
|
|
|
541
562
|
clicks: 18,
|
|
542
563
|
position: 8.2,
|
|
543
564
|
}],
|
|
565
|
+
page: { total: 1, limit: 1, offset: 0, hasMore: false },
|
|
544
566
|
total: 1,
|
|
545
567
|
pagesScanned: 152,
|
|
546
568
|
pagesTotal: 154,
|