@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.
@@ -65,6 +65,9 @@ export declare const siteSummaryClientSchema: z.ZodObject<{
65
65
  }, z.core.$loose>;
66
66
  }, z.core.$loose>;
67
67
  export declare const sitesListDataSchema: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
68
+ /**
69
+ * Deprecated alias of `rows`. Kept for one minor version, then removed.
70
+ */
68
71
  readonly sites: z.ZodArray<z.ZodObject<{
69
72
  id: z.ZodString;
70
73
  name: z.ZodNullable<z.ZodString>;
@@ -90,6 +93,37 @@ export declare const sitesListDataSchema: import("./core.js").CompatibleResponse
90
93
  analysisAvailable: z.ZodBoolean;
91
94
  }, z.core.$strict>;
92
95
  }, z.core.$strict>>;
96
+ readonly rows: z.ZodArray<z.ZodObject<{
97
+ id: z.ZodString;
98
+ name: z.ZodNullable<z.ZodString>;
99
+ url: z.ZodNullable<z.ZodURL>;
100
+ searchConsole: z.ZodObject<{
101
+ status: z.ZodEnum<{
102
+ action_required: "action_required";
103
+ connected: "connected";
104
+ disconnected: "disconnected";
105
+ }>;
106
+ }, z.core.$strict>;
107
+ monitoring: z.ZodObject<{
108
+ mode: z.ZodNullable<z.ZodEnum<{
109
+ full_monitoring: "full_monitoring";
110
+ search_tracking: "search_tracking";
111
+ }>>;
112
+ status: z.ZodEnum<{
113
+ active: "active";
114
+ archived: "archived";
115
+ paused: "paused";
116
+ unconfigured: "unconfigured";
117
+ }>;
118
+ analysisAvailable: z.ZodBoolean;
119
+ }, z.core.$strict>;
120
+ }, z.core.$strict>>;
121
+ readonly page: z.ZodObject<{
122
+ readonly total: z.ZodNumber;
123
+ readonly limit: z.ZodNumber;
124
+ readonly offset: z.ZodNumber;
125
+ readonly hasMore: z.ZodBoolean;
126
+ }, z.core.$strip>;
93
127
  }, z.core.$strip>, z.ZodObject<{
94
128
  readonly sites: z.ZodArray<z.ZodObject<{
95
129
  id: z.ZodString;
@@ -116,6 +150,37 @@ export declare const sitesListDataSchema: import("./core.js").CompatibleResponse
116
150
  analysisAvailable: z.ZodBoolean;
117
151
  }, z.core.$loose>;
118
152
  }, z.core.$loose>>;
153
+ readonly rows: z.ZodOptional<z.ZodArray<z.ZodObject<{
154
+ id: z.ZodString;
155
+ name: z.ZodNullable<z.ZodString>;
156
+ url: z.ZodNullable<z.ZodURL>;
157
+ searchConsole: z.ZodObject<{
158
+ status: z.ZodEnum<{
159
+ action_required: "action_required";
160
+ connected: "connected";
161
+ disconnected: "disconnected";
162
+ }>;
163
+ }, z.core.$loose>;
164
+ monitoring: z.ZodObject<{
165
+ mode: z.ZodNullable<z.ZodEnum<{
166
+ full_monitoring: "full_monitoring";
167
+ search_tracking: "search_tracking";
168
+ }>>;
169
+ status: z.ZodEnum<{
170
+ active: "active";
171
+ archived: "archived";
172
+ paused: "paused";
173
+ unconfigured: "unconfigured";
174
+ }>;
175
+ analysisAvailable: z.ZodBoolean;
176
+ }, z.core.$loose>;
177
+ }, z.core.$loose>>>;
178
+ readonly page: z.ZodOptional<z.ZodObject<{
179
+ readonly total: z.ZodNumber;
180
+ readonly limit: z.ZodNumber;
181
+ readonly offset: z.ZodNumber;
182
+ readonly hasMore: z.ZodBoolean;
183
+ }, z.core.$strip>>;
119
184
  }, z.core.$strip>>;
120
185
  export declare const sitesListMetaSchema: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
121
186
  readonly requestId: z.ZodString;
@@ -128,6 +193,9 @@ export declare const sitesListMetaSchema: import("./core.js").CompatibleResponse
128
193
  }, z.core.$strip>>;
