@firela/api-types 0.0.0-canary.13e64482 → 0.0.0-canary.188a8787

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.
@@ -73,6 +73,43 @@ export type AccountResponseDto = {
73
73
  * Account type (root segment)
74
74
  */
75
75
  type: 'Assets' | 'Liabilities' | 'Income' | 'Expenses' | 'Equity';
76
+ /**
77
+ * Account-level asset sub-class (product type, e.g. STOCK/DEPOSIT/CREDIT_CARD/PERSONAL_LOAN). Computed from the account path via the asset-classifier (ADR-0077). Null for non-asset accounts (Income/Expenses/Equity) or unmatched paths.
78
+ */
79
+ assetSubClass?:
80
+ | 'DEPOSIT'
81
+ | 'CASH'
82
+ | 'MONEY_MARKET_FUND'
83
+ | 'STOCK'
84
+ | 'ETF'
85
+ | 'MUTUAL_FUND'
86
+ | 'EQUITY_COMPENSATION'
87
+ | 'GOVERNMENT_BOND'
88
+ | 'CORPORATE_BOND'
89
+ | 'BOND_FUND'
90
+ | 'PRIMARY_RESIDENCE'
91
+ | 'INVESTMENT_PROPERTY'
92
+ | 'REIT'
93
+ | 'GOLD'
94
+ | 'SILVER'
95
+ | 'PRECIOUS_METAL'
96
+ | 'PRECIOUS_METAL_FUND'
97
+ | 'COMMODITY'
98
+ | 'COMMODITY_FUND'
99
+ | 'CRYPTOCURRENCY'
100
+ | 'RETIREMENT_ACCOUNT'
101
+ | 'HEALTH_ACCOUNT'
102
+ | 'EDUCATION_ACCOUNT'
103
+ | 'INSURANCE'
104
+ | 'PRIVATE_EQUITY'
105
+ | 'HEDGE_FUND'
106
+ | 'COLLECTIBLES'
107
+ | 'MORTGAGE'
108
+ | 'STUDENT_LOAN'
109
+ | 'CREDIT_CARD'
110
+ | 'PERSONAL_LOAN'
111
+ | 'OTHER'
112
+ | null;
76
113
  /**
77
114
  * Account status
78
115
  */
@@ -149,6 +186,43 @@ export type AccountResponseDto = {
149
186
  */
150
187
  export type type = 'Assets' | 'Liabilities' | 'Income' | 'Expenses' | 'Equity';
151
188
 
189
+ /**
190
+ * Account-level asset sub-class (product type, e.g. STOCK/DEPOSIT/CREDIT_CARD/PERSONAL_LOAN). Computed from the account path via the asset-classifier (ADR-0077). Null for non-asset accounts (Income/Expenses/Equity) or unmatched paths.
191
+ */
192
+ export type assetSubClass =
193
+ | 'DEPOSIT'
194
+ | 'CASH'
195
+ | 'MONEY_MARKET_FUND'
196
+ | 'STOCK'
197
+ | 'ETF'
198
+ | 'MUTUAL_FUND'
199
+ | 'EQUITY_COMPENSATION'
200
+ | 'GOVERNMENT_BOND'
201
+ | 'CORPORATE_BOND'
202
+ | 'BOND_FUND'
203
+ | 'PRIMARY_RESIDENCE'
204
+ | 'INVESTMENT_PROPERTY'
205
+ | 'REIT'
206
+ | 'GOLD'
207
+ | 'SILVER'
208
+ | 'PRECIOUS_METAL'
209
+ | 'PRECIOUS_METAL_FUND'
210
+ | 'COMMODITY'
211
+ | 'COMMODITY_FUND'
212
+ | 'CRYPTOCURRENCY'
213
+ | 'RETIREMENT_ACCOUNT'
214
+ | 'HEALTH_ACCOUNT'
215
+ | 'EDUCATION_ACCOUNT'
216
+ | 'INSURANCE'
217
+ | 'PRIVATE_EQUITY'
218
+ | 'HEDGE_FUND'
219
+ | 'COLLECTIBLES'
220
+ | 'MORTGAGE'
221
+ | 'STUDENT_LOAN'
222
+ | 'CREDIT_CARD'
223
+ | 'PERSONAL_LOAN'
224
+ | 'OTHER';
225
+
152
226
  /**
153
227
  * Account status
154
228
  */
@@ -2701,384 +2775,223 @@ export type ForecastResponseDto = {
2701
2775
  periodEnd: string;
2702
2776
  };
2703
2777
 
2704
- export type CreateTransactionRuleDto = {
2705
- name: string;
2706
- description?: string;
2707
- narrationKeywords?: Array<unknown[]>;
2708
- payeeKeywords?: Array<unknown[]>;
2709
- categoryKeywords?: Array<unknown[]>;
2778
+ export type CurrencyBalanceDto = {
2710
2779
  /**
2711
- * Payment method keywords (e.g., HuaBei, YuEBao)
2780
+ * ISO 4217 currency code
2712
2781
  */
2713
- methodKeywords?: Array<unknown[]>;
2782
+ currency: string;
2714
2783
  /**
2715
- * Destination account for expenses/income (e.g., Expenses:Food:Coffee)
2784
+ * Balance amount
2716
2785
  */
2717
- categoryAccount?: string;
2718
- matchLogic: 'OR' | 'AND';
2786
+ balance: string;
2787
+ };
2788
+
2789
+ export type TimeSeriesPointDto = {
2719
2790
  /**
2720
- * Minimum transaction amount (inclusive)
2791
+ * Date in YYYY-MM-DD format
2721
2792
  */
2722
- amountMin?: number;
2793
+ date: string;
2723
2794
  /**
2724
- * Maximum transaction amount (inclusive)
2795
+ * Value at this date (in base currency)
2725
2796
  */
2726
- amountMax?: number;
2727
- priority: number;
2728
- additionalTags?: Array<unknown[]>;
2729
- additionalMetadata?: {
2797
+ value: string;
2798
+ /**
2799
+ * Change from previous point
2800
+ */
2801
+ change?: {
2730
2802
  [key: string]: unknown;
2731
2803
  };
2732
2804
  /**
2733
- * If true, update existing rule with matching payeeKeywords[0] instead of creating new rule
2805
+ * Total assets at this date (in base currency)
2734
2806
  */
2735
- upsertByPayee?: boolean;
2736
- };
2737
-
2738
- export type matchLogic = 'OR' | 'AND';
2739
-
2740
- export type AmountRangeDto = {
2807
+ assets?: string;
2741
2808
  /**
2742
- * Minimum amount
2809
+ * Total liabilities at this date (in base currency)
2743
2810
  */
2744
- min?: number;
2811
+ liabilities?: string;
2745
2812
  /**
2746
- * Maximum amount
2813
+ * Multi-currency breakdown for this point
2747
2814
  */
2748
- max?: number;
2815
+ byCurrency?: Array<CurrencyBalanceDto>;
2749
2816
  };
2750
2817
 
2751
- export type TransactionRuleResponseDto = {
2752
- /**
2753
- * Rule ID
2754
- */
2755
- id: string;
2756
- /**
2757
- * Rule name
2758
- */
2759
- name: string;
2818
+ export type TrendSummaryDto = {
2760
2819
  /**
2761
- * Rule description
2820
+ * Value at start of period
2762
2821
  */
2763
- description?: string;
2822
+ startValue: string;
2764
2823
  /**
2765
- * Keywords to match in transaction narration
2824
+ * Value at end of period
2766
2825
  */
2767
- narrationKeywords: Array<string>;
2826
+ endValue: string;
2768
2827
  /**
2769
- * Keywords to match in payee name
2828
+ * Total change over period
2770
2829
  */
2771
- payeeKeywords: Array<string>;
2830
+ totalChange: string;
2772
2831
  /**
2773
- * Keywords to match in category
2832
+ * Total change percentage
2774
2833
  */
2775
- categoryKeywords: Array<string>;
2834
+ totalChangePercentage: string;
2835
+ };
2836
+
2837
+ export type MultiCurrencyPointDto = {
2776
2838
  /**
2777
- * Keywords to match in payment method
2839
+ * Date in YYYY-MM-DD format
2778
2840
  */
2779
- methodKeywords: Array<string>;
2841
+ date: string;
2780
2842
  /**
2781
- * Destination account for categorization
2843
+ * Balances by currency
2782
2844
  */
2783
- categoryAccount?: string;
2845
+ byCurrency: Array<CurrencyBalanceDto>;
2846
+ };
2847
+
2848
+ export type PortfolioTrendsResponseDto = {
2784
2849
  /**
2785
- * Keyword matching logic
2850
+ * Time series data points
2786
2851
  */
2787
- matchLogic: 'OR' | 'AND';
2852
+ series: Array<TimeSeriesPointDto>;
2788
2853
  /**
2789
- * Amount range for matching
2854
+ * Period summary
2790
2855
  */
2791
- amountRange?: AmountRangeDto;
2856
+ summary: TrendSummaryDto;
2792
2857
  /**
2793
- * Rule priority (0-1000, higher = first match)
2858
+ * Period requested
2794
2859
  */
2795
- priority: number;
2860
+ period: string;
2796
2861
  /**
2797
- * Whether the rule is enabled
2862
+ * Data granularity
2798
2863
  */
2799
- enabled: boolean;
2864
+ granularity: string;
2800
2865
  /**
2801
- * Learning source: NLP, REVIEW_CENTER, or null for manual
2866
+ * Base currency for converted values
2802
2867
  */
2803
- learningSource?: 'NLP' | 'REVIEW_CENTER' | null;
2868
+ currency: string;
2804
2869
  /**
2805
- * Whether auto-apply is enabled for this rule
2870
+ * Multi-currency time series (each point has currency breakdown)
2806
2871
  */
2807
- autoApplyEnabled: boolean;
2872
+ byCurrency?: Array<MultiCurrencyPointDto>;
2808
2873
  /**
2809
- * Number of confirmations for NLP-learned rules
2874
+ * Exchange rate warnings
2810
2875
  */
2811
- confirmationCount: number;
2876
+ warnings?: Array<ExchangeRateWarningDto>;
2877
+ };
2878
+
2879
+ export type CashFlowPointDto = {
2812
2880
  /**
2813
- * Additional tags
2881
+ * Month key (YYYY-MM)
2814
2882
  */
2815
- additionalTags: Array<string>;
2883
+ month: string;
2816
2884
  /**
2817
- * Additional metadata
2885
+ * Income in base currency (absolute, converted)
2818
2886
  */
2819
- additionalMetadata?: {
2820
- [key: string]: string;
2821
- };
2887
+ income: string;
2822
2888
  /**
2823
- * Created timestamp
2889
+ * Expense in base currency (absolute, converted)
2824
2890
  */
2825
- createdAt: string;
2891
+ expense: string;
2826
2892
  /**
2827
- * Updated timestamp
2893
+ * netSavings = income − expense (savings positive)
2828
2894
  */
2829
- updatedAt: string;
2895
+ netSavings: string;
2830
2896
  };
2831
2897
 
2832
- /**
2833
- * Learning source: NLP, REVIEW_CENTER, or null for manual
2834
- */
2835
- export type learningSource = 'NLP' | 'REVIEW_CENTER';
2836
-
2837
- export type TransactionRuleListResponseDto = {
2838
- data: Array<TransactionRuleResponseDto>;
2898
+ export type CashFlowTrendSummaryDto = {
2839
2899
  /**
2840
- * Total count of rules
2900
+ * Total income across the period
2841
2901
  */
2842
- total: number;
2902
+ totalIncome: string;
2843
2903
  /**
2844
- * Results per page
2904
+ * Total expense across the period
2845
2905
  */
2846
- limit: number;
2906
+ totalExpense: string;
2847
2907
  /**
2848
- * Pagination offset
2908
+ * income − expense across the period
2849
2909
  */
2850
- offset: number;
2910
+ totalNetSavings: string;
2911
+ /**
2912
+ * totalNetSavings divided by the window length (N months, incl. zero-filled)
2913
+ */
2914
+ averageMonthlyNetSavings: string;
2851
2915
  };
2852
2916
 
2853
- export type ValidateRuleDto = {
2854
- name: string;
2855
- description?: string;
2856
- narrationKeywords?: Array<unknown[]>;
2857
- payeeKeywords?: Array<unknown[]>;
2858
- categoryKeywords?: Array<unknown[]>;
2917
+ export type CashFlowTrendsResponseDto = {
2859
2918
  /**
2860
- * Payment method keywords (e.g., HuaBei, YuEBao)
2919
+ * Monthly cash-flow series (fixed N-month window, zero-filled)
2861
2920
  */
2862
- methodKeywords?: Array<unknown[]>;
2921
+ series: Array<CashFlowPointDto>;
2863
2922
  /**
2864
- * Destination account for expenses/income (e.g., Expenses:Food:Coffee)
2923
+ * Period totals
2865
2924
  */
2866
- categoryAccount?: string;
2867
- matchLogic: 'OR' | 'AND';
2925
+ summary: CashFlowTrendSummaryDto;
2868
2926
  /**
2869
- * Minimum transaction amount (inclusive)
2927
+ * Period requested
2870
2928
  */
2871
- amountMin?: number;
2929
+ period: string;
2872
2930
  /**
2873
- * Maximum transaction amount (inclusive)
2931
+ * Data granularity (v1 returns month buckets)
2874
2932
  */
2875
- amountMax?: number;
2876
- priority: number;
2877
- additionalTags?: Array<unknown[]>;
2878
- additionalMetadata?: {
2879
- [key: string]: unknown;
2880
- };
2933
+ granularity: string;
2881
2934
  /**
2882
- * If true, update existing rule with matching payeeKeywords[0] instead of creating new rule
2935
+ * Base currency for converted values
2883
2936
  */
2884
- upsertByPayee?: boolean;
2885
- };
2886
-
2887
- export type ValidateRuleResponseDto = {
2937
+ currency: string;
2888
2938
  /**
2889
- * Whether the rule configuration is valid
2939
+ * Exchange rate warnings (e.g. missing rate for a currency)
2890
2940
  */
2891
- valid: boolean;
2941
+ warnings?: Array<ExchangeRateWarningDto>;
2942
+ };
2943
+
2944
+ export type GenerateSnapshotBody = unknown;
2945
+
2946
+ export type GenerateSnapshotResponse = unknown;
2947
+
2948
+ export type BackfillSnapshotsBody = unknown;
2949
+
2950
+ export type BackfillSnapshotsResponse = unknown;
2951
+
2952
+ export type DeleteOwnUserDto = {
2892
2953
  /**
2893
- * List of validation errors (empty if valid)
2954
+ * Access token for user verification
2894
2955
  */
2895
- errors: Array<unknown[]>;
2956
+ accessToken: string;
2957
+ };
2958
+
2959
+ export type SignupDto = {
2896
2960
  /**
2897
- * List of validation warnings (non-blocking issues)
2961
+ * Cloudflare Turnstile verification token (optional when Turnstile disabled)
2898
2962
  */
2899
- warnings: Array<unknown[]>;
2963
+ turnstileToken?: string;
2900
2964
  };
2901
2965
 
2902
- export type BulkCreateRulesDto = {
2966
+ export type SignupResponseDto = {
2903
2967
  /**
2904
- * Array of rules to import
2968
+ * JWT auth token
2905
2969
  */
2906
- rules: Array<unknown[]>;
2970
+ authToken: string;
2907
2971
  /**
2908
- * Conflict handling strategy: skip (default) ignores duplicates, replace soft-deletes existing rule
2972
+ * Auto-generated access token
2909
2973
  */
2910
- conflictStrategy: 'replace' | 'skip';
2974
+ accessToken: string;
2975
+ /**
2976
+ * Assigned user role
2977
+ */
2978
+ role: 'USER' | 'ADMIN' | 'DEMO' | 'INACTIVE' | 'PAID' | 'OPS';
2911
2979
  };
2912
2980
 
2913
2981
  /**
2914
- * Conflict handling strategy: skip (default) ignores duplicates, replace soft-deletes existing rule
2982
+ * Assigned user role
2915
2983
  */
2916
- export type conflictStrategy = 'replace' | 'skip';
2984
+ export type role = 'USER' | 'ADMIN' | 'DEMO' | 'INACTIVE' | 'PAID' | 'OPS';
2917
2985
 
2918
- export type BulkCreateRulesResponseDto = {
2986
+ export type UpdateUserSettingDto = {
2919
2987
  /**
2920
- * Number of successfully created rules
2988
+ * Security ID
2921
2989
  */
2922
- successCount: number;
2990
+ secId?: number;
2923
2991
  /**
2924
- * Number of failed rules
2992
+ * Annual interest rate
2925
2993
  */
2926
- failureCount: number;
2927
- /**
2928
- * Error details for failed rules
2929
- */
2930
- errors: Array<{
2931
- index?: number;
2932
- message?: string;
2933
- }>;
2934
- /**
2935
- * IDs of successfully created rules
2936
- */
2937
- createdRuleIds: Array<string>;
2938
- };
2939
-
2940
- export type ExportRulesResponseDto = {
2941
- /**
2942
- * Export timestamp
2943
- */
2944
- exportedAt: string;
2945
- /**
2946
- * User ID
2947
- */
2948
- userId: string;
2949
- /**
2950
- * Number of exported rules
2951
- */
2952
- ruleCount: number;
2953
- /**
2954
- * Exported rules
2955
- */
2956
- rules: unknown[];
2957
- };
2958
-
2959
- export type RuleStatisticsResponseDto = {
2960
- /**
2961
- * Statistics time period
2962
- */
2963
- period: '7d' | '30d' | '90d';
2964
- /**
2965
- * Total number of rules
2966
- */
2967
- totalRules: number;
2968
- /**
2969
- * Number of rules with at least one match
2970
- */
2971
- rulesWithMatches: number;
2972
- /**
2973
- * Total number of matches across all rules
2974
- */
2975
- totalMatches: number;
2976
- /**
2977
- * Average confidence score across all matches
2978
- */
2979
- averageConfidence: number;
2980
- /**
2981
- * Per-rule statistics
2982
- */
2983
- ruleStats: Array<{
2984
- ruleId?: string;
2985
- ruleName?: string;
2986
- matchCount?: number;
2987
- averageConfidence?: number;
2988
- }>;
2989
- };
2990
-
2991
- /**
2992
- * Statistics time period
2993
- */
2994
- export type period = '7d' | '30d' | '90d';
2995
-
2996
- export type UpdateTransactionRuleDto = {
2997
- name?: string;
2998
- description?: string;
2999
- narrationKeywords?: Array<unknown[]>;
3000
- payeeKeywords?: Array<unknown[]>;
3001
- categoryKeywords?: Array<unknown[]>;
3002
- /**
3003
- * Payment method keywords (e.g., HuaBei, YuEBao)
3004
- */
3005
- methodKeywords?: Array<unknown[]>;
3006
- /**
3007
- * Destination account for expenses/income (e.g., Expenses:Food:Coffee)
3008
- */
3009
- categoryAccount?: string;
3010
- matchLogic?: 'OR' | 'AND';
3011
- /**
3012
- * Minimum transaction amount (inclusive)
3013
- */
3014
- amountMin?: number;
3015
- /**
3016
- * Maximum transaction amount (inclusive)
3017
- */
3018
- amountMax?: number;
3019
- priority?: number;
3020
- /**
3021
- * Enable or disable the rule
3022
- */
3023
- enabled?: boolean;
3024
- additionalTags?: Array<unknown[]>;
3025
- additionalMetadata?: {
3026
- [key: string]: unknown;
3027
- };
3028
- };
3029
-
3030
- export type TestRuleDto = {
3031
- narration: string;
3032
- payee?: string;
3033
- categoryAccount?: string;
3034
- amount?: number;
3035
- currency?: string;
3036
- };
3037
-
3038
- export type TestRuleResponseDto = {
3039
- /**
3040
- * Rule ID that was tested
3041
- */
3042
- ruleId: string;
3043
- /**
3044
- * Whether the rule matched the test data
3045
- */
3046
- matches: boolean;
3047
- /**
3048
- * Match confidence score (0-1)
3049
- */
3050
- confidence: number;
3051
- /**
3052
- * Details of which fields matched
3053
- */
3054
- matchDetails: {
3055
- [key: string]: unknown;
3056
- };
3057
- };
3058
-
3059
- export type DeleteOwnUserDto = {
3060
- /**
3061
- * Access token for user verification
3062
- */
3063
- accessToken: string;
3064
- };
3065
-
3066
- export type SignupDto = {
3067
- /**
3068
- * Cloudflare Turnstile verification token (optional when Turnstile disabled)
3069
- */
3070
- turnstileToken?: string;
3071
- };
3072
-
3073
- export type UpdateUserSettingDto = {
3074
- /**
3075
- * Security ID
3076
- */
3077
- secId?: number;
3078
- /**
3079
- * Annual interest rate
3080
- */
3081
- annualInterestRate?: number;
2994
+ annualInterestRate?: number;
3082
2995
  /**
3083
2996
  * Currency code
3084
2997
  */
@@ -3174,93 +3087,448 @@ export type UpdatePropertyDto = {
3174
3087
  value: string;
3175
3088
  };
3176
3089
 
3177
- export type CreateBeanEventDto = {
3090
+ export type CreateTransactionRuleDto = {
3091
+ name: string;
3092
+ description?: string;
3093
+ narrationKeywords?: Array<unknown[]>;
3094
+ payeeKeywords?: Array<unknown[]>;
3095
+ categoryKeywords?: Array<unknown[]>;
3178
3096
  /**
3179
- * Life event date (ISO 8601)
3097
+ * Payment method keywords (e.g., HuaBei, YuEBao)
3180
3098
  */
3181
- date: string;
3099
+ methodKeywords?: Array<unknown[]>;
3182
3100
  /**
3183
- * Life event type (e.g., "employer", "location", "marital-status") — user-defined, no enum constraint at engine layer
3101
+ * Destination account for expenses/income (e.g., Expenses:Food:Coffee)
3184
3102
  */
3185
- type: string;
3103
+ categoryAccount?: string;
3104
+ matchLogic: 'OR' | 'AND';
3186
3105
  /**
3187
- * Life event description. Empty string is a VALID value (distinct from absence).
3106
+ * Minimum transaction amount (inclusive)
3188
3107
  */
3189
- description: string;
3108
+ amountMin?: number;
3190
3109
  /**
3191
- * Product-side metadata (lives in BeanEvent.meta JSON, never in engine Event fields)
3110
+ * Maximum transaction amount (inclusive)
3192
3111
  */
3193
- meta?: {
3112
+ amountMax?: number;
3113
+ priority: number;
3114
+ additionalTags?: Array<unknown[]>;
3115
+ additionalMetadata?: {
3194
3116
  [key: string]: unknown;
3195
3117
  };
3118
+ /**
3119
+ * If true, update existing rule with matching payeeKeywords[0] instead of creating new rule
3120
+ */
3121
+ upsertByPayee?: boolean;
3196
3122
  };
3197
3123
 
3198
- export type EventResponseDto = {
3124
+ export type matchLogic = 'OR' | 'AND';
3125
+
3126
+ export type AmountRangeDto = {
3199
3127
  /**
3200
- * Unique identifier
3128
+ * Minimum amount
3201
3129
  */
3202
- id: string;
3130
+ min?: number;
3203
3131
  /**
3204
- * User ID (owner of the life event)
3132
+ * Maximum amount
3205
3133
  */
3206
- userId: string;
3134
+ max?: number;
3135
+ };
3136
+
3137
+ export type TransactionRuleResponseDto = {
3207
3138
  /**
3208
- * Life event date (ISO 8601 format)
3139
+ * Rule ID
3209
3140
  */
3210
- date: string;
3141
+ id: string;
3211
3142
  /**
3212
- * Life event type (user-defined, e.g., "employer", "location")
3143
+ * Rule name
3213
3144
  */
3214
- type: string;
3145
+ name: string;
3215
3146
  /**
3216
- * Life event description. May be an empty string (a valid value distinct from absence).
3147
+ * Rule description
3217
3148
  */
3218
- description: string;
3149
+ description?: string;
3219
3150
  /**
3220
- * Product-side metadata (free-form JSON)
3151
+ * Keywords to match in transaction narration
3221
3152
  */
3222
- meta: {
3223
- [key: string]: unknown;
3224
- };
3153
+ narrationKeywords: Array<string>;
3225
3154
  /**
3226
- * Creation timestamp
3155
+ * Keywords to match in payee name
3227
3156
  */
3228
- createdAt: string;
3157
+ payeeKeywords: Array<string>;
3229
3158
  /**
3230
- * Last update timestamp. Also emitted as the ETag response header for If-Match optimistic concurrency.
3159
+ * Keywords to match in category
3231
3160
  */
3232
- updatedAt: string;
3233
- };
3234
-
3235
- export type EventListResponseDto = {
3161
+ categoryKeywords: Array<string>;
3236
3162
  /**
3237
- * List of life events
3163
+ * Keywords to match in payment method
3238
3164
  */
3239
- items: Array<EventResponseDto>;
3165
+ methodKeywords: Array<string>;
3240
3166
  /**
3241
- * Total number of life events matching the query
3167
+ * Destination account for categorization
3242
3168
  */
3243
- total: number;
3244
- };
3245
-
3246
- export type UpdateBeanEventDto = {
3169
+ categoryAccount?: string;
3247
3170
  /**
3248
- * Life event date (ISO 8601)
3171
+ * Keyword matching logic
3249
3172
  */
3250
- date?: string;
3173
+ matchLogic: 'OR' | 'AND';
3251
3174
  /**
3252
- * Life event type (user-defined)
3175
+ * Amount range for matching
3253
3176
  */
3254
- type?: string;
3177
+ amountRange?: AmountRangeDto;
3255
3178
  /**
3256
- * Life event description. Empty string is a VALID value (distinct from absence).
3179
+ * Rule priority (0-1000, higher = first match)
3257
3180
  */
3258
- description?: string;
3181
+ priority: number;
3259
3182
  /**
3260
- * Product-side metadata (free-form JSON)
3183
+ * Whether the rule is enabled
3261
3184
  */
3262
- meta?: {
3263
- [key: string]: unknown;
3185
+ enabled: boolean;
3186
+ /**
3187
+ * Learning source: NLP, REVIEW_CENTER, or null for manual
3188
+ */
3189
+ learningSource?: 'NLP' | 'REVIEW_CENTER' | null;
3190
+ /**
3191
+ * Whether auto-apply is enabled for this rule
3192
+ */
3193
+ autoApplyEnabled: boolean;
3194
+ /**
3195
+ * Number of confirmations for NLP-learned rules
3196
+ */
3197
+ confirmationCount: number;
3198
+ /**
3199
+ * Additional tags
3200
+ */
3201
+ additionalTags: Array<string>;
3202
+ /**
3203
+ * Additional metadata
3204
+ */
3205
+ additionalMetadata?: {
3206
+ [key: string]: string;
3207
+ };
3208
+ /**
3209
+ * Created timestamp
3210
+ */
3211
+ createdAt: string;
3212
+ /**
3213
+ * Updated timestamp
3214
+ */
3215
+ updatedAt: string;
3216
+ };
3217
+
3218
+ /**
3219
+ * Learning source: NLP, REVIEW_CENTER, or null for manual
3220
+ */
3221
+ export type learningSource = 'NLP' | 'REVIEW_CENTER';
3222
+
3223
+ export type TransactionRuleListResponseDto = {
3224
+ data: Array<TransactionRuleResponseDto>;
3225
+ /**
3226
+ * Total count of rules
3227
+ */
3228
+ total: number;
3229
+ /**
3230
+ * Results per page
3231
+ */
3232
+ limit: number;
3233
+ /**
3234
+ * Pagination offset
3235
+ */
3236
+ offset: number;
3237
+ };
3238
+
3239
+ export type ValidateRuleDto = {
3240
+ name: string;
3241
+ description?: string;
3242
+ narrationKeywords?: Array<unknown[]>;
3243
+ payeeKeywords?: Array<unknown[]>;
3244
+ categoryKeywords?: Array<unknown[]>;
3245
+ /**
3246
+ * Payment method keywords (e.g., HuaBei, YuEBao)
3247
+ */
3248
+ methodKeywords?: Array<unknown[]>;
3249
+ /**
3250
+ * Destination account for expenses/income (e.g., Expenses:Food:Coffee)
3251
+ */
3252
+ categoryAccount?: string;
3253
+ matchLogic: 'OR' | 'AND';
3254
+ /**
3255
+ * Minimum transaction amount (inclusive)
3256
+ */
3257
+ amountMin?: number;
3258
+ /**
3259
+ * Maximum transaction amount (inclusive)
3260
+ */
3261
+ amountMax?: number;
3262
+ priority: number;
3263
+ additionalTags?: Array<unknown[]>;
3264
+ additionalMetadata?: {
3265
+ [key: string]: unknown;
3266
+ };
3267
+ /**
3268
+ * If true, update existing rule with matching payeeKeywords[0] instead of creating new rule
3269
+ */
3270
+ upsertByPayee?: boolean;
3271
+ };
3272
+
3273
+ export type ValidateRuleResponseDto = {
3274
+ /**
3275
+ * Whether the rule configuration is valid
3276
+ */
3277
+ valid: boolean;
3278
+ /**
3279
+ * List of validation errors (empty if valid)
3280
+ */
3281
+ errors: Array<unknown[]>;
3282
+ /**
3283
+ * List of validation warnings (non-blocking issues)
3284
+ */
3285
+ warnings: Array<unknown[]>;
3286
+ };
3287
+
3288
+ export type BulkCreateRulesDto = {
3289
+ /**
3290
+ * Array of rules to import
3291
+ */
3292
+ rules: Array<unknown[]>;
3293
+ /**
3294
+ * Conflict handling strategy: skip (default) ignores duplicates, replace soft-deletes existing rule
3295
+ */
3296
+ conflictStrategy: 'replace' | 'skip';
3297
+ };
3298
+
3299
+ /**
3300
+ * Conflict handling strategy: skip (default) ignores duplicates, replace soft-deletes existing rule
3301
+ */
3302
+ export type conflictStrategy = 'replace' | 'skip';
3303
+
3304
+ export type BulkCreateRulesResponseDto = {
3305
+ /**
3306
+ * Number of successfully created rules
3307
+ */
3308
+ successCount: number;
3309
+ /**
3310
+ * Number of failed rules
3311
+ */
3312
+ failureCount: number;
3313
+ /**
3314
+ * Error details for failed rules
3315
+ */
3316
+ errors: Array<{
3317
+ index?: number;
3318
+ message?: string;
3319
+ }>;
3320
+ /**
3321
+ * IDs of successfully created rules
3322
+ */
3323
+ createdRuleIds: Array<string>;
3324
+ };
3325
+
3326
+ export type ExportRulesResponseDto = {
3327
+ /**
3328
+ * Export timestamp
3329
+ */
3330
+ exportedAt: string;
3331
+ /**
3332
+ * User ID
3333
+ */
3334
+ userId: string;
3335
+ /**
3336
+ * Number of exported rules
3337
+ */
3338
+ ruleCount: number;
3339
+ /**
3340
+ * Exported rules
3341
+ */
3342
+ rules: unknown[];
3343
+ };
3344
+
3345
+ export type RuleStatisticsResponseDto = {
3346
+ /**
3347
+ * Statistics time period
3348
+ */
3349
+ period: '7d' | '30d' | '90d';
3350
+ /**
3351
+ * Total number of rules
3352
+ */
3353
+ totalRules: number;
3354
+ /**
3355
+ * Number of rules with at least one match
3356
+ */
3357
+ rulesWithMatches: number;
3358
+ /**
3359
+ * Total number of matches across all rules
3360
+ */
3361
+ totalMatches: number;
3362
+ /**
3363
+ * Average confidence score across all matches
3364
+ */
3365
+ averageConfidence: number;
3366
+ /**
3367
+ * Per-rule statistics
3368
+ */
3369
+ ruleStats: Array<{
3370
+ ruleId?: string;
3371
+ ruleName?: string;
3372
+ matchCount?: number;
3373
+ averageConfidence?: number;
3374
+ }>;
3375
+ };
3376
+
3377
+ /**
3378
+ * Statistics time period
3379
+ */
3380
+ export type period = '7d' | '30d' | '90d';
3381
+
3382
+ export type UpdateTransactionRuleDto = {
3383
+ name?: string;
3384
+ description?: string;
3385
+ narrationKeywords?: Array<unknown[]>;
3386
+ payeeKeywords?: Array<unknown[]>;
3387
+ categoryKeywords?: Array<unknown[]>;
3388
+ /**
3389
+ * Payment method keywords (e.g., HuaBei, YuEBao)
3390
+ */
3391
+ methodKeywords?: Array<unknown[]>;
3392
+ /**
3393
+ * Destination account for expenses/income (e.g., Expenses:Food:Coffee)
3394
+ */
3395
+ categoryAccount?: string;
3396
+ matchLogic?: 'OR' | 'AND';
3397
+ /**
3398
+ * Minimum transaction amount (inclusive)
3399
+ */
3400
+ amountMin?: number;
3401
+ /**
3402
+ * Maximum transaction amount (inclusive)
3403
+ */
3404
+ amountMax?: number;
3405
+ priority?: number;
3406
+ /**
3407
+ * Enable or disable the rule
3408
+ */
3409
+ enabled?: boolean;
3410
+ additionalTags?: Array<unknown[]>;
3411
+ additionalMetadata?: {
3412
+ [key: string]: unknown;
3413
+ };
3414
+ };
3415
+
3416
+ export type TestRuleDto = {
3417
+ narration: string;
3418
+ payee?: string;
3419
+ categoryAccount?: string;
3420
+ amount?: number;
3421
+ currency?: string;
3422
+ };
3423
+
3424
+ export type TestRuleResponseDto = {
3425
+ /**
3426
+ * Rule ID that was tested
3427
+ */
3428
+ ruleId: string;
3429
+ /**
3430
+ * Whether the rule matched the test data
3431
+ */
3432
+ matches: boolean;
3433
+ /**
3434
+ * Match confidence score (0-1)
3435
+ */
3436
+ confidence: number;
3437
+ /**
3438
+ * Details of which fields matched
3439
+ */
3440
+ matchDetails: {
3441
+ [key: string]: unknown;
3442
+ };
3443
+ };
3444
+
3445
+ export type CreateBeanEventDto = {
3446
+ /**
3447
+ * Life event date (ISO 8601)
3448
+ */
3449
+ date: string;
3450
+ /**
3451
+ * Life event type (e.g., "employer", "location", "marital-status") — user-defined, no enum constraint at engine layer
3452
+ */
3453
+ type: string;
3454
+ /**
3455
+ * Life event description. Empty string is a VALID value (distinct from absence).
3456
+ */
3457
+ description: string;
3458
+ /**
3459
+ * Product-side metadata (lives in BeanEvent.meta JSON, never in engine Event fields)
3460
+ */
3461
+ meta?: {
3462
+ [key: string]: unknown;
3463
+ };
3464
+ };
3465
+
3466
+ export type EventResponseDto = {
3467
+ /**
3468
+ * Unique identifier
3469
+ */
3470
+ id: string;
3471
+ /**
3472
+ * User ID (owner of the life event)
3473
+ */
3474
+ userId: string;
3475
+ /**
3476
+ * Life event date (ISO 8601 format)
3477
+ */
3478
+ date: string;
3479
+ /**
3480
+ * Life event type (user-defined, e.g., "employer", "location")
3481
+ */
3482
+ type: string;
3483
+ /**
3484
+ * Life event description. May be an empty string (a valid value distinct from absence).
3485
+ */
3486
+ description: string;
3487
+ /**
3488
+ * Product-side metadata (free-form JSON)
3489
+ */
3490
+ meta: {
3491
+ [key: string]: unknown;
3492
+ };
3493
+ /**
3494
+ * Creation timestamp
3495
+ */
3496
+ createdAt: string;
3497
+ /**
3498
+ * Last update timestamp. Also emitted as the ETag response header for If-Match optimistic concurrency.
3499
+ */
3500
+ updatedAt: string;
3501
+ };
3502
+
3503
+ export type EventListResponseDto = {
3504
+ /**
3505
+ * List of life events
3506
+ */
3507
+ items: Array<EventResponseDto>;
3508
+ /**
3509
+ * Total number of life events matching the query
3510
+ */
3511
+ total: number;
3512
+ };
3513
+
3514
+ export type UpdateBeanEventDto = {
3515
+ /**
3516
+ * Life event date (ISO 8601)
3517
+ */
3518
+ date?: string;
3519
+ /**
3520
+ * Life event type (user-defined)
3521
+ */
3522
+ type?: string;
3523
+ /**
3524
+ * Life event description. Empty string is a VALID value (distinct from absence).
3525
+ */
3526
+ description?: string;
3527
+ /**
3528
+ * Product-side metadata (free-form JSON)
3529
+ */
3530
+ meta?: {
3531
+ [key: string]: unknown;
3264
3532
  };
3265
3533
  };
3266
3534
 
@@ -3870,6 +4138,14 @@ export type ProcessNlpDto = {
3870
4138
  parsedData?: {
3871
4139
  [key: string]: unknown;
3872
4140
  };
4141
+ /**
4142
+ * confirm_rule echo-back: rule id selected from the prior confirm_rule response (matchedRule.id or alternatives[i].ruleId). Applied directly when the session is confirming_rule — no NL re-parse.
4143
+ */
4144
+ selectedRuleId?: string;
4145
+ /**
4146
+ * confirm_account echo-back: account path selected from the prior confirm_account response (suggestedAccount, similarAccounts[i], or a typed path). Applied directly when the session is confirming_account — no NL re-parse.
4147
+ */
4148
+ selectedAccount?: string;
3873
4149
  };
3874
4150
 
3875
4151
  export type NlpTransactionInfoDto = {
@@ -4113,9 +4389,9 @@ export type NlpAccountConfirmationDataDto = {
4113
4389
  */
4114
4390
  invalidAccount: string;
4115
4391
  /**
4116
- * Suggested replacement account
4392
+ * Suggested replacement account (omitted when no clear candidate)
4117
4393
  */
4118
- suggestedAccount: string;
4394
+ suggestedAccount?: string;
4119
4395
  /**
4120
4396
  * Similar accounts for user selection
4121
4397
  */
@@ -4243,7 +4519,7 @@ export type NlpSuggestedAccountDto = {
4243
4519
  */
4244
4520
  account: string;
4245
4521
  /**
4246
- * Confidence score for this suggestion (0-1)
4522
+ * Confidence score for this suggestion (0-1). Present = predicted (confirm/confirm_rule/confirm_account); omitted = actual persisted account (created). (#586)
4247
4523
  */
4248
4524
  confidence?: number;
4249
4525
  };
@@ -4261,21 +4537,21 @@ export type NlpSuggestedAccountsDto = {
4261
4537
 
4262
4538
  export type NlpDefaultAccountsDto = {
4263
4539
  /**
4264
- * Default asset account
4540
+ * Default OPEN asset account (MRU when multiple), or null when none/ambiguous
4265
4541
  */
4266
- asset: string;
4542
+ asset: string | null;
4267
4543
  /**
4268
- * Default expense account
4544
+ * Default OPEN expense account (MRU when multiple), or null when none/ambiguous
4269
4545
  */
4270
- expense: string;
4546
+ expense: string | null;
4271
4547
  /**
4272
- * Default income account
4548
+ * Default OPEN income account (MRU when multiple), or null when none/ambiguous
4273
4549
  */
4274
- income: string;
4550
+ income: string | null;
4275
4551
  /**
4276
- * Default liability account
4552
+ * Default OPEN liability account (MRU when multiple), or null when none/ambiguous
4277
4553
  */
4278
- liability: string;
4554
+ liability: string | null;
4279
4555
  };
4280
4556
 
4281
4557
  export type NlpResponseDto = {
@@ -4294,7 +4570,8 @@ export type NlpResponseDto = {
4294
4570
  | 'confirm_rule'
4295
4571
  | 'confirm_account'
4296
4572
  | 'confirm_payee'
4297
- | 'cancel';
4573
+ | 'cancel'
4574
+ | 'aborted';
4298
4575
  /**
4299
4576
  * Transaction intent detected by EntityRouter (v6.0: 5 core intents). Frontend uses this to render scenario-specific form fields.
4300
4577
  */
@@ -4383,11 +4660,11 @@ export type NlpResponseDto = {
4383
4660
  */
4384
4661
  recurringSuggestion?: RecurringSuggestionDto;
4385
4662
  /**
4386
- * Suggested accounts for this transaction. Contains recommended source and destination accounts based on the detected intent and rules.
4663
+ * Suggested accounts for this transaction (#586). confirm/confirm_rule/confirm_account: predicted (source/destination carry confidence); created: actual persisted accounts (confidence omitted). confirm_account destination is the suggested replacement, never the invalid account.
4387
4664
  */
4388
4665
  suggestedAccounts?: NlpSuggestedAccountsDto;
4389
4666
  /**
4390
- * Default accounts for the user/region. These are fallback accounts used when no specific suggestion is available.
4667
+ * Default fallback accounts for the user/region (#586). v1 returns universal constants; per-user personalization is planned.
4391
4668
  */
4392
4669
  defaultAccounts?: NlpDefaultAccountsDto;
4393
4670
  };
@@ -4408,7 +4685,8 @@ export type action2 =
4408
4685
  | 'confirm_rule'
4409
4686
  | 'confirm_account'
4410
4687
  | 'confirm_payee'
4411
- | 'cancel';
4688
+ | 'cancel'
4689
+ | 'aborted';
4412
4690
 
4413
4691
  /**
4414
4692
  * Transaction intent detected by EntityRouter (v6.0: 5 core intents). Frontend uses this to render scenario-specific form fields.
@@ -5340,185 +5618,146 @@ export type HoldingPnlResponseDto = {
5340
5618
  */
5341
5619
  export type method = 'average' | 'FIFO';
5342
5620
 
5343
- export type CurrencyBalanceDto = {
5344
- /**
5345
- * ISO 4217 currency code
5346
- */
5347
- currency: string;
5348
- /**
5349
- * Balance amount
5350
- */
5351
- balance: string;
5352
- };
5353
-
5354
- export type TimeSeriesPointDto = {
5355
- /**
5356
- * Date in YYYY-MM-DD format
5357
- */
5358
- date: string;
5359
- /**
5360
- * Value at this date (in base currency)
5361
- */
5362
- value: string;
5363
- /**
5364
- * Change from previous point
5365
- */
5366
- change?: {
5367
- [key: string]: unknown;
5368
- };
5369
- /**
5370
- * Total assets at this date (in base currency)
5371
- */
5372
- assets?: string;
5373
- /**
5374
- * Total liabilities at this date (in base currency)
5375
- */
5376
- liabilities?: string;
5377
- /**
5378
- * Multi-currency breakdown for this point
5379
- */
5380
- byCurrency?: Array<CurrencyBalanceDto>;
5381
- };
5382
-
5383
- export type TrendSummaryDto = {
5384
- /**
5385
- * Value at start of period
5386
- */
5387
- startValue: string;
5388
- /**
5389
- * Value at end of period
5390
- */
5391
- endValue: string;
5392
- /**
5393
- * Total change over period
5394
- */
5395
- totalChange: string;
5621
+ export type AnonymousLoginDto = {
5396
5622
  /**
5397
- * Total change percentage
5623
+ * Access token for anonymous login
5398
5624
  */
5399
- totalChangePercentage: string;
5625
+ accessToken: string;
5400
5626
  };
5401
5627
 
5402
- export type MultiCurrencyPointDto = {
5403
- /**
5404
- * Date in YYYY-MM-DD format
5405
- */
5406
- date: string;
5628
+ export type AnonymousLoginResponseDto = {
5407
5629
  /**
5408
- * Balances by currency
5630
+ * JWT auth token
5409
5631
  */
5410
- byCurrency: Array<CurrencyBalanceDto>;
5632
+ authToken: string;
5411
5633
  };
5412
5634
 
5413
- export type PortfolioTrendsResponseDto = {
5414
- /**
5415
- * Time series data points
5416
- */
5417
- series: Array<TimeSeriesPointDto>;
5418
- /**
5419
- * Period summary
5420
- */
5421
- summary: TrendSummaryDto;
5422
- /**
5423
- * Period requested
5424
- */
5425
- period: string;
5635
+ export type SymbolSearchResultDto = {
5636
+ symbol: string;
5637
+ name?: {
5638
+ [key: string]: unknown;
5639
+ } | null;
5640
+ exchange?: {
5641
+ [key: string]: unknown;
5642
+ } | null;
5426
5643
  /**
5427
- * Data granularity
5644
+ * OpenBB asset_type (e.g. stock, etf)
5428
5645
  */
5429
- granularity: string;
5646
+ assetType?: {
5647
+ [key: string]: unknown;
5648
+ } | null;
5430
5649
  /**
5431
- * Base currency for converted values
5650
+ * IGN asset class (region.types.ts ASSET_CLASSES)
5432
5651
  */
5433
- currency: string;
5652
+ assetClass?: {
5653
+ [key: string]: unknown;
5654
+ } | null;
5434
5655
  /**
5435
- * Multi-currency time series (each point has currency breakdown)
5656
+ * IGN asset sub-class (region.types.ts ASSET_SUB_CLASSES)
5436
5657
  */
5437
- byCurrency?: Array<MultiCurrencyPointDto>;
5658
+ assetSubClass?: {
5659
+ [key: string]: unknown;
5660
+ } | null;
5438
5661
  /**
5439
- * Exchange rate warnings
5662
+ * Trading currency (extra_data or inferred from exchange)
5440
5663
  */
5441
- warnings?: Array<ExchangeRateWarningDto>;
5664
+ currency?: {
5665
+ [key: string]: unknown;
5666
+ } | null;
5442
5667
  };
5443
5668
 
5444
- export type CashFlowPointDto = {
5445
- /**
5446
- * Month key (YYYY-MM)
5447
- */
5448
- month: string;
5669
+ export type SymbolQuoteDto = {
5670
+ symbol?: string;
5671
+ name?: {
5672
+ [key: string]: unknown;
5673
+ } | null;
5674
+ exchange?: {
5675
+ [key: string]: unknown;
5676
+ } | null;
5449
5677
  /**
5450
- * Income in base currency (absolute, converted)
5678
+ * OpenBB asset_type
5451
5679
  */
5452
- income: string;
5680
+ assetType?: {
5681
+ [key: string]: unknown;
5682
+ } | null;
5453
5683
  /**
5454
- * Expense in base currency (absolute, converted)
5684
+ * IGN asset class
5455
5685
  */
5456
- expense: string;
5686
+ assetClass?: {
5687
+ [key: string]: unknown;
5688
+ } | null;
5457
5689
  /**
5458
- * netSavings = income − expense (savings positive)
5690
+ * IGN asset sub-class
5459
5691
  */
5460
- netSavings: string;
5461
- };
5462
-
5463
- export type CashFlowTrendSummaryDto = {
5692
+ assetSubClass?: {
5693
+ [key: string]: unknown;
5694
+ } | null;
5464
5695
  /**
5465
- * Total income across the period
5696
+ * Trading currency (extra_data or inferred from exchange)
5466
5697
  */
5467
- totalIncome: string;
5698
+ currency?: {
5699
+ [key: string]: unknown;
5700
+ } | null;
5468
5701
  /**
5469
- * Total expense across the period
5702
+ * Latest price (Decimal string)
5470
5703
  */
5471
- totalExpense: string;
5704
+ price?: {
5705
+ [key: string]: unknown;
5706
+ } | null;
5472
5707
  /**
5473
- * income − expense across the period
5708
+ * Date the price was observed (ISO yyyy-MM-dd)
5474
5709
  */
5475
- totalNetSavings: string;
5710
+ priceDate?: {
5711
+ [key: string]: unknown;
5712
+ } | null;
5476
5713
  /**
5477
- * totalNetSavings divided by the window length (N months, incl. zero-filled)
5714
+ * Change vs previous close, in percentage points (1.7 == 1.7%). openbb stores change_percent as a normalized decimal; this exposes percentage points for frontend convenience.
5478
5715
  */
5479
- averageMonthlyNetSavings: string;
5480
- };
5481
-
5482
- export type CashFlowTrendsResponseDto = {
5716
+ changePercent?: {
5717
+ [key: string]: unknown;
5718
+ } | null;
5483
5719
  /**
5484
- * Monthly cash-flow series (fixed N-month window, zero-filled)
5720
+ * Previous close (Decimal string)
5485
5721
  */
5486
- series: Array<CashFlowPointDto>;
5722
+ prevClose?: {
5723
+ [key: string]: unknown;
5724
+ } | null;
5487
5725
  /**
5488
- * Period totals
5726
+ * Day open (Decimal string)
5489
5727
  */
5490
- summary: CashFlowTrendSummaryDto;
5728
+ open?: {
5729
+ [key: string]: unknown;
5730
+ } | null;
5491
5731
  /**
5492
- * Period requested
5732
+ * Day high (Decimal string)
5493
5733
  */
5494
- period: string;
5734
+ high?: {
5735
+ [key: string]: unknown;
5736
+ } | null;
5495
5737
  /**
5496
- * Data granularity (v1 returns month buckets)
5738
+ * Day low (Decimal string)
5497
5739
  */
5498
- granularity: string;
5740
+ low?: {
5741
+ [key: string]: unknown;
5742
+ } | null;
5499
5743
  /**
5500
- * Base currency for converted values
5744
+ * Day volume (Decimal string)
5501
5745
  */
5502
- currency: string;
5746
+ volume?: {
5747
+ [key: string]: unknown;
5748
+ } | null;
5503
5749
  /**
5504
- * Exchange rate warnings (e.g. missing rate for a currency)
5750
+ * 52-week high (Decimal string)
5505
5751
  */
5506
- warnings?: Array<ExchangeRateWarningDto>;
5507
- };
5508
-
5509
- export type GenerateSnapshotBody = unknown;
5510
-
5511
- export type GenerateSnapshotResponse = unknown;
5512
-
5513
- export type BackfillSnapshotsBody = unknown;
5514
-
5515
- export type BackfillSnapshotsResponse = unknown;
5516
-
5517
- export type AnonymousLoginDto = {
5752
+ yearHigh?: {
5753
+ [key: string]: unknown;
5754
+ } | null;
5518
5755
  /**
5519
- * Access token for anonymous login
5756
+ * 52-week low (Decimal string)
5520
5757
  */
5521
- accessToken: string;
5758
+ yearLow?: {
5759
+ [key: string]: unknown;
5760
+ } | null;
5522
5761
  };
5523
5762
 
5524
5763
  export type AccountControllerCreateData = {
@@ -6554,18 +6793,166 @@ export type ExpectedTransactionControllerEnterNowData = {
6554
6793
 
6555
6794
  export type ExpectedTransactionControllerEnterNowResponse = unknown;
6556
6795
 
6557
- export type ForecastControllerGetForecastData = {
6558
- /**
6559
- * Number of months to forecast (1-12, default 3)
6560
- */
6561
- months?: number;
6796
+ export type ForecastControllerGetForecastData = {
6797
+ /**
6798
+ * Number of months to forecast (1-12, default 3)
6799
+ */
6800
+ months?: number;
6801
+ /**
6802
+ * Region code for tenant context
6803
+ */
6804
+ region: 'cn' | 'us' | 'de' | 'gb';
6805
+ };
6806
+
6807
+ export type ForecastControllerGetForecastResponse = ForecastResponseDto;
6808
+
6809
+ export type ReportingControllerGetPortfolioTrendsData = {
6810
+ /**
6811
+ * Data granularity
6812
+ */
6813
+ granularity?: 'day' | 'week' | 'month';
6814
+ /**
6815
+ * Time period
6816
+ */
6817
+ period?: '1m' | '3m' | '6m' | '1y';
6818
+ /**
6819
+ * Region code for tenant context
6820
+ */
6821
+ region: 'cn' | 'us' | 'de' | 'gb';
6822
+ };
6823
+
6824
+ export type ReportingControllerGetPortfolioTrendsResponse =
6825
+ PortfolioTrendsResponseDto;
6826
+
6827
+ export type ReportingControllerGetCashFlowTrendsData = {
6828
+ /**
6829
+ * Data granularity (accepted for API symmetry; v1 returns month buckets)
6830
+ */
6831
+ granularity?: 'day' | 'week' | 'month';
6832
+ /**
6833
+ * Time period
6834
+ */
6835
+ period?: '1m' | '3m' | '6m' | '1y';
6836
+ /**
6837
+ * Region code for tenant context
6838
+ */
6839
+ region: 'cn' | 'us' | 'de' | 'gb';
6840
+ };
6841
+
6842
+ export type ReportingControllerGetCashFlowTrendsResponse =
6843
+ CashFlowTrendsResponseDto;
6844
+
6845
+ export type ReportingControllerGenerateSnapshotData = {
6846
+ /**
6847
+ * Region code for tenant context
6848
+ */
6849
+ region: 'cn' | 'us' | 'de' | 'gb';
6850
+ /**
6851
+ * Optional date (defaults to today)
6852
+ */
6853
+ requestBody: GenerateSnapshotBody;
6854
+ };
6855
+
6856
+ export type ReportingControllerGenerateSnapshotResponse =
6857
+ GenerateSnapshotResponse;
6858
+
6859
+ export type ReportingControllerBackfillSnapshotsData = {
6860
+ /**
6861
+ * Region code for tenant context
6862
+ */
6863
+ region: 'cn' | 'us' | 'de' | 'gb';
6864
+ requestBody: BackfillSnapshotsBody;
6865
+ };
6866
+
6867
+ export type ReportingControllerBackfillSnapshotsResponse =
6868
+ BackfillSnapshotsResponse;
6869
+
6870
+ export type UserControllerDeleteOwnUserData = {
6871
+ requestBody: DeleteOwnUserDto;
6872
+ };
6873
+
6874
+ export type UserControllerDeleteOwnUserResponse = void;
6875
+
6876
+ export type UserControllerGetUserData = {
6877
+ acceptLanguage: string;
6878
+ };
6879
+
6880
+ export type UserControllerGetUserResponse = unknown;
6881
+
6882
+ export type UserControllerSignupUserData = {
6883
+ requestBody: SignupDto;
6884
+ };
6885
+
6886
+ export type UserControllerSignupUserResponse = SignupResponseDto;
6887
+
6888
+ export type UserControllerDeleteUserData = {
6889
+ /**
6890
+ * User ID to delete
6891
+ */
6892
+ id: string;
6893
+ };
6894
+
6895
+ export type UserControllerDeleteUserResponse = void;
6896
+
6897
+ export type UserControllerGetUserInfoData = {
6898
+ /**
6899
+ * User ID
6900
+ */
6901
+ id: string;
6902
+ };
6903
+
6904
+ export type UserControllerGetUserInfoResponse = unknown;
6905
+
6906
+ export type UserControllerUpdateUserSettingData = {
6907
+ requestBody: UpdateUserSettingDto;
6908
+ };
6909
+
6910
+ export type UserControllerUpdateUserSettingResponse = unknown;
6911
+
6912
+ export type UserControllerGetAllUserSettingsByPageData = {
6913
+ /**
6914
+ * Page number
6915
+ */
6916
+ pageNo: number;
6917
+ /**
6918
+ * Page size
6919
+ */
6920
+ pageSize: number;
6921
+ };
6922
+
6923
+ export type UserControllerGetAllUserSettingsByPageResponse = unknown;
6924
+
6925
+ export type UserControllerGetAssetLiabilitySummaryResponse = unknown;
6926
+
6927
+ export type PropertyControllerGetAllResponse = unknown;
6928
+
6929
+ export type PropertyControllerGetByKeyData = {
6930
+ /**
6931
+ * Property key
6932
+ */
6933
+ key: string;
6934
+ };
6935
+
6936
+ export type PropertyControllerGetByKeyResponse = unknown;
6937
+
6938
+ export type PropertyControllerUpdateData = {
6939
+ /**
6940
+ * Property key
6941
+ */
6942
+ key: string;
6943
+ requestBody: UpdatePropertyDto;
6944
+ };
6945
+
6946
+ export type PropertyControllerUpdateResponse = unknown;
6947
+
6948
+ export type PropertyControllerDeleteData = {
6562
6949
  /**
6563
- * Region code for tenant context
6950
+ * Property key
6564
6951
  */
6565
- region: 'cn' | 'us' | 'de' | 'gb';
6952
+ key: string;
6566
6953
  };
6567
6954
 
6568
- export type ForecastControllerGetForecastResponse = ForecastResponseDto;
6955
+ export type PropertyControllerDeleteResponse = void;
6569
6956
 
6570
6957
  export type TransactionRuleControllerCreateData = {
6571
6958
  /**
@@ -6712,93 +7099,6 @@ export type TransactionRuleControllerTestData = {
6712
7099
 
6713
7100
  export type TransactionRuleControllerTestResponse = TestRuleResponseDto;
6714
7101
 
6715
- export type UserControllerDeleteOwnUserData = {
6716
- requestBody: DeleteOwnUserDto;
6717
- };
6718
-
6719
- export type UserControllerDeleteOwnUserResponse = void;
6720
-
6721
- export type UserControllerGetUserData = {
6722
- acceptLanguage: string;
6723
- };
6724
-
6725
- export type UserControllerGetUserResponse = unknown;
6726
-
6727
- export type UserControllerSignupUserData = {
6728
- requestBody: SignupDto;
6729
- };
6730
-
6731
- export type UserControllerSignupUserResponse = unknown;
6732
-
6733
- export type UserControllerDeleteUserData = {
6734
- /**
6735
- * User ID to delete
6736
- */
6737
- id: string;
6738
- };
6739
-
6740
- export type UserControllerDeleteUserResponse = void;
6741
-
6742
- export type UserControllerGetUserInfoData = {
6743
- /**
6744
- * User ID
6745
- */
6746
- id: string;
6747
- };
6748
-
6749
- export type UserControllerGetUserInfoResponse = unknown;
6750
-
6751
- export type UserControllerUpdateUserSettingData = {
6752
- requestBody: UpdateUserSettingDto;
6753
- };
6754
-
6755
- export type UserControllerUpdateUserSettingResponse = unknown;
6756
-
6757
- export type UserControllerGetAllUserSettingsByPageData = {
6758
- /**
6759
- * Page number
6760
- */
6761
- pageNo: number;
6762
- /**
6763
- * Page size
6764
- */
6765
- pageSize: number;
6766
- };
6767
-
6768
- export type UserControllerGetAllUserSettingsByPageResponse = unknown;
6769
-
6770
- export type UserControllerGetAssetLiabilitySummaryResponse = unknown;
6771
-
6772
- export type PropertyControllerGetAllResponse = unknown;
6773
-
6774
- export type PropertyControllerGetByKeyData = {
6775
- /**
6776
- * Property key
6777
- */
6778
- key: string;
6779
- };
6780
-
6781
- export type PropertyControllerGetByKeyResponse = unknown;
6782
-
6783
- export type PropertyControllerUpdateData = {
6784
- /**
6785
- * Property key
6786
- */
6787
- key: string;
6788
- requestBody: UpdatePropertyDto;
6789
- };
6790
-
6791
- export type PropertyControllerUpdateResponse = unknown;
6792
-
6793
- export type PropertyControllerDeleteData = {
6794
- /**
6795
- * Property key
6796
- */
6797
- key: string;
6798
- };
6799
-
6800
- export type PropertyControllerDeleteResponse = void;
6801
-
6802
7102
  export type EventControllerCreateData = {
6803
7103
  /**
6804
7104
  * Region code for tenant context (decorative for life events)
@@ -7344,74 +7644,13 @@ export type HoldingPnlControllerGetHoldingPnlData = {
7344
7644
 
7345
7645
  export type HoldingPnlControllerGetHoldingPnlResponse = HoldingPnlResponseDto;
7346
7646
 
7347
- export type ReportingControllerGetPortfolioTrendsData = {
7348
- /**
7349
- * Data granularity
7350
- */
7351
- granularity?: 'day' | 'week' | 'month';
7352
- /**
7353
- * Time period
7354
- */
7355
- period?: '1m' | '3m' | '6m' | '1y';
7356
- /**
7357
- * Region code for tenant context
7358
- */
7359
- region: 'cn' | 'us' | 'de' | 'gb';
7360
- };
7361
-
7362
- export type ReportingControllerGetPortfolioTrendsResponse =
7363
- PortfolioTrendsResponseDto;
7364
-
7365
- export type ReportingControllerGetCashFlowTrendsData = {
7366
- /**
7367
- * Data granularity (accepted for API symmetry; v1 returns month buckets)
7368
- */
7369
- granularity?: 'day' | 'week' | 'month';
7370
- /**
7371
- * Time period
7372
- */
7373
- period?: '1m' | '3m' | '6m' | '1y';
7374
- /**
7375
- * Region code for tenant context
7376
- */
7377
- region: 'cn' | 'us' | 'de' | 'gb';
7378
- };
7379
-
7380
- export type ReportingControllerGetCashFlowTrendsResponse =
7381
- CashFlowTrendsResponseDto;
7382
-
7383
- export type ReportingControllerGenerateSnapshotData = {
7384
- /**
7385
- * Region code for tenant context
7386
- */
7387
- region: 'cn' | 'us' | 'de' | 'gb';
7388
- /**
7389
- * Optional date (defaults to today)
7390
- */
7391
- requestBody: GenerateSnapshotBody;
7392
- };
7393
-
7394
- export type ReportingControllerGenerateSnapshotResponse =
7395
- GenerateSnapshotResponse;
7396
-
7397
- export type ReportingControllerBackfillSnapshotsData = {
7398
- /**
7399
- * Region code for tenant context
7400
- */
7401
- region: 'cn' | 'us' | 'de' | 'gb';
7402
- requestBody: BackfillSnapshotsBody;
7403
- };
7404
-
7405
- export type ReportingControllerBackfillSnapshotsResponse =
7406
- BackfillSnapshotsResponse;
7407
-
7408
7647
  export type ApiKeysControllerCreateApiKeyResponse = unknown;
7409
7648
 
7410
7649
  export type AuthControllerAccessTokenLoginData = {
7411
7650
  requestBody: AnonymousLoginDto;
7412
7651
  };
7413
7652
 
7414
- export type AuthControllerAccessTokenLoginResponse = unknown;
7653
+ export type AuthControllerAccessTokenLoginResponse = AnonymousLoginResponseDto;
7415
7654
 
7416
7655
  export type CacheControllerFlushCacheResponse = unknown;
7417
7656
 
@@ -7451,6 +7690,33 @@ export type HealthControllerGetMetricsResponse = unknown;
7451
7690
 
7452
7691
  export type InfoControllerGetInfoResponse = unknown;
7453
7692
 
7693
+ export type SymbolControllerSearchData = {
7694
+ /**
7695
+ * Filter by OpenBB asset_type (e.g. stock, etf)
7696
+ */
7697
+ assetType?: string;
7698
+ /**
7699
+ * Filter by exchange code (e.g. US, HK, SS, SZ)
7700
+ */
7701
+ exchange?: string;
7702
+ /**
7703
+ * Maximum number of results (clamped 1..50)
7704
+ */
7705
+ limit?: number;
7706
+ /**
7707
+ * Search term — matched against symbol and instrument name. Empty string returns [].
7708
+ */
7709
+ q: string;
7710
+ };
7711
+
7712
+ export type SymbolControllerSearchResponse = Array<SymbolSearchResultDto>;
7713
+
7714
+ export type SymbolControllerGetQuoteData = {
7715
+ symbol: string;
7716
+ };
7717
+
7718
+ export type SymbolControllerGetQuoteResponse = SymbolQuoteDto;
7719
+
7454
7720
  export type $OpenApiTs = {
7455
7721
  '/api/v1/{region}/bean/accounts': {
7456
7722
  post: {
@@ -8490,427 +8756,499 @@ export type $OpenApiTs = {
8490
8756
  };
8491
8757
  };
8492
8758
  };
8493
- '/api/v1/{region}/bean/expected-transactions/{id}/enter': {
8759
+ '/api/v1/{region}/bean/expected-transactions/{id}/enter': {
8760
+ post: {
8761
+ req: ExpectedTransactionControllerEnterNowData;
8762
+ res: {
8763
+ /**
8764
+ * Transaction created successfully
8765
+ */
8766
+ 201: unknown;
8767
+ /**
8768
+ * Cannot enter - not in PENDING status or missing accounts
8769
+ */
8770
+ 400: unknown;
8771
+ /**
8772
+ * Expected transaction or accounts not found
8773
+ */
8774
+ 404: unknown;
8775
+ };
8776
+ };
8777
+ };
8778
+ '/api/v1/{region}/bean/recurring/forecast': {
8779
+ get: {
8780
+ req: ForecastControllerGetForecastData;
8781
+ res: {
8782
+ /**
8783
+ * Forecast retrieved successfully
8784
+ */
8785
+ 200: ForecastResponseDto;
8786
+ };
8787
+ };
8788
+ };
8789
+ '/api/v1/{region}/reporting/portfolio/trends': {
8790
+ get: {
8791
+ req: ReportingControllerGetPortfolioTrendsData;
8792
+ res: {
8793
+ /**
8794
+ * Trends retrieved successfully
8795
+ */
8796
+ 200: PortfolioTrendsResponseDto;
8797
+ /**
8798
+ * User not authenticated
8799
+ */
8800
+ 401: unknown;
8801
+ };
8802
+ };
8803
+ };
8804
+ '/api/v1/{region}/reporting/cash-flow/trends': {
8805
+ get: {
8806
+ req: ReportingControllerGetCashFlowTrendsData;
8807
+ res: {
8808
+ /**
8809
+ * Cash-flow trends retrieved successfully
8810
+ */
8811
+ 200: CashFlowTrendsResponseDto;
8812
+ /**
8813
+ * User not authenticated
8814
+ */
8815
+ 401: unknown;
8816
+ };
8817
+ };
8818
+ };
8819
+ '/api/v1/{region}/reporting/snapshots/generate': {
8820
+ post: {
8821
+ req: ReportingControllerGenerateSnapshotData;
8822
+ res: {
8823
+ /**
8824
+ * Snapshot generated successfully
8825
+ */
8826
+ 200: GenerateSnapshotResponse;
8827
+ /**
8828
+ * Invalid date format
8829
+ */
8830
+ 400: unknown;
8831
+ /**
8832
+ * User not authenticated
8833
+ */
8834
+ 401: unknown;
8835
+ };
8836
+ };
8837
+ };
8838
+ '/api/v1/{region}/reporting/snapshots/backfill': {
8494
8839
  post: {
8495
- req: ExpectedTransactionControllerEnterNowData;
8840
+ req: ReportingControllerBackfillSnapshotsData;
8496
8841
  res: {
8497
8842
  /**
8498
- * Transaction created successfully
8843
+ * Backfill completed successfully
8499
8844
  */
8500
- 201: unknown;
8845
+ 200: BackfillSnapshotsResponse;
8501
8846
  /**
8502
- * Cannot enter - not in PENDING status or missing accounts
8847
+ * Invalid date format or range
8503
8848
  */
8504
8849
  400: unknown;
8505
8850
  /**
8506
- * Expected transaction or accounts not found
8851
+ * User not authenticated
8507
8852
  */
8508
- 404: unknown;
8509
- };
8510
- };
8511
- };
8512
- '/api/v1/{region}/bean/recurring/forecast': {
8513
- get: {
8514
- req: ForecastControllerGetForecastData;
8515
- res: {
8853
+ 401: unknown;
8516
8854
  /**
8517
- * Forecast retrieved successfully
8855
+ * Backfill already in progress for this user
8518
8856
  */
8519
- 200: ForecastResponseDto;
8857
+ 409: unknown;
8520
8858
  };
8521
8859
  };
8522
8860
  };
8523
- '/api/v1/{region}/bean/transaction-rules': {
8524
- post: {
8525
- req: TransactionRuleControllerCreateData;
8861
+ '/api/v1/users': {
8862
+ delete: {
8863
+ req: UserControllerDeleteOwnUserData;
8526
8864
  res: {
8527
8865
  /**
8528
- * Rule updated successfully (upsert mode)
8529
- */
8530
- 200: TransactionRuleResponseDto;
8531
- /**
8532
- * Validation failed
8533
- */
8534
- 400: ApiProblemResponseDto;
8535
- /**
8536
- * Unauthorized
8866
+ * User deleted successfully
8537
8867
  */
8538
- 401: ApiProblemResponseDto;
8868
+ 204: void;
8539
8869
  /**
8540
- * Resource conflict - another process is updating this rule
8870
+ * Invalid access token
8541
8871
  */
8542
- 409: ApiProblemResponseDto;
8872
+ 403: unknown;
8543
8873
  };
8544
8874
  };
8545
8875
  get: {
8546
- req: TransactionRuleControllerListData;
8876
+ req: UserControllerGetUserData;
8547
8877
  res: {
8548
8878
  /**
8549
- * List of rules
8550
- */
8551
- 200: TransactionRuleListResponseDto;
8552
- /**
8553
- * Unauthorized
8879
+ * User retrieved successfully
8554
8880
  */
8555
- 401: ApiProblemResponseDto;
8881
+ 200: unknown;
8556
8882
  };
8557
8883
  };
8558
- };
8559
- '/api/v1/{region}/bean/transaction-rules/validate': {
8560
8884
  post: {
8561
- req: TransactionRuleControllerValidateData;
8885
+ req: UserControllerSignupUserData;
8562
8886
  res: {
8563
8887
  /**
8564
- * Validation result
8888
+ * User created successfully
8565
8889
  */
8566
- 200: ValidateRuleResponseDto;
8890
+ 201: SignupResponseDto;
8567
8891
  /**
8568
- * Validation failed
8892
+ * Invalid Turnstile token (when Turnstile is enabled)
8569
8893
  */
8570
- 400: ApiProblemResponseDto;
8894
+ 400: unknown;
8571
8895
  /**
8572
- * Unauthorized
8896
+ * User signup is disabled
8573
8897
  */
8574
- 401: ApiProblemResponseDto;
8898
+ 403: unknown;
8575
8899
  };
8576
8900
  };
8577
8901
  };
8578
- '/api/v1/{region}/bean/transaction-rules/bulk': {
8579
- post: {
8580
- req: TransactionRuleControllerBulkCreateData;
8902
+ '/api/v1/users/{id}': {
8903
+ delete: {
8904
+ req: UserControllerDeleteUserData;
8581
8905
  res: {
8582
8906
  /**
8583
- * Bulk create completed
8584
- */
8585
- 201: BulkCreateRulesResponseDto;
8586
- /**
8587
- * Invalid bulk create data
8907
+ * User deleted successfully
8588
8908
  */
8589
- 400: ApiProblemResponseDto;
8909
+ 204: void;
8590
8910
  /**
8591
- * Unauthorized
8911
+ * Cannot delete own account or insufficient permissions
8592
8912
  */
8593
- 401: ApiProblemResponseDto;
8913
+ 403: unknown;
8594
8914
  };
8595
8915
  };
8596
8916
  };
8597
- '/api/v1/{region}/bean/transaction-rules/export/{format}': {
8917
+ '/api/v1/users/{id}/info': {
8598
8918
  get: {
8599
- req: TransactionRuleControllerExportData;
8919
+ req: UserControllerGetUserInfoData;
8600
8920
  res: {
8601
8921
  /**
8602
- * Exported rules
8603
- */
8604
- 200: ExportRulesResponseDto;
8605
- /**
8606
- * Unsupported format
8922
+ * User info retrieved successfully
8607
8923
  */
8608
- 400: ApiProblemResponseDto;
8924
+ 200: unknown;
8609
8925
  /**
8610
- * Unauthorized
8926
+ * Cannot access other user info without admin permission
8611
8927
  */
8612
- 401: ApiProblemResponseDto;
8928
+ 403: unknown;
8613
8929
  };
8614
8930
  };
8615
8931
  };
8616
- '/api/v1/{region}/bean/transaction-rules/statistics/{period}': {
8617
- get: {
8618
- req: TransactionRuleControllerGetStatisticsData;
8932
+ '/api/v1/users/setting': {
8933
+ put: {
8934
+ req: UserControllerUpdateUserSettingData;
8619
8935
  res: {
8620
8936
  /**
8621
- * Rule statistics
8937
+ * Settings updated successfully
8622
8938
  */
8623
- 200: RuleStatisticsResponseDto;
8939
+ 200: unknown;
8624
8940
  /**
8625
- * Unauthorized
8941
+ * Insufficient permissions
8626
8942
  */
8627
- 401: ApiProblemResponseDto;
8943
+ 403: unknown;
8628
8944
  };
8629
8945
  };
8630
8946
  };
8631
- '/api/v1/{region}/bean/transaction-rules/{ruleId}': {
8947
+ '/api/v1/users/settings-by-page': {
8632
8948
  get: {
8633
- req: TransactionRuleControllerGetDetailData;
8949
+ req: UserControllerGetAllUserSettingsByPageData;
8634
8950
  res: {
8635
8951
  /**
8636
- * Rule details
8637
- */
8638
- 200: TransactionRuleResponseDto;
8639
- /**
8640
- * Unauthorized
8641
- */
8642
- 401: ApiProblemResponseDto;
8643
- /**
8644
- * Forbidden - not owner of rule
8645
- */
8646
- 403: ApiProblemResponseDto;
8647
- /**
8648
- * Rule not found
8952
+ * Settings list retrieved successfully
8649
8953
  */
8650
- 404: ApiProblemResponseDto;
8954
+ 200: unknown;
8651
8955
  };
8652
8956
  };
8653
- put: {
8654
- req: TransactionRuleControllerUpdateData;
8957
+ };
8958
+ '/api/v1/users/asset-liability-summary': {
8959
+ get: {
8655
8960
  res: {
8656
8961
  /**
8657
- * Rule updated successfully
8962
+ * Summary retrieved successfully
8658
8963
  */
8659
- 200: TransactionRuleResponseDto;
8964
+ 200: unknown;
8965
+ };
8966
+ };
8967
+ };
8968
+ '/api/v1/admin/properties': {
8969
+ get: {
8970
+ res: {
8660
8971
  /**
8661
- * Validation failed
8972
+ * Properties retrieved successfully
8662
8973
  */
8663
- 400: ApiProblemResponseDto;
8974
+ 200: unknown;
8664
8975
  /**
8665
8976
  * Unauthorized
8666
8977
  */
8667
- 401: ApiProblemResponseDto;
8668
- /**
8669
- * Forbidden - not owner of rule
8670
- */
8671
- 403: ApiProblemResponseDto;
8672
- /**
8673
- * Rule not found
8674
- */
8675
- 404: ApiProblemResponseDto;
8978
+ 401: unknown;
8676
8979
  /**
8677
- * Resource conflict - rule is being modified by another process
8980
+ * Forbidden - insufficient permissions
8678
8981
  */
8679
- 409: ApiProblemResponseDto;
8982
+ 403: unknown;
8680
8983
  };
8681
8984
  };
8682
- delete: {
8683
- req: TransactionRuleControllerDeleteData;
8985
+ };
8986
+ '/api/v1/admin/properties/{key}': {
8987
+ get: {
8988
+ req: PropertyControllerGetByKeyData;
8684
8989
  res: {
8685
8990
  /**
8686
- * Rule deleted successfully
8991
+ * Property retrieved successfully
8687
8992
  */
8688
- 204: void;
8993
+ 200: unknown;
8689
8994
  /**
8690
8995
  * Unauthorized
8691
8996
  */
8692
- 401: ApiProblemResponseDto;
8693
- /**
8694
- * Forbidden - not owner of rule
8695
- */
8696
- 403: ApiProblemResponseDto;
8997
+ 401: unknown;
8697
8998
  /**
8698
- * Rule not found
8999
+ * Forbidden - insufficient permissions
8699
9000
  */
8700
- 404: ApiProblemResponseDto;
9001
+ 403: unknown;
8701
9002
  /**
8702
- * Resource conflict - rule is being modified by another process
9003
+ * Property not found
8703
9004
  */
8704
- 409: ApiProblemResponseDto;
9005
+ 404: unknown;
8705
9006
  };
8706
9007
  };
8707
- };
8708
- '/api/v1/{region}/bean/transaction-rules/{ruleId}/test': {
8709
- post: {
8710
- req: TransactionRuleControllerTestData;
9008
+ put: {
9009
+ req: PropertyControllerUpdateData;
8711
9010
  res: {
8712
9011
  /**
8713
- * Test result
9012
+ * Property updated successfully
8714
9013
  */
8715
- 200: TestRuleResponseDto;
9014
+ 200: unknown;
8716
9015
  /**
8717
9016
  * Unauthorized
8718
9017
  */
8719
- 401: ApiProblemResponseDto;
8720
- /**
8721
- * Forbidden - not owner of rule
8722
- */
8723
- 403: ApiProblemResponseDto;
9018
+ 401: unknown;
8724
9019
  /**
8725
- * Rule not found
9020
+ * Forbidden - insufficient permissions
8726
9021
  */
8727
- 404: ApiProblemResponseDto;
9022
+ 403: unknown;
8728
9023
  };
8729
9024
  };
8730
- };
8731
- '/api/v1/users': {
8732
9025
  delete: {
8733
- req: UserControllerDeleteOwnUserData;
9026
+ req: PropertyControllerDeleteData;
8734
9027
  res: {
8735
9028
  /**
8736
- * User deleted successfully
9029
+ * Property deleted successfully
8737
9030
  */
8738
9031
  204: void;
8739
9032
  /**
8740
- * Invalid access token
9033
+ * Unauthorized
9034
+ */
9035
+ 401: unknown;
9036
+ /**
9037
+ * Forbidden - insufficient permissions
8741
9038
  */
8742
9039
  403: unknown;
8743
- };
8744
- };
8745
- get: {
8746
- req: UserControllerGetUserData;
8747
- res: {
8748
9040
  /**
8749
- * User retrieved successfully
9041
+ * Property not found
8750
9042
  */
8751
- 200: unknown;
9043
+ 404: unknown;
8752
9044
  };
8753
9045
  };
9046
+ };
9047
+ '/api/v1/{region}/bean/transaction-rules': {
8754
9048
  post: {
8755
- req: UserControllerSignupUserData;
9049
+ req: TransactionRuleControllerCreateData;
8756
9050
  res: {
8757
9051
  /**
8758
- * User created successfully
9052
+ * Rule updated successfully (upsert mode)
8759
9053
  */
8760
- 201: unknown;
9054
+ 200: TransactionRuleResponseDto;
8761
9055
  /**
8762
- * Invalid Turnstile token (when Turnstile is enabled)
9056
+ * Validation failed
8763
9057
  */
8764
- 400: unknown;
9058
+ 400: ApiProblemResponseDto;
8765
9059
  /**
8766
- * User signup is disabled
9060
+ * Unauthorized
9061
+ */
9062
+ 401: ApiProblemResponseDto;
9063
+ /**
9064
+ * Resource conflict - another process is updating this rule
8767
9065
  */
8768
- 403: unknown;
9066
+ 409: ApiProblemResponseDto;
8769
9067
  };
8770
9068
  };
8771
- };
8772
- '/api/v1/users/{id}': {
8773
- delete: {
8774
- req: UserControllerDeleteUserData;
9069
+ get: {
9070
+ req: TransactionRuleControllerListData;
8775
9071
  res: {
8776
9072
  /**
8777
- * User deleted successfully
9073
+ * List of rules
8778
9074
  */
8779
- 204: void;
9075
+ 200: TransactionRuleListResponseDto;
8780
9076
  /**
8781
- * Cannot delete own account or insufficient permissions
9077
+ * Unauthorized
8782
9078
  */
8783
- 403: unknown;
9079
+ 401: ApiProblemResponseDto;
8784
9080
  };
8785
9081
  };
8786
9082
  };
8787
- '/api/v1/users/{id}/info': {
8788
- get: {
8789
- req: UserControllerGetUserInfoData;
9083
+ '/api/v1/{region}/bean/transaction-rules/validate': {
9084
+ post: {
9085
+ req: TransactionRuleControllerValidateData;
8790
9086
  res: {
8791
9087
  /**
8792
- * User info retrieved successfully
9088
+ * Validation result
8793
9089
  */
8794
- 200: unknown;
9090
+ 200: ValidateRuleResponseDto;
8795
9091
  /**
8796
- * Cannot access other user info without admin permission
9092
+ * Validation failed
8797
9093
  */
8798
- 403: unknown;
9094
+ 400: ApiProblemResponseDto;
9095
+ /**
9096
+ * Unauthorized
9097
+ */
9098
+ 401: ApiProblemResponseDto;
8799
9099
  };
8800
9100
  };
8801
9101
  };
8802
- '/api/v1/users/setting': {
8803
- put: {
8804
- req: UserControllerUpdateUserSettingData;
9102
+ '/api/v1/{region}/bean/transaction-rules/bulk': {
9103
+ post: {
9104
+ req: TransactionRuleControllerBulkCreateData;
8805
9105
  res: {
8806
9106
  /**
8807
- * Settings updated successfully
9107
+ * Bulk create completed
8808
9108
  */
8809
- 200: unknown;
9109
+ 201: BulkCreateRulesResponseDto;
8810
9110
  /**
8811
- * Insufficient permissions
9111
+ * Invalid bulk create data
8812
9112
  */
8813
- 403: unknown;
9113
+ 400: ApiProblemResponseDto;
9114
+ /**
9115
+ * Unauthorized
9116
+ */
9117
+ 401: ApiProblemResponseDto;
8814
9118
  };
8815
9119
  };
8816
9120
  };
8817
- '/api/v1/users/settings-by-page': {
9121
+ '/api/v1/{region}/bean/transaction-rules/export/{format}': {
8818
9122
  get: {
8819
- req: UserControllerGetAllUserSettingsByPageData;
9123
+ req: TransactionRuleControllerExportData;
8820
9124
  res: {
8821
9125
  /**
8822
- * Settings list retrieved successfully
9126
+ * Exported rules
8823
9127
  */
8824
- 200: unknown;
9128
+ 200: ExportRulesResponseDto;
9129
+ /**
9130
+ * Unsupported format
9131
+ */
9132
+ 400: ApiProblemResponseDto;
9133
+ /**
9134
+ * Unauthorized
9135
+ */
9136
+ 401: ApiProblemResponseDto;
8825
9137
  };
8826
9138
  };
8827
9139
  };
8828
- '/api/v1/users/asset-liability-summary': {
9140
+ '/api/v1/{region}/bean/transaction-rules/statistics/{period}': {
8829
9141
  get: {
9142
+ req: TransactionRuleControllerGetStatisticsData;
8830
9143
  res: {
8831
9144
  /**
8832
- * Summary retrieved successfully
9145
+ * Rule statistics
8833
9146
  */
8834
- 200: unknown;
9147
+ 200: RuleStatisticsResponseDto;
9148
+ /**
9149
+ * Unauthorized
9150
+ */
9151
+ 401: ApiProblemResponseDto;
8835
9152
  };
8836
9153
  };
8837
9154
  };
8838
- '/api/v1/admin/properties': {
9155
+ '/api/v1/{region}/bean/transaction-rules/{ruleId}': {
8839
9156
  get: {
9157
+ req: TransactionRuleControllerGetDetailData;
8840
9158
  res: {
8841
9159
  /**
8842
- * Properties retrieved successfully
9160
+ * Rule details
8843
9161
  */
8844
- 200: unknown;
9162
+ 200: TransactionRuleResponseDto;
8845
9163
  /**
8846
9164
  * Unauthorized
8847
9165
  */
8848
- 401: unknown;
9166
+ 401: ApiProblemResponseDto;
8849
9167
  /**
8850
- * Forbidden - insufficient permissions
9168
+ * Forbidden - not owner of rule
8851
9169
  */
8852
- 403: unknown;
9170
+ 403: ApiProblemResponseDto;
9171
+ /**
9172
+ * Rule not found
9173
+ */
9174
+ 404: ApiProblemResponseDto;
8853
9175
  };
8854
9176
  };
8855
- };
8856
- '/api/v1/admin/properties/{key}': {
8857
- get: {
8858
- req: PropertyControllerGetByKeyData;
9177
+ put: {
9178
+ req: TransactionRuleControllerUpdateData;
8859
9179
  res: {
8860
9180
  /**
8861
- * Property retrieved successfully
9181
+ * Rule updated successfully
8862
9182
  */
8863
- 200: unknown;
9183
+ 200: TransactionRuleResponseDto;
9184
+ /**
9185
+ * Validation failed
9186
+ */
9187
+ 400: ApiProblemResponseDto;
8864
9188
  /**
8865
9189
  * Unauthorized
8866
9190
  */
8867
- 401: unknown;
9191
+ 401: ApiProblemResponseDto;
8868
9192
  /**
8869
- * Forbidden - insufficient permissions
9193
+ * Forbidden - not owner of rule
8870
9194
  */
8871
- 403: unknown;
9195
+ 403: ApiProblemResponseDto;
8872
9196
  /**
8873
- * Property not found
9197
+ * Rule not found
8874
9198
  */
8875
- 404: unknown;
9199
+ 404: ApiProblemResponseDto;
9200
+ /**
9201
+ * Resource conflict - rule is being modified by another process
9202
+ */
9203
+ 409: ApiProblemResponseDto;
8876
9204
  };
8877
9205
  };
8878
- put: {
8879
- req: PropertyControllerUpdateData;
9206
+ delete: {
9207
+ req: TransactionRuleControllerDeleteData;
8880
9208
  res: {
8881
9209
  /**
8882
- * Property updated successfully
9210
+ * Rule deleted successfully
8883
9211
  */
8884
- 200: unknown;
9212
+ 204: void;
8885
9213
  /**
8886
9214
  * Unauthorized
8887
9215
  */
8888
- 401: unknown;
9216
+ 401: ApiProblemResponseDto;
8889
9217
  /**
8890
- * Forbidden - insufficient permissions
9218
+ * Forbidden - not owner of rule
8891
9219
  */
8892
- 403: unknown;
9220
+ 403: ApiProblemResponseDto;
9221
+ /**
9222
+ * Rule not found
9223
+ */
9224
+ 404: ApiProblemResponseDto;
9225
+ /**
9226
+ * Resource conflict - rule is being modified by another process
9227
+ */
9228
+ 409: ApiProblemResponseDto;
8893
9229
  };
8894
9230
  };
8895
- delete: {
8896
- req: PropertyControllerDeleteData;
9231
+ };
9232
+ '/api/v1/{region}/bean/transaction-rules/{ruleId}/test': {
9233
+ post: {
9234
+ req: TransactionRuleControllerTestData;
8897
9235
  res: {
8898
9236
  /**
8899
- * Property deleted successfully
9237
+ * Test result
8900
9238
  */
8901
- 204: void;
9239
+ 200: TestRuleResponseDto;
8902
9240
  /**
8903
9241
  * Unauthorized
8904
9242
  */
8905
- 401: unknown;
9243
+ 401: ApiProblemResponseDto;
8906
9244
  /**
8907
- * Forbidden - insufficient permissions
9245
+ * Forbidden - not owner of rule
8908
9246
  */
8909
- 403: unknown;
9247
+ 403: ApiProblemResponseDto;
8910
9248
  /**
8911
- * Property not found
9249
+ * Rule not found
8912
9250
  */
8913
- 404: unknown;
9251
+ 404: ApiProblemResponseDto;
8914
9252
  };
8915
9253
  };
8916
9254
  };
@@ -9590,78 +9928,6 @@ export type $OpenApiTs = {
9590
9928
  };
9591
9929
  };
9592
9930
  };
9593
- '/api/v1/{region}/reporting/portfolio/trends': {
9594
- get: {
9595
- req: ReportingControllerGetPortfolioTrendsData;
9596
- res: {
9597
- /**
9598
- * Trends retrieved successfully
9599
- */
9600
- 200: PortfolioTrendsResponseDto;
9601
- /**
9602
- * User not authenticated
9603
- */
9604
- 401: unknown;
9605
- };
9606
- };
9607
- };
9608
- '/api/v1/{region}/reporting/cash-flow/trends': {
9609
- get: {
9610
- req: ReportingControllerGetCashFlowTrendsData;
9611
- res: {
9612
- /**
9613
- * Cash-flow trends retrieved successfully
9614
- */
9615
- 200: CashFlowTrendsResponseDto;
9616
- /**
9617
- * User not authenticated
9618
- */
9619
- 401: unknown;
9620
- };
9621
- };
9622
- };
9623
- '/api/v1/{region}/reporting/snapshots/generate': {
9624
- post: {
9625
- req: ReportingControllerGenerateSnapshotData;
9626
- res: {
9627
- /**
9628
- * Snapshot generated successfully
9629
- */
9630
- 200: GenerateSnapshotResponse;
9631
- /**
9632
- * Invalid date format
9633
- */
9634
- 400: unknown;
9635
- /**
9636
- * User not authenticated
9637
- */
9638
- 401: unknown;
9639
- };
9640
- };
9641
- };
9642
- '/api/v1/{region}/reporting/snapshots/backfill': {
9643
- post: {
9644
- req: ReportingControllerBackfillSnapshotsData;
9645
- res: {
9646
- /**
9647
- * Backfill completed successfully
9648
- */
9649
- 200: BackfillSnapshotsResponse;
9650
- /**
9651
- * Invalid date format or range
9652
- */
9653
- 400: unknown;
9654
- /**
9655
- * User not authenticated
9656
- */
9657
- 401: unknown;
9658
- /**
9659
- * Backfill already in progress for this user
9660
- */
9661
- 409: unknown;
9662
- };
9663
- };
9664
- };
9665
9931
  '/api/v1/auth/api-keys': {
9666
9932
  post: {
9667
9933
  res: {
@@ -9683,7 +9949,7 @@ export type $OpenApiTs = {
9683
9949
  /**
9684
9950
  * Login successful
9685
9951
  */
9686
- 200: unknown;
9952
+ 200: AnonymousLoginResponseDto;
9687
9953
  /**
9688
9954
  * Invalid access token
9689
9955
  */
@@ -9830,4 +10096,30 @@ export type $OpenApiTs = {
9830
10096
  };
9831
10097
  };
9832
10098
  };
10099
+ '/api/v1/market/symbols/search': {
10100
+ get: {
10101
+ req: SymbolControllerSearchData;
10102
+ res: {
10103
+ /**
10104
+ * Ranked search results
10105
+ */
10106
+ 200: Array<SymbolSearchResultDto>;
10107
+ };
10108
+ };
10109
+ };
10110
+ '/api/v1/market/symbols/{symbol}/quote': {
10111
+ get: {
10112
+ req: SymbolControllerGetQuoteData;
10113
+ res: {
10114
+ /**
10115
+ * Symbol quote
10116
+ */
10117
+ 200: SymbolQuoteDto;
10118
+ /**
10119
+ * Symbol not found in the openbb catalog
10120
+ */
10121
+ 404: unknown;
10122
+ };
10123
+ };
10124
+ };
9833
10125
  };