@gentiq/core 1.0.0-alpha.7 → 1.0.0-alpha.9

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/index.d.ts CHANGED
@@ -354,6 +354,18 @@ declare function buildApi(http: HttpClient, auth: ResolvedAuthAdapter, options:
354
354
  getStatus: (signal?: AbortSignal) => Promise<{
355
355
  maintenance: components["schemas"]["MaintenanceNotice"];
356
356
  }>;
357
+ /** Submit a bug report, feature request or general feedback from the signed-in user. */
358
+ submitUserReport: (data: UserReportInput, signal?: AbortSignal) => Promise<{
359
+ attachment_filename?: string | null;
360
+ attachment_id?: string | null;
361
+ attachment_media_type?: string | null;
362
+ category: "bug" | "feature" | "other";
363
+ created_at: string;
364
+ description: string;
365
+ id: string;
366
+ status: "open" | "resolved";
367
+ subject: string;
368
+ }>;
357
369
  };
358
370
 
359
371
  /**
@@ -464,15 +476,6 @@ declare interface components {
464
476
  */
465
477
  via: "resolver" | "subscription" | "credits" | "default";
466
478
  };
467
- /** ActiveUser */
468
- ActiveUser: {
469
- /** Name */
470
- name: string;
471
- /** Thread Count */
472
- thread_count: number;
473
- /** User Id */
474
- user_id: string;
475
- };
476
479
  /** AdminCreated */
