@firela/api-types 0.0.0-canary.b8b25324 → 0.0.0-canary.bd624c6e

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -3980,7 +3980,7 @@ type NlpSuggestedAccountDto = {
3980
3980
  */
3981
3981
  account: string;
3982
3982
  /**
3983
- * Confidence score for this suggestion (0-1)
3983
+ * Confidence score for this suggestion (0-1). Present = predicted (confirm/confirm_rule/confirm_account); omitted = actual persisted account (created). (#586)
3984
3984
  */
3985
3985
  confidence?: number;
3986
3986
  };
@@ -3996,21 +3996,21 @@ type NlpSuggestedAccountsDto = {
3996
3996
  };
3997
3997
  type NlpDefaultAccountsDto = {
3998
3998
  /**
3999
- * Default asset account
3999
+ * Default OPEN asset account (MRU when multiple), or null when none/ambiguous
4000
4000
  */
4001
- asset: string;
4001
+ asset: string | null;
4002
4002
  /**
4003
- * Default expense account
4003
+ * Default OPEN expense account (MRU when multiple), or null when none/ambiguous
4004
4004
  */
4005
- expense: string;
4005
+ expense: string | null;
4006
4006
  /**
4007
- * Default income account
4007
+ * Default OPEN income account (MRU when multiple), or null when none/ambiguous
4008
4008
  */
4009
- income: string;
4009
+ income: string | null;
4010
4010
  /**
4011
- * Default liability account
4011
+ * Default OPEN liability account (MRU when multiple), or null when none/ambiguous
4012
4012
  */
4013
- liability: string;
4013
+ liability: string | null;
4014
4014
  };
4015
4015
  type NlpResponseDto = {
4016
4016
  /**
@@ -4109,11 +4109,11 @@ type NlpResponseDto = {
4109
4109
  */
4110
4110
  recurringSuggestion?: RecurringSuggestionDto;
4111
4111
  /**
4112
- * Suggested accounts for this transaction. Contains recommended source and destination accounts based on the detected intent and rules.
4112
+ * 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.
4113
4113
  */
4114
4114
  suggestedAccounts?: NlpSuggestedAccountsDto;
4115
4115
  /**
4116
- * Default accounts for the user/region. These are fallback accounts used when no specific suggestion is available.
4116
+ * Default fallback accounts for the user/region (#586). v1 returns universal constants; per-user personalization is planned.
4117
4117
  */
4118
4118
  defaultAccounts?: NlpDefaultAccountsDto;
4119
4119
  };
@@ -6726,7 +6726,7 @@ type $OpenApiTs = {
6726
6726
  */
6727
6727
  404: unknown;
6728
6728
  /**
6729
- * Account has transactions and cannot be deleted
6729
+ * Account has active transactions and cannot be deleted
6730
6730
  */
6731
6731
  409: unknown;
6732
6732
  };
@@ -9115,7 +9115,7 @@ declare class BeanAccountsService {
9115
9115
  static accountControllerUpdate(data: AccountControllerUpdateData): CancelablePromise<AccountControllerUpdateResponse>;
9116
9116
  /**
9117
9117
  * Delete account
9118
- * Deletes an account (only if no transactions)
9118
+ * Deletes an account (only if no active transactions; voided/superseded residual postings are cleaned up)
9119
9119
  * @param data The data for the request.
9120
9120
  * @param data.id Account UUID
9121
9121
  * @param data.region Region code for tenant context
package/dist/index.d.ts CHANGED
@@ -3980,7 +3980,7 @@ type NlpSuggestedAccountDto = {
3980
3980
  */
3981
3981
  account: string;
3982
3982
  /**
3983
- * Confidence score for this suggestion (0-1)
3983
+ * Confidence score for this suggestion (0-1). Present = predicted (confirm/confirm_rule/confirm_account); omitted = actual persisted account (created). (#586)
3984
3984
  */
3985
3985
  confidence?: number;
3986
3986
  };
@@ -3996,21 +3996,21 @@ type NlpSuggestedAccountsDto = {
3996
3996
  };
3997
3997
  type NlpDefaultAccountsDto = {
3998
3998
  /**
3999
- * Default asset account
3999
+ * Default OPEN asset account (MRU when multiple), or null when none/ambiguous
4000
4000
  */
4001
- asset: string;
4001
+ asset: string | null;
4002
4002
  /**
4003
- * Default expense account
4003
+ * Default OPEN expense account (MRU when multiple), or null when none/ambiguous
4004
4004
  */
4005
- expense: string;
4005
+ expense: string | null;
4006
4006
  /**
4007
- * Default income account
4007
+ * Default OPEN income account (MRU when multiple), or null when none/ambiguous
4008
4008
  */
4009
- income: string;
4009
+ income: string | null;
4010
4010
  /**
4011
- * Default liability account
4011
+ * Default OPEN liability account (MRU when multiple), or null when none/ambiguous
4012
4012
  */
4013
- liability: string;
4013
+ liability: string | null;
4014
4014
  };
