@adobe/spacecat-shared-project-engine-client 1.7.1 → 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-project-engine-client",
3
- "version": "1.7.1",
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;
@@ -1629,6 +1690,8 @@ export interface components {
1629
1690
  color?: string;
1630
1691
  domain?: string;
1631
1692
  favorite?: boolean;
1693
+ main_brand?: boolean;
1694
+ primary_url?: string;
1632
1695
  };
1633
1696
  "model.AIOBenchmarkWithCounters": {
1634
1697
  brand_aliases?: string[];
@@ -1638,11 +1701,11 @@ export interface components {
1638
1701
  favorite?: boolean;
1639
1702
  id: string;
1640
1703
  main_brand?: boolean;
1704
+ primary_url?: string;
1641
1705
  product_names?: string[];
1642
1706
  products_count?: number;
1643
1707
  project_id?: string;
1644
1708
  rejected_brand_aliases?: string[];
1645
- primary_url?: string;
1646
1709
  root_domain?: string;
1647
1710
  };
1648
1711
  "model.AIOProduct": {
@@ -1711,10 +1774,10 @@ export interface components {
1711
1774
  language?: components["schemas"]["model.LanguageResponse"];
1712
1775
  location?: components["schemas"]["model.LocationResponse"];
1713
1776
  models_stats?: components["schemas"]["model.ProjectModelStats"];
1777
+ primary_url?: string;
1714
1778
  products_count?: number;
1715
1779
  prompts_count?: number;
1716
1780
  segments_count?: number;
1717
- primary_url?: string;
1718
1781
  };
1719
1782
  "model.AdvancedCrawlingConsentRequest": {
1720
1783
  accepted: boolean;
@@ -1729,9 +1792,11 @@ export interface components {
1729
1792
  confirmed_by_name?: string;
1730
1793
  };
1731
1794
  "model.ApplyInteractiveIgnoreIssueRulesRequest": {
1732
- filters: number[];
1733
- id?: string;
1734
- 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;
1735
1800
  };
1736
1801
  "model.AvailablePromptsResponse": {
1737
1802
  available?: number;
@@ -2100,6 +2165,11 @@ export interface components {
2100
2165
  id?: number;
2101
2166
  name?: string;
2102
2167
  };
2168
+ "model.ManagedAIModelsResponse": {
2169
+ managed_ai_models?: {
2170
+ [key: string]: boolean;
2171
+ };
2172
+ };
2103
2173
  "model.ProjectAIModelListResponse": {
2104
2174
  items?: components["schemas"]["model.ProjectAIModelResponse"][];
2105
2175
  page?: number;
@@ -2143,6 +2213,7 @@ export interface components {
2143
2213
  location_id?: number;
2144
2214
  location_name?: string;
2145
2215
  name: string;
2216
+ primary_url?: string;
2146
2217
  /**
2147
2218
  * @description enum: seo, ai, mfour, si, ci
2148
2219
  * @enum {string}
@@ -2180,6 +2251,7 @@ export interface components {
2180
2251
  location_id?: number;
2181
2252
  location_name?: string;
2182
2253
  name?: string;
2254
+ primary_url?: string;
2183
2255
  /**
2184
2256
  * @description enum: ai, mfour, si
2185
2257
  * @enum {string}
@@ -2240,6 +2312,11 @@ export interface components {
2240
2312
  location_name?: string;
2241
2313
  status?: string;
2242
2314
  };
2315
+ "model.ResolveURLResponse": {
2316
+ domain: string;
2317
+ is_valid: boolean;
2318
+ primary_url: string;
2319
+ };
2243
2320
  "model.RestorePromptNamesRequest": {
2244
2321
  ids: string[];
2245
2322
  };
@@ -2255,12 +2332,8 @@ export interface components {
2255
2332
  behaviour?: string;
2256
2333
  custom_robots_txt?: string;
2257
2334
  };
2258
- "model.SIProjectSettingsRequest": {
2259
- allow_more_parallel_instances?: boolean;
2260
- };
2261
2335
  "model.SISettings": {
2262
2336
  advanced_crawling_consent?: components["schemas"]["model.AdvancedCrawlingConsentResponse"];
2263
- allow_more_parallel_instances?: boolean;
2264
2337
  crawler_stats?: components["schemas"]["model.CrawlerStats"][];
2265
2338
  crawlers_count?: number;
2266
2339
  extractions_count?: number;
@@ -2291,6 +2364,10 @@ export interface components {
2291
2364
  ci?: components["schemas"]["model.CISettings"];
2292
2365
  si?: components["schemas"]["model.SISettings"];
2293
2366
  };
2367
+ "model.StopCrawlRequest": {
2368
+ crawl_configuration_id: string;
2369
+ project_id: string;
2370
+ };
2294
2371
  "model.StringIDName": {
2295
2372
  id?: string;
2296
2373
  name?: string;
@@ -2396,6 +2473,12 @@ export interface components {
2396
2473
  };
2397
2474
  };
2398
2475
  /** @description Request body */
2476
+ "model.ApplyInteractiveIgnoreIssueRulesRequest": {
2477
+ content: {
2478
+ "application/json": components["schemas"]["model.ApplyInteractiveIgnoreIssueRulesRequest"];
2479
+ };
2480
+ };
2481
+ /** @description Request body */
2399
2482
  "model.CustomExtractionRequest": {
2400
2483
  content: {
2401
2484
  "application/json": components["schemas"]["model.CustomExtractionRequest"];
@@ -2565,6 +2648,118 @@ export interface operations {
2565
2648
  };
2566
2649
  };
2567
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
+ };
2568
2763
  "workspace-list-keywords": {
2569
2764
  parameters: {
2570
2765
  query?: {
@@ -2621,6 +2816,59 @@ export interface operations {
2621
2816
  };
2622
2817
  };
2623
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
+ };
2624
2872
  "projects-list-projects": {
2625
2873
  parameters: {
2626
2874
  query?: {
@@ -4112,6 +4360,8 @@ export interface operations {
4112
4360
  query?: {
4113
4361
  /** @description Get draft project data */
4114
4362
  draft?: boolean;
4363
+ /** @description Get only main_brand benchmark */
4364
+ main_brand?: boolean;
4115
4365
  };
4116
4366
  header?: never;
4117
4367
  path: {
@@ -4348,12 +4598,68 @@ export interface operations {
4348
4598
  };
4349
4599
  cookie?: never;
4350
4600
  };
4351
- /** @description Request body */
4352
- requestBody: {
4353
- content: {
4354
- "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
+ };
4355
4645
  };
4356
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;
4659
+ };
4660
+ cookie?: never;
4661
+ };
4662
+ requestBody: components["requestBodies"]["model.ApplyInteractiveIgnoreIssueRulesRequest"];
4357
4663
  responses: {
4358
4664
  /** @description Accepted */
4359
4665
  202: {
@@ -6013,63 +6319,6 @@ export interface operations {
6013
6319
  };
6014
6320
  };
6015
6321
  };
6016
- "projects-set-allow-more-parallel-instances": {
6017
- parameters: {
6018
- query?: never;
6019
- header?: never;
6020
- path: {
6021
- /** @description workspace ID */
6022
- id: string;
6023
- /** @description project ID */
6024
- project_id: string;
6025
- };
6026
- cookie?: never;
6027
- };
6028
- /** @description Request body */
6029
- requestBody: {
6030
- content: {
6031
- "application/json": components["schemas"]["model.SIProjectSettingsRequest"];
6032
- };
6033
- };
6034
- responses: {
6035
- /** @description OK */
6036
- 200: {
6037
- headers: {
6038
- [name: string]: unknown;
6039
- };
6040
- content: {
6041
- "application/json": components["schemas"]["model.ProjectResponse"];
6042
- };
6043
- };
6044
- /** @description Unauthorized */
6045
- 401: {
6046
- headers: {
6047
- [name: string]: unknown;
6048
- };
6049
- content: {
6050
- "application/json": components["schemas"]["http_server.BasicResponse"];
6051
- };
6052
- };
6053
- /** @description Forbidden */
6054
- 403: {
6055
- headers: {
6056
- [name: string]: unknown;
6057
- };
6058
- content: {
6059
- "application/json": components["schemas"]["http_server.BasicResponse"];
6060
- };
6061
- };
6062
- /** @description Internal Server Error */
6063
- 500: {
6064
- headers: {
6065
- [name: string]: unknown;
6066
- };
6067
- content: {
6068
- "application/json": components["schemas"]["http_server.BasicResponse"];
6069
- };
6070
- };
6071
- };
6072
- };
6073
6322
  "projects-get-tag-list": {
6074
6323
  parameters: {
6075
6324
  query?: {