@firela/api-types 0.0.0-canary.09445b4b → 0.0.0-canary.096683d8

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.js CHANGED
@@ -484,7 +484,7 @@ var BeanAccountsService = class {
484
484
  * @param data.type Filter by account type
485
485
  * @param data.status Filter by status
486
486
  * @param data.isCustom Filter by custom (user-created) accounts only
487
- * @param data.search Search term for account path
487
+ * @param data.search Search term matched against account path and user-set display name (case-insensitive)
488
488
  * @param data.limit Maximum number of results
489
489
  * @param data.offset Number of results to skip
490
490
  * @returns AccountListResponseDto Accounts retrieved successfully
package/dist/index.mjs CHANGED
@@ -452,7 +452,7 @@ var BeanAccountsService = class {
452
452
  * @param data.type Filter by account type
453
453
  * @param data.status Filter by status
454
454
  * @param data.isCustom Filter by custom (user-created) accounts only
455
- * @param data.search Search term for account path
455
+ * @param data.search Search term matched against account path and user-set display name (case-insensitive)
456
456
  * @param data.limit Maximum number of results
457
457
  * @param data.offset Number of results to skip
458
458
  * @returns AccountListResponseDto Accounts retrieved successfully
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firela/api-types",
3
- "version": "0.0.0-canary.09445b4b",
3
+ "version": "0.0.0-canary.096683d8",
4
4
  "description": "TypeScript types generated from IGN OpenAPI specification",
5
5
  "license": "MIT",
6
6
  "author": "FireLa Team",
@@ -51,6 +51,14 @@ export const $CreateAccountDto = {
51
51
  description: 'Icon identifier (overrides template)',
52
52
  example: 'bank-custom'
53
53
  },
54
+ displayName: {
55
+ type: 'string',
56
+ description:
57
+ 'User-set display name override (omit/null = keep the derived name)',
58
+ nullable: true,
59
+ maxLength: 50,
60
+ example: 'Salary card'
61
+ },
54
62
  openDirectiveMeta: {
55
63
  type: 'object',
56
64
  description:
@@ -181,7 +189,8 @@ export const $AccountResponseDto = {
181
189
  },
182
190
  displayName: {
183
191
  type: 'string',
184
- description: 'Localized display name (ADR-0114, read-time projection)',
192
+ description:
193
+ 'Display name with precedence: user-set name (#762) > ADR-0114 localized name > path leaf (read-time projection)',
185
194
  example: 'Checking'
186
195
  },
187
196
  icon: {
@@ -277,6 +286,14 @@ export const $UpdateAccountDto = {
277
286
  description: 'Icon identifier',
278
287
  example: 'bank-custom'
279
288
  },
289
+ displayName: {
290
+ type: 'string',
291
+ description:
292
+ 'User-set display name override (null = clear the override and fall back to the derived name, omit = unchanged)',
293
+ nullable: true,
294
+ maxLength: 50,
295
+ example: 'Salary card'
296
+ },
280
297
  openDirectiveMeta: {
281
298
  type: 'object',
282
299
  description:
@@ -528,7 +545,7 @@ export const $RegionConfigDto = {
528
545
  example: 'de-DE',
529
546
  pattern: '^[a-z]{2,8}-[A-Z]{2}$',
530
547
  description:
531
- "Region-qualified BCP-47 tag whose region subtag equals the region's own ISO 3166-1 code (e.g., ja-JP, zh-CN, en-HK)"
548
+ "Region-qualified BCP-47 tag whose region subtag equals the region's own ISO 3166-1 code (e.g., ja-JP, zh-CN, zh-HK)"
532
549
  }
533
550
  },
534
551
  required: ['currency', 'dateFormat', 'locale']
@@ -541,6 +558,12 @@ export const $RegionInfoDto = {
541
558
  type: 'string',
542
559
  example: 'de'
543
560
  },
561
+ open: {
562
+ type: 'boolean',
563
+ example: true,
564
+ description:
565
+ 'Whether the region is open (has a ready regional account template). Not-yet-open regions still return identity metadata and degrade to the universal-only catalog.'
566
+ },
544
567
  displayName: {
545
568
  type: 'string',
546
569
  example: 'Germany'
@@ -559,7 +582,7 @@ export const $RegionInfoDto = {
559
582
  $ref: '#/components/schemas/RegionConfigDto'
560
583
  }
561
584
  },
562
- required: ['code', 'displayName', 'chain', 'config']
585
+ required: ['code', 'open', 'displayName', 'chain', 'config']
563
586
  } as const;
564
587
 
565
588
  export const $RegionsMetadataResponseDto = {
@@ -1981,13 +2004,17 @@ export const $ReviewStatsDto = {
1981
2004
  type: 'object',
1982
2005
  description: 'Count by type'
1983
2006
  },
2007
+ resolved: {
2008
+ type: 'number',
2009
+ description: 'Current count of reviews in RESOLVED status'
2010
+ },
1984
2011
  oldestPending: {
1985
2012
  format: 'date-time',
1986
2013
  type: 'string',
1987
2014
  description: 'Oldest pending review date'
1988
2015
  }
1989
2016
  },
1990
- required: ['total', 'byType']
2017
+ required: ['total', 'byType', 'resolved']
1991
2018
  } as const;
1992
2019
 
1993
2020
  export const $DecisionOptionDto = {
@@ -5207,9 +5234,23 @@ export const $CategoryCatalogEntryDto = {
5207
5234
  items: {
5208
5235
  type: 'string'
5209
5236
  }
5237
+ },
5238
+ categoryAccounts: {
5239
+ description:
5240
+ "Beancount account paths (categoryAccount) of the region-enabled system rules whose categoryKeywords include this slug (#816). System rules only (public endpoint — user rules excluded); one-to-many by design (e.g. 'utilities' → Electricity/Water/Internet/Gas), sorted, [] when no rule maps the slug.",
5241
+ example: [
5242
+ 'Expenses:Utilities:Electricity',
5243
+ 'Expenses:Utilities:Gas',
5244
+ 'Expenses:Utilities:Internet',
5245
+ 'Expenses:Utilities:Water'
5246
+ ],
5247
+ type: 'array',
5248
+ items: {
5249
+ type: 'string'
5250
+ }
5210
5251
  }
5211
5252
  },
5212
- required: ['slug', 'scenario', 'icon', 'regions']
5253
+ required: ['slug', 'scenario', 'icon', 'regions', 'categoryAccounts']
5213
5254
  } as const;
5214
5255
 
5215
5256
  export const $CategoryCatalogListResponseDto = {
@@ -5400,6 +5441,14 @@ export const $OnboardingAccountDto = {
5400
5441
  description:
5401
5442
  'Platform ID to bind the account to (references Platform.id); omit for unbound',
5402
5443
  example: 'c98e5d4a-2f71-4a5a-bb3c-92c9f231d5e2'
5444
+ },
5445
+ displayName: {
5446
+ type: 'string',
5447
+ description:
5448
+ 'User-set display name override (omit/null = keep the derived name)',
5449
+ nullable: true,
5450
+ maxLength: 50,
5451
+ example: 'Salary card'
5403
5452
  }
5404
5453
  },
5405
5454
  required: ['path', 'currency']
@@ -6320,8 +6369,9 @@ export const $ClientParsedDataDto = {
6320
6369
  },
6321
6370
  category: {
6322
6371
  type: 'string',
6323
- description: 'Category slug',
6324
- example: 'food_restaurant'
6372
+ description:
6373
+ 'Category in canonical form (catalog slug or Stage-2 rule keyword token, ADR-0116) — echo back verbatim from parsedData.category. Foreign forms (locale display names, account paths) are rejected with nlp.category.invalid.',
6374
+ example: 'food'
6325
6375
  },
6326
6376
  incomeType: {
6327
6377
  type: 'string',
@@ -6507,7 +6557,9 @@ export const $NlpParsedDataDto = {
6507
6557
  },
6508
6558
  category: {
6509
6559
  type: 'string',
6510
- description: 'Category'
6560
+ description:
6561
+ 'Category in canonical form: a CATEGORY_CATALOG slug (GET /{region}/bean/categories) or a Stage-2 rule categoryKeywords token (ADR-0116 D2). Never a locale display name or a beancount account path. Echo back verbatim on confirm.',
6562
+ example: 'food'
6511
6563
  },
6512
6564
  incomeType: {
6513
6565
  type: 'string',
@@ -7756,7 +7808,8 @@ export const $AccountItemDto = {
7756
7808
  },
7757
7809
  displayName: {
7758
7810
  type: 'string',
7759
- description: 'Display name (last part of account path)',
7811
+ description:
7812
+ 'Display name: user-set name if provided (#762), else the ADR-0114 chain — request-locale catalog name, en pivot, then the last part of the account path (#771)',
7760
7813
  example: 'Savings'
7761
7814
  },
7762
7815
  balance: {
@@ -7928,7 +7981,8 @@ export const $AccountItemWithAssetClassDto = {
7928
7981
  },
7929
7982
  displayName: {
7930
7983
  type: 'string',
7931
- description: 'Display name (last part of account path)',
7984
+ description:
7985
+ 'Display name: user-set name if provided (#762), else the ADR-0114 chain — request-locale catalog name, en pivot, then the last part of the account path (#771)',
7932
7986
  example: 'Savings'
7933
7987
  },
7934
7988
  balance: {
@@ -337,7 +337,7 @@ export class BeanAccountsService {
337
337
  * @param data.type Filter by account type
338
338
  * @param data.status Filter by status
339
339
  * @param data.isCustom Filter by custom (user-created) accounts only
340
- * @param data.search Search term for account path
340
+ * @param data.search Search term matched against account path and user-set display name (case-insensitive)
341
341
  * @param data.limit Maximum number of results
342
342
  * @param data.offset Number of results to skip
343
343
  * @returns AccountListResponseDto Accounts retrieved successfully
@@ -533,9 +533,9 @@ export class BeanAccountsService {
533
533
  export class BeanAccountStandardsService {
534
534
  /**
535
535
  * Get account templates
536
- * Returns predefined account templates for a region. Supports filtering by account type and search term.
536
+ * Returns predefined account templates for a region. Supports filtering by account type and search term. Not-yet-open region codes return the universal-only catalog (#759).
537
537
  * @param data The data for the request.
538
- * @param data.region Region code (cn, us, de)
538
+ * @param data.region Region code (any ISO alpha-2; not-yet-open codes return the universal-only catalog)
539
539
  * @param data.type Filter by account type
540
540
  * @param data.search Search term for path, description, aliases, or localized display name
541
541
  * @returns AccountStandardListResponseDto Account templates retrieved successfully
@@ -561,7 +561,7 @@ export class BeanAccountStandardsService {
561
561
  * Get template metadata for an account path
562
562
  * Returns root type for a template path.
563
563
  * @param data The data for the request.
564
- * @param data.region Region code for tenant context
564
+ * @param data.region Region code for tenant context. Not-yet-open codes degrade to the universal-only catalog (#759)
565
565
  * @param data.path Account path to check
566
566
  * @returns TemplateMetadataResponseDto Template metadata retrieved successfully
567
567
  * @throws ApiError
@@ -583,9 +583,9 @@ export class BeanAccountStandardsService {
583
583
 
584
584
  /**
585
585
  * Get available regions with hierarchy
586
- * Returns supported regions with inheritance metadata
586
+ * Returns the full region catalog (every ISO 3166-1 entry) with an 'open' flag and inheritance metadata (#759)
587
587
  * @param data The data for the request.
588
- * @param data.region Region code for tenant context
588
+ * @param data.region Region code for tenant context. Not-yet-open codes degrade to the universal-only catalog (#759)
589
589
  * @returns RegionsMetadataResponseDto Regions metadata retrieved successfully
590
590
  * @throws ApiError
591
591
  */
@@ -2867,7 +2867,7 @@ export class BeanTransactionRulesService {
2867
2867
  export class BeanCategoryCatalogService {
2868
2868
  /**
2869
2869
  * List category catalog for a region
2870
- * Returns the region-scoped category slugs (expense/income/investment/banking/transfer/payment) for the NLP result picker. CN-exclusive payment instruments (huabei/baitiao) appear only under /cn.
2870
+ * Returns the region-scoped category slugs (expense/income/investment/banking/transfer/payment) for the NLP result picker, each with the categoryAccount paths the region-enabled system rules map it to (#816). CN-exclusive payment instruments (huabei/baitiao) appear only under /cn.
2871
2871
  * @param data The data for the request.
2872
2872
  * @param data.region Region code for tenant context
2873
2873
  * @param data.scenario Filter by scenario
@@ -3071,7 +3071,7 @@ export class OnboardingService {
3071
3071
  /**
3072
3072
  * Bootstrap core accounts + register asset accounts with opening balances (ADR-0113)
3073
3073
  * @param data The data for the request.
3074
- * @param data.region Region code for tenant context
3074
+ * @param data.region Region code for tenant context. Not-yet-open codes are accepted: the universal catalog backs onboarding regardless of region (#759)
3075
3075
  * @param data.requestBody
3076
3076
  * @returns unknown Onboarding bootstrap result.
3077
3077
  * @throws ApiError