@nuxtseo/protocol 0.1.3 → 0.1.4
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/actions.d.ts +52 -26
- package/dist/v1/actions.js +16 -9
- package/dist/v1/core.d.ts +3 -3
- package/dist/v1/core.js +2 -0
- package/dist/v1/index.d.ts +3 -0
- package/dist/v1/index.js +3 -0
- package/dist/v1/timeline.d.ts +517 -0
- package/dist/v1/timeline.js +150 -0
- package/generated/openapi.v1.json +1 -1
- package/package.json +7 -2
package/dist/v1/actions.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ export declare const actionSourceSchema: import("./core.js").CompatibleResponseS
|
|
|
47
47
|
* Evidence age computed at read time, so a listing cannot present a stale
|
|
48
48
|
* observation as current work. `verdict` is `aged` past 24 hours. `source`
|
|
49
49
|
* names which clock answered: `producer` is the sealed collection clock,
|
|
50
|
-
* `
|
|
50
|
+
* `action-observation` is the action's own reasserted clock, `none` means no
|
|
51
51
|
* observation clock exists and the verdict is `unknown`.
|
|
52
52
|
*/
|
|
53
53
|
export declare const actionEvidenceFreshnessSchema: z.ZodObject<{
|
|
@@ -59,9 +59,9 @@ export declare const actionEvidenceFreshnessSchema: z.ZodObject<{
|
|
|
59
59
|
unknown: "unknown";
|
|
60
60
|
}>;
|
|
61
61
|
source: z.ZodEnum<{
|
|
62
|
+
"action-observation": "action-observation";
|
|
62
63
|
none: "none";
|
|
63
64
|
producer: "producer";
|
|
64
|
-
"ticket-observation": "ticket-observation";
|
|
65
65
|
}>;
|
|
66
66
|
confidence: z.ZodEnum<{
|
|
67
67
|
reasserted: "reasserted";
|
|
@@ -69,6 +69,26 @@ export declare const actionEvidenceFreshnessSchema: z.ZodObject<{
|
|
|
69
69
|
unknown: "unknown";
|
|
70
70
|
}>;
|
|
71
71
|
}, z.core.$strict>;
|
|
72
|
+
export declare const actionEvidenceFreshnessClientSchema: z.ZodObject<{
|
|
73
|
+
observedAt: z.ZodNullable<z.ZodString>;
|
|
74
|
+
ageHours: z.ZodNullable<z.ZodNumber>;
|
|
75
|
+
verdict: z.ZodEnum<{
|
|
76
|
+
aged: "aged";
|
|
77
|
+
recent: "recent";
|
|
78
|
+
unknown: "unknown";
|
|
79
|
+
}>;
|
|
80
|
+
source: z.ZodEnum<{
|
|
81
|
+
"action-observation": "action-observation";
|
|
82
|
+
none: "none";
|
|
83
|
+
producer: "producer";
|
|
84
|
+
"ticket-observation": "ticket-observation";
|
|
85
|
+
}>;
|
|
86
|
+
confidence: z.ZodEnum<{
|
|
87
|
+
reasserted: "reasserted";
|
|
88
|
+
sealed: "sealed";
|
|
89
|
+
unknown: "unknown";
|
|
90
|
+
}>;
|
|
91
|
+
}, z.core.$loose>;
|
|
72
92
|
export declare const actionEvidenceSummarySchema: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
|
|
73
93
|
readonly artifactVersion: z.ZodNullable<z.ZodString>;
|
|
74
94
|
readonly coverage: z.ZodEnum<{
|
|
@@ -93,9 +113,9 @@ export declare const actionEvidenceSummarySchema: import("./core.js").Compatible
|
|
|
93
113
|
unknown: "unknown";
|
|
94
114
|
}>;
|
|
95
115
|
source: z.ZodEnum<{
|
|
116
|
+
"action-observation": "action-observation";
|
|
96
117
|
none: "none";
|
|
97
118
|
producer: "producer";
|
|
98
|
-
"ticket-observation": "ticket-observation";
|
|
99
119
|
}>;
|
|
100
120
|
confidence: z.ZodEnum<{
|
|
101
121
|
reasserted: "reasserted";
|
|
@@ -127,6 +147,7 @@ export declare const actionEvidenceSummarySchema: import("./core.js").Compatible
|
|
|
127
147
|
unknown: "unknown";
|
|
128
148
|
}>;
|
|
129
149
|
source: z.ZodEnum<{
|
|
150
|
+
"action-observation": "action-observation";
|
|
130
151
|
none: "none";
|
|
131
152
|
producer: "producer";
|
|
132
153
|
"ticket-observation": "ticket-observation";
|
|
@@ -136,7 +157,7 @@ export declare const actionEvidenceSummarySchema: import("./core.js").Compatible
|
|
|
136
157
|
sealed: "sealed";
|
|
137
158
|
unknown: "unknown";
|
|
138
159
|
}>;
|
|
139
|
-
}, z.core.$
|
|
160
|
+
}, z.core.$loose>;
|
|
140
161
|
}, z.core.$strip>>;
|
|
141
162
|
export declare const actionListItemSchema: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
|
|
142
163
|
readonly id: z.ZodString;
|
|
@@ -192,9 +213,9 @@ export declare const actionListItemSchema: import("./core.js").CompatibleRespons
|
|
|
192
213
|
unknown: "unknown";
|
|
193
214
|
}>;
|
|
194
215
|
source: z.ZodEnum<{
|
|
216
|
+
"action-observation": "action-observation";
|
|
195
217
|
none: "none";
|
|
196
218
|
producer: "producer";
|
|
197
|
-
"ticket-observation": "ticket-observation";
|
|
198
219
|
}>;
|
|
199
220
|
confidence: z.ZodEnum<{
|
|
200
221
|
reasserted: "reasserted";
|
|
@@ -268,6 +289,7 @@ export declare const actionListItemSchema: import("./core.js").CompatibleRespons
|
|
|
268
289
|
unknown: "unknown";
|
|
269
290
|
}>;
|
|
270
291
|
source: z.ZodEnum<{
|
|
292
|
+
"action-observation": "action-observation";
|
|
271
293
|
none: "none";
|
|
272
294
|
producer: "producer";
|
|
273
295
|
"ticket-observation": "ticket-observation";
|
|
@@ -277,7 +299,7 @@ export declare const actionListItemSchema: import("./core.js").CompatibleRespons
|
|
|
277
299
|
sealed: "sealed";
|
|
278
300
|
unknown: "unknown";
|
|
279
301
|
}>;
|
|
280
|
-
}, z.core.$
|
|
302
|
+
}, z.core.$loose>;
|
|
281
303
|
}, z.core.$strip>;
|
|
282
304
|
readonly firstSeenAt: z.ZodNullable<z.ZodString>;
|
|
283
305
|
readonly relatedActionIds: z.ZodArray<z.ZodString>;
|
|
@@ -346,9 +368,9 @@ export declare const actionListDataSchema: import("./core.js").CompatibleRespons
|
|
|
346
368
|
unknown: "unknown";
|
|
347
369
|
}>;
|
|
348
370
|
source: z.ZodEnum<{
|
|
371
|
+
"action-observation": "action-observation";
|
|
349
372
|
none: "none";
|
|
350
373
|
producer: "producer";
|
|
351
|
-
"ticket-observation": "ticket-observation";
|
|
352
374
|
}>;
|
|
353
375
|
confidence: z.ZodEnum<{
|
|
354
376
|
reasserted: "reasserted";
|
|
@@ -431,6 +453,7 @@ export declare const actionListDataSchema: import("./core.js").CompatibleRespons
|
|
|
431
453
|
unknown: "unknown";
|
|
432
454
|
}>;
|
|
433
455
|
source: z.ZodEnum<{
|
|
456
|
+
"action-observation": "action-observation";
|
|
434
457
|
none: "none";
|
|
435
458
|
producer: "producer";
|
|
436
459
|
"ticket-observation": "ticket-observation";
|
|
@@ -440,7 +463,7 @@ export declare const actionListDataSchema: import("./core.js").CompatibleRespons
|
|
|
440
463
|
sealed: "sealed";
|
|
441
464
|
unknown: "unknown";
|
|
442
465
|
}>;
|
|
443
|
-
}, z.core.$
|
|
466
|
+
}, z.core.$loose>;
|
|
444
467
|
}, z.core.$strip>;
|
|
445
468
|
readonly firstSeenAt: z.ZodNullable<z.ZodString>;
|
|
446
469
|
readonly relatedActionIds: z.ZodArray<z.ZodString>;
|
|
@@ -518,9 +541,9 @@ export declare const actionListResponseSchema: import("./core.js").CompatibleRes
|
|
|
518
541
|
unknown: "unknown";
|
|
519
542
|
}>;
|
|
520
543
|
source: z.ZodEnum<{
|
|
544
|
+
"action-observation": "action-observation";
|
|
521
545
|
none: "none";
|
|
522
546
|
producer: "producer";
|
|
523
|
-
"ticket-observation": "ticket-observation";
|
|
524
547
|
}>;
|
|
525
548
|
confidence: z.ZodEnum<{
|
|
526
549
|
reasserted: "reasserted";
|
|
@@ -609,6 +632,7 @@ export declare const actionListResponseSchema: import("./core.js").CompatibleRes
|
|
|
609
632
|
unknown: "unknown";
|
|
610
633
|
}>;
|
|
611
634
|
source: z.ZodEnum<{
|
|
635
|
+
"action-observation": "action-observation";
|
|
612
636
|
none: "none";
|
|
613
637
|
producer: "producer";
|
|
614
638
|
"ticket-observation": "ticket-observation";
|
|
@@ -618,7 +642,7 @@ export declare const actionListResponseSchema: import("./core.js").CompatibleRes
|
|
|
618
642
|
sealed: "sealed";
|
|
619
643
|
unknown: "unknown";
|
|
620
644
|
}>;
|
|
621
|
-
}, z.core.$
|
|
645
|
+
}, z.core.$loose>;
|
|
622
646
|
}, z.core.$strip>;
|
|
623
647
|
readonly firstSeenAt: z.ZodNullable<z.ZodString>;
|
|
624
648
|
readonly relatedActionIds: z.ZodArray<z.ZodString>;
|
|
@@ -1361,9 +1385,9 @@ export declare const actionListOperation: {
|
|
|
1361
1385
|
unknown: "unknown";
|
|
1362
1386
|
}>;
|
|
1363
1387
|
source: z.ZodEnum<{
|
|
1388
|
+
"action-observation": "action-observation";
|
|
1364
1389
|
none: "none";
|
|
1365
1390
|
producer: "producer";
|
|
1366
|
-
"ticket-observation": "ticket-observation";
|
|
1367
1391
|
}>;
|
|
1368
1392
|
confidence: z.ZodEnum<{
|
|
1369
1393
|
reasserted: "reasserted";
|
|
@@ -1452,6 +1476,7 @@ export declare const actionListOperation: {
|
|
|
1452
1476
|
unknown: "unknown";
|
|
1453
1477
|
}>;
|
|
1454
1478
|
source: z.ZodEnum<{
|
|
1479
|
+
"action-observation": "action-observation";
|
|
1455
1480
|
none: "none";
|
|
1456
1481
|
producer: "producer";
|
|
1457
1482
|
"ticket-observation": "ticket-observation";
|
|
@@ -1461,7 +1486,7 @@ export declare const actionListOperation: {
|
|
|
1461
1486
|
sealed: "sealed";
|
|
1462
1487
|
unknown: "unknown";
|
|
1463
1488
|
}>;
|
|
1464
|
-
}, z.core.$
|
|
1489
|
+
}, z.core.$loose>;
|
|
1465
1490
|
}, z.core.$strip>;
|
|
1466
1491
|
readonly firstSeenAt: z.ZodNullable<z.ZodString>;
|
|
1467
1492
|
readonly relatedActionIds: z.ZodArray<z.ZodString>;
|
|
@@ -1888,7 +1913,7 @@ export declare const actionShowOperation: {
|
|
|
1888
1913
|
readonly request: {
|
|
1889
1914
|
readonly params: {
|
|
1890
1915
|
readonly siteId: 'site_01JXYZ';
|
|
1891
|
-
readonly actionId: '
|
|
1916
|
+
readonly actionId: 'action_01JXYZ';
|
|
1892
1917
|
};
|
|
1893
1918
|
readonly query: {
|
|
1894
1919
|
readonly limit: 50;
|
|
@@ -1898,10 +1923,10 @@ export declare const actionShowOperation: {
|
|
|
1898
1923
|
readonly status: 200;
|
|
1899
1924
|
readonly body: {
|
|
1900
1925
|
readonly data: {
|
|
1901
|
-
readonly id: '
|
|
1926
|
+
readonly id: 'action_01JXYZ';
|
|
1902
1927
|
readonly status: 'open';
|
|
1903
1928
|
readonly findingType: 'broken-pages';
|
|
1904
|
-
readonly artifactVersion: 'te2:
|
|
1929
|
+
readonly artifactVersion: 'te2:action_01JXYZ:scope';
|
|
1905
1930
|
readonly assessmentId: 'assessment_01JXYZ';
|
|
1906
1931
|
readonly asOf: '2026-08-10T01:30:00.000Z';
|
|
1907
1932
|
readonly diagnosis: 'One page returns HTTP 404.';
|
|
@@ -2074,17 +2099,17 @@ export declare const actionResolveOperation: {
|
|
|
2074
2099
|
readonly request: {
|
|
2075
2100
|
readonly params: {
|
|
2076
2101
|
readonly siteId: 'site_01JXYZ';
|
|
2077
|
-
readonly actionId: '
|
|
2102
|
+
readonly actionId: 'action_01JXYZ';
|
|
2078
2103
|
};
|
|
2079
2104
|
readonly body: {
|
|
2080
|
-
readonly artifactVersion: 'te2:
|
|
2105
|
+
readonly artifactVersion: 'te2:action_01JXYZ:scope';
|
|
2081
2106
|
};
|
|
2082
2107
|
};
|
|
2083
2108
|
readonly response: {
|
|
2084
2109
|
readonly status: 200;
|
|
2085
2110
|
readonly body: {
|
|
2086
2111
|
readonly data: {
|
|
2087
|
-
readonly actionId: '
|
|
2112
|
+
readonly actionId: 'action_01JXYZ';
|
|
2088
2113
|
readonly status: 'open';
|
|
2089
2114
|
readonly verification: 'recheck-queued';
|
|
2090
2115
|
};
|
|
@@ -2183,9 +2208,9 @@ export declare const actionsV1Registry: import("./core.js").PublicV1Registry<{
|
|
|
2183
2208
|
unknown: "unknown";
|
|
2184
2209
|
}>;
|
|
2185
2210
|
source: z.ZodEnum<{
|
|
2211
|
+
"action-observation": "action-observation";
|
|
2186
2212
|
none: "none";
|
|
2187
2213
|
producer: "producer";
|
|
2188
|
-
"ticket-observation": "ticket-observation";
|
|
2189
2214
|
}>;
|
|
2190
2215
|
confidence: z.ZodEnum<{
|
|
2191
2216
|
reasserted: "reasserted";
|
|
@@ -2274,6 +2299,7 @@ export declare const actionsV1Registry: import("./core.js").PublicV1Registry<{
|
|
|
2274
2299
|
unknown: "unknown";
|
|
2275
2300
|
}>;
|
|
2276
2301
|
source: z.ZodEnum<{
|
|
2302
|
+
"action-observation": "action-observation";
|
|
2277
2303
|
none: "none";
|
|
2278
2304
|
producer: "producer";
|
|
2279
2305
|
"ticket-observation": "ticket-observation";
|
|
@@ -2283,7 +2309,7 @@ export declare const actionsV1Registry: import("./core.js").PublicV1Registry<{
|
|
|
2283
2309
|
sealed: "sealed";
|
|
2284
2310
|
unknown: "unknown";
|
|
2285
2311
|
}>;
|
|
2286
|
-
}, z.core.$
|
|
2312
|
+
}, z.core.$loose>;
|
|
2287
2313
|
}, z.core.$strip>;
|
|
2288
2314
|
readonly firstSeenAt: z.ZodNullable<z.ZodString>;
|
|
2289
2315
|
readonly relatedActionIds: z.ZodArray<z.ZodString>;
|
|
@@ -2710,7 +2736,7 @@ export declare const actionsV1Registry: import("./core.js").PublicV1Registry<{
|
|
|
2710
2736
|
readonly request: {
|
|
2711
2737
|
readonly params: {
|
|
2712
2738
|
readonly siteId: 'site_01JXYZ';
|
|
2713
|
-
readonly actionId: '
|
|
2739
|
+
readonly actionId: 'action_01JXYZ';
|
|
2714
2740
|
};
|
|
2715
2741
|
readonly query: {
|
|
2716
2742
|
readonly limit: 50;
|
|
@@ -2720,10 +2746,10 @@ export declare const actionsV1Registry: import("./core.js").PublicV1Registry<{
|
|
|
2720
2746
|
readonly status: 200;
|
|
2721
2747
|
readonly body: {
|
|
2722
2748
|
readonly data: {
|
|
2723
|
-
readonly id: '
|
|
2749
|
+
readonly id: 'action_01JXYZ';
|
|
2724
2750
|
readonly status: 'open';
|
|
2725
2751
|
readonly findingType: 'broken-pages';
|
|
2726
|
-
readonly artifactVersion: 'te2:
|
|
2752
|
+
readonly artifactVersion: 'te2:action_01JXYZ:scope';
|
|
2727
2753
|
readonly assessmentId: 'assessment_01JXYZ';
|
|
2728
2754
|
readonly asOf: '2026-08-10T01:30:00.000Z';
|
|
2729
2755
|
readonly diagnosis: 'One page returns HTTP 404.';
|
|
@@ -2896,17 +2922,17 @@ export declare const actionsV1Registry: import("./core.js").PublicV1Registry<{
|
|
|
2896
2922
|
readonly request: {
|
|
2897
2923
|
readonly params: {
|
|
2898
2924
|
readonly siteId: 'site_01JXYZ';
|
|
2899
|
-
readonly actionId: '
|
|
2925
|
+
readonly actionId: 'action_01JXYZ';
|
|
2900
2926
|
};
|
|
2901
2927
|
readonly body: {
|
|
2902
|
-
readonly artifactVersion: 'te2:
|
|
2928
|
+
readonly artifactVersion: 'te2:action_01JXYZ:scope';
|
|
2903
2929
|
};
|
|
2904
2930
|
};
|
|
2905
2931
|
readonly response: {
|
|
2906
2932
|
readonly status: 200;
|
|
2907
2933
|
readonly body: {
|
|
2908
2934
|
readonly data: {
|
|
2909
|
-
readonly actionId: '
|
|
2935
|
+
readonly actionId: 'action_01JXYZ';
|
|
2910
2936
|
readonly status: 'open';
|
|
2911
2937
|
readonly verification: 'recheck-queued';
|
|
2912
2938
|
};
|
package/dist/v1/actions.js
CHANGED
|
@@ -42,14 +42,21 @@ export const actionSourceSchema = defineResponseObject({ label: schema.string().
|
|
|
42
42
|
* Evidence age computed at read time, so a listing cannot present a stale
|
|
43
43
|
* observation as current work. `verdict` is `aged` past 24 hours. `source`
|
|
44
44
|
* names which clock answered: `producer` is the sealed collection clock,
|
|
45
|
-
* `
|
|
45
|
+
* `action-observation` is the action's own reasserted clock, `none` means no
|
|
46
46
|
* observation clock exists and the verdict is `unknown`.
|
|
47
47
|
*/
|
|
48
48
|
export const actionEvidenceFreshnessSchema = schema.strictObject({
|
|
49
49
|
observedAt: schema.string().datetime().nullable(),
|
|
50
50
|
ageHours: schema.number().int().nonnegative().nullable(),
|
|
51
51
|
verdict: schema.enum(['recent', 'aged', 'unknown']),
|
|
52
|
-
source: schema.enum(['producer', '
|
|
52
|
+
source: schema.enum(['producer', 'action-observation', 'none']),
|
|
53
|
+
confidence: schema.enum(['sealed', 'reasserted', 'unknown']),
|
|
54
|
+
});
|
|
55
|
+
export const actionEvidenceFreshnessClientSchema = schema.looseObject({
|
|
56
|
+
observedAt: schema.string().datetime().nullable(),
|
|
57
|
+
ageHours: schema.number().int().nonnegative().nullable(),
|
|
58
|
+
verdict: schema.enum(['recent', 'aged', 'unknown']),
|
|
59
|
+
source: schema.enum(['producer', 'action-observation', 'ticket-observation', 'none']),
|
|
53
60
|
confidence: schema.enum(['sealed', 'reasserted', 'unknown']),
|
|
54
61
|
});
|
|
55
62
|
export const actionEvidenceSummarySchema = defineResponseObject({
|
|
@@ -71,7 +78,7 @@ export const actionEvidenceSummarySchema = defineResponseObject({
|
|
|
71
78
|
groupCount: schema.number().int().nonnegative(),
|
|
72
79
|
observedAt: schema.string().datetime().nullable(),
|
|
73
80
|
asOf: schema.string().datetime().nullable(),
|
|
74
|
-
freshness:
|
|
81
|
+
freshness: actionEvidenceFreshnessClientSchema,
|
|
75
82
|
});
|
|
76
83
|
export const actionListItemSchema = defineResponseObject({
|
|
77
84
|
id: schema.string().min(1),
|
|
@@ -396,15 +403,15 @@ export const actionShowOperation = defineOperation({
|
|
|
396
403
|
description: 'Reads the versioned evidence reviewed before resolving an action. Evidence group cursors are bound to the artifact version.',
|
|
397
404
|
tags: ['Actions'],
|
|
398
405
|
examples: [{
|
|
399
|
-
request: { params: { siteId: 'site_01JXYZ', actionId: '
|
|
406
|
+
request: { params: { siteId: 'site_01JXYZ', actionId: 'action_01JXYZ' }, query: { limit: 50 } },
|
|
400
407
|
response: {
|
|
401
408
|
status: 200,
|
|
402
409
|
body: {
|
|
403
410
|
data: {
|
|
404
|
-
id: '
|
|
411
|
+
id: 'action_01JXYZ',
|
|
405
412
|
status: 'open',
|
|
406
413
|
findingType: 'broken-pages',
|
|
407
|
-
artifactVersion: 'te2:
|
|
414
|
+
artifactVersion: 'te2:action_01JXYZ:scope',
|
|
408
415
|
assessmentId: 'assessment_01JXYZ',
|
|
409
416
|
asOf: '2026-08-10T01:30:00.000Z',
|
|
410
417
|
diagnosis: 'One page returns HTTP 404.',
|
|
@@ -465,13 +472,13 @@ export const actionResolveOperation = defineOperation({
|
|
|
465
472
|
tags: ['Actions'],
|
|
466
473
|
examples: [{
|
|
467
474
|
request: {
|
|
468
|
-
params: { siteId: 'site_01JXYZ', actionId: '
|
|
469
|
-
body: { artifactVersion: 'te2:
|
|
475
|
+
params: { siteId: 'site_01JXYZ', actionId: 'action_01JXYZ' },
|
|
476
|
+
body: { artifactVersion: 'te2:action_01JXYZ:scope' },
|
|
470
477
|
},
|
|
471
478
|
response: {
|
|
472
479
|
status: 200,
|
|
473
480
|
body: {
|
|
474
|
-
data: { actionId: '
|
|
481
|
+
data: { actionId: 'action_01JXYZ', status: 'open', verification: 'recheck-queued' },
|
|
475
482
|
meta: { requestId: 'req_01JXYZ', version: '1.0' },
|
|
476
483
|
},
|
|
477
484
|
},
|
package/dist/v1/core.d.ts
CHANGED
|
@@ -17,10 +17,10 @@ export declare const publicV1StandardRatePolicy: {
|
|
|
17
17
|
readonly limit: 50;
|
|
18
18
|
readonly windowSeconds: 60;
|
|
19
19
|
};
|
|
20
|
-
export declare const PUBLIC_V1_FEATURES: readonly ['account', 'actions', 'analytics', 'audit', 'backlinks', 'content', 'mentions', 'page', 'research', 'sites'];
|
|
20
|
+
export declare const PUBLIC_V1_FEATURES: readonly ['account', 'actions', 'analytics', 'audit', 'backlinks', 'content', 'mentions', 'page', 'research', 'sites', 'timeline'];
|
|
21
21
|
export declare const PUBLIC_V1_METHODS: readonly ['DELETE', 'GET', 'PATCH', 'POST'];
|
|
22
22
|
export declare const PUBLIC_V1_CREDENTIALS: readonly ['api_token', 'session'];
|
|
23
|
-
export declare const PUBLIC_V1_SCOPES: readonly ['account:read', 'actions:read', 'actions:write', 'analytics:read', 'audit:read', 'content:read', 'content:write', 'page:read', 'page:write', 'research:read', 'research:write', 'sites:read', 'sites:write'];
|
|
23
|
+
export declare const PUBLIC_V1_SCOPES: readonly ['account:read', 'actions:read', 'actions:write', 'analytics:read', 'audit:read', 'content:read', 'content:write', 'page:read', 'page:write', 'research:read', 'research:write', 'sites:read', 'sites:write', 'timeline:read'];
|
|
24
24
|
export declare const PUBLIC_V1_ROLES: readonly ['viewer', 'member', 'admin', 'owner'];
|
|
25
25
|
export declare const PUBLIC_V1_ERROR_CODES: readonly ['invalid_request', 'unauthorized', 'forbidden', 'not_found', 'site_ambiguous', 'auth_expired', 'entitlement_required', 'quota_exhausted', 'provider_unavailable', 'stale_evidence', 'conflict', 'rate_limited', 'contract_violation', 'internal_error'];
|
|
26
26
|
export declare const PUBLIC_V1_ERROR_STATUS: {
|
|
@@ -47,7 +47,7 @@ export type PublicV1Role = typeof PUBLIC_V1_ROLES[number];
|
|
|
47
47
|
export type PublicV1ErrorCode = typeof PUBLIC_V1_ERROR_CODES[number];
|
|
48
48
|
export type PublicV1Visibility = 'internal' | 'public';
|
|
49
49
|
export type PublicV1OwnershipRule = 'principal' | 'site' | 'team';
|
|
50
|
-
export type PublicV1ResourceType = 'account.usage' | 'site.actions' | 'site.analytics' | 'site.audit' | 'site.collection' | 'site.content' | 'site.identity' | 'site.page' | 'site.research' | 'site.sitemaps';
|
|
50
|
+
export type PublicV1ResourceType = 'account.usage' | 'site.actions' | 'site.analytics' | 'site.audit' | 'site.collection' | 'site.content' | 'site.identity' | 'site.page' | 'site.research' | 'site.sitemaps' | 'site.timeline';
|
|
51
51
|
export interface PublicV1ExpectedFailure {
|
|
52
52
|
_tag: 'ApiFailure';
|
|
53
53
|
code: PublicV1ErrorCode;
|
package/dist/v1/core.js
CHANGED
|
@@ -30,6 +30,7 @@ export const PUBLIC_V1_FEATURES = [
|
|
|
30
30
|
'page',
|
|
31
31
|
'research',
|
|
32
32
|
'sites',
|
|
33
|
+
'timeline',
|
|
33
34
|
];
|
|
34
35
|
export const PUBLIC_V1_METHODS = ['DELETE', 'GET', 'PATCH', 'POST'];
|
|
35
36
|
export const PUBLIC_V1_CREDENTIALS = ['api_token', 'session'];
|
|
@@ -47,6 +48,7 @@ export const PUBLIC_V1_SCOPES = [
|
|
|
47
48
|
'research:write',
|
|
48
49
|
'sites:read',
|
|
49
50
|
'sites:write',
|
|
51
|
+
'timeline:read',
|
|
50
52
|
];
|
|
51
53
|
export const PUBLIC_V1_ROLES = ['viewer', 'member', 'admin', 'owner'];
|
|
52
54
|
export const PUBLIC_V1_ERROR_CODES = [
|
package/dist/v1/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import { performanceV1Registry } from './performance.js';
|
|
|
12
12
|
import { researchV1Registry } from './research.js';
|
|
13
13
|
import { sitemapsV1Registry } from './sitemaps.js';
|
|
14
14
|
import { sitesV1Registry } from './sites.js';
|
|
15
|
+
import { timelineV1Registry } from './timeline.js';
|
|
15
16
|
export * from './account.js';
|
|
16
17
|
export * from './actions.js';
|
|
17
18
|
export * from './analytics.js';
|
|
@@ -26,6 +27,7 @@ export * from './performance.js';
|
|
|
26
27
|
export * from './research.js';
|
|
27
28
|
export * from './sitemaps.js';
|
|
28
29
|
export * from './sites.js';
|
|
30
|
+
export * from './timeline.js';
|
|
29
31
|
export interface PublicV1Protocol extends Omit<PublicV1ProtocolLike, 'registries' | 'schemas'> {
|
|
30
32
|
registries: {
|
|
31
33
|
readonly account: typeof accountV1Registry;
|
|
@@ -41,6 +43,7 @@ export interface PublicV1Protocol extends Omit<PublicV1ProtocolLike, 'registries
|
|
|
41
43
|
readonly search: typeof searchV1Registry;
|
|
42
44
|
readonly sites: typeof sitesV1Registry;
|
|
43
45
|
readonly sitemaps: typeof sitemapsV1Registry;
|
|
46
|
+
readonly timeline: typeof timelineV1Registry;
|
|
44
47
|
};
|
|
45
48
|
schemas: {
|
|
46
49
|
readonly errorEnvelope: typeof publicV1ErrorEnvelope;
|
package/dist/v1/index.js
CHANGED
|
@@ -11,6 +11,7 @@ import { performanceV1Registry } from './performance.js';
|
|
|
11
11
|
import { researchV1Registry } from './research.js';
|
|
12
12
|
import { sitemapsV1Registry } from './sitemaps.js';
|
|
13
13
|
import { sitesV1Registry } from './sites.js';
|
|
14
|
+
import { timelineV1Registry } from './timeline.js';
|
|
14
15
|
export * from './account.js';
|
|
15
16
|
export * from './actions.js';
|
|
16
17
|
export * from './analytics.js';
|
|
@@ -25,6 +26,7 @@ export * from './performance.js';
|
|
|
25
26
|
export * from './research.js';
|
|
26
27
|
export * from './sitemaps.js';
|
|
27
28
|
export * from './sites.js';
|
|
29
|
+
export * from './timeline.js';
|
|
28
30
|
export function createPublicV1Protocol() {
|
|
29
31
|
const protocol = {
|
|
30
32
|
version: PUBLIC_V1_VERSION,
|
|
@@ -42,6 +44,7 @@ export function createPublicV1Protocol() {
|
|
|
42
44
|
search: searchV1Registry,
|
|
43
45
|
sites: sitesV1Registry,
|
|
44
46
|
sitemaps: sitemapsV1Registry,
|
|
47
|
+
timeline: timelineV1Registry,
|
|
45
48
|
},
|
|
46
49
|
schemas: {
|
|
47
50
|
errorEnvelope: publicV1ErrorEnvelope,
|