@adobe/spacecat-shared-project-engine-client 1.8.0 → 1.9.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/generated/types.ts +339 -155
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-project-engine-client",
3
- "version": "1.8.0",
3
+ "version": "1.9.0",
4
4
  "description": "Shared modules of the Spacecat Services - Semrush Project Engine client and generated types",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -64,6 +64,26 @@ export interface paths {
64
64
  patch?: never;
65
65
  trace?: never;
66
66
  };
67
+ "/v1/url/resolve": {
68
+ parameters: {
69
+ query?: never;
70
+ header?: never;
71
+ path?: never;
72
+ cookie?: never;
73
+ };
74
+ /**
75
+ * Resolve URL
76
+ * @description Normalizes the given primary_url and extracts its registrable domain (eTLD+1).
77
+ */
78
+ get: operations["resolve-url"];
79
+ put?: never;
80
+ post?: never;
81
+ delete?: never;
82
+ options?: never;
83
+ head?: never;
84
+ patch?: never;
85
+ trace?: never;
86
+ };
67
87
  "/v1/workspaces/{id}/brand-topics": {
68
88
  parameters: {
69
89
  query?: never;
@@ -153,6 +173,26 @@ export interface paths {
153
173
  patch?: never;
154
174
  trace?: never;
155
175
  };
176
+ "/v1/workspaces/{id}/crawls/stop": {
177
+ parameters: {
178
+ query?: never;
179
+ header?: never;
180
+ path?: never;
181
+ cookie?: never;
182
+ };
183
+ get?: never;
184
+ put?: never;
185
+ /**
186
+ * Stop SI crawl
187
+ * @description Stop a running crawl for the given project and crawl configuration
188
+ */
189
+ post: operations["si-stop-crawl"];
190
+ delete?: never;
191
+ options?: never;
192
+ head?: never;
193
+ patch?: never;
194
+ trace?: never;
195
+ };
156
196
  "/v1/workspaces/{id}/keywords": {
157
197
  parameters: {
158
198
  query?: never;
@@ -177,6 +217,27 @@ export interface paths {
177
217
  patch?: never;
178
218
  trace?: never;
179
219
  };
220
+ "/v1/workspaces/{id}/managed-ai-models": {
221
+ parameters: {
222
+ query?: never;
223
+ header?: never;
224
+ path?: never;
225
+ cookie?: never;
226
+ };
227
+ /**
228
+ * Get managed AI models for a workspace
229
+ * @description Returns the full catalog of managed AI models with their enabled/disabled status
230
+ * for the master workspace.
231
+ */
232
+ get: operations["managed-ai-models-get"];
233
+ put?: never;
234
+ post?: never;
235
+ delete?: never;
236
+ options?: never;
237
+ head?: never;
238
+ patch?: never;
239
+ trace?: never;
240
+ };
180
241
  "/v1/workspaces/{id}/projects": {
181
242
  parameters: {
182
243
  query?: never;
@@ -574,6 +635,26 @@ export interface paths {
574
635
  patch?: never;
575
636
  trace?: never;
576
637
  };
638
+ "/v1/workspaces/{id}/projects/{project_id}/apply_interactive_unignore_issue_rules/{crawl_configuration_id}": {
639
+ parameters: {
640
+ query?: never;
641
+ header?: never;
642
+ path?: never;
643
+ cookie?: never;
644
+ };
645
+ get?: never;
646
+ put?: never;
647
+ /**
648
+ * Publish interactive unignore issue rules event
649
+ * @description Publishes an interactive-ignore-issue-rules event with operation "unignore" to the pub/sub topic for the given crawl configuration. Accepts the same payload as the ignore endpoint.
650
+ */
651
+ post: operations["si-apply-interactive-unignore-issue-rules"];
652
+ delete?: never;
653
+ options?: never;
654
+ head?: never;
655
+ patch?: never;
656
+ trace?: never;
657
+ };
577
658
  "/v1/workspaces/{id}/projects/{project_id}/ci/competitors": {
578
659
  parameters: {
579
660
  query?: never;
@@ -971,26 +1052,6 @@ export interface paths {
971
1052
  patch: operations["projects-update-advanced-crawling-consent"];
972
1053
  trace?: never;
973
1054
  };
974
- "/v1/workspaces/{id}/projects/{project_id}/si/allow_more_parallel_instances": {
975
- parameters: {
976
- query?: never;
977
- header?: never;
978
- path?: never;
979
- cookie?: never;
980
- };
981
- get?: never;
982
- put?: never;
983
- post?: never;
984
- delete?: never;
985
- options?: never;
986
- head?: never;
987
- /**
988
- * set allow_more_parallel_instances for SI project
989
- * @description Sets allow_more_parallel_instances flag for a project in workspace with given ID
990
- */
991
- patch: operations["projects-set-allow-more-parallel-instances"];
992
- trace?: never;
993
- };
994
1055
  "/v1/workspaces/{id}/projects/{project_id}/tags": {
995
1056
  parameters: {
996
1057
  query?: never;
@@ -1602,26 +1663,6 @@ export interface paths {
1602
1663
  patch?: never;
1603
1664
  trace?: never;
1604
1665
  };
1605
- "/v1/url/resolve": {
1606
- parameters: {
1607
- query?: never;
1608
- header?: never;
1609
- path?: never;
1610
- cookie?: never;
1611
- };
1612
- /**
1613
- * Resolve a URL to its canonical brand-URL form
1614
- * @description Canonicalize a raw URL to the form Semrush stores as a brand URL. `primary_url` strips the scheme and a leading `www.` but preserves any other subdomain and the path; `domain` is the registrable apex (subdomain stripped too). For unresolvable or garbage input `is_valid` is false and `domain`/`primary_url` are empty strings — still HTTP 200, so consumers MUST check `is_valid` and never write the empty value.
1615
- */
1616
- get: operations["resolve-url"];
1617
- put?: never;
1618
- post?: never;
1619
- delete?: never;
1620
- options?: never;
1621
- head?: never;
1622
- patch?: never;
1623
- trace?: never;
1624
- };
1625
1666
  }
1626
1667
  export type webhooks = Record<string, never>;
1627
1668
  export interface components {
@@ -1649,6 +1690,8 @@ export interface components {
1649
1690
  color?: string;
1650
1691
  domain?: string;
1651
1692
  favorite?: boolean;
1693
+ main_brand?: boolean;
1694
+ primary_url?: string;
1652
1695
  };
1653
1696
  "model.AIOBenchmarkWithCounters": {
1654
1697
  brand_aliases?: string[];
@@ -1658,11 +1701,11 @@ export interface components {
1658
1701
  favorite?: boolean;
1659
1702
  id: string;
1660
1703
  main_brand?: boolean;
1704
+ primary_url?: string;
1661
1705
  product_names?: string[];
1662
1706
  products_count?: number;
1663
1707
  project_id?: string;
1664
1708
  rejected_brand_aliases?: string[];
1665
- primary_url?: string;
1666
1709
  root_domain?: string;
1667
1710
  };
1668
1711
  "model.AIOProduct": {
@@ -1731,10 +1774,10 @@ export interface components {
1731
1774
  language?: components["schemas"]["model.LanguageResponse"];
1732
1775
  location?: components["schemas"]["model.LocationResponse"];
1733
1776
  models_stats?: components["schemas"]["model.ProjectModelStats"];
1777
+ primary_url?: string;
1734
1778
  products_count?: number;
1735
1779
  prompts_count?: number;
1736
1780
  segments_count?: number;
1737
- primary_url?: string;
1738
1781
  };
1739
1782
  "model.AdvancedCrawlingConsentRequest": {
1740
1783
  accepted: boolean;
@@ -1749,9 +1792,11 @@ export interface components {
1749
1792
  confirmed_by_name?: string;
1750
1793
  };
1751
1794
  "model.ApplyInteractiveIgnoreIssueRulesRequest": {
1752
- filters: number[];
1753
- id?: string;
1754
- name: string;
1795
+ issue_ids: string[];
1796
+ issue_type: string;
1797
+ /** @enum {string} */
1798
+ match_by: "one_shot_rule" | "issue_id";
1799
+ recent_check?: number;
1755
1800
  };
1756
1801
  "model.AvailablePromptsResponse": {
1757
1802
  available?: number;
@@ -2120,6 +2165,11 @@ export interface components {
2120
2165
  id?: number;
2121
2166
  name?: string;
2122
2167
  };
2168
+ "model.ManagedAIModelsResponse": {
2169
+ managed_ai_models?: {
2170
+ [key: string]: boolean;
2171
+ };
2172
+ };
2123
2173
  "model.ProjectAIModelListResponse": {
2124
2174
  items?: components["schemas"]["model.ProjectAIModelResponse"][];
2125
2175
  page?: number;
@@ -2163,6 +2213,7 @@ export interface components {
2163
2213
  location_id?: number;
2164
2214
  location_name?: string;
2165
2215
  name: string;
2216
+ primary_url?: string;
2166
2217
  /**
2167
2218
  * @description enum: seo, ai, mfour, si, ci
2168
2219
  * @enum {string}
@@ -2200,6 +2251,7 @@ export interface components {
2200
2251
  location_id?: number;
2201
2252
  location_name?: string;
2202
2253
  name?: string;
2254
+ primary_url?: string;
2203
2255
  /**
2204
2256
  * @description enum: ai, mfour, si
2205
2257
  * @enum {string}
@@ -2260,6 +2312,11 @@ export interface components {
2260
2312
  location_name?: string;
2261
2313
  status?: string;
2262
2314
  };
2315
+ "model.ResolveURLResponse": {
2316
+ domain: string;
2317
+ is_valid: boolean;
2318
+ primary_url: string;
2319
+ };
2263
2320
  "model.RestorePromptNamesRequest": {
2264
2321
  ids: string[];
2265
2322
  };
@@ -2275,12 +2332,8 @@ export interface components {
2275
2332
  behaviour?: string;
2276
2333
  custom_robots_txt?: string;
2277
2334
  };
2278
- "model.SIProjectSettingsRequest": {
2279
- allow_more_parallel_instances?: boolean;
2280
- };
2281
2335
  "model.SISettings": {
2282
2336
  advanced_crawling_consent?: components["schemas"]["model.AdvancedCrawlingConsentResponse"];
2283
- allow_more_parallel_instances?: boolean;
2284
2337
  crawler_stats?: components["schemas"]["model.CrawlerStats"][];
2285
2338
  crawlers_count?: number;
2286
2339
  extractions_count?: number;
@@ -2311,6 +2364,10 @@ export interface components {
2311
2364
  ci?: components["schemas"]["model.CISettings"];
2312
2365
  si?: components["schemas"]["model.SISettings"];
2313
2366
  };
2367
+ "model.StopCrawlRequest": {
2368
+ crawl_configuration_id: string;
2369
+ project_id: string;
2370
+ };
2314
2371
  "model.StringIDName": {
2315
2372
  id?: string;
2316
2373
  name?: string;
@@ -2352,11 +2409,6 @@ export interface components {
2352
2409
  total?: number;
2353
2410
  items?: components["schemas"]["model.AIModelResponse"][];
2354
2411
  };
2355
- "model.UrlResolveResponse": {
2356
- domain: string;
2357
- primary_url: string;
2358
- is_valid: boolean;
2359
- };
2360
2412
  };
2361
2413
  responses: never;
2362
2414
  parameters: never;
@@ -2421,6 +2473,12 @@ export interface components {
2421
2473
  };
2422
2474
  };
2423
2475
  /** @description Request body */
2476
+ "model.ApplyInteractiveIgnoreIssueRulesRequest": {
2477
+ content: {
2478
+ "application/json": components["schemas"]["model.ApplyInteractiveIgnoreIssueRulesRequest"];
2479
+ };
2480
+ };
2481
+ /** @description Request body */
2424
2482
  "model.CustomExtractionRequest": {
2425
2483
  content: {
2426
2484
  "application/json": components["schemas"]["model.CustomExtractionRequest"];
@@ -2590,6 +2648,118 @@ export interface operations {
2590
2648
  };
2591
2649
  };
2592
2650
  };
2651
+ "resolve-url": {
2652
+ parameters: {
2653
+ query: {
2654
+ /** @description Primary URL to resolve */
2655
+ primary_url: string;
2656
+ };
2657
+ header?: never;
2658
+ path?: never;
2659
+ cookie?: never;
2660
+ };
2661
+ requestBody?: never;
2662
+ responses: {
2663
+ /** @description OK */
2664
+ 200: {
2665
+ headers: {
2666
+ [name: string]: unknown;
2667
+ };
2668
+ content: {
2669
+ "application/json": components["schemas"]["model.ResolveURLResponse"];
2670
+ };
2671
+ };
2672
+ /** @description Bad Request */
2673
+ 400: {
2674
+ headers: {
2675
+ [name: string]: unknown;
2676
+ };
2677
+ content: {
2678
+ "application/json": components["schemas"]["http_server.BasicResponse"];
2679
+ };
2680
+ };
2681
+ /** @description Unauthorized */
2682
+ 401: {
2683
+ headers: {
2684
+ [name: string]: unknown;
2685
+ };
2686
+ content: {
2687
+ "application/json": components["schemas"]["http_server.BasicResponse"];
2688
+ };
2689
+ };
2690
+ };
2691
+ };
2692
+ "si-stop-crawl": {
2693
+ parameters: {
2694
+ query?: never;
2695
+ header?: never;
2696
+ path: {
2697
+ /** @description Workspace ID */
2698
+ id: string;
2699
+ };
2700
+ cookie?: never;
2701
+ };
2702
+ /** @description Request body */
2703
+ requestBody: {
2704
+ content: {
2705
+ "application/json": components["schemas"]["model.StopCrawlRequest"];
2706
+ };
2707
+ };
2708
+ responses: {
2709
+ /** @description OK */
2710
+ 200: {
2711
+ headers: {
2712
+ [name: string]: unknown;
2713
+ };
2714
+ content?: never;
2715
+ };
2716
+ /** @description Bad Request */
2717
+ 400: {
2718
+ headers: {
2719
+ [name: string]: unknown;
2720
+ };
2721
+ content: {
2722
+ "application/json": components["schemas"]["http_server.BasicResponse"];
2723
+ };
2724
+ };
2725
+ /** @description Unauthorized */
2726
+ 401: {
2727
+ headers: {
2728
+ [name: string]: unknown;
2729
+ };
2730
+ content: {
2731
+ "application/json": components["schemas"]["http_server.BasicResponse"];
2732
+ };
2733
+ };
2734
+ /** @description Forbidden */
2735
+ 403: {
2736
+ headers: {
2737
+ [name: string]: unknown;
2738
+ };
2739
+ content: {
2740
+ "application/json": components["schemas"]["http_server.BasicResponse"];
2741
+ };
2742
+ };
2743
+ /** @description Conflict */
2744
+ 409: {
2745
+ headers: {
2746
+ [name: string]: unknown;
2747
+ };
2748
+ content: {
2749
+ "application/json": components["schemas"]["http_server.BasicResponse"];
2750
+ };
2751
+ };
2752
+ /** @description Internal Server Error */
2753
+ 500: {
2754
+ headers: {
2755
+ [name: string]: unknown;
2756
+ };
2757
+ content: {
2758
+ "application/json": components["schemas"]["http_server.BasicResponse"];
2759
+ };
2760
+ };
2761
+ };
2762
+ };
2593
2763
  "workspace-list-keywords": {
2594
2764
  parameters: {
2595
2765
  query?: {
@@ -2646,6 +2816,59 @@ export interface operations {
2646
2816
  };
2647
2817
  };
2648
2818
  };
2819
+ "managed-ai-models-get": {
2820
+ parameters: {
2821
+ query?: never;
2822
+ header: {
2823
+ /** @description Bearer token */
2824
+ Authorization: string;
2825
+ };
2826
+ path: {
2827
+ /** @description Workspace ID */
2828
+ id: string;
2829
+ };
2830
+ cookie?: never;
2831
+ };
2832
+ requestBody?: never;
2833
+ responses: {
2834
+ /** @description OK */
2835
+ 200: {
2836
+ headers: {
2837
+ [name: string]: unknown;
2838
+ };
2839
+ content: {
2840
+ "application/json": components["schemas"]["model.ManagedAIModelsResponse"];
2841
+ };
2842
+ };
2843
+ /** @description Bad Request */
2844
+ 400: {
2845
+ headers: {
2846
+ [name: string]: unknown;
2847
+ };
2848
+ content: {
2849
+ "application/json": components["schemas"]["http_server.BasicResponse"];
2850
+ };
2851
+ };
2852
+ /** @description Unauthorized */
2853
+ 401: {
2854
+ headers: {
2855
+ [name: string]: unknown;
2856
+ };
2857
+ content: {
2858
+ "application/json": components["schemas"]["http_server.BasicResponse"];
2859
+ };
2860
+ };
2861
+ /** @description Internal Server Error */
2862
+ 500: {
2863
+ headers: {
2864
+ [name: string]: unknown;
2865
+ };
2866
+ content: {
2867
+ "application/json": components["schemas"]["http_server.BasicResponse"];
2868
+ };
2869
+ };
2870
+ };
2871
+ };
2649
2872
  "projects-list-projects": {
2650
2873
  parameters: {
2651
2874
  query?: {
@@ -4137,6 +4360,8 @@ export interface operations {
4137
4360
  query?: {
4138
4361
  /** @description Get draft project data */
4139
4362
  draft?: boolean;
4363
+ /** @description Get only main_brand benchmark */
4364
+ main_brand?: boolean;
4140
4365
  };
4141
4366
  header?: never;
4142
4367
  path: {
@@ -4373,12 +4598,68 @@ export interface operations {
4373
4598
  };
4374
4599
  cookie?: never;
4375
4600
  };
4376
- /** @description Request body */
4377
- requestBody: {
4378
- content: {
4379
- "application/json": components["schemas"]["model.ApplyInteractiveIgnoreIssueRulesRequest"];
4601
+ requestBody: components["requestBodies"]["model.ApplyInteractiveIgnoreIssueRulesRequest"];
4602
+ responses: {
4603
+ /** @description Accepted */
4604
+ 202: {
4605
+ headers: {
4606
+ [name: string]: unknown;
4607
+ };
4608
+ content?: never;
4609
+ };
4610
+ /** @description Bad Request */
4611
+ 400: {
4612
+ headers: {
4613
+ [name: string]: unknown;
4614
+ };
4615
+ content: {
4616
+ "application/json": components["schemas"]["http_server.BasicResponse"];
4617
+ };
4618
+ };
4619
+ /** @description Unauthorized */
4620
+ 401: {
4621
+ headers: {
4622
+ [name: string]: unknown;
4623
+ };
4624
+ content: {
4625
+ "application/json": components["schemas"]["http_server.BasicResponse"];
4626
+ };
4627
+ };
4628
+ /** @description Forbidden */
4629
+ 403: {
4630
+ headers: {
4631
+ [name: string]: unknown;
4632
+ };
4633
+ content: {
4634
+ "application/json": components["schemas"]["http_server.BasicResponse"];
4635
+ };
4636
+ };
4637
+ /** @description Internal Server Error */
4638
+ 500: {
4639
+ headers: {
4640
+ [name: string]: unknown;
4641
+ };
4642
+ content: {
4643
+ "application/json": components["schemas"]["http_server.BasicResponse"];
4644
+ };
4645
+ };
4646
+ };
4647
+ };
4648
+ "si-apply-interactive-unignore-issue-rules": {
4649
+ parameters: {
4650
+ query?: never;
4651
+ header?: never;
4652
+ path: {
4653
+ /** @description Workspace ID */
4654
+ id: string;
4655
+ /** @description Project ID */
4656
+ project_id: string;
4657
+ /** @description Crawl Configuration ID */
4658
+ crawl_configuration_id: string;
4380
4659
  };
4660
+ cookie?: never;
4381
4661
  };
4662
+ requestBody: components["requestBodies"]["model.ApplyInteractiveIgnoreIssueRulesRequest"];
4382
4663
  responses: {
4383
4664
  /** @description Accepted */
4384
4665
  202: {
@@ -6038,63 +6319,6 @@ export interface operations {
6038
6319
  };
6039
6320
  };
6040
6321
  };
6041
- "projects-set-allow-more-parallel-instances": {
6042
- parameters: {
6043
- query?: never;
6044
- header?: never;
6045
- path: {
6046
- /** @description workspace ID */
6047
- id: string;
6048
- /** @description project ID */
6049
- project_id: string;
6050
- };
6051
- cookie?: never;
6052
- };
6053
- /** @description Request body */
6054
- requestBody: {
6055
- content: {
6056
- "application/json": components["schemas"]["model.SIProjectSettingsRequest"];
6057
- };
6058
- };
6059
- responses: {
6060
- /** @description OK */
6061
- 200: {
6062
- headers: {
6063
- [name: string]: unknown;
6064
- };
6065
- content: {
6066
- "application/json": components["schemas"]["model.ProjectResponse"];
6067
- };
6068
- };
6069
- /** @description Unauthorized */
6070
- 401: {
6071
- headers: {
6072
- [name: string]: unknown;
6073
- };
6074
- content: {
6075
- "application/json": components["schemas"]["http_server.BasicResponse"];
6076
- };
6077
- };
6078
- /** @description Forbidden */
6079
- 403: {
6080
- headers: {
6081
- [name: string]: unknown;
6082
- };
6083
- content: {
6084
- "application/json": components["schemas"]["http_server.BasicResponse"];
6085
- };
6086
- };
6087
- /** @description Internal Server Error */
6088
- 500: {
6089
- headers: {
6090
- [name: string]: unknown;
6091
- };
6092
- content: {
6093
- "application/json": components["schemas"]["http_server.BasicResponse"];
6094
- };
6095
- };
6096
- };
6097
- };
6098
6322
  "projects-get-tag-list": {
6099
6323
  parameters: {
6100
6324
  query?: {
@@ -8398,44 +8622,4 @@ export interface operations {
8398
8622
  };
8399
8623
  };
8400
8624
  };
8401
- "resolve-url": {
8402
- parameters: {
8403
- query: {
8404
- primary_url: string;
8405
- };
8406
- header?: never;
8407
- path?: never;
8408
- cookie?: never;
8409
- };
8410
- requestBody?: never;
8411
- responses: {
8412
- /** @description OK */
8413
- 200: {
8414
- headers: {
8415
- [name: string]: unknown;
8416
- };
8417
- content: {
8418
- "application/json": components["schemas"]["model.UrlResolveResponse"];
8419
- };
8420
- };
8421
- /** @description Bad Request (missing or empty primary_url) */
8422
- 400: {
8423
- headers: {
8424
- [name: string]: unknown;
8425
- };
8426
- content: {
8427
- "application/json": components["schemas"]["http_server.BasicResponse"];
8428
- };
8429
- };
8430
- /** @description Unauthorized */
8431
- 401: {
8432
- headers: {
8433
- [name: string]: unknown;
8434
- };
8435
- content: {
8436
- "application/json": components["schemas"]["http_server.BasicResponse"];
8437
- };
8438
- };
8439
- };
8440
- };
8441
8625
  }