@opencx/mcp 1.11.63 → 1.11.77

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/schema.d.ts CHANGED
@@ -2642,7 +2642,7 @@ export interface paths {
2642
2642
  put?: never;
2643
2643
  /**
2644
2644
  * Approve a suggested category
2645
- * @description Promote an AI-suggested category to a user-defined (permanent) one.
2645
+ * @description Promote AI-suggested categories to user-defined (permanent) ones. Pass `categoryId` for one, or `categoryIds` to approve up to 100 at once. Bulk is best-effort and returns a `{ succeeded, failed }` summary.
2646
2646
  */
2647
2647
  post: operations["approveCategory"];
2648
2648
  delete?: never;
@@ -2662,7 +2662,7 @@ export interface paths {
2662
2662
  put?: never;
2663
2663
  /**
2664
2664
  * Reject a suggested category
2665
- * @description Reject an AI-suggested category and reassign its insights to a fallback category.
2665
+ * @description Reject AI-suggested categories and reassign their insights to `fallbackCategoryId`. Pass `categoryId` for one, or `categoryIds` to reject up to 100 at once (all reassigned to the same fallback). Bulk is best-effort and returns a `{ succeeded, failed }` summary.
2666
2666
  */
2667
2667
  post: operations["rejectCategory"];
2668
2668
  delete?: never;
@@ -2691,6 +2691,46 @@ export interface paths {
2691
2691
  patch?: never;
2692
2692
  trace?: never;
2693
2693
  };
2694
+ "/insights/{id}/archive": {
2695
+ parameters: {
2696
+ query?: never;
2697
+ header?: never;
2698
+ path?: never;
2699
+ cookie?: never;
2700
+ };
2701
+ get?: never;
2702
+ put?: never;
2703
+ /**
2704
+ * Archive a customer insight
2705
+ * @description Archives an insight with a resurface policy (until_escalating, until_count, or forever). Forever requires a reason.
2706
+ */
2707
+ post: operations["archiveInsight"];
2708
+ delete?: never;
2709
+ options?: never;
2710
+ head?: never;
2711
+ patch?: never;
2712
+ trace?: never;
2713
+ };
2714
+ "/insights/{id}/unarchive": {
2715
+ parameters: {
2716
+ query?: never;
2717
+ header?: never;
2718
+ path?: never;
2719
+ cookie?: never;
2720
+ };
2721
+ get?: never;
2722
+ put?: never;
2723
+ /**
2724
+ * Unarchive a customer insight
2725
+ * @description Removes archive state so the insight appears in active views again.
2726
+ */
2727
+ post: operations["unarchiveInsight"];
2728
+ delete?: never;
2729
+ options?: never;
2730
+ head?: never;
2731
+ patch?: never;
2732
+ trace?: never;
2733
+ };
2694
2734
  "/insights/{id}/resolve": {
2695
2735
  parameters: {
2696
2736
  query?: never;
@@ -3756,20 +3796,6 @@ export interface components {
3756
3796
  name?: string;
3757
3797
  description?: string | null;
3758
3798
  };
3759
- ApproveSuggestionDto: {
3760
- /** Format: uuid */
3761
- categoryId: string;
3762
- };
3763
- RejectSuggestionDto: {
3764
- reason?: string | null;
3765
- /** Format: uuid */
3766
- categoryId: string;
3767
- /**
3768
- * Format: uuid
3769
- * @description to assign the insights to another category
3770
- */
3771
- fallbackCategoryId: string;
3772
- };
3773
3799
  GetVocQueryDto: {
3774
3800
  /** @description Filter by category name */
3775
3801
  category?: string | null;
@@ -3805,6 +3831,16 @@ export interface components {
3805
3831
  /** @default 1 */
3806
3832
  page: number;
3807
3833
  };
3834
+ ArchiveInsightDto: {
3835
+ /**
3836
+ * @description When the insight should resurface after archiving
3837
+ * @default until_escalating
3838
+ * @enum {string}
3839
+ */
3840
+ policy: "forever" | "until_count" | "until_escalating";
3841
+ /** @description Reason for archiving */
3842
+ reason?: string;
3843
+ };
3808
3844
  FileUploadDto: {
3809
3845
  /**
3810
3846
  * Format: binary
@@ -4505,6 +4541,30 @@ export interface components {
4505
4541
  /** @description Pre-rendered TipTap diff HTML */
4506
4542
  diff_html: string;
4507
4543
  };
4544
+ PublicApproveSuggestionDto: {
4545
+ /**
4546
+ * Format: uuid
4547
+ * @description Single suggested category to approve.
4548
+ */
4549
+ categoryId?: string;
4550
+ /** @description Suggested categories to approve in bulk (up to 100). */
4551
+ categoryIds?: string[];
4552
+ };
4553
+ PublicRejectSuggestionDto: {
4554
+ reason?: string | null;
4555
+ /**
4556
+ * Format: uuid
4557
+ * @description Single suggested category to reject.
4558
+ */
4559
+ categoryId?: string;
4560
+ /** @description Suggested categories to reject in bulk (up to 100). */
4561
+ categoryIds?: string[];
4562
+ /**
4563
+ * Format: uuid
4564
+ * @description Category the rejected insights reassign to (shared across the batch).
4565
+ */
4566
+ fallbackCategoryId: string;
4567
+ };
4508
4568
  AssignInsightDto: {
4509
4569
  /** Format: uuid */
4510
4570
  groupId: string;
@@ -6802,6 +6862,11 @@ export interface components {
6802
6862
  reason: string | null;
6803
6863
  } | null;
6804
6864
  archived_at: string | null;
6865
+ archive_policy: ("forever" | "until_count" | "until_escalating") | null;
6866
+ resurface_progress: {
6867
+ current: number;
6868
+ target: number;
6869
+ } | null;
6805
6870
  deep_research: string | null;
6806
6871
  deep_research_completed_at: string | null;
6807
6872
  /** Format: date-time */
@@ -6831,6 +6896,14 @@ export interface components {
6831
6896
  /** @description Maximum total categories before the AI stops suggesting new ones. */
6832
6897
  limit: number;
6833
6898
  };
6899
+ PublicBulkCategoryResultDto: {
6900
+ succeeded: components["schemas"]["PublicCategoryDto"][];
6901
+ failed: {
6902
+ /** Format: uuid */
6903
+ categoryId: string;
6904
+ error: string;
6905
+ }[];
6906
+ };
6834
6907
  SendTemplateOutputDto: {
6835
6908
  whatsapp_message_id: string;
6836
6909
  opencx_message_id: string;
@@ -12855,7 +12928,7 @@ export interface operations {
12855
12928
  };
12856
12929
  requestBody: {
12857
12930
  content: {
12858
- "application/json": components["schemas"]["ApproveSuggestionDto"];
12931
+ "application/json": components["schemas"]["PublicApproveSuggestionDto"];
12859
12932
  };
12860
12933
  };
12861
12934
  responses: {
@@ -12865,7 +12938,7 @@ export interface operations {
12865
12938
  [name: string]: unknown;
12866
12939
  };
12867
12940
  content: {
12868
- "application/json": components["schemas"]["PublicCategoryDto"];
12941
+ "application/json": components["schemas"]["PublicCategoryDto"] | components["schemas"]["PublicBulkCategoryResultDto"];
12869
12942
  };
12870
12943
  };
12871
12944
  /** @description Internal Server Error */
@@ -12888,7 +12961,7 @@ export interface operations {
12888
12961
  };
12889
12962
  requestBody: {
12890
12963
  content: {
12891
- "application/json": components["schemas"]["RejectSuggestionDto"];
12964
+ "application/json": components["schemas"]["PublicRejectSuggestionDto"];
12892
12965
  };
12893
12966
  };
12894
12967
  responses: {
@@ -12898,7 +12971,7 @@ export interface operations {
12898
12971
  [name: string]: unknown;
12899
12972
  };
12900
12973
  content: {
12901
- "application/json": components["schemas"]["PublicCategoryDto"];
12974
+ "application/json": components["schemas"]["PublicCategoryDto"] | components["schemas"]["PublicBulkCategoryResultDto"];
12902
12975
  };
12903
12976
  };
12904
12977
  /** @description Internal Server Error */
@@ -12943,6 +13016,72 @@ export interface operations {
12943
13016
  };
12944
13017
  };
12945
13018
  };
13019
+ archiveInsight: {
13020
+ parameters: {
13021
+ query?: never;
13022
+ header?: never;
13023
+ path: {
13024
+ id: string;
13025
+ };
13026
+ cookie?: never;
13027
+ };
13028
+ requestBody: {
13029
+ content: {
13030
+ "application/json": components["schemas"]["ArchiveInsightDto"];
13031
+ };
13032
+ };
13033
+ responses: {
13034
+ /** @description Default Response */
13035
+ 200: {
13036
+ headers: {
13037
+ [name: string]: unknown;
13038
+ };
13039
+ content: {
13040
+ "application/json": components["schemas"]["PublicInsight"];
13041
+ };
13042
+ };
13043
+ /** @description Internal Server Error */
13044
+ 500: {
13045
+ headers: {
13046
+ [name: string]: unknown;
13047
+ };
13048
+ content: {
13049
+ "application/json": components["schemas"]["ErrorDto"];
13050
+ };
13051
+ };
13052
+ };
13053
+ };
13054
+ unarchiveInsight: {
13055
+ parameters: {
13056
+ query?: never;
13057
+ header?: never;
13058
+ path: {
13059
+ id: string;
13060
+ };
13061
+ cookie?: never;
13062
+ };
13063
+ requestBody?: never;
13064
+ responses: {
13065
+ /** @description Default Response */
13066
+ 200: {
13067
+ headers: {
13068
+ [name: string]: unknown;
13069
+ };
13070
+ content: {
13071
+ "application/json": components["schemas"]["PublicInsight"];
13072
+ };
13073
+ };
13074
+ /** @description Internal Server Error */
13075
+ 500: {
13076
+ headers: {
13077
+ [name: string]: unknown;
13078
+ };
13079
+ content: {
13080
+ "application/json": components["schemas"]["ErrorDto"];
13081
+ };
13082
+ };
13083
+ };
13084
+ };
12946
13085
  resolveInsight: {
12947
13086
  parameters: {
12948
13087
  query?: never;