129
194
  export declare const sitesListResponseSchema: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
130
195
  data: z.ZodObject<{
196
+ /**
197
+ * Deprecated alias of `rows`. Kept for one minor version, then removed.
198
+ */
131
199
  readonly sites: z.ZodArray<z.ZodObject<{
132
200
  id: z.ZodString;
133
201
  name: z.ZodNullable<z.ZodString>;
@@ -153,6 +221,37 @@ export declare const sitesListResponseSchema: import("./core.js").CompatibleResp
153
221
  analysisAvailable: z.ZodBoolean;
154
222
  }, z.core.$strict>;
155
223
  }, z.core.$strict>>;
224
+ readonly rows: z.ZodArray<z.ZodObject<{
225
+ id: z.ZodString;
226
+ name: z.ZodNullable<z.ZodString>;
227
+ url: z.ZodNullable<z.ZodURL>;
228
+ searchConsole: z.ZodObject<{
229
+ status: z.ZodEnum<{
230
+ action_required: "action_required";
231
+ connected: "connected";
232
+ disconnected: "disconnected";
233
+ }>;
234
+ }, z.core.$strict>;
235
+ monitoring: z.ZodObject<{
236
+ mode: z.ZodNullable<z.ZodEnum<{
237
+ full_monitoring: "full_monitoring";
238
+ search_tracking: "search_tracking";
239
+ }>>;
240
+ status: z.ZodEnum<{
241
+ active: "active";
242
+ archived: "archived";
243
+ paused: "paused";
244
+ unconfigured: "unconfigured";
245
+ }>;
246
+ analysisAvailable: z.ZodBoolean;
247
+ }, z.core.$strict>;
248
+ }, z.core.$strict>>;
249
+ readonly page: z.ZodObject<{
250
+ readonly total: z.ZodNumber;
251
+ readonly limit: z.ZodNumber;
252
+ readonly offset: z.ZodNumber;
253
+ readonly hasMore: z.ZodBoolean;
254
+ }, z.core.$strip>;
156
255
  }, z.core.$strip>;
157
256
  meta: z.ZodObject<{
158
257
  readonly requestId: z.ZodString;
@@ -186,6 +285,37 @@ export declare const sitesListResponseSchema: import("./core.js").CompatibleResp
186
285
  analysisAvailable: z.ZodBoolean;
187
286
  }, z.core.$loose>;
188
287
  }, z.core.$loose>>;
288
+ readonly rows: z.ZodOptional<z.ZodArray<z.ZodObject<{
289
+ id: z.ZodString;
290
+ name: z.ZodNullable<z.ZodString>;
291
+ url: z.ZodNullable<z.ZodURL>;
292
+ searchConsole: z.ZodObject<{
293
+ status: z.ZodEnum<{
294
+ action_required: "action_required";
295
+ connected: "connected";
296
+ disconnected: "disconnected";
297
+ }>;
298
+ }, z.core.$loose>;
299
+ monitoring: z.ZodObject<{
300
+ mode: z.ZodNullable<z.ZodEnum<{
301
+ full_monitoring: "full_monitoring";
302
+ search_tracking: "search_tracking";
303
+ }>>;
304
+ status: z.ZodEnum<{
305
+ active: "active";
306
+ archived: "archived";
307
+ paused: "paused";
308
+ unconfigured: "unconfigured";
309
+ }>;
310
+ analysisAvailable: z.ZodBoolean;
311
+ }, z.core.$loose>;
312
+ }, z.core.$loose>>>;
313
+ readonly page: z.ZodOptional<z.ZodObject<{
314
+ readonly total: z.ZodNumber;
315
+ readonly limit: z.ZodNumber;
316
+ readonly offset: z.ZodNumber;
317
+ readonly hasMore: z.ZodBoolean;
318
+ }, z.core.$strip>>;
189
319
  }, z.core.$strip>;