4015
4015
  type NlpResponseDto = {
4016
4016
  /**
@@ -4109,11 +4109,11 @@ type NlpResponseDto = {
4109
4109
  */
4110
4110
  recurringSuggestion?: RecurringSuggestionDto;
4111
4111
  /**
4112
- * Suggested accounts for this transaction. Contains recommended source and destination accounts based on the detected intent and rules.
4112
+ * 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.
4113
4113
  */
4114
4114
  suggestedAccounts?: NlpSuggestedAccountsDto;
4115
4115
  /**
4116
- * Default accounts for the user/region. These are fallback accounts used when no specific suggestion is available.
4116
+ * Default fallback accounts for the user/region (#586). v1 returns universal constants; per-user personalization is planned.
4117
4117
  */
4118
4118
  defaultAccounts?: NlpDefaultAccountsDto;
4119
4119
  };
@@ -6726,7 +6726,7 @@ type $OpenApiTs = {
6726
6726
  */
6727
6727
  404: unknown;
6728
6728
  /**
6729
- * Account has transactions and cannot be deleted
6729
+ * Account has active transactions and cannot be deleted
6730
6730
  */
6731
6731
  409: unknown;
6732
6732
  };
@@ -9115,7 +9115,7 @@ declare class BeanAccountsService {
9115
9115
  static accountControllerUpdate(data: AccountControllerUpdateData): CancelablePromise<AccountControllerUpdateResponse>;
9116
9116
  /**
9117
9117
  * Delete account
9118
- * Deletes an account (only if no transactions)
9118
+ * Deletes an account (only if no active transactions; voided/superseded residual postings are cleaned up)
9119
9119
  * @param data The data for the request.
9120
9120
  * @param data.id Account UUID
9121
9121
  * @param data.region Region code for tenant context
package/dist/index.js CHANGED
@@ -556,7 +556,7 @@ var BeanAccountsService = class {
556
556
  }
557
557
  /**
558
558
  * Delete account
559
- * Deletes an account (only if no transactions)
559
+ * Deletes an account (only if no active transactions; voided/superseded residual postings are cleaned up)
560
560
  * @param data The data for the request.
561
561
  * @param data.id Account UUID
562
562
  * @param data.region Region code for tenant context
@@ -573,7 +573,7 @@ var BeanAccountsService = class {
573
573
  },
574
574
  errors: {
575
575
  404: "Account not found",
576
- 409: "Account has transactions and cannot be deleted"
576
+ 409: "Account has active transactions and cannot be deleted"
577
577
  }
578
578
  });
579
579
  }
package/dist/index.mjs CHANGED
@@ -524,7 +524,7 @@ var BeanAccountsService = class {
524
524
  }
525
525
  /**
526
526
  * Delete account
527
- * Deletes an account (only if no transactions)
527
+ * Deletes an account (only if no active transactions; voided/superseded residual postings are cleaned up)
528
528
  * @param data The data for the request.
529
529
  * @param data.id Account UUID
530
530
  * @param data.region Region code for tenant context
@@ -541,7 +541,7 @@ var BeanAccountsService = class {
541
541
  },
542
542
  errors: {
543
543
  404: "Account not found",
544
- 409: "Account has transactions and cannot be deleted"
544
+ 409: "Account has active transactions and cannot be deleted"
545
545
  }
546
546
  });
547
547
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firela/api-types",
3
- "version": "0.0.0-canary.b8b25324",
3
+ "version": "0.0.0-canary.bd624c6e",
4
4
  "description": "TypeScript types generated from IGN OpenAPI specification",
5
5
  "license": "MIT",
6
6
  "author": "FireLa Team",
@@ -6497,7 +6497,8 @@ export const $NlpSuggestedAccountDto = {
6497
6497
  },
6498
6498
  confidence: {
6499
6499
  type: 'number',
6500
- description: 'Confidence score for this suggestion (0-1)',
6500
+ description:
6501
+ 'Confidence score for this suggestion (0-1). Present = predicted (confirm/confirm_rule/confirm_account); omitted = actual persisted account (created). (#586)',
6501
6502
  example: 0.9
6502
6503
  }
6503
6504
  },
@@ -6533,23 +6534,31 @@ export const $NlpDefaultAccountsDto = {
6533
6534
  properties: {
6534
6535
  asset: {
6535
6536
  type: 'string',
6536
- description: 'Default asset account',
6537
- example: 'Assets:Checking'
6537
+ description:
6538
+ 'Default OPEN asset account (MRU when multiple), or null when none/ambiguous',
6539
+ example: 'Assets:Checking',
6540
+ nullable: true
6538
6541
  },
6539
6542
  expense: {
6540
6543
  type: 'string',
6541
- description: 'Default expense account',
6542
- example: 'Expenses:Uncategorized'
6544
+ description:
6545
+ 'Default OPEN expense account (MRU when multiple), or null when none/ambiguous',
6546
+ example: 'Expenses:Food:Coffee',
6547
+ nullable: true
6543
6548
  },
6544
6549
  income: {
6545
6550
  type: 'string',
6546
- description: 'Default income account',
6547
- example: 'Income:Uncategorized'
6551
+ description:
6552
+ 'Default OPEN income account (MRU when multiple), or null when none/ambiguous',
6553
+ example: 'Income:Salary',
6554
+ nullable: true
6548
6555
  },
6549
6556
  liability: {
6550
6557
  type: 'string',
6551
- description: 'Default liability account',
6552
- example: 'Liabilities:CreditCard'
6558
+ description:
6559
+ 'Default OPEN liability account (MRU when multiple), or null when none/ambiguous',
6560
+ example: 'Liabilities:CreditCard',
6561
+ nullable: true
6553
6562
  }
6554
6563
  },
6555
6564
  required: ['asset', 'expense', 'income', 'liability']
@@ -6737,7 +6746,7 @@ export const $NlpResponseDto = {
6737
6746
  },
6738
6747
  suggestedAccounts: {
6739
6748
  description:
6740
- 'Suggested accounts for this transaction. Contains recommended source and destination accounts based on the detected intent and rules.',
6749
+ '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.',
6741
6750
  allOf: [
6742
6751
  {
6743
6752
  $ref: '#/components/schemas/NlpSuggestedAccountsDto'
@@ -6746,7 +6755,7 @@ export const $NlpResponseDto = {
6746
6755
  },
6747
6756
  defaultAccounts: {
6748
6757
  description:
6749
- 'Default accounts for the user/region. These are fallback accounts used when no specific suggestion is available.',
6758
+ 'Default fallback accounts for the user/region (#586). v1 returns universal constants; per-user personalization is planned.',
6750
6759
  allOf: [
6751
6760
  {
6752
6761
  $ref: '#/components/schemas/NlpDefaultAccountsDto'
@@ -411,7 +411,7 @@ export class BeanAccountsService {
411
411
 
412
412
  /**
413
413
  * Delete account
414
- * Deletes an account (only if no transactions)
414
+ * Deletes an account (only if no active transactions; voided/superseded residual postings are cleaned up)
415
415
  * @param data The data for the request.
416
416
  * @param data.id Account UUID
417
417
  * @param data.region Region code for tenant context
@@ -430,7 +430,7 @@ export class BeanAccountsService {
430
430
  },
431
431
  errors: {
432
432
  404: 'Account not found',
433
- 409: 'Account has transactions and cannot be deleted'
433
+ 409: 'Account has active transactions and cannot be deleted'
434
434
  }
435
435
  });
436
436
  }
@@ -4519,7 +4519,7 @@ export type NlpSuggestedAccountDto = {
4519
4519
  */
4520
4520
  account: string;
4521
4521
  /**
4522
- * 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)
4523
4523
  */
4524
4524
  confidence?: number;
4525
4525
  };