477
480
  AdminCreated: {
478
481
  /** Admin Id */
@@ -694,6 +697,73 @@ declare interface components {
694
697
  /** Username */
695
698
  username: string;
696
699
  };
700
+ /** AdminReportList */
701
+ AdminReportList: {
702
+ /** Count */
703
+ count: number;
704
+ /** Open Count */
705
+ open_count: number;
706
+ /** Reports */
707
+ reports: components["schemas"]["AdminReportRow"][];
708
+ };
709
+ /** AdminReportRow */
710
+ AdminReportRow: {
711
+ /** Attachment Filename */
712
+ attachment_filename?: string | null;
713
+ /** Attachment Id */
714
+ attachment_id?: string | null;
715
+ /** Attachment Media Type */
716
+ attachment_media_type?: string | null;
717
+ /**
718
+ * Category
719
+ * @enum {string}
720
+ */
721
+ category: "bug" | "feature" | "other";
722
+ /**
723
+ * Created At
724
+ * Format: date-time
725
+ */
726
+ created_at: string;
727
+ /** Description */
728
+ description: string;
729
+ /** Id */
730
+ id: string;
731
+ /**
732
+ * Status
733
+ * @enum {string}
734
+ */
735
+ status: "open" | "resolved";
736
+ /** Subject */
737
+ subject: string;
738
+ /** Updated At */
739
+ updated_at?: string | null;
740
+ user?: components["schemas"]["AdminReportUser"] | null;
741
+ /** User Id */
742
+ user_id: string;
743
+ };
744
+ /** AdminReportUpdateInput */
745
+ AdminReportUpdateInput: {
746
+ /**
747
+ * Status
748
+ * @enum {string}
749
+ */
750
+ status: "open" | "resolved";
751
+ };
752
+ /** AdminReportUser */
753
+ AdminReportUser: {
754
+ /** Email */
755
+ email?: string | null;
756
+ /** Id */
757
+ id: string;
758
+ /** Name */
759
+ name: string;
760
+ /** Phone */
761
+ phone?: string | null;
762
+ /** Surname */
763
+ surname?: string | null;
764
+ /** Username */
765
+ username?: string | null;
766
+ };
697
767
  /**
698
768
  * AdminSession
699
769
  * @description The signed-in admin as the store holds it now, not as the token described it.
@@ -965,16 +1035,42 @@ declare interface components {
965
1035
  };
966
1036
  /** Analytics */
967
1037
  Analytics: {
968
- /** Active Users */
969
- active_users: components["schemas"]["ActiveUser"][];
970
- distributions: components["schemas"]["AnalyticsDistributions"];
971
1038
  overview: components["schemas"]["AnalyticsOverview"];
972
1039
  trends: components["schemas"]["AnalyticsTrends"];
973
1040
  };
974
- /** AnalyticsDistributions */
975
- AnalyticsDistributions: {
976
- /** Feedback Sentiment */
977
- feedback_sentiment: components["schemas"]["SentimentCount"][];
1041
+ /** AnalyticsEngagement */
1042
+ AnalyticsEngagement: {
1043
+ /** Active Days */
1044
+ active_days: components["schemas"]["CountBin"][];
1045
+ /** Daily */
1046
+ daily: components["schemas"]["EngagementDay"][];
1047
+ /** Growth */
1048
+ growth: components["schemas"]["GrowthBucket"][];
1049
+ /** Heatmap */
1050
+ heatmap: number[][];
1051
+ /** Hourly */
1052
+ hourly?: components["schemas"]["EngagementHour"][] | null;
1053
+ /** Levels */
1054
+ levels: {
1055
+ [key: string]: number;
1056
+ };
1057
+ /** Matrix */
1058
+ matrix: {
1059
+ [key: string]: {
1060
+ [key: string]: number;
1061
+ };
1062
+ };
1063
+ medians: components["schemas"]["EngagementMedians"];
1064
+ period: components["schemas"]["EngagementPeriod"];
1065
+ rates: components["schemas"]["EngagementRates"];
1066
+ /** Recency */
1067
+ recency: components["schemas"]["CountBin"][];
1068
+ /** Stages */
1069
+ stages: {
1070
+ [key: string]: number;
1071
+ };
1072
+ thresholds: components["schemas"]["EngagementThresholds"];
1073
+ totals: components["schemas"]["EngagementTotals"];
978
1074
  };
979
1075
  /** AnalyticsOverview */
980
1076
  AnalyticsOverview: {
@@ -997,6 +1093,8 @@ declare interface components {
997
1093
  };
998
1094
  /** AnalyticsTrends */
999
1095
  AnalyticsTrends: {
1096
+ /** Feedback */
1097
+ feedback: components["schemas"]["FeedbackDay"][];
1000
1098
  /** Messages */
1001
1099
  messages: components["schemas"]["DateCount"][];
1002
1100
  /** Threads */
@@ -1006,6 +1104,24 @@ declare interface components {
1006
1104
  /** Users */
1007
1105
  users: components["schemas"]["DateCount"][];
1008
1106
  };
1107
+ /** AnalyticsTrendsDetail */
1108
+ AnalyticsTrendsDetail: {
1109
+ /** Currency */
1110
+ currency: string;
1111
+ /** Daily */
1112
+ daily: components["schemas"]["TrendDayPoint"][];
1113
+ /** Plans */
1114
+ plans: components["schemas"]["PlanTierSummary"][];
1115
+ };
1116
+ /** AnalyticsUsageLimits */
1117
+ AnalyticsUsageLimits: {
1118
+ /** Buckets */
1119
+ buckets: number[];
1120
+ /** Currency */
1121
+ currency: string;
1122
+ /** Plans */
1123
+ plans: components["schemas"]["PlanUsageView"][];
1124
+ };
1009
1125
  /** ApiKeyCreateInput */
1010
1126
  ApiKeyCreateInput: {
1011
1127
  /** Expires At */
@@ -1595,6 +1711,15 @@ declare interface components {
1595
1711
  */
1596
1712
  type: "data-choice-question";
1597
1713
  };
1714
+ /** CountBin */
1715
+ CountBin: {
1716
+ /** Count */
1717
+ count: number;
1718
+ /** From */
1719
+ from: number;
1720
+ /** To */
1721
+ to: number;
1722
+ };
1598
1723
  /** CreditsGrantInput */
1599
1724
  CreditsGrantInput: {
1600
1725
  /** Amount */
@@ -1695,6 +1820,166 @@ declare interface components {
1695
1820
  */
1696
1821
  type: "dynamic-tool";
1697
1822
  };
1823
+ /** EngagementDay */
1824
+ EngagementDay: {
1825
+ /** Active */
1826
+ active: number;
1827
+ /** Date */
1828
+ date: string;
1829
+ /** Mau */
1830
+ mau: number;
1831
+ /** New */
1832
+ new: number;
1833
+ /** Sessions */
1834
+ sessions: number;
1835
+ /** Wau */
1836
+ wau: number;
1837
+ };
1838
+ /** EngagementHour */
1839
+ EngagementHour: {
1840
+ /** Active */
1841
+ active: number;
1842
+ /** Hour */
1843
+ hour: number;
1844
+ /** New */
1845
+ new: number;
1846
+ };
1847
+ /** EngagementMedians */
1848
+ EngagementMedians: {
1849
+ /** Days To Second Visit */
1850
+ days_to_second_visit: number | null;
1851
+ /** Gap Days */
1852
+ gap_days: number | null;
1853
+ /** Messages Per Session */
1854
+ messages_per_session: number | null;
1855
+ /** Minutes Per Session */
1856
+ minutes_per_session: number | null;
1857
+ /** Sessions Per User */
1858
+ sessions_per_user: number | null;
1859
+ };
1860
+ /** EngagementPeriod */
1861
+ EngagementPeriod: {
1862
+ /**
1863
+ * Bucket
1864
+ * @enum {string}
1865
+ */
1866
+ bucket: "day" | "week";
1867
+ /** Days */
1868
+ days: number;
1869
+ /** End */
1870
+ end: string;
1871
+ /** Start */
1872
+ start: string;
1873
+ /** Timezone */
1874
+ timezone: string;
1875
+ /**
1876
+ * Week Start
1877
+ * @enum {string}
1878
+ */
1879
+ week_start: "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday";
1880
+ };
1881
+ /** EngagementRates */
1882
+ EngagementRates: {
1883
+ /** Active */
1884
+ active: number | null;
1885
+ /** Came Back */
1886
+ came_back: number | null;
1887
+ /** New */
1888
+ new: number | null;
1889
+ /** Stickiness */
1890
+ stickiness: number | null;
1891
+ };
1892
+ /** EngagementThresholds */
1893
+ EngagementThresholds: {
1894
+ /** Daily Bucket Max Days */
1895
+ daily_bucket_max_days: number;
1896
+ /** Deep Session Messages */
1897
+ deep_session_messages: number;
1898
+ /** Power Days Per Week */
1899
+ power_days_per_week: number;
1900
+ /** Power Min Days */
1901
+ power_min_days: number;
1902
+ /** Quick Session Messages */
1903
+ quick_session_messages: number;
1904
+ /** Regular Days Per Week */
1905
+ regular_days_per_week: number;
1906
+ /** Resurrected Gap Days */
1907
+ resurrected_gap_days: number;
1908
+ /** Session Gap Minutes */
1909
+ session_gap_minutes: number;
1910
+ };
1911
+ /** EngagementTotals */
1912
+ EngagementTotals: {
1913
+ /** Active */
1914
+ active: number;
1915
+ /** Active Days */
1916
+ active_days: number;
1917
+ /** Average Daily */
1918
+ average_daily: number;
1919
+ /** Came Back */
1920
+ came_back: number;
1921
+ /** Messages */
1922
+ messages: number;
1923
+ /** Multi Session */
1924
+ multi_session: number;
1925
+ /** New */
1926
+ new: number;
1927
+ /** Sessions */
1928
+ sessions: number;
1929
+ /** Users */
1930
+ users: number;
1931
+ };
1932
+ /** EngagementUserList */
1933
+ EngagementUserList: {
1934
+ /** Total */
1935
+ total: number;
1936
+ /** Users */
1937
+ users: components["schemas"]["EngagementUserRow"][];
1938
+ };
1939
+ /** EngagementUserRow */
1940
+ EngagementUserRow: {
1941
+ /** Active Days */
1942
+ active_days: number;
1943
+ /** Depth */
1944
+ depth?: ("quick" | "conversational" | "deep") | null;
1945
+ /** Email */
1946
+ email?: string | null;
1947
+ /** External Id */
1948
+ external_id?: string | null;
1949
+ /** Files */
1950
+ files: number;
1951
+ /** First Used At */
1952
+ first_used_at?: string | null;
1953
+ /** Last Active At */
1954
+ last_active_at?: string | null;
1955
+ /** Level */
1956
+ level?: ("power" | "regular" | "casual" | "one_day") | null;
1957
+ /** Messages */
1958
+ messages: number;
1959
+ /** Messages Per Session */
1960
+ messages_per_session?: number | null;
1961
+ /** Name */
1962
+ name: string;
1963
+ /** Phone */
1964
+ phone?: string | null;
1965
+ /** Sessions */
1966
+ sessions: number;
1967
+ /**
1968
+ * Stage
1969
+ * @enum {string}
1970
+ */
1971
+ stage: "new" | "returning" | "resurrected" | "lapsed" | "never";
1972
+ /** Subscription Group */
1973
+ subscription_group?: string | null;
1974
+ /** Surname */
1975
+ surname?: string | null;
1976
+ /** Threads */
1977
+ threads: number;
1978
+ /** User Id */
1979
+ user_id: string;
1980
+ /** Username */
1981
+ username?: string | null;
1982
+ };
1698
1983
  /**
1699
1984
  * EntitlementStatus
1700
1985
  * @description Everything a UI or an integrator needs to explain a user's allowance.
@@ -1767,6 +2052,15 @@ declare interface components {
1767
2052
  } & {
1768
2053
  [key: string]: unknown;
1769
2054
  };
2055
+ /** FeedbackDay */
2056
+ FeedbackDay: {
2057
+ /** Date */
2058
+ date: string | null;
2059
+ /** Negative */
2060
+ negative: number;
2061
+ /** Positive */
2062
+ positive: number;
2063
+ };
1770
2064
  /**
1771
2065
  * FilePart
1772
2066
  * @description A file. ``attachmentId`` names one the server stores; ``url`` one hosted elsewhere.
@@ -1826,6 +2120,25 @@ declare interface components {
1826
2120
  /** Groups */
1827
2121
  groups: string[];
1828
2122
  };
2123
+ /** GrowthBucket */
2124
+ GrowthBucket: {
2125
+ /** Active */
2126
+ active: number;
2127
+ /** Churned */
2128
+ churned: number;
2129
+ /** New */
2130
+ new: number;
2131
+ /** Partial */
2132
+ partial: boolean;
2133
+ /** Quick Ratio */
2134
+ quick_ratio: number | null;
2135
+ /** Resurrected */
2136
+ resurrected: number;
2137
+ /** Retained */
2138
+ retained: number;
2139
+ /** Start */
2140
+ start: string;
2141
+ };
1829
2142
  /** Incident */
1830
2143
  Incident: {
1831
2144
  /** Action */
@@ -2215,6 +2528,15 @@ declare interface components {
2215
2528
  /** Total Cost Microunits */
2216
2529
  total_cost_microunits?: number | null;
2217
2530
  };
2531
+ /** Percentiles */
2532
+ Percentiles: {
2533
+ /** P50 */
2534
+ p50: number | null;
2535
+ /** P75 */
2536
+ p75: number | null;
2537
+ /** P90 */
2538
+ p90: number | null;
2539
+ };
2218
2540
  /** PermissionList */
2219
2541
  PermissionList: {
2220
2542
  /** Permissions */
@@ -2285,6 +2607,22 @@ declare interface components {
2285
2607
  /** Name */
2286
2608
  name: string;
2287
2609
  };
2610
+ /** PlanLimitView */
2611
+ PlanLimitView: {
2612
+ /** Amount */
2613
+ amount: number;
2614
+ /** Every */
2615
+ every: number;
2616
+ /** Id */
2617
+ id: string;
2618
+ /** Meter */
2619
+ meter: string;
2620
+ /**
2621
+ * Per
2622
+ * @enum {string}
2623
+ */
2624
+ per: "minute" | "hour" | "day" | "week" | "month" | "subscription";
2625
+ };
2288
2626
  /** PlanList */
2289
2627
  PlanList: {
2290
2628
  /** Plans */
@@ -2315,6 +2653,52 @@ declare interface components {
2315
2653
  /** Name */
2316
2654
  name: string;
2317
2655
  };
2656
+ /** PlanTierSummary */
2657
+ PlanTierSummary: {
2658
+ /** Active Users */
2659
+ active_users: number;
2660
+ /** Cost Microunits */
2661
+ cost_microunits: number;
2662
+ /** Daily */
2663
+ daily: components["schemas"]["PlanTrendDayPoint"][];
2664
+ /** Dislikes */
2665
+ dislikes: number;
2666
+ /** Key */
2667
+ key: string;
2668
+ /** Likes */
2669
+ likes: number;
2670
+ /** Messages */
2671
+ messages: number;
2672
+ /** Name */
2673
+ name: string;
2674
+ /** Quota Hits */
2675
+ quota_hits: number;
2676
+ /** Threads Started */
2677
+ threads_started: number;
2678
+ /** Tokens */
2679
+ tokens: number;
2680
+ };
2681
+ /** PlanTrendDayPoint */
2682
+ PlanTrendDayPoint: {
2683
+ /** Active Users */
2684
+ active_users: number;
2685
+ /** Cost Microunits */
2686
+ cost_microunits: number;
2687
+ /** Date */
2688
+ date: string;
2689
+ /** Dislikes */
2690
+ dislikes: number;
2691
+ /** Likes */
2692
+ likes: number;
2693
+ /** Messages */
2694
+ messages: number;
2695
+ /** Quota Hits */
2696
+ quota_hits: number;
2697
+ /** Threads Started */
2698
+ threads_started: number;
2699
+ /** Tokens */
2700
+ tokens: number;
2701
+ };
2318
2702
  /** PlanUpdateInput */
2319
2703
  PlanUpdateInput: {
2320
2704
  /** Archived */
@@ -2331,6 +2715,28 @@ declare interface components {
2331
2715
  /** Name */
2332
2716
  name?: string | null;
2333
2717
  };
2718
+ /** PlanUsageView */
2719
+ PlanUsageView: {
2720
+ /** Active Users */
2721
+ active_users: number;
2722
+ duration?: components["schemas"]["PlanDuration"] | null;
2723
+ /** Histograms */
2724
+ histograms: {
2725
+ [key: string]: number[];
2726
+ };
2727
+ /** Is Default */
2728
+ is_default: boolean;
2729
+ /** Key */
2730
+ key: string;
2731
+ /** Limit Hits */
2732
+ limit_hits: number;
2733
+ /** Limits */
2734
+ limits: components["schemas"]["PlanLimitView"][];
2735
+ messages_per_active_day: components["schemas"]["Percentiles"];
2736
+ /** Name */
2737
+ name: string;
2738
+ tokens_per_active_day: components["schemas"]["Percentiles"];
2739
+ };
2334
2740
  /** PlanView */
2335
2741
  PlanView: {
2336
2742
  /** Archived */
@@ -2693,13 +3099,6 @@ declare interface components {
2693
3099
  [key: string]: unknown;
2694
3100
  };
2695
3101
  };
2696
- /** SentimentCount */
2697
- SentimentCount: {
2698
- /** Count */
2699
- count: number;
2700
- /** Sentiment */
2701
- sentiment: string | null;
2702
- };
2703
3102
  /** SessionInput */
2704
3103
  SessionInput: {
2705
3104
  /** Redirect Path */
@@ -3336,6 +3735,33 @@ declare interface components {
3336
3735
  /** Text */
3337
3736
  text: string;
3338
3737
  };
3738
+ /** TrendDayPoint */
3739
+ TrendDayPoint: {
3740
+ /** Active Users */
3741
+ active_users: number;
3742
+ /** Cost Microunits */
3743
+ cost_microunits: number;
3744
+ /** Date */
3745
+ date: string;
3746
+ /** Dislikes */
3747
+ dislikes: number;
3748
+ /** Likes */
3749
+ likes: number;
3750
+ /** Messages */
3751
+ messages: number;
3752
+ /** New Users */
3753
+ new_users: number;
3754
+ /** Quota Hits */
3755
+ quota_hits: number;
3756
+ /** Threads Started */
3757
+ threads_started: number;
3758
+ /** Tokens */
3759
+ tokens: number;
3760
+ /** Turns Completed */
3761
+ turns_completed: number;
3762
+ /** Turns Failed */
3763
+ turns_failed: number;
3764
+ };
3339
3765
  /**
3340
3766
  * TurnData
3341
3767
  * @description The turn being streamed, which ``GET /chat/threads/{thread_id}/turns/{turn_id}/stream`` reconnects to.
@@ -3543,6 +3969,50 @@ declare interface components {
3543
3969
  /** Username */
3544
3970
  username: string | null;
3545
3971
  };
3972
+ /** UserReportCreateInput */
3973
+ UserReportCreateInput: {
3974
+ /** Attachment Id */
3975
+ attachment_id?: string | null;
3976
+ /**
3977
+ * Category
3978
+ * @enum {string}
3979
+ */
3980
+ category: "bug" | "feature" | "other";
3981
+ /** Description */
3982
+ description: string;
3983
+ /** Subject */
3984
+ subject: string;
3985
+ };
3986
+ /** UserReportResponse */
3987
+ UserReportResponse: {
3988
+ /** Attachment Filename */
3989
+ attachment_filename?: string | null;
3990
+ /** Attachment Id */
3991
+ attachment_id?: string | null;
3992
+ /** Attachment Media Type */
3993
+ attachment_media_type?: string | null;
3994
+ /**
3995
+ * Category
3996
+ * @enum {string}
3997
+ */
3998
+ category: "bug" | "feature" | "other";
3999
+ /**
4000
+ * Created At
4001
+ * Format: date-time
4002
+ */
4003
+ created_at: string;
4004
+ /** Description */
4005
+ description: string;
4006
+ /** Id */
4007
+ id: string;
4008
+ /**
4009
+ * Status
4010
+ * @enum {string}
4011
+ */
4012
+ status: "open" | "resolved";
4013
+ /** Subject */
4014
+ subject: string;
4015
+ };
3546
4016
  /** UserUpdateInput */
3547
4017
  UserUpdateInput: {
3548
4018
  /** Email */
@@ -4259,9 +4729,19 @@ declare interface operations {
4259
4729
  };
4260
4730
  };
4261
4731
  };
4262
- analytics_filter_options_api_admin_analytics_filter_options_get: {
4732
+ get_analytics_engagement_api_admin_analytics_engagement_get: {
4263
4733
  parameters: {
4264
- query?: never;
4734
+ query?: {
4735
+ days?: number;
4736
+ source?: "human" | "service" | "all";
4737
+ user_ids?: string[] | null;
4738
+ plan_keys?: string[] | null;
4739
+ groups?: string[] | null;
4740
+ metadata?: string | null;
4741
+ external_user_id?: string | null;
4742
+ date_from?: string | null;
4743
+ date_to?: string | null;
4744
+ };
4265
4745
  header?: never;
4266
4746
  path?: never;
4267
4747
  cookie?: never;
@@ -4274,7 +4754,7 @@ declare interface operations {
4274
4754
  [name: string]: unknown;
4275
4755
  };
4276
4756
  content: {
4277
- "application/json": components["schemas"]["FilterOptions"];
4757
+ "application/json": components["schemas"]["AnalyticsEngagement"];
4278
4758
  };
4279
4759
  };
4280
4760
  /** @description Client Error */
@@ -4297,10 +4777,22 @@ declare interface operations {
4297
4777
  };
4298
4778
  };
4299
4779
  };
4300
- search_analytics_groups_api_admin_analytics_groups_get: {
4780
+ get_analytics_engagement_users_api_admin_analytics_engagement_users_get: {
4301
4781
  parameters: {
4302
4782
  query?: {
4303
- query?: string;
4783
+ days?: number;
4784
+ source?: "human" | "service" | "all";
4785
+ user_ids?: string[] | null;
4786
+ plan_keys?: string[] | null;
4787
+ groups?: string[] | null;
4788
+ metadata?: string | null;
4789
+ external_user_id?: string | null;
4790
+ date_from?: string | null;
4791
+ date_to?: string | null;
4792
+ stage?: ("new" | "returning" | "resurrected" | "lapsed" | "never") | null;
4793
+ level?: ("power" | "regular" | "casual" | "one_day") | null;
4794
+ depth?: ("quick" | "conversational" | "deep") | null;
4795
+ skip?: number;
4304
4796
  limit?: number;
4305
4797
  };
4306
4798
  header?: never;
@@ -4315,7 +4807,7 @@ declare interface operations {
4315
4807
  [name: string]: unknown;
4316
4808
  };
4317
4809
  content: {
4318
- "application/json": components["schemas"]["GroupList"];
4810
+ "application/json": components["schemas"]["EngagementUserList"];
4319
4811
  };
4320
4812
  };
4321
4813
  /** @description Client Error */
@@ -4338,11 +4830,21 @@ declare interface operations {
4338
4830
  };
4339
4831
  };
4340
4832
  };
4341
- search_analytics_users_api_admin_analytics_users_get: {
4833
+ export_analytics_engagement_users_api_admin_analytics_engagement_users_export_csv_get: {
4342
4834
  parameters: {
4343
4835
  query?: {
4344
- query?: string;
4345
- limit?: number;
4836
+ days?: number;
4837
+ source?: "human" | "service" | "all";
4838
+ user_ids?: string[] | null;
4839
+ plan_keys?: string[] | null;
4840
+ groups?: string[] | null;
4841
+ metadata?: string | null;
4842
+ external_user_id?: string | null;
4843
+ date_from?: string | null;
4844
+ date_to?: string | null;
4845
+ stage?: ("new" | "returning" | "resurrected" | "lapsed" | "never") | null;
4846
+ level?: ("power" | "regular" | "casual" | "one_day") | null;
4847
+ depth?: ("quick" | "conversational" | "deep") | null;
4346
4848
  };
4347
4849
  header?: never;
4348
4850
  path?: never;
@@ -4355,9 +4857,7 @@ declare interface operations {
4355
4857
  headers: {
4356
4858
  [name: string]: unknown;
4357
4859
  };
4358
- content: {
4359
- "application/json": components["schemas"]["UserOptionList"];
4360
- };
4860
+ content?: never;
4361
4861
  };
4362
4862
  /** @description Client Error */
4363
4863
  "4XX": {
@@ -4379,7 +4879,7 @@ declare interface operations {
4379
4879
  };
4380
4880
  };
4381
4881
  };
4382
- list_api_keys_api_admin_api_keys_get: {
4882
+ analytics_filter_options_api_admin_analytics_filter_options_get: {
4383
4883
  parameters: {
4384
4884
  query?: never;
4385
4885
  header?: never;
@@ -4394,7 +4894,7 @@ declare interface operations {
4394
4894
  [name: string]: unknown;
4395
4895
  };
4396
4896
  content: {
4397
- "application/json": components["schemas"]["ApiKeyList"];
4897
+ "application/json": components["schemas"]["FilterOptions"];
4398
4898
  };
4399
4899
  };
4400
4900
  /** @description Client Error */
@@ -4417,26 +4917,25 @@ declare interface operations {
4417
4917
  };
4418
4918
  };
4419
4919
  };
4420
- create_api_key_api_admin_api_keys_post: {
4920
+ search_analytics_groups_api_admin_analytics_groups_get: {
4421
4921
  parameters: {
4422
- query?: never;
4922
+ query?: {
4923
+ query?: string;
4924
+ limit?: number;
4925
+ };
4423
4926
  header?: never;
4424
4927
  path?: never;
4425
4928
  cookie?: never;
4426
4929
  };
4427
- requestBody: {
4428
- content: {
4429
- "application/json": components["schemas"]["ApiKeyCreateInput"];
4430
- };
4431
- };
4930
+ requestBody?: never;
4432
4931
  responses: {
4433
4932
  /** @description Successful Response */
4434
- 201: {
4933
+ 200: {
4435
4934
  headers: {
4436
4935
  [name: string]: unknown;
4437
4936
  };
4438
4937
  content: {
4439
- "application/json": components["schemas"]["ApiKeyCreated"];
4938
+ "application/json": components["schemas"]["GroupList"];
4440
4939
  };
4441
4940
  };
4442
4941
  /** @description Client Error */
@@ -4459,7 +4958,270 @@ declare interface operations {
4459
4958
  };
4460
4959
  };
4461
4960
  };
4462
- revoke_api_key_api_admin_api_keys__key_id__revoke_post: {
4961
+ get_analytics_trends_api_admin_analytics_trends_get: {
4962
+ parameters: {
4963
+ query?: {
4964
+ days?: number;
4965
+ source?: "human" | "service" | "all";
4966
+ user_ids?: string[] | null;
4967
+ plan_keys?: string[] | null;
4968
+ groups?: string[] | null;
4969
+ metadata?: string | null;
4970
+ external_user_id?: string | null;
4971
+ date_from?: string | null;
4972
+ date_to?: string | null;
4973
+ };
4974
+ header?: never;
4975
+ path?: never;
4976
+ cookie?: never;
4977
+ };
4978
+ requestBody?: never;
4979
+ responses: {
4980
+ /** @description Successful Response */
4981
+ 200: {
4982
+ headers: {
4983
+ [name: string]: unknown;
4984
+ };
4985
+ content: {
4986
+ "application/json": components["schemas"]["AnalyticsTrendsDetail"];
4987
+ };
4988
+ };
4989
+ /** @description Client Error */
4990
+ "4XX": {
4991
+ headers: {
4992
+ [name: string]: unknown;
4993
+ };
4994
+ content: {
4995
+ "application/json": components["schemas"]["ErrorResponse"];
4996
+ };
4997
+ };
4998
+ /** @description Server Error */
4999
+ "5XX": {
5000
+ headers: {
5001
+ [name: string]: unknown;
5002
+ };
5003
+ content: {
5004
+ "application/json": components["schemas"]["ErrorResponse"];
5005
+ };
5006
+ };
5007
+ };
5008
+ };
5009
+ export_analytics_trends_api_admin_analytics_trends_export_csv_get: {
5010
+ parameters: {
5011
+ query?: {
5012
+ days?: number;
5013
+ source?: "human" | "service" | "all";
5014
+ user_ids?: string[] | null;
5015
+ plan_keys?: string[] | null;
5016
+ groups?: string[] | null;
5017
+ metadata?: string | null;
5018
+ external_user_id?: string | null;
5019
+ date_from?: string | null;
5020
+ date_to?: string | null;
5021
+ };
5022
+ header?: never;
5023
+ path?: never;
5024
+ cookie?: never;
5025
+ };
5026
+ requestBody?: never;
5027
+ responses: {
5028
+ /** @description Successful Response */
5029
+ 200: {
5030
+ headers: {
5031
+ [name: string]: unknown;
5032
+ };
5033
+ content?: never;
5034
+ };
5035
+ /** @description Client Error */
5036
+ "4XX": {
5037
+ headers: {
5038
+ [name: string]: unknown;
5039
+ };
5040
+ content: {
5041
+ "application/json": components["schemas"]["ErrorResponse"];
5042
+ };
5043
+ };
5044
+ /** @description Server Error */
5045
+ "5XX": {
5046
+ headers: {
5047
+ [name: string]: unknown;
5048
+ };
5049
+ content: {
5050
+ "application/json": components["schemas"]["ErrorResponse"];
5051
+ };
5052
+ };
5053
+ };
5054
+ };
5055
+ get_analytics_usage_limits_api_admin_analytics_usage_get: {
5056
+ parameters: {
5057
+ query?: {
5058
+ days?: number;
5059
+ source?: "human" | "service" | "all";
5060
+ user_ids?: string[] | null;
5061
+ plan_keys?: string[] | null;
5062
+ groups?: string[] | null;
5063
+ metadata?: string | null;
5064
+ external_user_id?: string | null;
5065
+ date_from?: string | null;
5066
+ date_to?: string | null;
5067
+ };
5068
+ header?: never;
5069
+ path?: never;
5070
+ cookie?: never;
5071
+ };
5072
+ requestBody?: never;
5073
+ responses: {
5074
+ /** @description Successful Response */
5075
+ 200: {
5076
+ headers: {
5077
+ [name: string]: unknown;
5078
+ };
5079
+ content: {
5080
+ "application/json": components["schemas"]["AnalyticsUsageLimits"];
5081
+ };
5082
+ };
5083
+ /** @description Client Error */
5084
+ "4XX": {
5085
+ headers: {
5086
+ [name: string]: unknown;
5087
+ };
5088
+ content: {
5089
+ "application/json": components["schemas"]["ErrorResponse"];
5090
+ };
5091
+ };
5092
+ /** @description Server Error */
5093
+ "5XX": {
5094
+ headers: {
5095
+ [name: string]: unknown;
5096
+ };
5097
+ content: {
5098
+ "application/json": components["schemas"]["ErrorResponse"];
5099
+ };
5100
+ };
5101
+ };
5102
+ };
5103
+ search_analytics_users_api_admin_analytics_users_get: {
5104
+ parameters: {
5105
+ query?: {
5106
+ query?: string;
5107
+ limit?: number;
5108
+ };
5109
+ header?: never;
5110
+ path?: never;
5111
+ cookie?: never;
5112
+ };
5113
+ requestBody?: never;
5114
+ responses: {
5115
+ /** @description Successful Response */
5116
+ 200: {
5117
+ headers: {
5118
+ [name: string]: unknown;
5119
+ };
5120
+ content: {
5121
+ "application/json": components["schemas"]["UserOptionList"];
5122
+ };
5123
+ };
5124
+ /** @description Client Error */
5125
+ "4XX": {
5126
+ headers: {
5127
+ [name: string]: unknown;
5128
+ };
5129
+ content: {
5130
+ "application/json": components["schemas"]["ErrorResponse"];
5131
+ };
5132
+ };
5133
+ /** @description Server Error */
5134
+ "5XX": {
5135
+ headers: {
5136
+ [name: string]: unknown;
5137
+ };
5138
+ content: {
5139
+ "application/json": components["schemas"]["ErrorResponse"];
5140
+ };
5141
+ };
5142
+ };
5143
+ };
5144
+ list_api_keys_api_admin_api_keys_get: {
5145
+ parameters: {
5146
+ query?: never;
5147
+ header?: never;
5148
+ path?: never;
5149
+ cookie?: never;
5150
+ };
5151
+ requestBody?: never;
5152
+ responses: {
5153
+ /** @description Successful Response */
5154
+ 200: {
5155
+ headers: {
5156
+ [name: string]: unknown;
5157
+ };
5158
+ content: {
5159
+ "application/json": components["schemas"]["ApiKeyList"];
5160
+ };
5161
+ };
5162
+ /** @description Client Error */
5163
+ "4XX": {
5164
+ headers: {
5165
+ [name: string]: unknown;
5166
+ };
5167
+ content: {
5168
+ "application/json": components["schemas"]["ErrorResponse"];
5169
+ };
5170
+ };
5171
+ /** @description Server Error */
5172
+ "5XX": {
5173
+ headers: {
5174
+ [name: string]: unknown;
5175
+ };
5176
+ content: {
5177
+ "application/json": components["schemas"]["ErrorResponse"];
5178
+ };
5179
+ };
5180
+ };
5181
+ };
5182
+ create_api_key_api_admin_api_keys_post: {
5183
+ parameters: {
5184
+ query?: never;
5185
+ header?: never;
5186
+ path?: never;
5187
+ cookie?: never;
5188
+ };
5189
+ requestBody: {
5190
+ content: {
5191
+ "application/json": components["schemas"]["ApiKeyCreateInput"];
5192
+ };
5193
+ };
5194
+ responses: {
5195
+ /** @description Successful Response */
5196
+ 201: {
5197
+ headers: {
5198
+ [name: string]: unknown;
5199
+ };
5200
+ content: {
5201
+ "application/json": components["schemas"]["ApiKeyCreated"];
5202
+ };
5203
+ };
5204
+ /** @description Client Error */
5205
+ "4XX": {
5206
+ headers: {
5207
+ [name: string]: unknown;
5208
+ };
5209
+ content: {
5210
+ "application/json": components["schemas"]["ErrorResponse"];
5211
+ };
5212
+ };
5213
+ /** @description Server Error */
5214
+ "5XX": {
5215
+ headers: {
5216
+ [name: string]: unknown;
5217
+ };
5218
+ content: {
5219
+ "application/json": components["schemas"]["ErrorResponse"];
5220
+ };
5221
+ };
5222
+ };
5223
+ };
5224
+ revoke_api_key_api_admin_api_keys__key_id__revoke_post: {
4463
5225
  parameters: {
4464
5226
  query?: never;
4465
5227
  header?: never;
@@ -5364,7 +6126,179 @@ declare interface operations {
5364
6126
  path?: never;
5365
6127
  cookie?: never;
5366
6128
  };
5367
- requestBody?: never;
6129
+ requestBody?: never;
6130
+ responses: {
6131
+ /** @description Successful Response */
6132
+ 200: {
6133
+ headers: {
6134
+ [name: string]: unknown;
6135
+ };
6136
+ content: {
6137
+ "application/json": components["schemas"]["AdminPlanList"];
6138
+ };
6139
+ };
6140
+ /** @description Client Error */
6141
+ "4XX": {
6142
+ headers: {
6143
+ [name: string]: unknown;
6144
+ };
6145
+ content: {
6146
+ "application/json": components["schemas"]["ErrorResponse"];
6147
+ };
6148
+ };
6149
+ /** @description Server Error */
6150
+ "5XX": {
6151
+ headers: {
6152
+ [name: string]: unknown;
6153
+ };
6154
+ content: {
6155
+ "application/json": components["schemas"]["ErrorResponse"];
6156
+ };
6157
+ };
6158
+ };
6159
+ };
6160
+ create_plan_api_admin_plans_post: {
6161
+ parameters: {
6162
+ query?: never;
6163
+ header?: never;
6164
+ path?: never;
6165
+ cookie?: never;
6166
+ };
6167
+ requestBody: {
6168
+ content: {
6169
+ "application/json": components["schemas"]["PlanInput"];
6170
+ };
6171
+ };
6172
+ responses: {
6173
+ /** @description Successful Response */
6174
+ 201: {
6175
+ headers: {
6176
+ [name: string]: unknown;
6177
+ };
6178
+ content: {
6179
+ "application/json": components["schemas"]["AdminPlanView"];
6180
+ };
6181
+ };
6182
+ /** @description Client Error */
6183
+ "4XX": {
6184
+ headers: {
6185
+ [name: string]: unknown;
6186
+ };
6187
+ content: {
6188
+ "application/json": components["schemas"]["ErrorResponse"];
6189
+ };
6190
+ };
6191
+ /** @description Server Error */
6192
+ "5XX": {
6193
+ headers: {
6194
+ [name: string]: unknown;
6195
+ };
6196
+ content: {
6197
+ "application/json": components["schemas"]["ErrorResponse"];
6198
+ };
6199
+ };
6200
+ };
6201
+ };
6202
+ delete_plan_api_admin_plans__key__delete: {
6203
+ parameters: {
6204
+ query?: {
6205
+ replace_with?: string | null;
6206
+ };
6207
+ header?: never;
6208
+ path: {
6209
+ key: string;
6210
+ };
6211
+ cookie?: never;
6212
+ };
6213
+ requestBody?: never;
6214
+ responses: {
6215
+ /** @description Successful Response */
6216
+ 200: {
6217
+ headers: {
6218
+ [name: string]: unknown;
6219
+ };
6220
+ content: {
6221
+ "application/json": components["schemas"]["PlanDeleteResponse"];
6222
+ };
6223
+ };
6224
+ /** @description Client Error */
6225
+ "4XX": {
6226
+ headers: {
6227
+ [name: string]: unknown;
6228
+ };
6229
+ content: {
6230
+ "application/json": components["schemas"]["ErrorResponse"];
6231
+ };
6232
+ };
6233
+ /** @description Server Error */
6234
+ "5XX": {
6235
+ headers: {
6236
+ [name: string]: unknown;
6237
+ };
6238
+ content: {
6239
+ "application/json": components["schemas"]["ErrorResponse"];
6240
+ };
6241
+ };
6242
+ };
6243
+ };
6244
+ update_plan_api_admin_plans__key__patch: {
6245
+ parameters: {
6246
+ query?: never;
6247
+ header?: never;
6248
+ path: {
6249
+ key: string;
6250
+ };
6251
+ cookie?: never;
6252
+ };
6253
+ requestBody: {
6254
+ content: {
6255
+ "application/json": components["schemas"]["PlanUpdateInput"];
6256
+ };
6257
+ };
6258
+ responses: {
6259
+ /** @description Successful Response */
6260
+ 200: {
6261
+ headers: {
6262
+ [name: string]: unknown;
6263
+ };
6264
+ content: {
6265
+ "application/json": components["schemas"]["AdminPlanView"];
6266
+ };
6267
+ };
6268
+ /** @description Client Error */
6269
+ "4XX": {
6270
+ headers: {
6271
+ [name: string]: unknown;
6272
+ };
6273
+ content: {
6274
+ "application/json": components["schemas"]["ErrorResponse"];
6275
+ };
6276
+ };
6277
+ /** @description Server Error */
6278
+ "5XX": {
6279
+ headers: {
6280
+ [name: string]: unknown;
6281
+ };
6282
+ content: {
6283
+ "application/json": components["schemas"]["ErrorResponse"];
6284
+ };
6285
+ };
6286
+ };
6287
+ };
6288
+ set_plan_features_api_admin_plans__key__features_put: {
6289
+ parameters: {
6290
+ query?: never;
6291
+ header?: never;
6292
+ path: {
6293
+ key: string;
6294
+ };
6295
+ cookie?: never;
6296
+ };
6297
+ requestBody: {
6298
+ content: {
6299
+ "application/json": components["schemas"]["PlanFeaturesInput"];
6300
+ };
6301
+ };
5368
6302
  responses: {
5369
6303
  /** @description Successful Response */
5370
6304
  200: {
@@ -5372,7 +6306,7 @@ declare interface operations {
5372
6306
  [name: string]: unknown;
5373
6307
  };
5374
6308
  content: {
5375
- "application/json": components["schemas"]["AdminPlanList"];
6309
+ "application/json": components["schemas"]["AdminPlanView"];
5376
6310
  };
5377
6311
  };
5378
6312
  /** @description Client Error */
@@ -5395,26 +6329,29 @@ declare interface operations {
5395
6329
  };
5396
6330
  };
5397
6331
  };
5398
- create_plan_api_admin_plans_post: {
6332
+ list_reports_api_admin_reports_get: {
5399
6333
  parameters: {
5400
- query?: never;
6334
+ query?: {
6335
+ skip?: number;
6336
+ limit?: number;
6337
+ category?: ("bug" | "feature" | "other") | null;
6338
+ status?: ("open" | "resolved") | null;
6339
+ user_id?: string | null;
6340
+ query?: string | null;
6341
+ };
5401
6342
  header?: never;
5402
6343
  path?: never;
5403
6344
  cookie?: never;
5404
6345
  };
5405
- requestBody: {
5406
- content: {
5407
- "application/json": components["schemas"]["PlanInput"];
5408
- };
5409
- };
6346
+ requestBody?: never;
5410
6347
  responses: {
5411
6348
  /** @description Successful Response */
5412
- 201: {
6349
+ 200: {
5413
6350
  headers: {
5414
6351
  [name: string]: unknown;
5415
6352
  };
5416
6353
  content: {
5417
- "application/json": components["schemas"]["AdminPlanView"];
6354
+ "application/json": components["schemas"]["AdminReportList"];
5418
6355
  };
5419
6356
  };
5420
6357
  /** @description Client Error */
@@ -5437,14 +6374,12 @@ declare interface operations {
5437
6374
  };
5438
6375
  };
5439
6376
  };
5440
- delete_plan_api_admin_plans__key__delete: {
6377
+ delete_report_api_admin_reports__report_id__delete: {
5441
6378
  parameters: {
5442
- query?: {
5443
- replace_with?: string | null;
5444
- };
6379
+ query?: never;
5445
6380
  header?: never;
5446
6381
  path: {
5447
- key: string;
6382
+ report_id: string;
5448
6383
  };
5449
6384
  cookie?: never;
5450
6385
  };
@@ -5456,7 +6391,7 @@ declare interface operations {
5456
6391
  [name: string]: unknown;
5457
6392
  };
5458
6393
  content: {
5459
- "application/json": components["schemas"]["PlanDeleteResponse"];
6394
+ "application/json": components["schemas"]["StatusMessageResponse"];
5460
6395
  };
5461
6396
  };
5462
6397
  /** @description Client Error */
@@ -5479,18 +6414,18 @@ declare interface operations {
5479
6414
  };
5480
6415
  };
5481
6416
  };
5482
- update_plan_api_admin_plans__key__patch: {
6417
+ update_report_status_api_admin_reports__report_id__patch: {
5483
6418
  parameters: {
5484
6419
  query?: never;
5485
6420
  header?: never;
5486
6421
  path: {
5487
- key: string;
6422
+ report_id: string;
5488
6423
  };
5489
6424
  cookie?: never;
5490
6425
  };
5491
6426
  requestBody: {
5492
6427
  content: {
5493
- "application/json": components["schemas"]["PlanUpdateInput"];
6428
+ "application/json": components["schemas"]["AdminReportUpdateInput"];
5494
6429
  };
5495
6430
  };
5496
6431
  responses: {
@@ -5500,7 +6435,7 @@ declare interface operations {
5500
6435
  [name: string]: unknown;
5501
6436
  };
5502
6437
  content: {
5503
- "application/json": components["schemas"]["AdminPlanView"];
6438
+ "application/json": components["schemas"]["AdminReportRow"];
5504
6439
  };
5505
6440
  };
5506
6441
  /** @description Client Error */
@@ -5523,28 +6458,24 @@ declare interface operations {
5523
6458
  };
5524
6459
  };
5525
6460
  };
5526
- set_plan_features_api_admin_plans__key__features_put: {
6461
+ get_report_attachment_api_admin_reports__report_id__attachment_get: {
5527
6462
  parameters: {
5528
6463
  query?: never;
5529
6464
  header?: never;
5530
6465
  path: {
5531
- key: string;
6466
+ report_id: string;
5532
6467
  };
5533
6468
  cookie?: never;
5534
6469
  };
5535
- requestBody: {
5536
- content: {
5537
- "application/json": components["schemas"]["PlanFeaturesInput"];
5538
- };
5539
- };
6470
+ requestBody?: never;
5540
6471
  responses: {
5541
- /** @description Successful Response */
6472
+ /** @description The file, with the media type it was stored with */
5542
6473
  200: {
5543
6474
  headers: {
5544
6475
  [name: string]: unknown;
5545
6476
  };
5546
6477
  content: {
5547
- "application/json": components["schemas"]["AdminPlanView"];
6478
+ "application/octet-stream": unknown;
5548
6479
  };
5549
6480
  };
5550
6481
  /** @description Client Error */
@@ -7907,6 +8838,48 @@ declare interface operations {
7907
8838
  };
7908
8839
  };
7909
8840
  };
8841
+ submit_user_report_api_users_me_reports_post: {
8842
+ parameters: {
8843
+ query?: never;
8844
+ header?: never;
8845
+ path?: never;
8846
+ cookie?: never;
8847
+ };
8848
+ requestBody: {
8849
+ content: {
8850
+ "application/json": components["schemas"]["UserReportCreateInput"];
8851
+ };
8852
+ };
8853
+ responses: {
8854
+ /** @description Successful Response */
8855
+ 201: {
8856
+ headers: {
8857
+ [name: string]: unknown;
8858
+ };
8859
+ content: {
8860
+ "application/json": components["schemas"]["UserReportResponse"];
8861
+ };
8862
+ };
8863
+ /** @description Client Error */
8864
+ "4XX": {
8865
+ headers: {
8866
+ [name: string]: unknown;
8867
+ };
8868
+ content: {
8869
+ "application/json": components["schemas"]["ErrorResponse"];
8870
+ };
8871
+ };
8872
+ /** @description Server Error */
8873
+ "5XX": {
8874
+ headers: {
8875
+ [name: string]: unknown;
8876
+ };
8877
+ content: {
8878
+ "application/json": components["schemas"]["ErrorResponse"];
8879
+ };
8880
+ };
8881
+ };
8882
+ };
7910
8883
  health_check_health_get: {
7911
8884
  parameters: {
7912
8885
  query?: never;
@@ -8073,6 +9046,66 @@ declare interface paths {
8073
9046
  patch?: never;
8074
9047
  trace?: never;
8075
9048
  };
9049
+ "/api/admin/analytics/engagement": {
9050
+ parameters: {
9051
+ query?: never;
9052
+ header?: never;
9053
+ path?: never;
9054
+ cookie?: never;
9055
+ };
9056
+ /**
9057
+ * Get Analytics Engagement
9058
+ * @description User-level engagement metrics, lifecycle stages, reach, growth accounting, and activity heatmap.
9059
+ */
9060
+ get: operations["get_analytics_engagement_api_admin_analytics_engagement_get"];
9061
+ put?: never;
9062
+ post?: never;
9063
+ delete?: never;
9064
+ options?: never;
9065
+ head?: never;
9066
+ patch?: never;
9067
+ trace?: never;
9068
+ };
9069
+ "/api/admin/analytics/engagement/users": {
9070
+ parameters: {
9071
+ query?: never;
9072
+ header?: never;
9073
+ path?: never;
9074
+ cookie?: never;
9075
+ };
9076
+ /**
9077
+ * Get Analytics Engagement Users
9078
+ * @description Paginated users matching an engagement stage, frequency level, and/or session depth.
9079
+ */
9080
+ get: operations["get_analytics_engagement_users_api_admin_analytics_engagement_users_get"];
9081
+ put?: never;
9082
+ post?: never;
9083
+ delete?: never;
9084
+ options?: never;
9085
+ head?: never;
9086
+ patch?: never;
9087
+ trace?: never;
9088
+ };
9089
+ "/api/admin/analytics/engagement/users/export.csv": {
9090
+ parameters: {
9091
+ query?: never;
9092
+ header?: never;
9093
+ path?: never;
9094
+ cookie?: never;
9095
+ };
9096
+ /**
9097
+ * Export Analytics Engagement Users
9098
+ * @description Export matching engagement users as CSV.
9099
+ */
9100
+ get: operations["export_analytics_engagement_users_api_admin_analytics_engagement_users_export_csv_get"];
9101
+ put?: never;
9102
+ post?: never;
9103
+ delete?: never;
9104
+ options?: never;
9105
+ head?: never;
9106
+ patch?: never;
9107
+ trace?: never;
9108
+ };
8076
9109
  "/api/admin/analytics/filter-options": {
8077
9110
  parameters: {
8078
9111
  query?: never;
@@ -8113,6 +9146,66 @@ declare interface paths {
8113
9146
  patch?: never;
8114
9147
  trace?: never;
8115
9148
  };
9149
+ "/api/admin/analytics/trends": {
9150
+ parameters: {
9151
+ query?: never;
9152
+ header?: never;
9153
+ path?: never;
9154
+ cookie?: never;
9155
+ };
9156
+ /**
9157
+ * Get Analytics Trends
9158
+ * @description Detailed daily operational & product trends, with per-plan tier breakdown when Billing is active.
9159
+ */
9160
+ get: operations["get_analytics_trends_api_admin_analytics_trends_get"];
9161
+ put?: never;
9162
+ post?: never;
9163
+ delete?: never;
9164
+ options?: never;
9165
+ head?: never;
9166
+ patch?: never;
9167
+ trace?: never;
9168
+ };
9169
+ "/api/admin/analytics/trends/export.csv": {
9170
+ parameters: {
9171
+ query?: never;
9172
+ header?: never;
9173
+ path?: never;
9174
+ cookie?: never;
9175
+ };
9176
+ /**
9177
+ * Export Analytics Trends
9178
+ * @description Export daily operational trends as CSV.
9179
+ */
9180
+ get: operations["export_analytics_trends_api_admin_analytics_trends_export_csv_get"];
9181
+ put?: never;
9182
+ post?: never;
9183
+ delete?: never;
9184
+ options?: never;
9185
+ head?: never;
9186
+ patch?: never;
9187
+ trace?: never;
9188
+ };
9189
+ "/api/admin/analytics/usage": {
9190
+ parameters: {
9191
+ query?: never;
9192
+ header?: never;
9193
+ path?: never;
9194
+ cookie?: never;
9195
+ };
9196
+ /**
9197
+ * Get Analytics Usage Limits
9198
+ * @description Per-plan peak window utilization histograms and daily percentiles against configured limits.
9199
+ */
9200
+ get: operations["get_analytics_usage_limits_api_admin_analytics_usage_get"];
9201
+ put?: never;
9202
+ post?: never;
9203
+ delete?: never;
9204
+ options?: never;
9205
+ head?: never;
9206
+ patch?: never;
9207
+ trace?: never;
9208
+ };
8116
9209
  "/api/admin/analytics/users": {
8117
9210
  parameters: {
8118
9211
  query?: never;
@@ -8685,6 +9778,70 @@ declare interface paths {
8685
9778
  patch?: never;
8686
9779
  trace?: never;
8687
9780
  };
9781
+ "/api/admin/reports": {
9782
+ parameters: {
9783
+ query?: never;
9784
+ header?: never;
9785
+ path?: never;
9786
+ cookie?: never;
9787
+ };
9788
+ /**
9789
+ * List Reports
9790
+ * @description List user-submitted feedback reports, newest first.
9791
+ */
9792
+ get: operations["list_reports_api_admin_reports_get"];
9793
+ put?: never;
9794
+ post?: never;
9795
+ delete?: never;
9796
+ options?: never;
9797
+ head?: never;
9798
+ patch?: never;
9799
+ trace?: never;
9800
+ };
9801
+ "/api/admin/reports/{report_id}": {
9802
+ parameters: {
9803
+ query?: never;
9804
+ header?: never;
9805
+ path?: never;
9806
+ cookie?: never;
9807
+ };
9808
+ get?: never;
9809
+ put?: never;
9810
+ post?: never;
9811
+ /**
9812
+ * Delete Report
9813
+ * @description Delete a user report and any attachment it claimed.
9814
+ */
9815
+ delete: operations["delete_report_api_admin_reports__report_id__delete"];
9816
+ options?: never;
9817
+ head?: never;
9818
+ /**
9819
+ * Update Report Status
9820
+ * @description Mark a report open or resolved.
9821
+ */
9822
+ patch: operations["update_report_status_api_admin_reports__report_id__patch"];
9823
+ trace?: never;
9824
+ };
9825
+ "/api/admin/reports/{report_id}/attachment": {
9826
+ parameters: {
9827
+ query?: never;
9828
+ header?: never;
9829
+ path?: never;
9830
+ cookie?: never;
9831
+ };
9832
+ /**
9833
+ * Get Report Attachment
9834
+ * @description Serve the file attached to a user report.
9835
+ */
9836
+ get: operations["get_report_attachment_api_admin_reports__report_id__attachment_get"];
9837
+ put?: never;
9838
+ post?: never;
9839
+ delete?: never;
9840
+ options?: never;
9841
+ head?: never;
9842
+ patch?: never;
9843
+ trace?: never;
9844
+ };
8688
9845
  "/api/admin/settings": {
8689
9846
  parameters: {
8690
9847
  query?: never;
@@ -9722,6 +10879,26 @@ declare interface paths {
9722
10879
  patch?: never;
9723
10880
  trace?: never;
9724
10881
  };
10882
+ "/api/users/me/reports": {
10883
+ parameters: {
10884
+ query?: never;
10885
+ header?: never;
10886
+ path?: never;
10887
+ cookie?: never;
10888
+ };
10889
+ get?: never;
10890
+ put?: never;
10891
+ /**
10892
+ * Submit User Report
10893
+ * @description Submit a bug report, feature request or general feedback from the signed-in user.
10894
+ */
10895
+ post: operations["submit_user_report_api_users_me_reports_post"];
10896
+ delete?: never;
10897
+ options?: never;
10898
+ head?: never;
10899
+ patch?: never;
10900
+ trace?: never;
10901
+ };
9725
10902
  "/health": {
9726
10903
  parameters: {
9727
10904
  query?: never;
@@ -9811,6 +10988,9 @@ declare type ReferenceData = Schemas['ReferenceData'];
9811
10988
  /** Response from registering. */
9812
10989
  export declare type RegisterResponse = Schemas['AuthTokenResponse'];
9813
10990
 
10991
+ /** Why the backend would refuse `file`, or `null` if it would take it. */
10992
+ export declare function rejectAttachment(file: Pick<File, 'type' | 'size'>, limits: AttachmentLimits): AttachmentRejection | null;
10993
+
9814
10994
  export declare function removeStored(namespace: string, key: string): void;
9815
10995
 
9816
10996
  declare type RequestBody<O> = O extends {
@@ -10014,6 +11194,18 @@ declare interface UploadInit {
10014
11194
  onProgress?: (fraction: number) => void;
10015
11195
  }
10016
11196
 
11197
+ /** A user-submitted bug report, feature request or general feedback. */
11198
+ export declare type UserReport = Schemas['UserReportResponse'];
11199
+
11200
+ /** What kind of report the user sent. */
11201
+ export declare type UserReportCategory = UserReport['category'];
11202
+
11203
+ /** Request body for `POST /users/me/reports`. */
11204
+ export declare type UserReportInput = Schemas['UserReportCreateInput'];
11205
+
11206
+ /** Whether a user report is open or resolved. */
11207
+ export declare type UserReportStatus = UserReport['status'];
11208
+
10017
11209
  /**
10018
11210
  * Something about a dictation the user should hear of:
10019
11211
  * - `mic_denied`, `mic_missing`, `mic_error`: the microphone couldn't be opened.