semrush-cli 0.1.1 → 0.2.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/README.md +57 -19
- package/THIRD-PARTY-NOTICES.md +4 -2
- package/assets/logo.png +0 -0
- package/assets/logo.svg +10 -1
- package/dist/{auth-BcUPx0Nk.js → auth-CYAtam3G.js} +4 -4
- package/dist/{auth-BcUPx0Nk.js.map → auth-CYAtam3G.js.map} +1 -1
- package/dist/{browser-layer-D6mEyv9Y.js → browser-layer-CY1KdjJo.js} +38 -18
- package/dist/browser-layer-CY1KdjJo.js.map +1 -0
- package/dist/cli.js +19 -12
- package/dist/cli.js.map +1 -1
- package/dist/{errors-BhvanypE.js → errors-CJuwKbEZ.js} +677 -50
- package/dist/errors-CJuwKbEZ.js.map +1 -0
- package/dist/{mcp-Cuzenjra.js → mcp-CSgmSxRc.js} +13 -7
- package/dist/mcp-CSgmSxRc.js.map +1 -0
- package/dist/{session-layer-BUU0ZG9M.js → session-layer-BIL6Umvb.js} +2 -2
- package/dist/{session-layer-BUU0ZG9M.js.map → session-layer-BIL6Umvb.js.map} +1 -1
- package/dist/{validation-C_lcBSzX.js → validation-BCtts-Al.js} +5 -3
- package/dist/validation-BCtts-Al.js.map +1 -0
- package/dist/validation-DBzNMr6w.js +4 -0
- package/package.json +1 -1
- package/dist/browser-layer-D6mEyv9Y.js.map +0 -1
- package/dist/errors-BhvanypE.js.map +0 -1
- package/dist/mcp-Cuzenjra.js.map +0 -1
- package/dist/validation-BH5mq69L.js +0 -4
- package/dist/validation-C_lcBSzX.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
|
|
3
3
|
//#region package.json
|
|
4
|
-
var version$1 = "0.
|
|
4
|
+
var version$1 = "0.2.0";
|
|
5
5
|
|
|
6
6
|
//#endregion
|
|
7
7
|
//#region src/report-catalog.json
|
|
@@ -17,7 +17,10 @@ var report_catalog_default = {
|
|
|
17
17
|
"properties": {},
|
|
18
18
|
"title": "EmptyQuery",
|
|
19
19
|
"type": "object"
|
|
20
|
-
}
|
|
20
|
+
},
|
|
21
|
+
"mutation": false,
|
|
22
|
+
"destructive": false,
|
|
23
|
+
"http_method": ""
|
|
21
24
|
},
|
|
22
25
|
keyword_overview: {
|
|
23
26
|
"method": "keywords.GetInfo",
|
|
@@ -44,7 +47,10 @@ var report_catalog_default = {
|
|
|
44
47
|
"required": ["keyword"],
|
|
45
48
|
"title": "KeywordQuery",
|
|
46
49
|
"type": "object"
|
|
47
|
-
}
|
|
50
|
+
},
|
|
51
|
+
"mutation": false,
|
|
52
|
+
"destructive": false,
|
|
53
|
+
"http_method": ""
|
|
48
54
|
},
|
|
49
55
|
keyword_ideas: {
|
|
50
56
|
"method": "ideas.GetKeywords",
|
|
@@ -83,7 +89,10 @@ var report_catalog_default = {
|
|
|
83
89
|
"required": ["keyword"],
|
|
84
90
|
"title": "IdeasQuery",
|
|
85
91
|
"type": "object"
|
|
86
|
-
}
|
|
92
|
+
},
|
|
93
|
+
"mutation": false,
|
|
94
|
+
"destructive": false,
|
|
95
|
+
"http_method": ""
|
|
87
96
|
},
|
|
88
97
|
keyword_ideas_summary: {
|
|
89
98
|
"method": "ideas.GetKeywordsSummary",
|
|
@@ -115,7 +124,10 @@ var report_catalog_default = {
|
|
|
115
124
|
"required": ["keyword"],
|
|
116
125
|
"title": "IdeasSummaryQuery",
|
|
117
126
|
"type": "object"
|
|
118
|
-
}
|
|
127
|
+
},
|
|
128
|
+
"mutation": false,
|
|
129
|
+
"destructive": false,
|
|
130
|
+
"http_method": ""
|
|
119
131
|
},
|
|
120
132
|
keyword_serp: {
|
|
121
133
|
"method": "serp.GetURLs",
|
|
@@ -149,7 +161,10 @@ var report_catalog_default = {
|
|
|
149
161
|
"required": ["keyword"],
|
|
150
162
|
"title": "KeywordListQuery",
|
|
151
163
|
"type": "object"
|
|
152
|
-
}
|
|
164
|
+
},
|
|
165
|
+
"mutation": false,
|
|
166
|
+
"destructive": false,
|
|
167
|
+
"http_method": ""
|
|
153
168
|
},
|
|
154
169
|
keyword_ads: {
|
|
155
170
|
"method": "adwords.GetCopies",
|
|
@@ -183,7 +198,10 @@ var report_catalog_default = {
|
|
|
183
198
|
"required": ["keyword"],
|
|
184
199
|
"title": "KeywordListQuery",
|
|
185
200
|
"type": "object"
|
|
186
|
-
}
|
|
201
|
+
},
|
|
202
|
+
"mutation": false,
|
|
203
|
+
"destructive": false,
|
|
204
|
+
"http_method": ""
|
|
187
205
|
},
|
|
188
206
|
keyword_clusters: {
|
|
189
207
|
"method": "clusters.Get",
|
|
@@ -210,7 +228,10 @@ var report_catalog_default = {
|
|
|
210
228
|
"required": ["keyword"],
|
|
211
229
|
"title": "KeywordQuery",
|
|
212
230
|
"type": "object"
|
|
213
|
-
}
|
|
231
|
+
},
|
|
232
|
+
"mutation": false,
|
|
233
|
+
"destructive": false,
|
|
234
|
+
"http_method": ""
|
|
214
235
|
},
|
|
215
236
|
keyword_magic: {
|
|
216
237
|
"method": "ideas.GetKeywords",
|
|
@@ -291,7 +312,10 @@ var report_catalog_default = {
|
|
|
291
312
|
"required": ["keyword"],
|
|
292
313
|
"title": "MagicQuery",
|
|
293
314
|
"type": "object"
|
|
294
|
-
}
|
|
315
|
+
},
|
|
316
|
+
"mutation": false,
|
|
317
|
+
"destructive": false,
|
|
318
|
+
"http_method": ""
|
|
295
319
|
},
|
|
296
320
|
keyword_magic_summary: {
|
|
297
321
|
"method": "ideas.GetKeywordsSummary",
|
|
@@ -359,7 +383,10 @@ var report_catalog_default = {
|
|
|
359
383
|
"required": ["keyword"],
|
|
360
384
|
"title": "MagicSummaryQuery",
|
|
361
385
|
"type": "object"
|
|
362
|
-
}
|
|
386
|
+
},
|
|
387
|
+
"mutation": false,
|
|
388
|
+
"destructive": false,
|
|
389
|
+
"http_method": ""
|
|
363
390
|
},
|
|
364
391
|
keyword_magic_groups: {
|
|
365
392
|
"method": "ideas.GetGroups",
|
|
@@ -440,7 +467,10 @@ var report_catalog_default = {
|
|
|
440
467
|
"required": ["keyword"],
|
|
441
468
|
"title": "MagicQuery",
|
|
442
469
|
"type": "object"
|
|
443
|
-
}
|
|
470
|
+
},
|
|
471
|
+
"mutation": false,
|
|
472
|
+
"destructive": false,
|
|
473
|
+
"http_method": ""
|
|
444
474
|
},
|
|
445
475
|
domain_overview: {
|
|
446
476
|
"method": "organic.Summary",
|
|
@@ -468,7 +498,10 @@ var report_catalog_default = {
|
|
|
468
498
|
"required": ["domain"],
|
|
469
499
|
"title": "DomainQuery",
|
|
470
500
|
"type": "object"
|
|
471
|
-
}
|
|
501
|
+
},
|
|
502
|
+
"mutation": false,
|
|
503
|
+
"destructive": false,
|
|
504
|
+
"http_method": ""
|
|
472
505
|
},
|
|
473
506
|
domain_keywords: {
|
|
474
507
|
"method": "organic.Positions",
|
|
@@ -547,7 +580,10 @@ var report_catalog_default = {
|
|
|
547
580
|
"required": ["domain"],
|
|
548
581
|
"title": "DomainReportQuery",
|
|
549
582
|
"type": "object"
|
|
550
|
-
}
|
|
583
|
+
},
|
|
584
|
+
"mutation": false,
|
|
585
|
+
"destructive": false,
|
|
586
|
+
"http_method": ""
|
|
551
587
|
},
|
|
552
588
|
domain_pages: {
|
|
553
589
|
"method": "organic.PagesV3",
|
|
@@ -626,7 +662,10 @@ var report_catalog_default = {
|
|
|
626
662
|
"required": ["domain"],
|
|
627
663
|
"title": "DomainPagesQuery",
|
|
628
664
|
"type": "object"
|
|
629
|
-
}
|
|
665
|
+
},
|
|
666
|
+
"mutation": false,
|
|
667
|
+
"destructive": false,
|
|
668
|
+
"http_method": ""
|
|
630
669
|
},
|
|
631
670
|
domain_subdomains: {
|
|
632
671
|
"method": "organic.Subdomains",
|
|
@@ -705,7 +744,10 @@ var report_catalog_default = {
|
|
|
705
744
|
"required": ["domain"],
|
|
706
745
|
"title": "DomainPagesQuery",
|
|
707
746
|
"type": "object"
|
|
708
|
-
}
|
|
747
|
+
},
|
|
748
|
+
"mutation": false,
|
|
749
|
+
"destructive": false,
|
|
750
|
+
"http_method": ""
|
|
709
751
|
},
|
|
710
752
|
domain_position_changes: {
|
|
711
753
|
"method": "organic.PositionChangesV2",
|
|
@@ -784,7 +826,10 @@ var report_catalog_default = {
|
|
|
784
826
|
"required": ["domain"],
|
|
785
827
|
"title": "DomainChangesQuery",
|
|
786
828
|
"type": "object"
|
|
787
|
-
}
|
|
829
|
+
},
|
|
830
|
+
"mutation": false,
|
|
831
|
+
"destructive": false,
|
|
832
|
+
"http_method": ""
|
|
788
833
|
},
|
|
789
834
|
domain_competitors: {
|
|
790
835
|
"method": "organic.Competitors",
|
|
@@ -857,7 +902,10 @@ var report_catalog_default = {
|
|
|
857
902
|
"required": ["domain"],
|
|
858
903
|
"title": "DomainCompetitorsQuery",
|
|
859
904
|
"type": "object"
|
|
860
|
-
}
|
|
905
|
+
},
|
|
906
|
+
"mutation": false,
|
|
907
|
+
"destructive": false,
|
|
908
|
+
"http_method": ""
|
|
861
909
|
},
|
|
862
910
|
domain_backlinks: {
|
|
863
911
|
"method": "backlinks.Overview",
|
|
@@ -877,7 +925,10 @@ var report_catalog_default = {
|
|
|
877
925
|
"required": ["domain"],
|
|
878
926
|
"title": "DomainIdentityQuery",
|
|
879
927
|
"type": "object"
|
|
880
|
-
}
|
|
928
|
+
},
|
|
929
|
+
"mutation": false,
|
|
930
|
+
"destructive": false,
|
|
931
|
+
"http_method": ""
|
|
881
932
|
},
|
|
882
933
|
domain_ai_visibility: {
|
|
883
934
|
"method": "organic.AiSeoSummary",
|
|
@@ -897,7 +948,10 @@ var report_catalog_default = {
|
|
|
897
948
|
"required": ["domain"],
|
|
898
949
|
"title": "DomainIdentityQuery",
|
|
899
950
|
"type": "object"
|
|
900
|
-
}
|
|
951
|
+
},
|
|
952
|
+
"mutation": false,
|
|
953
|
+
"destructive": false,
|
|
954
|
+
"http_method": ""
|
|
901
955
|
},
|
|
902
956
|
domain_ai_countries: {
|
|
903
957
|
"method": "organic.AiDistributionByCountry",
|
|
@@ -917,7 +971,10 @@ var report_catalog_default = {
|
|
|
917
971
|
"required": ["domain"],
|
|
918
972
|
"title": "DomainIdentityQuery",
|
|
919
973
|
"type": "object"
|
|
920
|
-
}
|
|
974
|
+
},
|
|
975
|
+
"mutation": false,
|
|
976
|
+
"destructive": false,
|
|
977
|
+
"http_method": ""
|
|
921
978
|
},
|
|
922
979
|
domain_ai_sources: {
|
|
923
980
|
"method": "organic.AiTopSources",
|
|
@@ -958,7 +1015,10 @@ var report_catalog_default = {
|
|
|
958
1015
|
"required": ["domain"],
|
|
959
1016
|
"title": "AiSourcesQuery",
|
|
960
1017
|
"type": "object"
|
|
961
|
-
}
|
|
1018
|
+
},
|
|
1019
|
+
"mutation": false,
|
|
1020
|
+
"destructive": false,
|
|
1021
|
+
"http_method": ""
|
|
962
1022
|
},
|
|
963
1023
|
domain_trends: {
|
|
964
1024
|
"method": "organic.OverviewTrend",
|
|
@@ -997,7 +1057,10 @@ var report_catalog_default = {
|
|
|
997
1057
|
"required": ["domain"],
|
|
998
1058
|
"title": "DomainTrendQuery",
|
|
999
1059
|
"type": "object"
|
|
1000
|
-
}
|
|
1060
|
+
},
|
|
1061
|
+
"mutation": false,
|
|
1062
|
+
"destructive": false,
|
|
1063
|
+
"http_method": ""
|
|
1001
1064
|
},
|
|
1002
1065
|
domain_paid_keywords: {
|
|
1003
1066
|
"method": "adwords.PositionsOverview",
|
|
@@ -1032,7 +1095,10 @@ var report_catalog_default = {
|
|
|
1032
1095
|
"required": ["domain"],
|
|
1033
1096
|
"title": "DomainListQuery",
|
|
1034
1097
|
"type": "object"
|
|
1035
|
-
}
|
|
1098
|
+
},
|
|
1099
|
+
"mutation": false,
|
|
1100
|
+
"destructive": false,
|
|
1101
|
+
"http_method": ""
|
|
1036
1102
|
},
|
|
1037
1103
|
domain_paid_competitors: {
|
|
1038
1104
|
"method": "adwords.CompetitorsOverview",
|
|
@@ -1067,7 +1133,10 @@ var report_catalog_default = {
|
|
|
1067
1133
|
"required": ["domain"],
|
|
1068
1134
|
"title": "DomainListQuery",
|
|
1069
1135
|
"type": "object"
|
|
1070
|
-
}
|
|
1136
|
+
},
|
|
1137
|
+
"mutation": false,
|
|
1138
|
+
"destructive": false,
|
|
1139
|
+
"http_method": ""
|
|
1071
1140
|
},
|
|
1072
1141
|
domain_topics: {
|
|
1073
1142
|
"method": "organic.TopicsResult",
|
|
@@ -1095,7 +1164,10 @@ var report_catalog_default = {
|
|
|
1095
1164
|
"required": ["domain"],
|
|
1096
1165
|
"title": "DomainQuery",
|
|
1097
1166
|
"type": "object"
|
|
1098
|
-
}
|
|
1167
|
+
},
|
|
1168
|
+
"mutation": false,
|
|
1169
|
+
"destructive": false,
|
|
1170
|
+
"http_method": ""
|
|
1099
1171
|
},
|
|
1100
1172
|
domain_topics_status: {
|
|
1101
1173
|
"method": "organic.TopicsStatus",
|
|
@@ -1123,7 +1195,10 @@ var report_catalog_default = {
|
|
|
1123
1195
|
"required": ["domain"],
|
|
1124
1196
|
"title": "DomainQuery",
|
|
1125
1197
|
"type": "object"
|
|
1126
|
-
}
|
|
1198
|
+
},
|
|
1199
|
+
"mutation": false,
|
|
1200
|
+
"destructive": false,
|
|
1201
|
+
"http_method": ""
|
|
1127
1202
|
},
|
|
1128
1203
|
databases: {
|
|
1129
1204
|
"method": "user.Databases",
|
|
@@ -1136,7 +1211,10 @@ var report_catalog_default = {
|
|
|
1136
1211
|
"properties": {},
|
|
1137
1212
|
"title": "EmptyQuery",
|
|
1138
1213
|
"type": "object"
|
|
1139
|
-
}
|
|
1214
|
+
},
|
|
1215
|
+
"mutation": false,
|
|
1216
|
+
"destructive": false,
|
|
1217
|
+
"http_method": ""
|
|
1140
1218
|
},
|
|
1141
1219
|
snapshot_dates: {
|
|
1142
1220
|
"method": "organic.SnapshotDates",
|
|
@@ -1161,7 +1239,10 @@ var report_catalog_default = {
|
|
|
1161
1239
|
},
|
|
1162
1240
|
"title": "HistoryQuery",
|
|
1163
1241
|
"type": "object"
|
|
1164
|
-
}
|
|
1242
|
+
},
|
|
1243
|
+
"mutation": false,
|
|
1244
|
+
"destructive": false,
|
|
1245
|
+
"http_method": ""
|
|
1165
1246
|
},
|
|
1166
1247
|
report_permissions: {
|
|
1167
1248
|
"method": "dpa.UserPermissions",
|
|
@@ -1179,7 +1260,10 @@ var report_catalog_default = {
|
|
|
1179
1260
|
} },
|
|
1180
1261
|
"title": "DatabaseQuery",
|
|
1181
1262
|
"type": "object"
|
|
1182
|
-
}
|
|
1263
|
+
},
|
|
1264
|
+
"mutation": false,
|
|
1265
|
+
"destructive": false,
|
|
1266
|
+
"http_method": ""
|
|
1183
1267
|
},
|
|
1184
1268
|
backlink_links: {
|
|
1185
1269
|
"method": "backlinks",
|
|
@@ -1230,7 +1314,10 @@ var report_catalog_default = {
|
|
|
1230
1314
|
"required": ["domain"],
|
|
1231
1315
|
"title": "BacklinkListQuery",
|
|
1232
1316
|
"type": "object"
|
|
1233
|
-
}
|
|
1317
|
+
},
|
|
1318
|
+
"mutation": false,
|
|
1319
|
+
"destructive": false,
|
|
1320
|
+
"http_method": ""
|
|
1234
1321
|
},
|
|
1235
1322
|
backlink_referring_domains: {
|
|
1236
1323
|
"method": "backlinks_refdomains",
|
|
@@ -1281,7 +1368,10 @@ var report_catalog_default = {
|
|
|
1281
1368
|
"required": ["domain"],
|
|
1282
1369
|
"title": "BacklinkListQuery",
|
|
1283
1370
|
"type": "object"
|
|
1284
|
-
}
|
|
1371
|
+
},
|
|
1372
|
+
"mutation": false,
|
|
1373
|
+
"destructive": false,
|
|
1374
|
+
"http_method": ""
|
|
1285
1375
|
},
|
|
1286
1376
|
backlink_history: {
|
|
1287
1377
|
"method": "historical",
|
|
@@ -1308,7 +1398,10 @@ var report_catalog_default = {
|
|
|
1308
1398
|
"required": ["domain"],
|
|
1309
1399
|
"title": "BacklinkQuery",
|
|
1310
1400
|
"type": "object"
|
|
1311
|
-
}
|
|
1401
|
+
},
|
|
1402
|
+
"mutation": false,
|
|
1403
|
+
"destructive": false,
|
|
1404
|
+
"http_method": ""
|
|
1312
1405
|
},
|
|
1313
1406
|
backlink_competitors: {
|
|
1314
1407
|
"method": "competitors",
|
|
@@ -1335,7 +1428,10 @@ var report_catalog_default = {
|
|
|
1335
1428
|
"required": ["domain"],
|
|
1336
1429
|
"title": "BacklinkQuery",
|
|
1337
1430
|
"type": "object"
|
|
1338
|
-
}
|
|
1431
|
+
},
|
|
1432
|
+
"mutation": false,
|
|
1433
|
+
"destructive": false,
|
|
1434
|
+
"http_method": ""
|
|
1339
1435
|
},
|
|
1340
1436
|
backlink_top_pages: {
|
|
1341
1437
|
"method": "backlinks_pages",
|
|
@@ -1386,7 +1482,10 @@ var report_catalog_default = {
|
|
|
1386
1482
|
"required": ["domain"],
|
|
1387
1483
|
"title": "BacklinkListQuery",
|
|
1388
1484
|
"type": "object"
|
|
1389
|
-
}
|
|
1485
|
+
},
|
|
1486
|
+
"mutation": false,
|
|
1487
|
+
"destructive": false,
|
|
1488
|
+
"http_method": ""
|
|
1390
1489
|
},
|
|
1391
1490
|
backlink_anchors: {
|
|
1392
1491
|
"method": "backlinks_anchors",
|
|
@@ -1437,7 +1536,10 @@ var report_catalog_default = {
|
|
|
1437
1536
|
"required": ["domain"],
|
|
1438
1537
|
"title": "BacklinkListQuery",
|
|
1439
1538
|
"type": "object"
|
|
1440
|
-
}
|
|
1539
|
+
},
|
|
1540
|
+
"mutation": false,
|
|
1541
|
+
"destructive": false,
|
|
1542
|
+
"http_method": ""
|
|
1441
1543
|
},
|
|
1442
1544
|
backlink_outgoing_domains: {
|
|
1443
1545
|
"method": "backlinks_outgoing_domains",
|
|
@@ -1488,7 +1590,10 @@ var report_catalog_default = {
|
|
|
1488
1590
|
"required": ["domain"],
|
|
1489
1591
|
"title": "BacklinkListQuery",
|
|
1490
1592
|
"type": "object"
|
|
1491
|
-
}
|
|
1593
|
+
},
|
|
1594
|
+
"mutation": false,
|
|
1595
|
+
"destructive": false,
|
|
1596
|
+
"http_method": ""
|
|
1492
1597
|
},
|
|
1493
1598
|
backlink_countries: {
|
|
1494
1599
|
"method": "geodomains",
|
|
@@ -1515,7 +1620,10 @@ var report_catalog_default = {
|
|
|
1515
1620
|
"required": ["domain"],
|
|
1516
1621
|
"title": "BacklinkQuery",
|
|
1517
1622
|
"type": "object"
|
|
1518
|
-
}
|
|
1623
|
+
},
|
|
1624
|
+
"mutation": false,
|
|
1625
|
+
"destructive": false,
|
|
1626
|
+
"http_method": ""
|
|
1519
1627
|
},
|
|
1520
1628
|
backlink_authority: {
|
|
1521
1629
|
"method": "ascore",
|
|
@@ -1542,7 +1650,10 @@ var report_catalog_default = {
|
|
|
1542
1650
|
"required": ["domain"],
|
|
1543
1651
|
"title": "BacklinkQuery",
|
|
1544
1652
|
"type": "object"
|
|
1545
|
-
}
|
|
1653
|
+
},
|
|
1654
|
+
"mutation": false,
|
|
1655
|
+
"destructive": false,
|
|
1656
|
+
"http_method": ""
|
|
1546
1657
|
},
|
|
1547
1658
|
backlink_categories: {
|
|
1548
1659
|
"method": "category-profile",
|
|
@@ -1569,7 +1680,10 @@ var report_catalog_default = {
|
|
|
1569
1680
|
"required": ["domain"],
|
|
1570
1681
|
"title": "BacklinkQuery",
|
|
1571
1682
|
"type": "object"
|
|
1572
|
-
}
|
|
1683
|
+
},
|
|
1684
|
+
"mutation": false,
|
|
1685
|
+
"destructive": false,
|
|
1686
|
+
"http_method": ""
|
|
1573
1687
|
},
|
|
1574
1688
|
keyword_gap: {
|
|
1575
1689
|
"method": "/spectrum/v1/Gap/KeywordsList",
|
|
@@ -1625,7 +1739,10 @@ var report_catalog_default = {
|
|
|
1625
1739
|
"required": ["domains"],
|
|
1626
1740
|
"title": "GapQuery",
|
|
1627
1741
|
"type": "object"
|
|
1628
|
-
}
|
|
1742
|
+
},
|
|
1743
|
+
"mutation": false,
|
|
1744
|
+
"destructive": false,
|
|
1745
|
+
"http_method": ""
|
|
1629
1746
|
},
|
|
1630
1747
|
keyword_gap_totals: {
|
|
1631
1748
|
"method": "/spectrum/v1/Gap/KeywordsTotals",
|
|
@@ -1660,7 +1777,10 @@ var report_catalog_default = {
|
|
|
1660
1777
|
"required": ["domains"],
|
|
1661
1778
|
"title": "GapSummaryQuery",
|
|
1662
1779
|
"type": "object"
|
|
1663
|
-
}
|
|
1780
|
+
},
|
|
1781
|
+
"mutation": false,
|
|
1782
|
+
"destructive": false,
|
|
1783
|
+
"http_method": ""
|
|
1664
1784
|
},
|
|
1665
1785
|
keyword_gap_overlap: {
|
|
1666
1786
|
"method": "/spectrum/v1/Gap/Overlaps",
|
|
@@ -1695,7 +1815,10 @@ var report_catalog_default = {
|
|
|
1695
1815
|
"required": ["domains"],
|
|
1696
1816
|
"title": "GapSummaryQuery",
|
|
1697
1817
|
"type": "object"
|
|
1698
|
-
}
|
|
1818
|
+
},
|
|
1819
|
+
"mutation": false,
|
|
1820
|
+
"destructive": false,
|
|
1821
|
+
"http_method": ""
|
|
1699
1822
|
},
|
|
1700
1823
|
backlink_gap: {
|
|
1701
1824
|
"method": "backlinks_matrix",
|
|
@@ -1755,7 +1878,10 @@ var report_catalog_default = {
|
|
|
1755
1878
|
"required": ["domains"],
|
|
1756
1879
|
"title": "BacklinkGapQuery",
|
|
1757
1880
|
"type": "object"
|
|
1758
|
-
}
|
|
1881
|
+
},
|
|
1882
|
+
"mutation": false,
|
|
1883
|
+
"destructive": false,
|
|
1884
|
+
"http_method": ""
|
|
1759
1885
|
},
|
|
1760
1886
|
backlink_comparison: {
|
|
1761
1887
|
"method": "backlinks_comparison",
|
|
@@ -1776,7 +1902,10 @@ var report_catalog_default = {
|
|
|
1776
1902
|
"required": ["domains"],
|
|
1777
1903
|
"title": "BacklinkComparisonQuery",
|
|
1778
1904
|
"type": "object"
|
|
1779
|
-
}
|
|
1905
|
+
},
|
|
1906
|
+
"mutation": false,
|
|
1907
|
+
"destructive": false,
|
|
1908
|
+
"http_method": ""
|
|
1780
1909
|
},
|
|
1781
1910
|
projects: {
|
|
1782
1911
|
"method": "/apis/v4-raw/crossroad/api/v0/crossroad/list",
|
|
@@ -1809,7 +1938,10 @@ var report_catalog_default = {
|
|
|
1809
1938
|
},
|
|
1810
1939
|
"title": "ProjectListQuery",
|
|
1811
1940
|
"type": "object"
|
|
1812
|
-
}
|
|
1941
|
+
},
|
|
1942
|
+
"mutation": false,
|
|
1943
|
+
"destructive": false,
|
|
1944
|
+
"http_method": ""
|
|
1813
1945
|
},
|
|
1814
1946
|
ai_capabilities: {
|
|
1815
1947
|
"method": "/ai-seo/api/v2/user/user_capabilities",
|
|
@@ -1822,7 +1954,10 @@ var report_catalog_default = {
|
|
|
1822
1954
|
"properties": {},
|
|
1823
1955
|
"title": "EmptyQuery",
|
|
1824
1956
|
"type": "object"
|
|
1825
|
-
}
|
|
1957
|
+
},
|
|
1958
|
+
"mutation": false,
|
|
1959
|
+
"destructive": false,
|
|
1960
|
+
"http_method": ""
|
|
1826
1961
|
},
|
|
1827
1962
|
audit_campaigns: {
|
|
1828
1963
|
"method": "/siteaudit/api/campaigns/seolist",
|
|
@@ -1835,7 +1970,10 @@ var report_catalog_default = {
|
|
|
1835
1970
|
"properties": {},
|
|
1836
1971
|
"title": "EmptyQuery",
|
|
1837
1972
|
"type": "object"
|
|
1838
|
-
}
|
|
1973
|
+
},
|
|
1974
|
+
"mutation": false,
|
|
1975
|
+
"destructive": false,
|
|
1976
|
+
"http_method": ""
|
|
1839
1977
|
},
|
|
1840
1978
|
folders: {
|
|
1841
1979
|
"method": "/apis/v4-raw/folders/api/v0/folders/selector-list",
|
|
@@ -1848,7 +1986,10 @@ var report_catalog_default = {
|
|
|
1848
1986
|
"properties": {},
|
|
1849
1987
|
"title": "EmptyQuery",
|
|
1850
1988
|
"type": "object"
|
|
1851
|
-
}
|
|
1989
|
+
},
|
|
1990
|
+
"mutation": false,
|
|
1991
|
+
"destructive": false,
|
|
1992
|
+
"http_method": ""
|
|
1852
1993
|
},
|
|
1853
1994
|
saved_keyword_lists: {
|
|
1854
1995
|
"method": "/apis/v4-raw/saved-keywords/api/v0/list/all",
|
|
@@ -1861,6 +2002,450 @@ var report_catalog_default = {
|
|
|
1861
2002
|
"properties": {},
|
|
1862
2003
|
"title": "EmptyQuery",
|
|
1863
2004
|
"type": "object"
|
|
2005
|
+
},
|
|
2006
|
+
"mutation": false,
|
|
2007
|
+
"destructive": false,
|
|
2008
|
+
"http_method": ""
|
|
2009
|
+
},
|
|
2010
|
+
project_create: {
|
|
2011
|
+
"method": "/apis/v4-raw/folders/api/v0/folders",
|
|
2012
|
+
"description": "Create a project, optionally with a website. Does not start tools or share it.",
|
|
2013
|
+
"transport": "project_web",
|
|
2014
|
+
"total_method": "",
|
|
2015
|
+
"web_report": "",
|
|
2016
|
+
"mutation": true,
|
|
2017
|
+
"destructive": false,
|
|
2018
|
+
"http_method": "POST",
|
|
2019
|
+
"schema": {
|
|
2020
|
+
"type": "object",
|
|
2021
|
+
"additionalProperties": false,
|
|
2022
|
+
"properties": {
|
|
2023
|
+
"name": {
|
|
2024
|
+
"type": "string",
|
|
2025
|
+
"minLength": 1,
|
|
2026
|
+
"maxLength": 255,
|
|
2027
|
+
"pattern": "^(?=.*\\S)[^~|`!#%^&*=\\[\\]\\\\\\x27/{}\":<>?]+$",
|
|
2028
|
+
"description": "Project name, up to 255 characters. The web UI restricts punctuation."
|
|
2029
|
+
},
|
|
2030
|
+
"domain": {
|
|
2031
|
+
"type": "string",
|
|
2032
|
+
"minLength": 1,
|
|
2033
|
+
"maxLength": 253,
|
|
2034
|
+
"pattern": "^(?:[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?\\.)+[A-Za-z]{2,63}$",
|
|
2035
|
+
"description": "Domain or subdomain, without protocol or path."
|
|
2036
|
+
},
|
|
2037
|
+
"confirm": {
|
|
2038
|
+
"type": "boolean",
|
|
2039
|
+
"default": false,
|
|
2040
|
+
"description": "Confirm this account mutation."
|
|
2041
|
+
},
|
|
2042
|
+
"dry_run": {
|
|
2043
|
+
"type": "boolean",
|
|
2044
|
+
"default": false,
|
|
2045
|
+
"description": "Print the request without sending it."
|
|
2046
|
+
}
|
|
2047
|
+
},
|
|
2048
|
+
"required": ["name"]
|
|
2049
|
+
}
|
|
2050
|
+
},
|
|
2051
|
+
project_get: {
|
|
2052
|
+
"method": "/apis/v4-raw/folders/api/v0/folders/folder",
|
|
2053
|
+
"description": "Read one project by its current web folder ID.",
|
|
2054
|
+
"transport": "project_web",
|
|
2055
|
+
"total_method": "",
|
|
2056
|
+
"web_report": "",
|
|
2057
|
+
"mutation": false,
|
|
2058
|
+
"destructive": false,
|
|
2059
|
+
"http_method": "GET",
|
|
2060
|
+
"schema": {
|
|
2061
|
+
"type": "object",
|
|
2062
|
+
"additionalProperties": false,
|
|
2063
|
+
"properties": { "folder_id": {
|
|
2064
|
+
"type": "string",
|
|
2065
|
+
"pattern": "^[0-9]+$",
|
|
2066
|
+
"maxLength": 30,
|
|
2067
|
+
"description": "Current web project folder ID, as a decimal string."
|
|
2068
|
+
} },
|
|
2069
|
+
"required": ["folder_id"]
|
|
2070
|
+
}
|
|
2071
|
+
},
|
|
2072
|
+
project_update: {
|
|
2073
|
+
"method": "/apis/v4-raw/folders/api/v0/folders/{folder_id}",
|
|
2074
|
+
"description": "Rename a project or add its first domain. Existing domains cannot be changed.",
|
|
2075
|
+
"transport": "project_web",
|
|
2076
|
+
"total_method": "",
|
|
2077
|
+
"web_report": "",
|
|
2078
|
+
"mutation": true,
|
|
2079
|
+
"destructive": false,
|
|
2080
|
+
"http_method": "PUT",
|
|
2081
|
+
"schema": {
|
|
2082
|
+
"type": "object",
|
|
2083
|
+
"additionalProperties": false,
|
|
2084
|
+
"properties": {
|
|
2085
|
+
"folder_id": {
|
|
2086
|
+
"type": "string",
|
|
2087
|
+
"pattern": "^[0-9]+$",
|
|
2088
|
+
"maxLength": 30,
|
|
2089
|
+
"description": "Current web project folder ID, as a decimal string."
|
|
2090
|
+
},
|
|
2091
|
+
"name": {
|
|
2092
|
+
"type": "string",
|
|
2093
|
+
"minLength": 1,
|
|
2094
|
+
"maxLength": 255,
|
|
2095
|
+
"pattern": "^(?=.*\\S)[^~|`!#%^&*=\\[\\]\\\\\\x27/{}\":<>?]+$",
|
|
2096
|
+
"description": "Project name, up to 255 characters. The web UI restricts punctuation."
|
|
2097
|
+
},
|
|
2098
|
+
"domain": {
|
|
2099
|
+
"type": "string",
|
|
2100
|
+
"minLength": 1,
|
|
2101
|
+
"maxLength": 253,
|
|
2102
|
+
"pattern": "^(?:[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?\\.)+[A-Za-z]{2,63}$",
|
|
2103
|
+
"description": "Domain or subdomain, without protocol or path."
|
|
2104
|
+
},
|
|
2105
|
+
"confirm": {
|
|
2106
|
+
"type": "boolean",
|
|
2107
|
+
"default": false,
|
|
2108
|
+
"description": "Confirm this account mutation."
|
|
2109
|
+
},
|
|
2110
|
+
"dry_run": {
|
|
2111
|
+
"type": "boolean",
|
|
2112
|
+
"default": false,
|
|
2113
|
+
"description": "Print the request without sending it."
|
|
2114
|
+
}
|
|
2115
|
+
},
|
|
2116
|
+
"required": ["folder_id"],
|
|
2117
|
+
"anyOf": [{ "required": ["name"] }, { "required": ["domain"] }]
|
|
2118
|
+
}
|
|
2119
|
+
},
|
|
2120
|
+
project_delete: {
|
|
2121
|
+
"method": "/apis/v4-raw/folders/api/v0/folders/{folder_id}",
|
|
2122
|
+
"description": "Permanently delete a project and its attached tool data.",
|
|
2123
|
+
"transport": "project_web",
|
|
2124
|
+
"total_method": "",
|
|
2125
|
+
"web_report": "",
|
|
2126
|
+
"mutation": true,
|
|
2127
|
+
"destructive": true,
|
|
2128
|
+
"http_method": "DELETE",
|
|
2129
|
+
"schema": {
|
|
2130
|
+
"type": "object",
|
|
2131
|
+
"additionalProperties": false,
|
|
2132
|
+
"properties": {
|
|
2133
|
+
"folder_id": {
|
|
2134
|
+
"type": "string",
|
|
2135
|
+
"pattern": "^[0-9]+$",
|
|
2136
|
+
"maxLength": 30,
|
|
2137
|
+
"description": "Current web project folder ID, as a decimal string."
|
|
2138
|
+
},
|
|
2139
|
+
"confirm": {
|
|
2140
|
+
"type": "boolean",
|
|
2141
|
+
"default": false,
|
|
2142
|
+
"description": "Confirm this account mutation."
|
|
2143
|
+
},
|
|
2144
|
+
"dry_run": {
|
|
2145
|
+
"type": "boolean",
|
|
2146
|
+
"default": false,
|
|
2147
|
+
"description": "Print the request without sending it."
|
|
2148
|
+
}
|
|
2149
|
+
},
|
|
2150
|
+
"required": ["folder_id"]
|
|
2151
|
+
}
|
|
2152
|
+
},
|
|
2153
|
+
project_leave: {
|
|
2154
|
+
"method": "/share/json/leave/project-smb",
|
|
2155
|
+
"description": "Leave a shared project.",
|
|
2156
|
+
"transport": "project_web",
|
|
2157
|
+
"total_method": "",
|
|
2158
|
+
"web_report": "",
|
|
2159
|
+
"mutation": true,
|
|
2160
|
+
"destructive": true,
|
|
2161
|
+
"http_method": "POST",
|
|
2162
|
+
"schema": {
|
|
2163
|
+
"type": "object",
|
|
2164
|
+
"additionalProperties": false,
|
|
2165
|
+
"properties": {
|
|
2166
|
+
"folder_id": {
|
|
2167
|
+
"type": "string",
|
|
2168
|
+
"pattern": "^[0-9]+$",
|
|
2169
|
+
"maxLength": 30,
|
|
2170
|
+
"description": "Current web project folder ID, as a decimal string."
|
|
2171
|
+
},
|
|
2172
|
+
"confirm": {
|
|
2173
|
+
"type": "boolean",
|
|
2174
|
+
"default": false,
|
|
2175
|
+
"description": "Confirm this account mutation."
|
|
2176
|
+
},
|
|
2177
|
+
"dry_run": {
|
|
2178
|
+
"type": "boolean",
|
|
2179
|
+
"default": false,
|
|
2180
|
+
"description": "Print the request without sending it."
|
|
2181
|
+
}
|
|
2182
|
+
},
|
|
2183
|
+
"required": ["folder_id"]
|
|
2184
|
+
}
|
|
2185
|
+
},
|
|
2186
|
+
project_limits: {
|
|
2187
|
+
"method": "/apis/v4-raw/folders/api/v0/folders/limits",
|
|
2188
|
+
"description": "Read project creation limits.",
|
|
2189
|
+
"transport": "project_web",
|
|
2190
|
+
"total_method": "",
|
|
2191
|
+
"web_report": "",
|
|
2192
|
+
"mutation": false,
|
|
2193
|
+
"destructive": false,
|
|
2194
|
+
"http_method": "GET",
|
|
2195
|
+
"schema": {
|
|
2196
|
+
"type": "object",
|
|
2197
|
+
"additionalProperties": false,
|
|
2198
|
+
"properties": {},
|
|
2199
|
+
"required": []
|
|
2200
|
+
}
|
|
2201
|
+
},
|
|
2202
|
+
project_tags: {
|
|
2203
|
+
"method": "/apis/v4-raw/folders/api/v0/folders/tags",
|
|
2204
|
+
"description": "Read available project tags.",
|
|
2205
|
+
"transport": "project_web",
|
|
2206
|
+
"total_method": "",
|
|
2207
|
+
"web_report": "",
|
|
2208
|
+
"mutation": false,
|
|
2209
|
+
"destructive": false,
|
|
2210
|
+
"http_method": "GET",
|
|
2211
|
+
"schema": {
|
|
2212
|
+
"type": "object",
|
|
2213
|
+
"additionalProperties": false,
|
|
2214
|
+
"properties": {},
|
|
2215
|
+
"required": []
|
|
2216
|
+
}
|
|
2217
|
+
},
|
|
2218
|
+
project_set_tags: {
|
|
2219
|
+
"method": "/apis/v4-raw/folders/api/v0/folders/tags/{folder_id}",
|
|
2220
|
+
"description": "Replace project tags. An empty array removes all its tags.",
|
|
2221
|
+
"transport": "project_web",
|
|
2222
|
+
"total_method": "",
|
|
2223
|
+
"web_report": "",
|
|
2224
|
+
"mutation": true,
|
|
2225
|
+
"destructive": false,
|
|
2226
|
+
"http_method": "POST",
|
|
2227
|
+
"schema": {
|
|
2228
|
+
"type": "object",
|
|
2229
|
+
"additionalProperties": false,
|
|
2230
|
+
"properties": {
|
|
2231
|
+
"folder_id": {
|
|
2232
|
+
"type": "string",
|
|
2233
|
+
"pattern": "^[0-9]+$",
|
|
2234
|
+
"maxLength": 30,
|
|
2235
|
+
"description": "Current web project folder ID, as a decimal string."
|
|
2236
|
+
},
|
|
2237
|
+
"tags": {
|
|
2238
|
+
"type": "array",
|
|
2239
|
+
"items": {
|
|
2240
|
+
"type": "string",
|
|
2241
|
+
"minLength": 1,
|
|
2242
|
+
"maxLength": 50,
|
|
2243
|
+
"pattern": "^[^~|`!#%^&*=\\[\\]\\\\\\x27/{}\":<>?]+$"
|
|
2244
|
+
},
|
|
2245
|
+
"maxItems": 3,
|
|
2246
|
+
"uniqueItems": true
|
|
2247
|
+
},
|
|
2248
|
+
"confirm": {
|
|
2249
|
+
"type": "boolean",
|
|
2250
|
+
"default": false,
|
|
2251
|
+
"description": "Confirm this account mutation."
|
|
2252
|
+
},
|
|
2253
|
+
"dry_run": {
|
|
2254
|
+
"type": "boolean",
|
|
2255
|
+
"default": false,
|
|
2256
|
+
"description": "Print the request without sending it."
|
|
2257
|
+
}
|
|
2258
|
+
},
|
|
2259
|
+
"required": ["folder_id", "tags"]
|
|
2260
|
+
}
|
|
2261
|
+
},
|
|
2262
|
+
project_check_domain: {
|
|
2263
|
+
"method": "/apis/v4-raw/folders/api/v0/folders/check-domain",
|
|
2264
|
+
"description": "Check website information before creating a project.",
|
|
2265
|
+
"transport": "project_web",
|
|
2266
|
+
"total_method": "",
|
|
2267
|
+
"web_report": "",
|
|
2268
|
+
"mutation": false,
|
|
2269
|
+
"destructive": false,
|
|
2270
|
+
"http_method": "GET",
|
|
2271
|
+
"schema": {
|
|
2272
|
+
"type": "object",
|
|
2273
|
+
"additionalProperties": false,
|
|
2274
|
+
"properties": { "domain": {
|
|
2275
|
+
"type": "string",
|
|
2276
|
+
"minLength": 1,
|
|
2277
|
+
"maxLength": 253,
|
|
2278
|
+
"pattern": "^(?:[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?\\.)+[A-Za-z]{2,63}$",
|
|
2279
|
+
"description": "Domain or subdomain, without protocol or path."
|
|
2280
|
+
} },
|
|
2281
|
+
"required": ["domain"]
|
|
2282
|
+
}
|
|
2283
|
+
},
|
|
2284
|
+
project_pin: {
|
|
2285
|
+
"method": "/apis/v4-raw/crossroad/api/v0/crossroad/set-pinned",
|
|
2286
|
+
"description": "Pin or unpin a project on the dashboard.",
|
|
2287
|
+
"transport": "project_web",
|
|
2288
|
+
"total_method": "",
|
|
2289
|
+
"web_report": "",
|
|
2290
|
+
"mutation": true,
|
|
2291
|
+
"destructive": false,
|
|
2292
|
+
"http_method": "POST",
|
|
2293
|
+
"schema": {
|
|
2294
|
+
"type": "object",
|
|
2295
|
+
"additionalProperties": false,
|
|
2296
|
+
"properties": {
|
|
2297
|
+
"folder_id": {
|
|
2298
|
+
"type": "string",
|
|
2299
|
+
"pattern": "^[0-9]+$",
|
|
2300
|
+
"maxLength": 30,
|
|
2301
|
+
"description": "Current web project folder ID, as a decimal string."
|
|
2302
|
+
},
|
|
2303
|
+
"pinned": { "type": "boolean" },
|
|
2304
|
+
"confirm": {
|
|
2305
|
+
"type": "boolean",
|
|
2306
|
+
"default": false,
|
|
2307
|
+
"description": "Confirm this account mutation."
|
|
2308
|
+
},
|
|
2309
|
+
"dry_run": {
|
|
2310
|
+
"type": "boolean",
|
|
2311
|
+
"default": false,
|
|
2312
|
+
"description": "Print the request without sending it."
|
|
2313
|
+
}
|
|
2314
|
+
},
|
|
2315
|
+
"required": ["folder_id", "pinned"]
|
|
2316
|
+
}
|
|
2317
|
+
},
|
|
2318
|
+
project_toolkits: {
|
|
2319
|
+
"method": "/apis/v4-raw/crossroad/api/v0/crossroad/toolkits",
|
|
2320
|
+
"description": "Read SEO, AI, local, social, advertising and content toolkit status.",
|
|
2321
|
+
"transport": "project_web",
|
|
2322
|
+
"total_method": "",
|
|
2323
|
+
"web_report": "",
|
|
2324
|
+
"mutation": false,
|
|
2325
|
+
"destructive": false,
|
|
2326
|
+
"http_method": "POST",
|
|
2327
|
+
"schema": {
|
|
2328
|
+
"type": "object",
|
|
2329
|
+
"additionalProperties": false,
|
|
2330
|
+
"properties": {
|
|
2331
|
+
"folder_ids": {
|
|
2332
|
+
"type": "array",
|
|
2333
|
+
"items": {
|
|
2334
|
+
"type": "string",
|
|
2335
|
+
"pattern": "^[0-9]+$",
|
|
2336
|
+
"maxLength": 30,
|
|
2337
|
+
"description": "Current web project folder ID, as a decimal string."
|
|
2338
|
+
},
|
|
2339
|
+
"minItems": 1,
|
|
2340
|
+
"maxItems": 100,
|
|
2341
|
+
"uniqueItems": true
|
|
2342
|
+
},
|
|
2343
|
+
"with_promo": {
|
|
2344
|
+
"type": "boolean",
|
|
2345
|
+
"default": false
|
|
2346
|
+
}
|
|
2347
|
+
},
|
|
2348
|
+
"required": ["folder_ids"]
|
|
2349
|
+
}
|
|
2350
|
+
},
|
|
2351
|
+
project_tools: {
|
|
2352
|
+
"method": "/apis/v4-raw/crossroad/api/v0/crossroad/tools",
|
|
2353
|
+
"description": "Read project dashboard metrics. Tool IDs match the web dashboard.",
|
|
2354
|
+
"transport": "project_web",
|
|
2355
|
+
"total_method": "",
|
|
2356
|
+
"web_report": "",
|
|
2357
|
+
"mutation": false,
|
|
2358
|
+
"destructive": false,
|
|
2359
|
+
"http_method": "POST",
|
|
2360
|
+
"schema": {
|
|
2361
|
+
"type": "object",
|
|
2362
|
+
"additionalProperties": false,
|
|
2363
|
+
"properties": {
|
|
2364
|
+
"folder_id": {
|
|
2365
|
+
"type": "string",
|
|
2366
|
+
"pattern": "^[0-9]+$",
|
|
2367
|
+
"maxLength": 30,
|
|
2368
|
+
"description": "Current web project folder ID, as a decimal string."
|
|
2369
|
+
},
|
|
2370
|
+
"tools": {
|
|
2371
|
+
"type": "array",
|
|
2372
|
+
"items": {
|
|
2373
|
+
"type": "integer",
|
|
2374
|
+
"minimum": 3,
|
|
2375
|
+
"maximum": 33
|
|
2376
|
+
},
|
|
2377
|
+
"minItems": 1,
|
|
2378
|
+
"maxItems": 31,
|
|
2379
|
+
"uniqueItems": true
|
|
2380
|
+
}
|
|
2381
|
+
},
|
|
2382
|
+
"required": ["folder_id", "tools"]
|
|
2383
|
+
}
|
|
2384
|
+
},
|
|
2385
|
+
project_enable_seo: {
|
|
2386
|
+
"method": "/projects/api/projects",
|
|
2387
|
+
"description": "Create the SEO project associated with an existing web project. Uses project allowance.",
|
|
2388
|
+
"transport": "project_web",
|
|
2389
|
+
"total_method": "",
|
|
2390
|
+
"web_report": "",
|
|
2391
|
+
"mutation": true,
|
|
2392
|
+
"destructive": false,
|
|
2393
|
+
"http_method": "POST",
|
|
2394
|
+
"schema": {
|
|
2395
|
+
"type": "object",
|
|
2396
|
+
"additionalProperties": false,
|
|
2397
|
+
"properties": {
|
|
2398
|
+
"folder_id": {
|
|
2399
|
+
"type": "string",
|
|
2400
|
+
"pattern": "^[0-9]+$",
|
|
2401
|
+
"maxLength": 30,
|
|
2402
|
+
"description": "Current web project folder ID, as a decimal string."
|
|
2403
|
+
},
|
|
2404
|
+
"confirm": {
|
|
2405
|
+
"type": "boolean",
|
|
2406
|
+
"default": false,
|
|
2407
|
+
"description": "Confirm this account mutation."
|
|
2408
|
+
},
|
|
2409
|
+
"dry_run": {
|
|
2410
|
+
"type": "boolean",
|
|
2411
|
+
"default": false,
|
|
2412
|
+
"description": "Print the request without sending it."
|
|
2413
|
+
}
|
|
2414
|
+
},
|
|
2415
|
+
"required": ["folder_id"]
|
|
2416
|
+
}
|
|
2417
|
+
},
|
|
2418
|
+
project_seo_auto_setup: {
|
|
2419
|
+
"method": "/projects/api/projects/seo_auto_setup",
|
|
2420
|
+
"description": "Start automatic SEO setup, including Site Audit and Position Tracking. Uses account allowances.",
|
|
2421
|
+
"transport": "project_web",
|
|
2422
|
+
"total_method": "",
|
|
2423
|
+
"web_report": "",
|
|
2424
|
+
"mutation": true,
|
|
2425
|
+
"destructive": false,
|
|
2426
|
+
"http_method": "POST",
|
|
2427
|
+
"schema": {
|
|
2428
|
+
"type": "object",
|
|
2429
|
+
"additionalProperties": false,
|
|
2430
|
+
"properties": {
|
|
2431
|
+
"folder_id": {
|
|
2432
|
+
"type": "string",
|
|
2433
|
+
"pattern": "^[0-9]+$",
|
|
2434
|
+
"maxLength": 30,
|
|
2435
|
+
"description": "Current web project folder ID, as a decimal string."
|
|
2436
|
+
},
|
|
2437
|
+
"confirm": {
|
|
2438
|
+
"type": "boolean",
|
|
2439
|
+
"default": false,
|
|
2440
|
+
"description": "Confirm this account mutation."
|
|
2441
|
+
},
|
|
2442
|
+
"dry_run": {
|
|
2443
|
+
"type": "boolean",
|
|
2444
|
+
"default": false,
|
|
2445
|
+
"description": "Print the request without sending it."
|
|
2446
|
+
}
|
|
2447
|
+
},
|
|
2448
|
+
"required": ["folder_id"]
|
|
1864
2449
|
}
|
|
1865
2450
|
}
|
|
1866
2451
|
};
|
|
@@ -1879,6 +2464,7 @@ const reports = report_catalog_default;
|
|
|
1879
2464
|
/** Fixed request shapes observed in semrush-web-mcp. No arbitrary RPC or URL input. */
|
|
1880
2465
|
function reportParameters(definition, q) {
|
|
1881
2466
|
const family = definition.transport;
|
|
2467
|
+
if (family === "project_web") return projectParameters(definition, q);
|
|
1882
2468
|
if (family === "magic") return magicParameters(definition, q);
|
|
1883
2469
|
if (family === "keyword") return keywordParameters(definition, q);
|
|
1884
2470
|
if (family === "direct") return "database" in q ? {
|
|
@@ -2108,6 +2694,47 @@ function gapParameters(definition, q) {
|
|
|
2108
2694
|
});
|
|
2109
2695
|
return params;
|
|
2110
2696
|
}
|
|
2697
|
+
/** Current project-selector and Crossroad web contracts. Control flags never go on wire. */
|
|
2698
|
+
function projectParameters(definition, q) {
|
|
2699
|
+
const path = definition.method;
|
|
2700
|
+
if (path === "/apis/v4-raw/folders/api/v0/folders" || definition.http_method === "PUT") {
|
|
2701
|
+
const properties = [];
|
|
2702
|
+
if (q.name !== void 0) properties.push({ name: { value: q.name } });
|
|
2703
|
+
if (q.domain !== void 0) properties.push({ domain: { value: q.domain } });
|
|
2704
|
+
return { properties };
|
|
2705
|
+
}
|
|
2706
|
+
if (path.endsWith("/leave/project-smb")) return { object_ids: [q.folder_id ?? null] };
|
|
2707
|
+
if (path.includes("/tags/")) return { tags: Array.isArray(q.tags) ? q.tags.map((name) => ({ name })) : [] };
|
|
2708
|
+
if (path.endsWith("/set-pinned")) return {
|
|
2709
|
+
id: q.folder_id ?? null,
|
|
2710
|
+
is_pinned: q.pinned ?? null
|
|
2711
|
+
};
|
|
2712
|
+
if (path.endsWith("/toolkits")) return {
|
|
2713
|
+
folders: q.folder_ids ?? [],
|
|
2714
|
+
withPromo: q.with_promo ?? false
|
|
2715
|
+
};
|
|
2716
|
+
if (path.endsWith("/tools")) return { items: Array.isArray(q.tools) ? q.tools.map((tool) => ({
|
|
2717
|
+
folder_id: q.folder_id ?? null,
|
|
2718
|
+
tool
|
|
2719
|
+
})) : [] };
|
|
2720
|
+
if (definition.http_method === "DELETE") return {};
|
|
2721
|
+
return Object.fromEntries(Object.entries(q).filter(([key]) => key !== "confirm" && key !== "dry_run"));
|
|
2722
|
+
}
|
|
2723
|
+
/** Paths come only from the catalog; folder IDs pass the decimal-string input schema. */
|
|
2724
|
+
function projectRequest(definition, query) {
|
|
2725
|
+
return {
|
|
2726
|
+
method: definition.http_method,
|
|
2727
|
+
path: definition.method.replace("{folder_id}", String(query.folder_id)),
|
|
2728
|
+
body: reportParameters(definition, query)
|
|
2729
|
+
};
|
|
2730
|
+
}
|
|
2731
|
+
function previewMutation(name, definition, query) {
|
|
2732
|
+
return definition.mutation && query.dry_run === true ? {
|
|
2733
|
+
dry_run: true,
|
|
2734
|
+
report: name,
|
|
2735
|
+
request: projectRequest(definition, query)
|
|
2736
|
+
} : void 0;
|
|
2737
|
+
}
|
|
2111
2738
|
|
|
2112
2739
|
//#endregion
|
|
2113
2740
|
//#region src/errors.ts
|
|
@@ -2120,5 +2747,5 @@ var ReportError = class extends Schema.TaggedError()("ReportError", { message: S
|
|
|
2120
2747
|
var UsageError = class extends Schema.TaggedError()("UsageError", { message: Schema.String }) {};
|
|
2121
2748
|
|
|
2122
2749
|
//#endregion
|
|
2123
|
-
export {
|
|
2124
|
-
//# sourceMappingURL=errors-
|
|
2750
|
+
export { projectRequest as a, version as c, previewMutation as i, SessionError as n, reportParameters as o, UsageError as r, reports as s, ReportError as t };
|
|
2751
|
+
//# sourceMappingURL=errors-CJuwKbEZ.js.map
|