@@ -4537,21 +4537,21 @@ export type NlpSuggestedAccountsDto = {
4537
4537
 
4538
4538
  export type NlpDefaultAccountsDto = {
4539
4539
  /**
4540
- * Default asset account
4540
+ * Default OPEN asset account (MRU when multiple), or null when none/ambiguous
4541
4541
  */
4542
- asset: string;
4542
+ asset: string | null;
4543
4543
  /**
4544
- * Default expense account
4544
+ * Default OPEN expense account (MRU when multiple), or null when none/ambiguous
4545
4545
  */
4546
- expense: string;
4546
+ expense: string | null;
4547
4547
  /**
4548
- * Default income account
4548
+ * Default OPEN income account (MRU when multiple), or null when none/ambiguous
4549
4549
  */
4550
- income: string;
4550
+ income: string | null;
4551
4551
  /**
4552
- * Default liability account
4552
+ * Default OPEN liability account (MRU when multiple), or null when none/ambiguous
4553
4553
  */
4554
- liability: string;
4554
+ liability: string | null;
4555
4555
  };
4556
4556
 
4557
4557
  export type NlpResponseDto = {
@@ -4660,11 +4660,11 @@ export type NlpResponseDto = {
4660
4660
  */
4661
4661
  recurringSuggestion?: RecurringSuggestionDto;
4662
4662
  /**
4663
- * 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.
4664
4664
  */
4665
4665
  suggestedAccounts?: NlpSuggestedAccountsDto;
4666
4666
  /**
4667
- * 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.
4668
4668
  */
4669
4669
  defaultAccounts?: NlpDefaultAccountsDto;
4670
4670
  };
@@ -7781,7 +7781,7 @@ export type $OpenApiTs = {
7781
7781
  */
7782
7782
  404: unknown;
7783
7783
  /**
7784
- * Account has transactions and cannot be deleted
7784
+ * Account has active transactions and cannot be deleted
7785
7785
  */
7786
7786
  409: unknown;
7787
7787
  };