190
320
  meta: z.ZodObject<{
191
321
  readonly requestId: z.ZodString;
@@ -221,6 +351,9 @@ export declare const sitesListOperation: {
221
351
  readonly responses: {
222
352
  readonly 200: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
223
353
  data: z.ZodObject<{
354
+ /**
355
+ * Deprecated alias of `rows`. Kept for one minor version, then removed.
356
+ */
224
357
  readonly sites: z.ZodArray<z.ZodObject<{
225
358
  id: z.ZodString;
226
359
  name: z.ZodNullable<z.ZodString>;
@@ -246,6 +379,37 @@ export declare const sitesListOperation: {
246
379
  analysisAvailable: z.ZodBoolean;
247
380
  }, z.core.$strict>;
248
381
  }, z.core.$strict>>;
382
+ readonly rows: z.ZodArray<z.ZodObject<{
383
+ id: z.ZodString;
384
+ name: z.ZodNullable<z.ZodString>;
385
+ url: z.ZodNullable<z.ZodURL>;
386
+ searchConsole: z.ZodObject<{
387
+ status: z.ZodEnum<{
388
+ action_required: "action_required";
389
+ connected: "connected";
390
+ disconnected: "disconnected";
391
+ }>;
392
+ }, z.core.$strict>;
393
+ monitoring: z.ZodObject<{
394
+ mode: z.ZodNullable<z.ZodEnum<{
395
+ full_monitoring: "full_monitoring";
396
+ search_tracking: "search_tracking";
397
+ }>>;
398
+ status: z.ZodEnum<{
399
+ active: "active";
400
+ archived: "archived";
401
+ paused: "paused";
402
+ unconfigured: "unconfigured";
403
+ }>;
404
+ analysisAvailable: z.ZodBoolean;
405
+ }, z.core.$strict>;
406
+ }, z.core.$strict>>;
407
+ readonly page: z.ZodObject<{
408
+ readonly total: z.ZodNumber;
409
+ readonly limit: z.ZodNumber;
410
+ readonly offset: z.ZodNumber;
411
+ readonly hasMore: z.ZodBoolean;
412
+ }, z.core.$strip>;
249
413
  }, z.core.$strip>;
250
414
  meta: z.ZodObject<{
251
415
  readonly requestId: z.ZodString;
@@ -279,6 +443,37 @@ export declare const sitesListOperation: {
279
443
  analysisAvailable: z.ZodBoolean;
280
444
  }, z.core.$loose>;
281
445
  }, z.core.$loose>>;
446
+ readonly rows: z.ZodOptional<z.ZodArray<z.ZodObject<{
447
+ id: z.ZodString;
448
+ name: z.ZodNullable<z.ZodString>;
449
+ url: z.ZodNullable<z.ZodURL>;
450
+ searchConsole: z.ZodObject<{
451
+ status: z.ZodEnum<{
452
+ action_required: "action_required";
453
+ connected: "connected";
454
+ disconnected: "disconnected";
455
+ }>;
456
+ }, z.core.$loose>;
457
+ monitoring: z.ZodObject<{
458
+ mode: z.ZodNullable<z.ZodEnum<{
459
+ full_monitoring: "full_monitoring";
460
+ search_tracking: "search_tracking";
461
+ }>>;
462
+ status: z.ZodEnum<{
463
+ active: "active";
464
+ archived: "archived";
465
+ paused: "paused";
466
+ unconfigured: "unconfigured";
467
+ }>;
468
+ analysisAvailable: z.ZodBoolean;
469
+ }, z.core.$loose>;
470
+ }, z.core.$loose>>>;
471
+ readonly page: z.ZodOptional<z.ZodObject<{
472
+ readonly total: z.ZodNumber;
473
+ readonly limit: z.ZodNumber;
474
+ readonly offset: z.ZodNumber;
475
+ readonly hasMore: z.ZodBoolean;
476
+ }, z.core.$strip>>;
282
477
  }, z.core.$strip>;
283
478
  meta: z.ZodObject<{
284
479
  readonly requestId: z.ZodString;
@@ -380,6 +575,25 @@ export declare const sitesListOperation: {
380
575
  readonly analysisAvailable: true;
381
576
  };
382
577
  }];
578
+ readonly rows: readonly [{
579
+ readonly id: 'site_01JXYZ';
580
+ readonly name: 'Example';
581
+ readonly url: 'https://example.com/';
582
+ readonly searchConsole: {
583
+ readonly status: 'connected';
584
+ };
585
+ readonly monitoring: {
586
+ readonly mode: 'full_monitoring';
587
+ readonly status: 'active';
588
+ readonly analysisAvailable: true;
589
+ };
590
+ }];
591
+ readonly page: {
592
+ readonly total: 1;
593
+ readonly limit: 1;
594
+ readonly offset: 0;
595
+ readonly hasMore: false;
596
+ };
383
597
  };
