@firela/api-types 0.0.0-canary.ebb51de2 → 0.0.0-canary.efbd2b9a

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.
@@ -1324,17 +1324,17 @@ export type ResolveResultDto = {
1324
1324
  [key: string]: string;
1325
1325
  };
1326
1326
  /**
1327
- * Resolution ID for undo
1327
+ * Resolution ID for undo. Absent when the resolver rejected the decision (review stayed PENDING).
1328
1328
  */
1329
- resolutionId: string;
1329
+ resolutionId?: string;
1330
1330
  /**
1331
1331
  * Whether this decision can be undone
1332
1332
  */
1333
- canUndo: boolean;
1333
+ canUndo?: boolean;
1334
1334
  /**
1335
1335
  * Deadline for undo (24h from resolution)
1336
1336
  */
1337
- undoDeadline: string;
1337
+ undoDeadline?: string;
1338
1338
  /**
1339
1339
  * Rule ID if learning was triggered (ACCEPT_AND_LEARN actions). Use this to deep-link to the rule management page.
1340
1340
  */
@@ -3457,6 +3457,33 @@ export type ProviderSyncDto = {
3457
3457
  transactions: unknown[];
3458
3458
  };
3459
3459
 
3460
+ export type ProviderSyncResponseDto = {
3461
+ /**
3462
+ * Number of transactions successfully imported
3463
+ */
3464
+ imported: number;
3465
+ /**
3466
+ * Number of transactions skipped (duplicates)
3467
+ */
3468
+ skipped: number;
3469
+ /**
3470
+ * Number of transactions pending review
3471
+ */
3472
+ pendingReview: number;
3473
+ /**
3474
+ * Number of transactions that failed to import
3475
+ */
3476
+ failed: number;
3477
+ /**
3478
+ * IDs of successfully imported transactions
3479
+ */
3480
+ importedTransactionIds?: Array<string>;
3481
+ /**
3482
+ * IDs of review items created for branched transactions
3483
+ */
3484
+ reviewItemIds?: Array<string>;
3485
+ };
3486
+
3460
3487
  export type SupportedProvidersResponseDto = {
3461
3488
  /**
3462
3489
  * List of supported provider names
@@ -3485,6 +3512,564 @@ export type ProcessNlpDto = {
3485
3512
  };
3486
3513
  };
3487
3514
 
3515
+ export type NlpTransactionInfoDto = {
3516
+ /**
3517
+ * Transaction ID
3518
+ */
3519
+ id: string;
3520
+ /**
3521
+ * Transaction date (ISO format)
3522
+ */
3523
+ date: string;
3524
+ /**
3525
+ * Transaction amount
3526
+ */
3527
+ amount: number;
3528
+ /**
3529
+ * Currency code
3530
+ */
3531
+ currency: string;
3532
+ /**
3533
+ * Payee name
3534
+ */
3535
+ payee?: string;
3536
+ /**
3537
+ * Transaction narration
3538
+ */
3539
+ narration?: string;
3540
+ /**
3541
+ * Warning message for special transaction scenarios (e.g., cross-currency settlement)
3542
+ */
3543
+ warning?: string;
3544
+ };
3545
+
3546
+ export type NlpParsedDataDto = {
3547
+ /**
3548
+ * Extracted amount
3549
+ */
3550
+ amount?: number;
3551
+ /**
3552
+ * Currency code
3553
+ */
3554
+ currency?: string;
3555
+ /**
3556
+ * Transaction date (ISO format)
3557
+ */
3558
+ date?: string;
3559
+ /**
3560
+ * Payee name
3561
+ */
3562
+ payee?: string;
3563
+ /**
3564
+ * Transaction narration
3565
+ */
3566
+ narration?: string;
3567
+ /**
3568
+ * Category
3569
+ */
3570
+ category?: string;
3571
+ /**
3572
+ * Income type (e.g., Salary, Bonus, Dividend, Interest)
3573
+ */
3574
+ incomeType?: string;
3575
+ /**
3576
+ * Income source (e.g., company name)
3577
+ */
3578
+ incomeSource?: string;
3579
+ /**
3580
+ * Security symbol code (e.g., 600519, AAPL)
3581
+ */
3582
+ symbol?: string;
3583
+ /**
3584
+ * Quantity of shares/units
3585
+ */
3586
+ quantity?: number;
3587
+ /**
3588
+ * Unit price per share/unit
3589
+ */
3590
+ price?: number;
3591
+ /**
3592
+ * Investment action
3593
+ */
3594
+ investmentAction?: 'buy' | 'sell';
3595
+ /**
3596
+ * Payment source: asset (default) or liability (credit card)
3597
+ */
3598
+ paymentSource?: 'asset' | 'liability';
3599
+ /**
3600
+ * Liability account hint (CreditCard/Huabei/Baitiao)
3601
+ */
3602
+ liabilityHint?: string;
3603
+ /**
3604
+ * Warning message for special scenarios (e.g., cross-currency settlement)
3605
+ */
3606
+ warning?: string;
3607
+ };
3608
+
3609
+ /**
3610
+ * Investment action
3611
+ */
3612
+ export type investmentAction = 'buy' | 'sell';
3613
+
3614
+ /**
3615
+ * Payment source: asset (default) or liability (credit card)
3616
+ */
3617
+ export type paymentSource = 'asset' | 'liability';
3618
+
3619
+ export type NlpSourceTransactionDto = {
3620
+ /**
3621
+ * Transaction date (ISO format)
3622
+ */
3623
+ date: string;
3624
+ /**
3625
+ * Amount as string
3626
+ */
3627
+ amount: string;
3628
+ /**
3629
+ * Currency code
3630
+ */
3631
+ currency: string;
3632
+ /**
3633
+ * Payee name
3634
+ */
3635
+ payee?: string;
3636
+ /**
3637
+ * Transaction narration
3638
+ */
3639
+ narration: string;
3640
+ };
3641
+
3642
+ export type NlpTargetTransactionDto = {
3643
+ /**
3644
+ * Existing transaction ID
3645
+ */
3646
+ id: string;
3647
+ /**
3648
+ * Transaction date (ISO format)
3649
+ */
3650
+ date: string;
3651
+ /**
3652
+ * Amount as string
3653
+ */
3654
+ amount: string;
3655
+ /**
3656
+ * Currency code
3657
+ */
3658
+ currency: string;
3659
+ /**
3660
+ * Payee name
3661
+ */
3662
+ payee?: string;
3663
+ /**
3664
+ * Transaction narration
3665
+ */
3666
+ narration: string;
3667
+ };
3668
+
3669
+ export type NlpSimilarityDto = {
3670
+ /**
3671
+ * Whether dates match
3672
+ */
3673
+ dateMatch: boolean;
3674
+ /**
3675
+ * Date difference in days
3676
+ */
3677
+ dateDiff: number;
3678
+ /**
3679
+ * Whether amounts match
3680
+ */
3681
+ amountMatch: boolean;
3682
+ /**
3683
+ * Amount difference as decimal string
3684
+ */
3685
+ amountDiff: string;
3686
+ /**
3687
+ * Whether payees match
3688
+ */
3689
+ payeeMatch: boolean;
3690
+ /**
3691
+ * Payee similarity score (0-1)
3692
+ */
3693
+ payeeSimilarity: number;
3694
+ /**
3695
+ * Account overlap score (0-1)
3696
+ */
3697
+ accountOverlap: number;
3698
+ };
3699
+
3700
+ export type NlpDuplicateConfirmationDataDto = {
3701
+ /**
3702
+ * Duplicate detection confidence score (0.5-0.89)
3703
+ */
3704
+ confidence: number;
3705
+ /**
3706
+ * Source transaction summary (the new transaction being entered)
3707
+ */
3708
+ sourceTransaction: NlpSourceTransactionDto;
3709
+ /**
3710
+ * Target transaction summary (existing potential duplicate)
3711
+ */
3712
+ targetTransaction: NlpTargetTransactionDto;
3713
+ /**
3714
+ * Detailed similarity information
3715
+ */
3716
+ similarity: NlpSimilarityDto;
3717
+ /**
3718
+ * Human-readable reasons for duplicate detection
3719
+ */
3720
+ reasons: Array<string>;
3721
+ };
3722
+
3723
+ export type NlpRuleConfirmationDataDto = {
3724
+ /**
3725
+ * Rule match confidence score (0.5-0.74)
3726
+ */
3727
+ confidence: number;
3728
+ /**
3729
+ * Matched rule information
3730
+ */
3731
+ matchedRule: {
3732
+ [key: string]: unknown;
3733
+ };
3734
+ /**
3735
+ * Suggested accounts from the rule
3736
+ */
3737
+ suggestedAccounts: {
3738
+ [key: string]: unknown;
3739
+ };
3740
+ /**
3741
+ * Alternative rules that also match
3742
+ */
3743
+ alternatives: unknown[];
3744
+ /**
3745
+ * Human-readable reasons for the match
3746
+ */
3747
+ reasons: Array<string>;
3748
+ };
3749
+
3750
+ export type NlpAccountConfirmationDataDto = {
3751
+ /**
3752
+ * The invalid account name
3753
+ */
3754
+ invalidAccount: string;
3755
+ /**
3756
+ * Suggested replacement account
3757
+ */
3758
+ suggestedAccount: string;
3759
+ /**
3760
+ * Similar accounts for user selection
3761
+ */
3762
+ similarAccounts: Array<string>;
3763
+ /**
3764
+ * Error message explaining the issue
3765
+ */
3766
+ errorMessage: string;
3767
+ /**
3768
+ * Transaction context for reference
3769
+ */
3770
+ transactionContext: {
3771
+ [key: string]: unknown;
3772
+ };
3773
+ };
3774
+
3775
+ export type NlpSuggestedPayeeDto = {
3776
+ /**
3777
+ * Payee ID
3778
+ */
3779
+ id: string;
3780
+ /**
3781
+ * Payee name
3782
+ */
3783
+ name: string;
3784
+ /**
3785
+ * Payee category
3786
+ */
3787
+ category?: string;
3788
+ /**
3789
+ * Source of the payee
3790
+ */
3791
+ source?: 'user' | 'global';
3792
+ /**
3793
+ * PayeeProfile ID (if matched from global)
3794
+ */
3795
+ payeeProfileId?: string;
3796
+ };
3797
+
3798
+ /**
3799
+ * Source of the payee
3800
+ */
3801
+ export type source = 'user' | 'global';
3802
+
3803
+ export type NlpAlternativePayeeDto = {
3804
+ /**
3805
+ * Payee ID
3806
+ */
3807
+ id: string;
3808
+ /**
3809
+ * Payee name
3810
+ */
3811
+ name: string;
3812
+ /**
3813
+ * Similarity score (0-1)
3814
+ */
3815
+ similarity: number;
3816
+ };
3817
+
3818
+ export type NlpPayeeConfirmationDataDto = {
3819
+ /**
3820
+ * Confidence score for the payee match (0-1)
3821
+ */
3822
+ confidence: number;
3823
+ /**
3824
+ * Original payee string from user input
3825
+ */
3826
+ originalPayee: string;
3827
+ /**
3828
+ * Suggested payee to use (null when no similar payees found)
3829
+ */
3830
+ suggestedPayee?: NlpSuggestedPayeeDto | null;
3831
+ /**
3832
+ * Similarity score between original and suggested (0-1)
3833
+ */
3834
+ similarity: number;
3835
+ /**
3836
+ * Alternative payee options
3837
+ */
3838
+ alternatives: Array<NlpAlternativePayeeDto>;
3839
+ /**
3840
+ * Human-readable reasons for the match
3841
+ */
3842
+ reasons: Array<string>;
3843
+ };
3844
+
3845
+ export type RecurringMatchInfoDto = {
3846
+ /**
3847
+ * Expected transaction ID
3848
+ */
3849
+ expectedId: string;
3850
+ /**
3851
+ * Recurring rule ID
3852
+ */
3853
+ ruleId: string;
3854
+ /**
3855
+ * Rule name for display
3856
+ */
3857
+ ruleName: string;
3858
+ /**
3859
+ * Rule icon
3860
+ */
3861
+ ruleIcon?: string;
3862
+ /**
3863
+ * Expected date (YYYY-MM-DD)
3864
+ */
3865
+ expectedDate: string;
3866
+ /**
3867
+ * Expected amount
3868
+ */
3869
+ expectedAmount: number;
3870
+ /**
3871
+ * Match confidence score (0-1)
3872
+ */
3873
+ confidence: number;
3874
+ /**
3875
+ * Whether auto-matched (confidence >= 0.82)
3876
+ */
3877
+ isAutoMatched: boolean;
3878
+ };
3879
+
3880
+ export type NlpSuggestedAccountDto = {
3881
+ /**
3882
+ * Suggested account path
3883
+ */
3884
+ account: string;
3885
+ /**
3886
+ * Confidence score for this suggestion (0-1)
3887
+ */
3888
+ confidence?: number;
3889
+ };
3890
+
3891
+ export type NlpSuggestedAccountsDto = {
3892
+ /**
3893
+ * Source account suggestion (where money comes from). For expense: asset/liability account. For income: income account.
3894
+ */
3895
+ source?: NlpSuggestedAccountDto;
3896
+ /**
3897
+ * Destination account suggestion (where money goes to). For expense: expense account. For income: asset/liability account.
3898
+ */
3899
+ destination?: NlpSuggestedAccountDto;
3900
+ };
3901
+
3902
+ export type NlpDefaultAccountsDto = {
3903
+ /**
3904
+ * Default asset account
3905
+ */
3906
+ asset: string;
3907
+ /**
3908
+ * Default expense account
3909
+ */
3910
+ expense: string;
3911
+ /**
3912
+ * Default income account
3913
+ */
3914
+ income: string;
3915
+ /**
3916
+ * Default liability account
3917
+ */
3918
+ liability: string;
3919
+ };
3920
+
3921
+ export type NlpResponseDto = {
3922
+ /**
3923
+ * Response status
3924
+ */
3925
+ status: 'success' | 'pending' | 'error';
3926
+ /**
3927
+ * Action taken or requested
3928
+ */
3929
+ action:
3930
+ | 'created'
3931
+ | 'ask'
3932
+ | 'confirm'
3933
+ | 'confirm_duplicate'
3934
+ | 'confirm_rule'
3935
+ | 'confirm_account'
3936
+ | 'confirm_payee'
3937
+ | 'cancel';
3938
+ /**
3939
+ * Transaction intent detected by EntityRouter (v6.0: 5 core intents). Frontend uses this to render scenario-specific form fields.
3940
+ */
3941
+ intent?: 'expense' | 'asset' | 'income' | 'liability' | 'equity';
3942
+ /**
3943
+ * Asset sub-type (only present when intent is "asset"). Determines which asset-related form to render.
3944
+ */
3945
+ assetSubType?: 'transfer' | 'banking' | 'investment';
3946
+ /**
3947
+ * Liability sub-type (only present when intent is "liability"). borrow: borrowing money (Liabilities → Assets), repay: repaying debt (Assets → Liabilities).
3948
+ */
3949
+ liabilitySubType?: 'borrow' | 'repay';
3950
+ /**
3951
+ * Equity sub-type (only present when intent is "equity"). opening: account opening balance (Equity → Assets), adjustment: balance correction.
3952
+ */
3953
+ equitySubType?: 'opening' | 'adjustment';
3954
+ /**
3955
+ * Payment source for expense transactions (v6.1). Indicates whether payment comes from asset or liability account. Only present when intent is "expense".
3956
+ */
3957
+ paymentSource?: 'asset' | 'liability';
3958
+ /**
3959
+ * Liability account type hint for credit card/BNPL spending (v6.1). Only present when paymentSource is "liability". Values: CreditCard, Huabei, Baitiao
3960
+ */
3961
+ liabilityHint?: string;
3962
+ /**
3963
+ * Human-readable message (for ask or error actions). Deprecated: Use messageKey for i18n support.
3964
+ * @deprecated
3965
+ */
3966
+ message?: string;
3967
+ /**
3968
+ * i18n message key for frontend translation. Use this instead of message for internationalization support.
3969
+ */
3970
+ messageKey?: string;
3971
+ /**
3972
+ * Parameters for message interpolation. Used with messageKey for dynamic values in translated messages.
3973
+ */
3974
+ messageParams?: {
3975
+ [key: string]: unknown;
3976
+ };
3977
+ /**
3978
+ * Session ID for multi-turn dialogue. Must be included in subsequent requests to continue the conversation.
3979
+ */
3980
+ sessionId?: string;
3981
+ /**
3982
+ * Which slot is waiting for user input
3983
+ */
3984
+ waitingFor?: string;
3985
+ /**
3986
+ * Created transaction info (for created action)
3987
+ */
3988
+ transaction?: NlpTransactionInfoDto;
3989
+ /**
3990
+ * Parsed data for confirmation (when action is "confirm"). Contains extracted fields that user should verify before transaction creation.
3991
+ */
3992
+ parsedData?: NlpParsedDataDto;
3993
+ /**
3994
+ * Duplicate detection data (when action is "confirm_duplicate"). Contains information about potential duplicate transaction for user confirmation.
3995
+ */
3996
+ duplicateData?: NlpDuplicateConfirmationDataDto;
3997
+ /**
3998
+ * Rule match data (when action is "confirm_rule"). Contains information about medium-confidence rule match for user confirmation.
3999
+ */
4000
+ ruleData?: NlpRuleConfirmationDataDto;
4001
+ /**
4002
+ * Account validation data (when action is "confirm_account"). Contains information about invalid account for user correction.
4003
+ */
4004
+ accountData?: NlpAccountConfirmationDataDto;
4005
+ /**
4006
+ * Payee confirmation data (when action is "confirm_payee"). Contains information about medium/low confidence payee match for user confirmation.
4007
+ */
4008
+ payeeData?: NlpPayeeConfirmationDataDto;
4009
+ /**
4010
+ * Overall confidence score (0-1)
4011
+ */
4012
+ confidence?: number;
4013
+ /**
4014
+ * Confidence threshold for automatic creation (default: 0.75). When confidence < threshold, action will be "confirm" requiring user verification.
4015
+ */
4016
+ confidenceThreshold?: number;
4017
+ /**
4018
+ * Recurring transaction match info (when action is "created"). Contains match details when transaction matches a pending expected transaction.
4019
+ */
4020
+ recurringMatch?: RecurringMatchInfoDto;
4021
+ /**
4022
+ * Recurring rule creation suggestion (when action is "created"). Contains suggestion to create a recurring rule based on detected patterns. Only present when no existing rule matched and similar historical transactions were found.
4023
+ */
4024
+ recurringSuggestion?: RecurringSuggestionDto;
4025
+ /**
4026
+ * Suggested accounts for this transaction. Contains recommended source and destination accounts based on the detected intent and rules.
4027
+ */
4028
+ suggestedAccounts?: NlpSuggestedAccountsDto;
4029
+ /**
4030
+ * Default accounts for the user/region. These are fallback accounts used when no specific suggestion is available.
4031
+ */
4032
+ defaultAccounts?: NlpDefaultAccountsDto;
4033
+ };
4034
+
4035
+ /**
4036
+ * Response status
4037
+ */
4038
+ export type status4 = 'success' | 'pending' | 'error';
4039
+
4040
+ /**
4041
+ * Action taken or requested
4042
+ */
4043
+ export type action2 =
4044
+ | 'created'
4045
+ | 'ask'
4046
+ | 'confirm'
4047
+ | 'confirm_duplicate'
4048
+ | 'confirm_rule'
4049
+ | 'confirm_account'
4050
+ | 'confirm_payee'
4051
+ | 'cancel';
4052
+
4053
+ /**
4054
+ * Transaction intent detected by EntityRouter (v6.0: 5 core intents). Frontend uses this to render scenario-specific form fields.
4055
+ */
4056
+ export type intent = 'expense' | 'asset' | 'income' | 'liability' | 'equity';
4057
+
4058
+ /**
4059
+ * Asset sub-type (only present when intent is "asset"). Determines which asset-related form to render.
4060
+ */
4061
+ export type assetSubType = 'transfer' | 'banking' | 'investment';
4062
+
4063
+ /**
4064
+ * Liability sub-type (only present when intent is "liability"). borrow: borrowing money (Liabilities → Assets), repay: repaying debt (Assets → Liabilities).
4065
+ */
4066
+ export type liabilitySubType = 'borrow' | 'repay';
4067
+
4068
+ /**
4069
+ * Equity sub-type (only present when intent is "equity"). opening: account opening balance (Equity → Assets), adjustment: balance correction.
4070
+ */
4071
+ export type equitySubType = 'opening' | 'adjustment';
4072
+
3488
4073
  export type BalanceByCurrencyDto = {
3489
4074
  /**
3490
4075
  * ISO 4217 currency code
@@ -3704,7 +4289,7 @@ export type AccountItemWithAssetClassDto = {
3704
4289
  /**
3705
4290
  * ADR-0105 classification provenance (holding level always; account level only on FALLBACK)
3706
4291
  */
3707
- export type source =
4292
+ export type source2 =
3708
4293
  | 'USER_META'
3709
4294
  | 'FIAT_CURRENCY'
3710
4295
  | 'OPENBB_MAPPING'
@@ -3983,7 +4568,7 @@ export type CurrentPriceDto = {
3983
4568
  /**
3984
4569
  * Price source
3985
4570
  */
3986
- export type source2 = 'USER_OVERRIDE' | 'OPENBB_EQUITY' | 'OPENBB_CURRENCY';
4571
+ export type source3 = 'USER_OVERRIDE' | 'OPENBB_EQUITY' | 'OPENBB_CURRENCY';
3987
4572
 
3988
4573
  export type FxRateDto = {
3989
4574
  from: string;
@@ -4357,7 +4942,7 @@ export type AccountControllerCreateData = {
4357
4942
  requestBody: CreateAccountDto;
4358
4943
  };
4359
4944
 
4360
- export type AccountControllerCreateResponse = unknown;
4945
+ export type AccountControllerCreateResponse = AccountResponseDto;
4361
4946
 
4362
4947
  export type AccountControllerFindAllData = {
4363
4948
  /**
@@ -4406,6 +4991,9 @@ export type AccountControllerFindOneData = {
4406
4991
  export type AccountControllerFindOneResponse = AccountResponseDto;
4407
4992
 
4408
4993
  export type AccountControllerUpdateData = {
4994
+ /**
4995
+ * Account UUID
4996
+ */
4409
4997
  id: string;
4410
4998
  /**
4411
4999
  * Region code for tenant context
@@ -4414,9 +5002,12 @@ export type AccountControllerUpdateData = {
4414
5002
  requestBody: UpdateAccountDto;
4415
5003
  };
4416
5004
 
4417
- export type AccountControllerUpdateResponse = unknown;
5005
+ export type AccountControllerUpdateResponse = AccountResponseDto;
4418
5006
 
4419
5007
  export type AccountControllerDeleteData = {
5008
+ /**
5009
+ * Account UUID
5010
+ */
4420
5011
  id: string;
4421
5012
  /**
4422
5013
  * Region code for tenant context
@@ -4424,9 +5015,12 @@ export type AccountControllerDeleteData = {
4424
5015
  region: 'cn' | 'us' | 'de' | 'gb';
4425
5016
  };
4426
5017
 
4427
- export type AccountControllerDeleteResponse = unknown;
5018
+ export type AccountControllerDeleteResponse = void;
4428
5019
 
4429
5020
  export type AccountControllerCloseData = {
5021
+ /**
5022
+ * Account UUID
5023
+ */
4430
5024
  id: string;
4431
5025
  /**
4432
5026
  * Region code for tenant context
@@ -4435,9 +5029,12 @@ export type AccountControllerCloseData = {
4435
5029
  requestBody: CloseAccountDto;
4436
5030
  };
4437
5031
 
4438
- export type AccountControllerCloseResponse = unknown;
5032
+ export type AccountControllerCloseResponse = AccountResponseDto;
4439
5033
 
4440
5034
  export type AccountControllerReopenData = {
5035
+ /**
5036
+ * Account UUID
5037
+ */
4441
5038
  id: string;
4442
5039
  /**
4443
5040
  * Region code for tenant context
@@ -4446,7 +5043,7 @@ export type AccountControllerReopenData = {
4446
5043
  requestBody: ReopenAccountDto;
4447
5044
  };
4448
5045
 
4449
- export type AccountControllerReopenResponse = unknown;
5046
+ export type AccountControllerReopenResponse = AccountResponseDto;
4450
5047
 
4451
5048
  export type AccountStandardsControllerGetTemplatesData = {
4452
5049
  /**
@@ -5528,13 +6125,25 @@ export type FileImportControllerIdentifyFileData = {
5528
6125
  export type FileImportControllerIdentifyFileResponse = IdentifyResultDto;
5529
6126
 
5530
6127
  export type FileImportControllerImportBeancountData = {
6128
+ /**
6129
+ * Beancount file to import
6130
+ */
6131
+ formData: FileImportDto;
5531
6132
  /**
5532
6133
  * Region code for tenant context
5533
6134
  */
5534
6135
  region: 'cn' | 'us' | 'de' | 'gb';
5535
6136
  };
5536
6137
 
5537
- export type FileImportControllerImportBeancountResponse = unknown;
6138
+ export type FileImportControllerImportBeancountResponse = {
6139
+ imported?: number;
6140
+ skipped?: number;
6141
+ failed?: number;
6142
+ accountsCreated?: number;
6143
+ errors?: Array<{
6144
+ [key: string]: unknown;
6145
+ }>;
6146
+ };
5538
6147
 
5539
6148
  export type ImporterConfigControllerGetConfigData = {
5540
6149
  /**
@@ -5622,7 +6231,18 @@ export type PlatformControllerDeleteData = {
5622
6231
  export type PlatformControllerDeleteResponse = void;
5623
6232
 
5624
6233
  export type ProviderSyncControllerSyncData = {
5625
- providerName: string;
6234
+ /**
6235
+ * Provider name
6236
+ */
6237
+ providerName:
6238
+ | 'plaid'
6239
+ | 'teller'
6240
+ | 'truelayer'
6241
+ | 'gocardless'
6242
+ | 'simplefin'
6243
+ | 'yodlee'
6244
+ | 'beancount-direct'
6245
+ | 'parsed-bill';
5626
6246
  /**
5627
6247
  * Region code for tenant context
5628
6248
  */
@@ -5630,7 +6250,7 @@ export type ProviderSyncControllerSyncData = {
5630
6250
  requestBody: ProviderSyncDto;
5631
6251
  };
5632
6252
 
5633
- export type ProviderSyncControllerSyncResponse = unknown;
6253
+ export type ProviderSyncControllerSyncResponse = ProviderSyncResponseDto;
5634
6254
 
5635
6255
  export type ProviderSyncControllerGetSupportedProvidersData = {
5636
6256
  /**
@@ -5693,10 +6313,13 @@ export type NlpControllerProcessNaturalLanguageData = {
5693
6313
  * Region code for tenant context
5694
6314
  */
5695
6315
  region: 'cn' | 'us' | 'de' | 'gb';
6316
+ /**
6317
+ * Natural language transaction input with optional session ID
6318
+ */
5696
6319
  requestBody: ProcessNlpDto;
5697
6320
  };
5698
6321
 
5699
- export type NlpControllerProcessNaturalLanguageResponse = unknown;
6322
+ export type NlpControllerProcessNaturalLanguageResponse = NlpResponseDto;
5700
6323
 
5701
6324
  export type NlpControllerClearSessionData = {
5702
6325
  /**
@@ -5990,7 +6613,14 @@ export type $OpenApiTs = {
5990
6613
  post: {
5991
6614
  req: AccountControllerCreateData;
5992
6615
  res: {
5993
- 201: unknown;
6616
+ /**
6617
+ * Account created successfully
6618
+ */
6619
+ 201: AccountResponseDto;
6620
+ /**
6621
+ * Account already exists
6622
+ */
6623
+ 409: unknown;
5994
6624
  };
5995
6625
  };
5996
6626
  get: {
@@ -6020,13 +6650,31 @@ export type $OpenApiTs = {
6020
6650
  put: {
6021
6651
  req: AccountControllerUpdateData;
6022
6652
  res: {
6023
- 200: unknown;
6653
+ /**
6654
+ * Account updated successfully
6655
+ */
6656
+ 200: AccountResponseDto;
6657
+ /**
6658
+ * Account not found
6659
+ */
6660
+ 404: unknown;
6024
6661
  };
6025
6662
  };
6026
6663
  delete: {
6027
6664
  req: AccountControllerDeleteData;
6028
6665
  res: {
6029
- 200: unknown;
6666
+ /**
6667
+ * Account deleted successfully
6668
+ */
6669
+ 204: void;
6670
+ /**
6671
+ * Account not found
6672
+ */
6673
+ 404: unknown;
6674
+ /**
6675
+ * Account has transactions and cannot be deleted
6676
+ */
6677
+ 409: unknown;
6030
6678
  };
6031
6679
  };
6032
6680
  };
@@ -6034,7 +6682,18 @@ export type $OpenApiTs = {
6034
6682
  post: {
6035
6683
  req: AccountControllerCloseData;
6036
6684
  res: {
6037
- 201: unknown;
6685
+ /**
6686
+ * Account closed successfully
6687
+ */
6688
+ 200: AccountResponseDto;
6689
+ /**
6690
+ * Account is already closed
6691
+ */
6692
+ 400: unknown;
6693
+ /**
6694
+ * Account not found
6695
+ */
6696
+ 404: unknown;
6038
6697
  };
6039
6698
  };
6040
6699
  };
@@ -6042,7 +6701,18 @@ export type $OpenApiTs = {
6042
6701
  post: {
6043
6702
  req: AccountControllerReopenData;
6044
6703
  res: {
6045
- 201: unknown;
6704
+ /**
6705
+ * Account reopened successfully
6706
+ */
6707
+ 200: AccountResponseDto;
6708
+ /**
6709
+ * Account is not closed
6710
+ */
6711
+ 400: unknown;
6712
+ /**
6713
+ * Account not found
6714
+ */
6715
+ 404: unknown;
6046
6716
  };
6047
6717
  };
6048
6718
  };
@@ -7378,7 +8048,22 @@ export type $OpenApiTs = {
7378
8048
  post: {
7379
8049
  req: FileImportControllerImportBeancountData;
7380
8050
  res: {
7381
- 201: unknown;
8051
+ /**
8052
+ * Beancount file imported successfully
8053
+ */
8054
+ 200: {
8055
+ imported?: number;
8056
+ skipped?: number;
8057
+ failed?: number;
8058
+ accountsCreated?: number;
8059
+ errors?: Array<{
8060
+ [key: string]: unknown;
8061
+ }>;
8062
+ };
8063
+ /**
8064
+ * Bad request - invalid file or no file uploaded
8065
+ */
8066
+ 400: ApiProblemResponseDto;
7382
8067
  };
7383
8068
  };
7384
8069
  };
@@ -7509,7 +8194,22 @@ export type $OpenApiTs = {
7509
8194
  post: {
7510
8195
  req: ProviderSyncControllerSyncData;
7511
8196
  res: {
7512
- 201: unknown;
8197
+ /**
8198
+ * Sync completed successfully
8199
+ */
8200
+ 200: ProviderSyncResponseDto;
8201
+ /**
8202
+ * Invalid request data
8203
+ */
8204
+ 400: unknown;
8205
+ /**
8206
+ * Missing or invalid authentication
8207
+ */
8208
+ 401: unknown;
8209
+ /**
8210
+ * Provider not supported
8211
+ */
8212
+ 404: unknown;
7513
8213
  };
7514
8214
  };
7515
8215
  };
@@ -7588,7 +8288,18 @@ export type $OpenApiTs = {
7588
8288
  post: {
7589
8289
  req: NlpControllerProcessNaturalLanguageData;
7590
8290
  res: {
7591
- 201: unknown;
8291
+ /**
8292
+ * NLP processing result - either created transaction or asking for more info
8293
+ */
8294
+ 200: NlpResponseDto;
8295
+ /**
8296
+ * Invalid input
8297
+ */
8298
+ 400: unknown;
8299
+ /**
8300
+ * Unauthorized
8301
+ */
8302
+ 401: unknown;
7592
8303
  };
7593
8304
  };
7594
8305
  };