@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.
@@ -118,7 +118,11 @@ export const actionListItemSchema = defineResponseObject({
118
118
  }).nullable(),
119
119
  });
120
120
  export const actionListDataSchema = defineResponseObject({
121
+ /**
122
+ * Deprecated alias of `rows`. Kept for one minor version, then removed.
123
+ */
121
124
  actions: schema.array(actionListItemSchema.producer),
125
+ rows: schema.array(actionListItemSchema.producer),
122
126
  page: schema.strictObject({
123
127
  total: schema.number().int().nonnegative(),
124
128
  limit: schema.number().int().nonnegative(),
@@ -128,6 +132,7 @@ export const actionListDataSchema = defineResponseObject({
128
132
  listedAsOf: schema.string().datetime(),
129
133
  }, {
130
134
  actions: schema.array(actionListItemSchema.client),
135
+ rows: schema.array(actionListItemSchema.client).optional(),
131
136
  page: schema.looseObject({
132
137
  total: schema.number().int().nonnegative(),
133
138
  limit: schema.number().int().nonnegative(),
@@ -204,6 +209,13 @@ export const actionEvidenceItemSchema = schema.discriminatedUnion('_tag', [
204
209
  url: schema.string().url(),
205
210
  detail: schema.string().nullable(),
206
211
  }),
212
+ schema.strictObject({
213
+ _tag: schema.literal('element'),
214
+ id: schema.string().min(1),
215
+ selector: schema.string().min(1),
216
+ snippet: schema.string().min(1).nullable(),
217
+ page: schema.string().url().nullable(),
218
+ }),
207
219
  ]);
208
220
  export const actionEvidenceItemClientSchema = schema.discriminatedUnion('_tag', [
209
221
  schema.looseObject({
@@ -232,6 +244,13 @@ export const actionEvidenceItemClientSchema = schema.discriminatedUnion('_tag',
232
244
  url: schema.string().url(),
233
245
  detail: schema.string().nullable(),
234
246
  }),
247
+ schema.looseObject({
248
+ _tag: schema.literal('element'),
249
+ id: schema.string().min(1),
250
+ selector: schema.string().min(1),
251
+ snippet: schema.string().min(1).nullable(),
252
+ page: schema.string().url().nullable(),
253
+ }),
235
254
  ]);
236
255
  export const actionVerifierSchema = schema.discriminatedUnion('_tag', [
237
256
  schema.strictObject({ _tag: schema.literal('target-healthy'), url: schema.string().url() }),
@@ -375,6 +394,7 @@ export const actionListOperation = defineOperation({
375
394
  body: {
376
395
  data: {
377
396
  actions: [],
397
+ rows: [],
378
398
  page: { total: 0, limit: 0, offset: 0, hasMore: false },
379
399
  listedAsOf: '2026-08-10T01:30:00.000Z',
380
400
  },