384
598
  readonly meta: {
385
599
  readonly requestId: 'req_01JXYZ';
@@ -1120,6 +1334,9 @@ export declare const sitesV1Registry: import("./core.js").PublicV1Registry<{
1120
1334
  readonly responses: {
1121
1335
  readonly 200: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
1122
1336
  data: z.ZodObject<{
1337
+ /**
1338
+ * Deprecated alias of `rows`. Kept for one minor version, then removed.
1339
+ */
1123
1340
  readonly sites: z.ZodArray<z.ZodObject<{
1124
1341
  id: z.ZodString;
1125
1342
  name: z.ZodNullable<z.ZodString>;
@@ -1145,6 +1362,37 @@ export declare const sitesV1Registry: import("./core.js").PublicV1Registry<{
1145
1362
  analysisAvailable: z.ZodBoolean;
1146
1363
  }, z.core.$strict>;
1147
1364
  }, z.core.$strict>>;
1365
+ readonly rows: z.ZodArray<z.ZodObject<{
1366
+ id: z.ZodString;
1367
+ name: z.ZodNullable<z.ZodString>;
1368
+ url: z.ZodNullable<z.ZodURL>;
1369
+ searchConsole: z.ZodObject<{
1370
+ status: z.ZodEnum<{
1371
+ action_required: "action_required";
1372
+ connected: "connected";
1373
+ disconnected: "disconnected";
1374
+ }>;
1375
+ }, z.core.$strict>;
1376
+ monitoring: z.ZodObject<{
1377
+ mode: z.ZodNullable<z.ZodEnum<{
1378
+ full_monitoring: "full_monitoring";
1379
+ search_tracking: "search_tracking";
1380
+ }>>;
1381
+ status: z.ZodEnum<{
1382
+ active: "active";
1383
+ archived: "archived";
1384
+ paused: "paused";
1385
+ unconfigured: "unconfigured";
1386
+ }>;
1387
+ analysisAvailable: z.ZodBoolean;
1388
+ }, z.core.$strict>;
1389
+ }, z.core.$strict>>;
1390
+ readonly page: z.ZodObject<{
1391
+ readonly total: z.ZodNumber;
1392
+ readonly limit: z.ZodNumber;
1393
+ readonly offset: z.ZodNumber;
1394
+ readonly hasMore: z.ZodBoolean;
1395
+ }, z.core.$strip>;
1148
1396
  }, z.core.$strip>;
1149
1397
  meta: z.ZodObject<{
1150
1398
  readonly requestId: z.ZodString;
@@ -1178,6 +1426,37 @@ export declare const sitesV1Registry: import("./core.js").PublicV1Registry<{
1178
1426
  analysisAvailable: z.ZodBoolean;
1179
1427
  }, z.core.$loose>;
1180
1428
  }, z.core.$loose>>;
1429
+ readonly rows: z.ZodOptional<z.ZodArray<z.ZodObject<{
1430
+ id: z.ZodString;
1431
+ name: z.ZodNullable<z.ZodString>;
1432
+ url: z.ZodNullable<z.ZodURL>;
1433
+ searchConsole: z.ZodObject<{
1434
+ status: z.ZodEnum<{
1435
+ action_required: "action_required";
1436
+ connected: "connected";
1437
+ disconnected: "disconnected";
1438
+ }>;
1439
+ }, z.core.$loose>;
1440
+ monitoring: z.ZodObject<{
1441
+ mode: z.ZodNullable<z.ZodEnum<{
1442
+ full_monitoring: "full_monitoring";
1443
+ search_tracking: "search_tracking";
1444
+ }>>;
1445
+ status: z.ZodEnum<{
1446
+ active: "active";
1447
+ archived: "archived";
1448
+ paused: "paused";
1449
+ unconfigured: "unconfigured";
1450
+ }>;
1451
+ analysisAvailable: z.ZodBoolean;
1452
+ }, z.core.$loose>;
1453
+ }, z.core.$loose>>>;
1454
+ readonly page: z.ZodOptional<z.ZodObject<{
1455
+ readonly total: z.ZodNumber;
1456
+ readonly limit: z.ZodNumber;
1457
+ readonly offset: z.ZodNumber;
1458
+ readonly hasMore: z.ZodBoolean;
1459
+ }, z.core.$strip>>;
1181
1460
  }, z.core.$strip>;
1182
1461
  meta: z.ZodObject<{
1183
1462
  readonly requestId: z.ZodString;
@@ -1279,6 +1558,25 @@ export declare const sitesV1Registry: import("./core.js").PublicV1Registry<{
1279
1558
  readonly analysisAvailable: true;
1280
1559
  };
1281
1560
  }];
1561
+ readonly rows: readonly [{
1562
+ readonly id: 'site_01JXYZ';
1563
+ readonly name: 'Example';
1564
+ readonly url: 'https://example.com/';
1565
+ readonly searchConsole: {
1566
+ readonly status: 'connected';
1567
+ };
1568
+ readonly monitoring: {
1569
+ readonly mode: 'full_monitoring';
1570
+ readonly status: 'active';
1571
+ readonly analysisAvailable: true;
1572
+ };
1573
+ }];
1574
+ readonly page: {
1575
+ readonly total: 1;
1576
+ readonly limit: 1;
1577
+ readonly offset: 0;
1578
+ readonly hasMore: false;
1579
+ };
1282
1580
  };
