@firela/api-types 0.0.0-canary.e6edf4ac → 0.0.0-canary.e7253df6
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 +175 -120
- package/dist/index.d.ts +175 -120
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/schemas.gen.ts +106 -11
- package/src/generated/services.gen.ts +8 -8
- package/src/generated/types.gen.ts +17937 -119
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
|
|
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
|
|
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
|
@@ -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:
|
|
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:
|
|
@@ -525,7 +542,10 @@ export const $RegionConfigDto = {
|
|
|
525
542
|
},
|
|
526
543
|
locale: {
|
|
527
544
|
type: 'string',
|
|
528
|
-
example: 'de-DE'
|
|
545
|
+
example: 'de-DE',
|
|
546
|
+
pattern: '^[a-z]{2,8}-[A-Z]{2}$',
|
|
547
|
+
description:
|
|
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)"
|
|
529
549
|
}
|
|
530
550
|
},
|
|
531
551
|
required: ['currency', 'dateFormat', 'locale']
|
|
@@ -538,6 +558,12 @@ export const $RegionInfoDto = {
|
|
|
538
558
|
type: 'string',
|
|
539
559
|
example: 'de'
|
|
540
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
|
+
},
|
|
541
567
|
displayName: {
|
|
542
568
|
type: 'string',
|
|
543
569
|
example: 'Germany'
|
|
@@ -556,7 +582,7 @@ export const $RegionInfoDto = {
|
|
|
556
582
|
$ref: '#/components/schemas/RegionConfigDto'
|
|
557
583
|
}
|
|
558
584
|
},
|
|
559
|
-
required: ['code', 'displayName', 'chain', 'config']
|
|
585
|
+
required: ['code', 'open', 'displayName', 'chain', 'config']
|
|
560
586
|
} as const;
|
|
561
587
|
|
|
562
588
|
export const $RegionsMetadataResponseDto = {
|
|
@@ -1978,13 +2004,17 @@ export const $ReviewStatsDto = {
|
|
|
1978
2004
|
type: 'object',
|
|
1979
2005
|
description: 'Count by type'
|
|
1980
2006
|
},
|
|
2007
|
+
resolved: {
|
|
2008
|
+
type: 'number',
|
|
2009
|
+
description: 'Current count of reviews in RESOLVED status'
|
|
2010
|
+
},
|
|
1981
2011
|
oldestPending: {
|
|
1982
2012
|
format: 'date-time',
|
|
1983
2013
|
type: 'string',
|
|
1984
2014
|
description: 'Oldest pending review date'
|
|
1985
2015
|
}
|
|
1986
2016
|
},
|
|
1987
|
-
required: ['total', 'byType']
|
|
2017
|
+
required: ['total', 'byType', 'resolved']
|
|
1988
2018
|
} as const;
|
|
1989
2019
|
|
|
1990
2020
|
export const $DecisionOptionDto = {
|
|
@@ -2289,6 +2319,44 @@ export const $BatchResolveDto = {
|
|
|
2289
2319
|
required: ['reviewIds', 'action']
|
|
2290
2320
|
} as const;
|
|
2291
2321
|
|
|
2322
|
+
export const $BatchResolveItemDto = {
|
|
2323
|
+
type: 'object',
|
|
2324
|
+
properties: {
|
|
2325
|
+
reviewId: {
|
|
2326
|
+
type: 'string',
|
|
2327
|
+
description: 'Review item ID'
|
|
2328
|
+
},
|
|
2329
|
+
success: {
|
|
2330
|
+
type: 'boolean',
|
|
2331
|
+
description: 'Whether this item was resolved successfully'
|
|
2332
|
+
},
|
|
2333
|
+
resolutionId: {
|
|
2334
|
+
type: 'string',
|
|
2335
|
+
description:
|
|
2336
|
+
'Resolution ID for undo. Present only on successful items (failed items stay PENDING).'
|
|
2337
|
+
},
|
|
2338
|
+
messageKey: {
|
|
2339
|
+
type: 'string',
|
|
2340
|
+
description:
|
|
2341
|
+
'i18n message key for the per-item failure reason (e.g., review.payee.error.no_suggestion), mirroring the single-item resolve response. Present only on resolver rejections, not on unexpected errors.'
|
|
2342
|
+
},
|
|
2343
|
+
messageParams: {
|
|
2344
|
+
type: 'object',
|
|
2345
|
+
description:
|
|
2346
|
+
'Parameters for message interpolation (e.g., { name: "PayeeName" })',
|
|
2347
|
+
additionalProperties: {
|
|
2348
|
+
type: 'string'
|
|
2349
|
+
}
|
|
2350
|
+
},
|
|
2351
|
+
error: {
|
|
2352
|
+
type: 'string',
|
|
2353
|
+
description:
|
|
2354
|
+
'Diagnostic string: the messageKey on the resolver-rejection path; an i18n key mapped from the exception type on the unexpected-error path (#903, raw exception detail stays in server logs).'
|
|
2355
|
+
}
|
|
2356
|
+
},
|
|
2357
|
+
required: ['reviewId', 'success']
|
|
2358
|
+
} as const;
|
|
2359
|
+
|
|
2292
2360
|
export const $BatchResolveResultDto = {
|
|
2293
2361
|
type: 'object',
|
|
2294
2362
|
properties: {
|
|
@@ -2304,7 +2372,7 @@ export const $BatchResolveResultDto = {
|
|
|
2304
2372
|
description: 'Details for each item',
|
|
2305
2373
|
type: 'array',
|
|
2306
2374
|
items: {
|
|
2307
|
-
|
|
2375
|
+
$ref: '#/components/schemas/BatchResolveItemDto'
|
|
2308
2376
|
}
|
|
2309
2377
|
}
|
|
2310
2378
|
},
|
|
@@ -5204,9 +5272,23 @@ export const $CategoryCatalogEntryDto = {
|
|
|
5204
5272
|
items: {
|
|
5205
5273
|
type: 'string'
|
|
5206
5274
|
}
|
|
5275
|
+
},
|
|
5276
|
+
categoryAccounts: {
|
|
5277
|
+
description:
|
|
5278
|
+
"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.",
|
|
5279
|
+
example: [
|
|
5280
|
+
'Expenses:Utilities:Electricity',
|
|
5281
|
+
'Expenses:Utilities:Gas',
|
|
5282
|
+
'Expenses:Utilities:Internet',
|
|
5283
|
+
'Expenses:Utilities:Water'
|
|
5284
|
+
],
|
|
5285
|
+
type: 'array',
|
|
5286
|
+
items: {
|
|
5287
|
+
type: 'string'
|
|
5288
|
+
}
|
|
5207
5289
|
}
|
|
5208
5290
|
},
|
|
5209
|
-
required: ['slug', 'scenario', 'icon', 'regions']
|
|
5291
|
+
required: ['slug', 'scenario', 'icon', 'regions', 'categoryAccounts']
|
|
5210
5292
|
} as const;
|
|
5211
5293
|
|
|
5212
5294
|
export const $CategoryCatalogListResponseDto = {
|
|
@@ -5397,6 +5479,14 @@ export const $OnboardingAccountDto = {
|
|
|
5397
5479
|
description:
|
|
5398
5480
|
'Platform ID to bind the account to (references Platform.id); omit for unbound',
|
|
5399
5481
|
example: 'c98e5d4a-2f71-4a5a-bb3c-92c9f231d5e2'
|
|
5482
|
+
},
|
|
5483
|
+
displayName: {
|
|
5484
|
+
type: 'string',
|
|
5485
|
+
description:
|
|
5486
|
+
'User-set display name override (omit/null = keep the derived name)',
|
|
5487
|
+
nullable: true,
|
|
5488
|
+
maxLength: 50,
|
|
5489
|
+
example: 'Salary card'
|
|
5400
5490
|
}
|
|
5401
5491
|
},
|
|
5402
5492
|
required: ['path', 'currency']
|
|
@@ -6317,8 +6407,9 @@ export const $ClientParsedDataDto = {
|
|
|
6317
6407
|
},
|
|
6318
6408
|
category: {
|
|
6319
6409
|
type: 'string',
|
|
6320
|
-
description:
|
|
6321
|
-
|
|
6410
|
+
description:
|
|
6411
|
+
'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.',
|
|
6412
|
+
example: 'food'
|
|
6322
6413
|
},
|
|
6323
6414
|
incomeType: {
|
|
6324
6415
|
type: 'string',
|
|
@@ -6504,7 +6595,9 @@ export const $NlpParsedDataDto = {
|
|
|
6504
6595
|
},
|
|
6505
6596
|
category: {
|
|
6506
6597
|
type: 'string',
|
|
6507
|
-
description:
|
|
6598
|
+
description:
|
|
6599
|
+
'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.',
|
|
6600
|
+
example: 'food'
|
|
6508
6601
|
},
|
|
6509
6602
|
incomeType: {
|
|
6510
6603
|
type: 'string',
|
|
@@ -7753,7 +7846,8 @@ export const $AccountItemDto = {
|
|
|
7753
7846
|
},
|
|
7754
7847
|
displayName: {
|
|
7755
7848
|
type: 'string',
|
|
7756
|
-
description:
|
|
7849
|
+
description:
|
|
7850
|
+
'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)',
|
|
7757
7851
|
example: 'Savings'
|
|
7758
7852
|
},
|
|
7759
7853
|
balance: {
|
|
@@ -7925,7 +8019,8 @@ export const $AccountItemWithAssetClassDto = {
|
|
|
7925
8019
|
},
|
|
7926
8020
|
displayName: {
|
|
7927
8021
|
type: 'string',
|
|
7928
|
-
description:
|
|
8022
|
+
description:
|
|
8023
|
+
'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)',
|
|
7929
8024
|
example: 'Savings'
|
|
7930
8025
|
},
|
|
7931
8026
|
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
|
|
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 (
|
|
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
|
|
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
|