1283
1581
  readonly meta: {
1284
1582
  readonly requestId: 'req_01JXYZ';
package/dist/v1/sites.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { z as schema } from 'zod';
2
- import { defineOperation, defineRegistry, defineResponseObject, defineSuccessEnvelope, publicV1ErrorEnvelope, publicV1MetaClientSchema, publicV1MetaProducerSchema, publicV1StandardRatePolicy, } from './core.js';
2
+ import { defineOperation, defineRegistry, defineResponseObject, defineSuccessEnvelope, publicV1ErrorEnvelope, publicV1MetaClientSchema, publicV1MetaProducerSchema, publicV1PageSchema, publicV1StandardRatePolicy, } from './core.js';
3
3
  export const siteSearchConsoleStatusSchema = schema.enum(['connected', 'disconnected', 'action_required']);
4
4
  export const siteMonitoringModeSchema = schema.enum(['search_tracking', 'full_monitoring']).nullable();
5
5
  export const siteMonitoringStatusSchema = schema.enum(['active', 'paused', 'archived', 'unconfigured']);
@@ -29,7 +29,18 @@ export const siteSummaryClientSchema = schema.looseObject({
29
29
  analysisAvailable: schema.boolean(),
30
30
  }),
31
31
  });
32
- export const sitesListDataSchema = defineResponseObject({ sites: schema.array(siteSummaryProducerSchema) }, { sites: schema.array(siteSummaryClientSchema) });
32
+ export const sitesListDataSchema = defineResponseObject({
33
+ /**
34
+ * Deprecated alias of `rows`. Kept for one minor version, then removed.
35
+ */
36
+ sites: schema.array(siteSummaryProducerSchema),
37
+ rows: schema.array(siteSummaryProducerSchema),
38
+ page: publicV1PageSchema.producer,
39
+ }, {
40
+ sites: schema.array(siteSummaryClientSchema),
41
+ rows: schema.array(siteSummaryClientSchema).optional(),
42
+ page: publicV1PageSchema.client.optional(),
43
+ });
33
44
  export const sitesListMetaSchema = defineResponseObject({ ...publicV1MetaProducerSchema.shape, total: schema.number().int().nonnegative() }, { ...publicV1MetaClientSchema.shape, total: schema.number().int().nonnegative() });
34
45
  export const sitesListResponseSchema = defineSuccessEnvelope(sitesListDataSchema, sitesListMetaSchema);
35
46
  export const sitesListOperation = defineOperation({
@@ -86,6 +97,14 @@ export const sitesListOperation = defineOperation({
86
97
  searchConsole: { status: 'connected' },
87
98
  monitoring: { mode: 'full_monitoring', status: 'active', analysisAvailable: true },
88
99
  }],
100
+ rows: [{
101
+ id: 'site_01JXYZ',
102
+ name: 'Example',
103
+ url: 'https://example.com/',
104
+ searchConsole: { status: 'connected' },
105
+ monitoring: { mode: 'full_monitoring', status: 'active', analysisAvailable: true },
106
+ }],
107
+ page: { total: 1, limit: 1, offset: 0, hasMore: false },
89
108
  },
90
109
  meta: { requestId: 'req_01JXYZ', version: '1.0', total: 1 },
91
110
  },