@firela/api-types 0.0.0-canary.51e965dc → 0.0.0-canary.539c844c
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 +274 -329
- package/dist/index.d.ts +274 -329
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/schemas.gen.ts +195 -95
- package/src/generated/services.gen.ts +20 -15
- package/src/generated/types.gen.ts +18040 -334
|
@@ -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: {
|
|
@@ -197,7 +206,7 @@ export const $AccountResponseDto = {
|
|
|
197
206
|
}
|
|
198
207
|
},
|
|
199
208
|
platformId: {
|
|
200
|
-
type: '
|
|
209
|
+
type: 'string',
|
|
201
210
|
description: 'Platform ID (null if unbound)',
|
|
202
211
|
example: 'c98e5d4a-2f71-4a5a-bb3c-92c9f231d5e2'
|
|
203
212
|
},
|
|
@@ -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
|
},
|
|
@@ -2537,10 +2605,10 @@ export const $UpdatePayeeDto = {
|
|
|
2537
2605
|
meta: {
|
|
2538
2606
|
type: 'object',
|
|
2539
2607
|
description:
|
|
2540
|
-
'Metadata for extended information (location, notes, contact info, etc.)
|
|
2608
|
+
'Metadata for extended information (location, notes, contact info, etc.)',
|
|
2541
2609
|
example: {
|
|
2542
2610
|
location: 'Zhongguancun',
|
|
2543
|
-
note: '
|
|
2611
|
+
note: 'Near subway station',
|
|
2544
2612
|
favorite: true
|
|
2545
2613
|
}
|
|
2546
2614
|
},
|
|
@@ -3132,7 +3200,7 @@ export const $TimeSeriesPointDto = {
|
|
|
3132
3200
|
example: '500000.00'
|
|
3133
3201
|
},
|
|
3134
3202
|
change: {
|
|
3135
|
-
type: '
|
|
3203
|
+
type: 'string',
|
|
3136
3204
|
description: 'Change from previous point',
|
|
3137
3205
|
example: '5000.00'
|
|
3138
3206
|
},
|
|
@@ -3553,7 +3621,7 @@ export const $UserSettingsResponseDto = {
|
|
|
3553
3621
|
type: 'object',
|
|
3554
3622
|
properties: {
|
|
3555
3623
|
baseCurrency: {
|
|
3556
|
-
type: '
|
|
3624
|
+
type: 'string',
|
|
3557
3625
|
description:
|
|
3558
3626
|
'Stored base currency choice (ISO 4217) for net-worth/report aggregation. null = user never chose; aggregates fall back to the region default at display time (#713).',
|
|
3559
3627
|
example: 'USD',
|
|
@@ -3862,7 +3930,7 @@ export const $RecurringRuleResponseDto = {
|
|
|
3862
3930
|
description: 'Rule name'
|
|
3863
3931
|
},
|
|
3864
3932
|
icon: {
|
|
3865
|
-
type: '
|
|
3933
|
+
type: 'string',
|
|
3866
3934
|
description: 'Icon emoji'
|
|
3867
3935
|
},
|
|
3868
3936
|
frequency: {
|
|
@@ -3874,11 +3942,11 @@ export const $RecurringRuleResponseDto = {
|
|
|
3874
3942
|
description: 'Expected amount'
|
|
3875
3943
|
},
|
|
3876
3944
|
expectedDay: {
|
|
3877
|
-
type: '
|
|
3945
|
+
type: 'number',
|
|
3878
3946
|
description: 'Expected day of month'
|
|
3879
3947
|
},
|
|
3880
3948
|
customIntervalDays: {
|
|
3881
|
-
type: '
|
|
3949
|
+
type: 'number',
|
|
3882
3950
|
description: 'Custom interval in days'
|
|
3883
3951
|
},
|
|
3884
3952
|
currency: {
|
|
@@ -3886,7 +3954,7 @@ export const $RecurringRuleResponseDto = {
|
|
|
3886
3954
|
description: 'Currency code'
|
|
3887
3955
|
},
|
|
3888
3956
|
matchPayeePattern: {
|
|
3889
|
-
type: '
|
|
3957
|
+
type: 'string',
|
|
3890
3958
|
description: 'Payee matching pattern'
|
|
3891
3959
|
},
|
|
3892
3960
|
matchAmountTolerance: {
|
|
@@ -3894,15 +3962,15 @@ export const $RecurringRuleResponseDto = {
|
|
|
3894
3962
|
description: 'Amount tolerance percentage'
|
|
3895
3963
|
},
|
|
3896
3964
|
defaultExpenseAccount: {
|
|
3897
|
-
type: '
|
|
3965
|
+
type: 'string',
|
|
3898
3966
|
description: 'Default expense account'
|
|
3899
3967
|
},
|
|
3900
3968
|
defaultPaymentAccount: {
|
|
3901
|
-
type: '
|
|
3969
|
+
type: 'string',
|
|
3902
3970
|
description: 'Default payment account'
|
|
3903
3971
|
},
|
|
3904
3972
|
defaultPayee: {
|
|
3905
|
-
type: '
|
|
3973
|
+
type: 'string',
|
|
3906
3974
|
description: 'Default payee'
|
|
3907
3975
|
},
|
|
3908
3976
|
isActive: {
|
|
@@ -3914,7 +3982,7 @@ export const $RecurringRuleResponseDto = {
|
|
|
3914
3982
|
description: 'Rule start date (YYYY-MM-DD)'
|
|
3915
3983
|
},
|
|
3916
3984
|
endDate: {
|
|
3917
|
-
type: '
|
|
3985
|
+
type: 'string',
|
|
3918
3986
|
description: 'Rule end date (YYYY-MM-DD)'
|
|
3919
3987
|
},
|
|
3920
3988
|
autoCreate: {
|
|
@@ -3922,7 +3990,7 @@ export const $RecurringRuleResponseDto = {
|
|
|
3922
3990
|
description: 'Auto-create transaction on expected date'
|
|
3923
3991
|
},
|
|
3924
3992
|
lastOccurrence: {
|
|
3925
|
-
type: '
|
|
3993
|
+
type: 'string',
|
|
3926
3994
|
description: 'Last matched occurrence date (YYYY-MM-DD)'
|
|
3927
3995
|
},
|
|
3928
3996
|
totalCount: {
|
|
@@ -4004,7 +4072,7 @@ export const $RecurringRuleWithStatsResponseDto = {
|
|
|
4004
4072
|
description: 'Rule name'
|
|
4005
4073
|
},
|
|
4006
4074
|
icon: {
|
|
4007
|
-
type: '
|
|
4075
|
+
type: 'string',
|
|
4008
4076
|
description: 'Icon emoji'
|
|
4009
4077
|
},
|
|
4010
4078
|
frequency: {
|
|
@@ -4016,11 +4084,11 @@ export const $RecurringRuleWithStatsResponseDto = {
|
|
|
4016
4084
|
description: 'Expected amount'
|
|
4017
4085
|
},
|
|
4018
4086
|
expectedDay: {
|
|
4019
|
-
type: '
|
|
4087
|
+
type: 'number',
|
|
4020
4088
|
description: 'Expected day of month'
|
|
4021
4089
|
},
|
|
4022
4090
|
customIntervalDays: {
|
|
4023
|
-
type: '
|
|
4091
|
+
type: 'number',
|
|
4024
4092
|
description: 'Custom interval in days'
|
|
4025
4093
|
},
|
|
4026
4094
|
currency: {
|
|
@@ -4028,7 +4096,7 @@ export const $RecurringRuleWithStatsResponseDto = {
|
|
|
4028
4096
|
description: 'Currency code'
|
|
4029
4097
|
},
|
|
4030
4098
|
matchPayeePattern: {
|
|
4031
|
-
type: '
|
|
4099
|
+
type: 'string',
|
|
4032
4100
|
description: 'Payee matching pattern'
|
|
4033
4101
|
},
|
|
4034
4102
|
matchAmountTolerance: {
|
|
@@ -4036,15 +4104,15 @@ export const $RecurringRuleWithStatsResponseDto = {
|
|
|
4036
4104
|
description: 'Amount tolerance percentage'
|
|
4037
4105
|
},
|
|
4038
4106
|
defaultExpenseAccount: {
|
|
4039
|
-
type: '
|
|
4107
|
+
type: 'string',
|
|
4040
4108
|
description: 'Default expense account'
|
|
4041
4109
|
},
|
|
4042
4110
|
defaultPaymentAccount: {
|
|
4043
|
-
type: '
|
|
4111
|
+
type: 'string',
|
|
4044
4112
|
description: 'Default payment account'
|
|
4045
4113
|
},
|
|
4046
4114
|
defaultPayee: {
|
|
4047
|
-
type: '
|
|
4115
|
+
type: 'string',
|
|
4048
4116
|
description: 'Default payee'
|
|
4049
4117
|
},
|
|
4050
4118
|
isActive: {
|
|
@@ -4056,7 +4124,7 @@ export const $RecurringRuleWithStatsResponseDto = {
|
|
|
4056
4124
|
description: 'Rule start date (YYYY-MM-DD)'
|
|
4057
4125
|
},
|
|
4058
4126
|
endDate: {
|
|
4059
|
-
type: '
|
|
4127
|
+
type: 'string',
|
|
4060
4128
|
description: 'Rule end date (YYYY-MM-DD)'
|
|
4061
4129
|
},
|
|
4062
4130
|
autoCreate: {
|
|
@@ -4064,7 +4132,7 @@ export const $RecurringRuleWithStatsResponseDto = {
|
|
|
4064
4132
|
description: 'Auto-create transaction on expected date'
|
|
4065
4133
|
},
|
|
4066
4134
|
lastOccurrence: {
|
|
4067
|
-
type: '
|
|
4135
|
+
type: 'string',
|
|
4068
4136
|
description: 'Last matched occurrence date (YYYY-MM-DD)'
|
|
4069
4137
|
},
|
|
4070
4138
|
totalCount: {
|
|
@@ -4090,7 +4158,7 @@ export const $RecurringRuleWithStatsResponseDto = {
|
|
|
4090
4158
|
description: 'Number of overdue expected transactions'
|
|
4091
4159
|
},
|
|
4092
4160
|
nextExpectedDate: {
|
|
4093
|
-
type: '
|
|
4161
|
+
type: 'string',
|
|
4094
4162
|
description: 'Next expected date (YYYY-MM-DD)'
|
|
4095
4163
|
},
|
|
4096
4164
|
totalAmount: {
|
|
@@ -4106,11 +4174,11 @@ export const $RecurringRuleWithStatsResponseDto = {
|
|
|
4106
4174
|
description: 'Number of matched transactions'
|
|
4107
4175
|
},
|
|
4108
4176
|
firstDate: {
|
|
4109
|
-
type: '
|
|
4177
|
+
type: 'string',
|
|
4110
4178
|
description: 'First matched transaction date (YYYY-MM-DD)'
|
|
4111
4179
|
},
|
|
4112
4180
|
lastDate: {
|
|
4113
|
-
type: '
|
|
4181
|
+
type: 'string',
|
|
4114
4182
|
description: 'Last matched transaction date (YYYY-MM-DD)'
|
|
4115
4183
|
},
|
|
4116
4184
|
variance: {
|
|
@@ -4151,7 +4219,7 @@ export const $UpdateRecurringRuleDto = {
|
|
|
4151
4219
|
properties: {
|
|
4152
4220
|
name: {
|
|
4153
4221
|
type: 'string',
|
|
4154
|
-
description: 'Rule name',
|
|
4222
|
+
description: 'Rule name (unique per user)',
|
|
4155
4223
|
maxLength: 100
|
|
4156
4224
|
},
|
|
4157
4225
|
icon: {
|
|
@@ -4174,7 +4242,7 @@ export const $UpdateRecurringRuleDto = {
|
|
|
4174
4242
|
},
|
|
4175
4243
|
expectedAmount: {
|
|
4176
4244
|
type: 'number',
|
|
4177
|
-
description: 'Expected amount',
|
|
4245
|
+
description: 'Expected amount (positive number)',
|
|
4178
4246
|
minimum: 0
|
|
4179
4247
|
},
|
|
4180
4248
|
expectedDay: {
|
|
@@ -4183,11 +4251,6 @@ export const $UpdateRecurringRuleDto = {
|
|
|
4183
4251
|
minimum: 1,
|
|
4184
4252
|
maximum: 31
|
|
4185
4253
|
},
|
|
4186
|
-
customIntervalDays: {
|
|
4187
|
-
type: 'number',
|
|
4188
|
-
description: 'Custom interval in days',
|
|
4189
|
-
minimum: 1
|
|
4190
|
-
},
|
|
4191
4254
|
currency: {
|
|
4192
4255
|
type: 'string',
|
|
4193
4256
|
description: 'Currency code',
|
|
@@ -4195,41 +4258,48 @@ export const $UpdateRecurringRuleDto = {
|
|
|
4195
4258
|
},
|
|
4196
4259
|
matchPayeePattern: {
|
|
4197
4260
|
type: 'string',
|
|
4198
|
-
description: 'Payee matching pattern',
|
|
4261
|
+
description: 'Payee matching pattern (supports wildcards)',
|
|
4199
4262
|
maxLength: 200
|
|
4200
4263
|
},
|
|
4201
4264
|
matchAmountTolerance: {
|
|
4202
4265
|
type: 'number',
|
|
4203
4266
|
description: 'Amount tolerance percentage (0-1)',
|
|
4267
|
+
default: 0.075,
|
|
4204
4268
|
minimum: 0,
|
|
4205
4269
|
maximum: 1
|
|
4206
4270
|
},
|
|
4207
4271
|
defaultExpenseAccount: {
|
|
4208
4272
|
type: 'string',
|
|
4209
|
-
description: 'Default expense account',
|
|
4273
|
+
description: 'Default expense account for auto-create',
|
|
4210
4274
|
maxLength: 200
|
|
4211
4275
|
},
|
|
4212
4276
|
defaultPaymentAccount: {
|
|
4213
4277
|
type: 'string',
|
|
4214
|
-
description: 'Default payment account',
|
|
4278
|
+
description: 'Default payment account for auto-create',
|
|
4215
4279
|
maxLength: 200
|
|
4216
4280
|
},
|
|
4217
4281
|
defaultPayee: {
|
|
4218
4282
|
type: 'string',
|
|
4219
|
-
description: 'Default payee',
|
|
4283
|
+
description: 'Default payee for auto-create',
|
|
4220
4284
|
maxLength: 200
|
|
4221
4285
|
},
|
|
4222
4286
|
autoCreate: {
|
|
4223
4287
|
type: 'boolean',
|
|
4224
|
-
description: 'Auto-create transaction'
|
|
4225
|
-
|
|
4226
|
-
isActive: {
|
|
4227
|
-
type: 'boolean',
|
|
4228
|
-
description: 'Rule active status'
|
|
4288
|
+
description: 'Auto-create transaction when expected date arrives',
|
|
4289
|
+
default: false
|
|
4229
4290
|
},
|
|
4230
4291
|
endDate: {
|
|
4231
4292
|
type: 'string',
|
|
4232
4293
|
description: 'Rule end date (ISO format)'
|
|
4294
|
+
},
|
|
4295
|
+
customIntervalDays: {
|
|
4296
|
+
type: 'number',
|
|
4297
|
+
description: 'Custom interval in days',
|
|
4298
|
+
minimum: 1
|
|
4299
|
+
},
|
|
4300
|
+
isActive: {
|
|
4301
|
+
type: 'boolean',
|
|
4302
|
+
description: 'Rule active status'
|
|
4233
4303
|
}
|
|
4234
4304
|
}
|
|
4235
4305
|
} as const;
|
|
@@ -4242,7 +4312,7 @@ export const $ExpectedTransactionRuleDto = {
|
|
|
4242
4312
|
description: 'Rule name'
|
|
4243
4313
|
},
|
|
4244
4314
|
icon: {
|
|
4245
|
-
type: '
|
|
4315
|
+
type: 'string',
|
|
4246
4316
|
description: 'Rule icon'
|
|
4247
4317
|
},
|
|
4248
4318
|
frequency: {
|
|
@@ -4285,15 +4355,15 @@ export const $ExpectedTransactionResponseDto = {
|
|
|
4285
4355
|
description: 'Status (PENDING, COMPLETED, SKIPPED)'
|
|
4286
4356
|
},
|
|
4287
4357
|
matchedTransactionId: {
|
|
4288
|
-
type: '
|
|
4358
|
+
type: 'string',
|
|
4289
4359
|
description: 'Matched transaction ID'
|
|
4290
4360
|
},
|
|
4291
4361
|
matchedAt: {
|
|
4292
|
-
type: '
|
|
4362
|
+
type: 'string',
|
|
4293
4363
|
description: 'Match timestamp (ISO 8601)'
|
|
4294
4364
|
},
|
|
4295
4365
|
matchConfidence: {
|
|
4296
|
-
type: '
|
|
4366
|
+
type: 'number',
|
|
4297
4367
|
description: 'Match confidence score (0-1)'
|
|
4298
4368
|
},
|
|
4299
4369
|
isOverdue: {
|
|
@@ -5077,7 +5147,8 @@ export const $UpdateTransactionRuleDto = {
|
|
|
5077
5147
|
},
|
|
5078
5148
|
matchLogic: {
|
|
5079
5149
|
type: 'string',
|
|
5080
|
-
enum: ['OR', 'AND']
|
|
5150
|
+
enum: ['OR', 'AND'],
|
|
5151
|
+
default: 'OR'
|
|
5081
5152
|
},
|
|
5082
5153
|
amountMin: {
|
|
5083
5154
|
type: 'number',
|
|
@@ -5091,13 +5162,10 @@ export const $UpdateTransactionRuleDto = {
|
|
|
5091
5162
|
},
|
|
5092
5163
|
priority: {
|
|
5093
5164
|
type: 'number',
|
|
5165
|
+
default: 50,
|
|
5094
5166
|
minimum: 0,
|
|
5095
5167
|
maximum: 1000
|
|
5096
5168
|
},
|
|
5097
|
-
enabled: {
|
|
5098
|
-
type: 'boolean',
|
|
5099
|
-
description: 'Enable or disable the rule'
|
|
5100
|
-
},
|
|
5101
5169
|
additionalTags: {
|
|
5102
5170
|
items: {
|
|
5103
5171
|
type: 'array'
|
|
@@ -5107,6 +5175,10 @@ export const $UpdateTransactionRuleDto = {
|
|
|
5107
5175
|
},
|
|
5108
5176
|
additionalMetadata: {
|
|
5109
5177
|
type: 'object'
|
|
5178
|
+
},
|
|
5179
|
+
enabled: {
|
|
5180
|
+
type: 'boolean',
|
|
5181
|
+
description: 'Enable or disable the rule'
|
|
5110
5182
|
}
|
|
5111
5183
|
}
|
|
5112
5184
|
} as const;
|
|
@@ -5200,9 +5272,23 @@ export const $CategoryCatalogEntryDto = {
|
|
|
5200
5272
|
items: {
|
|
5201
5273
|
type: 'string'
|
|
5202
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
|
+
}
|
|
5203
5289
|
}
|
|
5204
5290
|
},
|
|
5205
|
-
required: ['slug', 'scenario', 'icon', 'regions']
|
|
5291
|
+
required: ['slug', 'scenario', 'icon', 'regions', 'categoryAccounts']
|
|
5206
5292
|
} as const;
|
|
5207
5293
|
|
|
5208
5294
|
export const $CategoryCatalogListResponseDto = {
|
|
@@ -5393,6 +5479,14 @@ export const $OnboardingAccountDto = {
|
|
|
5393
5479
|
description:
|
|
5394
5480
|
'Platform ID to bind the account to (references Platform.id); omit for unbound',
|
|
5395
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'
|
|
5396
5490
|
}
|
|
5397
5491
|
},
|
|
5398
5492
|
required: ['path', 'currency']
|
|
@@ -6313,8 +6407,9 @@ export const $ClientParsedDataDto = {
|
|
|
6313
6407
|
},
|
|
6314
6408
|
category: {
|
|
6315
6409
|
type: 'string',
|
|
6316
|
-
description:
|
|
6317
|
-
|
|
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'
|
|
6318
6413
|
},
|
|
6319
6414
|
incomeType: {
|
|
6320
6415
|
type: 'string',
|
|
@@ -6500,7 +6595,9 @@ export const $NlpParsedDataDto = {
|
|
|
6500
6595
|
},
|
|
6501
6596
|
category: {
|
|
6502
6597
|
type: 'string',
|
|
6503
|
-
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'
|
|
6504
6601
|
},
|
|
6505
6602
|
incomeType: {
|
|
6506
6603
|
type: 'string',
|
|
@@ -7585,7 +7682,8 @@ export const $UpdatePlatformDto = {
|
|
|
7585
7682
|
},
|
|
7586
7683
|
isActive: {
|
|
7587
7684
|
type: 'boolean',
|
|
7588
|
-
description: 'Whether the platform is active'
|
|
7685
|
+
description: 'Whether the platform is active',
|
|
7686
|
+
default: true
|
|
7589
7687
|
}
|
|
7590
7688
|
}
|
|
7591
7689
|
} as const;
|
|
@@ -7748,7 +7846,8 @@ export const $AccountItemDto = {
|
|
|
7748
7846
|
},
|
|
7749
7847
|
displayName: {
|
|
7750
7848
|
type: 'string',
|
|
7751
|
-
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)',
|
|
7752
7851
|
example: 'Savings'
|
|
7753
7852
|
},
|
|
7754
7853
|
balance: {
|
|
@@ -7920,7 +8019,8 @@ export const $AccountItemWithAssetClassDto = {
|
|
|
7920
8019
|
},
|
|
7921
8020
|
displayName: {
|
|
7922
8021
|
type: 'string',
|
|
7923
|
-
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)',
|
|
7924
8024
|
example: 'Savings'
|
|
7925
8025
|
},
|
|
7926
8026
|
balance: {
|
|
@@ -8406,7 +8506,7 @@ export const $MonetaryDto = {
|
|
|
8406
8506
|
example: 'USD'
|
|
8407
8507
|
},
|
|
8408
8508
|
baseCcyEquivalent: {
|
|
8409
|
-
type: '
|
|
8509
|
+
type: 'string',
|
|
8410
8510
|
description: 'Converted to user base currency (Decimal string)',
|
|
8411
8511
|
example: '21600',
|
|
8412
8512
|
nullable: true
|
|
@@ -8482,13 +8582,13 @@ export const $HoldingPnlRowDto = {
|
|
|
8482
8582
|
example: 'Assets:US:Broker:AAPL'
|
|
8483
8583
|
},
|
|
8484
8584
|
accountCcy: {
|
|
8485
|
-
type: '
|
|
8585
|
+
type: 'string',
|
|
8486
8586
|
description: 'Account settlement currency (ISO 4217), from cost currency',
|
|
8487
8587
|
nullable: true,
|
|
8488
8588
|
example: 'USD'
|
|
8489
8589
|
},
|
|
8490
8590
|
brokerType: {
|
|
8491
|
-
type: '
|
|
8591
|
+
type: 'string',
|
|
8492
8592
|
description: 'Broker type derived from Platform.type',
|
|
8493
8593
|
nullable: true,
|
|
8494
8594
|
example: 'broker'
|
|
@@ -8509,7 +8609,7 @@ export const $HoldingPnlRowDto = {
|
|
|
8509
8609
|
example: 'EQUITY'
|
|
8510
8610
|
},
|
|
8511
8611
|
assetSubClass: {
|
|
8512
|
-
type: '
|
|
8612
|
+
type: 'string',
|
|
8513
8613
|
nullable: true,
|
|
8514
8614
|
example: 'STOCK'
|
|
8515
8615
|
},
|
|
@@ -8556,14 +8656,14 @@ export const $HoldingPnlRowDto = {
|
|
|
8556
8656
|
]
|
|
8557
8657
|
},
|
|
8558
8658
|
unrealizedPnlBase: {
|
|
8559
|
-
type: '
|
|
8659
|
+
type: 'string',
|
|
8560
8660
|
description:
|
|
8561
8661
|
'Unrealized P&L in base currency (Decimal string); null when any FX/price missing',
|
|
8562
8662
|
nullable: true,
|
|
8563
8663
|
example: '6000'
|
|
8564
8664
|
},
|
|
8565
8665
|
unrealizedPnlPct: {
|
|
8566
|
-
type: '
|
|
8666
|
+
type: 'string',
|
|
8567
8667
|
description: 'Unrealized P&L % (Decimal string)',
|
|
8568
8668
|
nullable: true,
|
|
8569
8669
|
example: '25'
|
|
@@ -8587,7 +8687,7 @@ export const $HoldingPnlRowDto = {
|
|
|
8587
8687
|
]
|
|
8588
8688
|
},
|
|
8589
8689
|
pctOfInvestedAssets: {
|
|
8590
|
-
type: '
|
|
8690
|
+
type: 'string',
|
|
8591
8691
|
description:
|
|
8592
8692
|
'Share of invested assets % (Decimal string); only for invested chartTokens',
|
|
8593
8693
|
nullable: true,
|
|
@@ -8632,15 +8732,15 @@ export const $HoldingPnlWarningDto = {
|
|
|
8632
8732
|
]
|
|
8633
8733
|
},
|
|
8634
8734
|
symbol: {
|
|
8635
|
-
type: '
|
|
8735
|
+
type: 'string',
|
|
8636
8736
|
nullable: true
|
|
8637
8737
|
},
|
|
8638
8738
|
accountId: {
|
|
8639
|
-
type: '
|
|
8739
|
+
type: 'string',
|
|
8640
8740
|
nullable: true
|
|
8641
8741
|
},
|
|
8642
8742
|
currency: {
|
|
8643
|
-
type: '
|
|
8743
|
+
type: 'string',
|
|
8644
8744
|
nullable: true
|
|
8645
8745
|
}
|
|
8646
8746
|
},
|
|
@@ -8922,35 +9022,35 @@ export const $SymbolSearchResultDto = {
|
|
|
8922
9022
|
example: 'AAPL'
|
|
8923
9023
|
},
|
|
8924
9024
|
name: {
|
|
8925
|
-
type: '
|
|
9025
|
+
type: 'string',
|
|
8926
9026
|
example: 'Apple Inc.',
|
|
8927
9027
|
nullable: true
|
|
8928
9028
|
},
|
|
8929
9029
|
exchange: {
|
|
8930
|
-
type: '
|
|
9030
|
+
type: 'string',
|
|
8931
9031
|
example: 'US',
|
|
8932
9032
|
nullable: true
|
|
8933
9033
|
},
|
|
8934
9034
|
assetType: {
|
|
8935
|
-
type: '
|
|
9035
|
+
type: 'string',
|
|
8936
9036
|
description: 'OpenBB asset_type (e.g. stock, etf)',
|
|
8937
9037
|
example: 'stock',
|
|
8938
9038
|
nullable: true
|
|
8939
9039
|
},
|
|
8940
9040
|
assetClass: {
|
|
8941
|
-
type: '
|
|
9041
|
+
type: 'string',
|
|
8942
9042
|
description: 'IGN asset class (region.types.ts ASSET_CLASSES)',
|
|
8943
9043
|
example: 'EQUITY',
|
|
8944
9044
|
nullable: true
|
|
8945
9045
|
},
|
|
8946
9046
|
assetSubClass: {
|
|
8947
|
-
type: '
|
|
9047
|
+
type: 'string',
|
|
8948
9048
|
description: 'IGN asset sub-class (region.types.ts ASSET_SUB_CLASSES)',
|
|
8949
9049
|
example: 'STOCK',
|
|
8950
9050
|
nullable: true
|
|
8951
9051
|
},
|
|
8952
9052
|
currency: {
|
|
8953
|
-
type: '
|
|
9053
|
+
type: 'string',
|
|
8954
9054
|
description: 'Trading currency (extra_data or inferred from exchange)',
|
|
8955
9055
|
example: 'USD',
|
|
8956
9056
|
nullable: true
|
|
@@ -8967,90 +9067,90 @@ export const $SymbolQuoteDto = {
|
|
|
8967
9067
|
example: 'AAPL'
|
|
8968
9068
|
},
|
|
8969
9069
|
name: {
|
|
8970
|
-
type: '
|
|
9070
|
+
type: 'string',
|
|
8971
9071
|
example: 'Apple Inc.',
|
|
8972
9072
|
nullable: true
|
|
8973
9073
|
},
|
|
8974
9074
|
exchange: {
|
|
8975
|
-
type: '
|
|
9075
|
+
type: 'string',
|
|
8976
9076
|
example: 'US',
|
|
8977
9077
|
nullable: true
|
|
8978
9078
|
},
|
|
8979
9079
|
assetType: {
|
|
8980
|
-
type: '
|
|
9080
|
+
type: 'string',
|
|
8981
9081
|
description: 'OpenBB asset_type',
|
|
8982
9082
|
example: 'stock',
|
|
8983
9083
|
nullable: true
|
|
8984
9084
|
},
|
|
8985
9085
|
assetClass: {
|
|
8986
|
-
type: '
|
|
9086
|
+
type: 'string',
|
|
8987
9087
|
description: 'IGN asset class',
|
|
8988
9088
|
example: 'EQUITY',
|
|
8989
9089
|
nullable: true
|
|
8990
9090
|
},
|
|
8991
9091
|
assetSubClass: {
|
|
8992
|
-
type: '
|
|
9092
|
+
type: 'string',
|
|
8993
9093
|
description: 'IGN asset sub-class',
|
|
8994
9094
|
example: 'STOCK',
|
|
8995
9095
|
nullable: true
|
|
8996
9096
|
},
|
|
8997
9097
|
currency: {
|
|
8998
|
-
type: '
|
|
9098
|
+
type: 'string',
|
|
8999
9099
|
description: 'Trading currency (extra_data or inferred from exchange)',
|
|
9000
9100
|
example: 'USD',
|
|
9001
9101
|
nullable: true
|
|
9002
9102
|
},
|
|
9003
9103
|
price: {
|
|
9004
|
-
type: '
|
|
9104
|
+
type: 'string',
|
|
9005
9105
|
description: 'Latest price (Decimal string)',
|
|
9006
9106
|
example: '189.84',
|
|
9007
9107
|
nullable: true
|
|
9008
9108
|
},
|
|
9009
9109
|
priceDate: {
|
|
9010
|
-
type: '
|
|
9110
|
+
type: 'string',
|
|
9011
9111
|
description: 'Date the price was observed (ISO yyyy-MM-dd)',
|
|
9012
9112
|
example: '2026-08-05',
|
|
9013
9113
|
nullable: true
|
|
9014
9114
|
},
|
|
9015
9115
|
changePercent: {
|
|
9016
|
-
type: '
|
|
9116
|
+
type: 'number',
|
|
9017
9117
|
description:
|
|
9018
9118
|
'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.',
|
|
9019
9119
|
example: 1.7,
|
|
9020
9120
|
nullable: true
|
|
9021
9121
|
},
|
|
9022
9122
|
prevClose: {
|
|
9023
|
-
type: '
|
|
9123
|
+
type: 'string',
|
|
9024
9124
|
description: 'Previous close (Decimal string)',
|
|
9025
9125
|
nullable: true
|
|
9026
9126
|
},
|
|
9027
9127
|
open: {
|
|
9028
|
-
type: '
|
|
9128
|
+
type: 'string',
|
|
9029
9129
|
description: 'Day open (Decimal string)',
|
|
9030
9130
|
nullable: true
|
|
9031
9131
|
},
|
|
9032
9132
|
high: {
|
|
9033
|
-
type: '
|
|
9133
|
+
type: 'string',
|
|
9034
9134
|
description: 'Day high (Decimal string)',
|
|
9035
9135
|
nullable: true
|
|
9036
9136
|
},
|
|
9037
9137
|
low: {
|
|
9038
|
-
type: '
|
|
9138
|
+
type: 'string',
|
|
9039
9139
|
description: 'Day low (Decimal string)',
|
|
9040
9140
|
nullable: true
|
|
9041
9141
|
},
|
|
9042
9142
|
volume: {
|
|
9043
|
-
type: '
|
|
9143
|
+
type: 'string',
|
|
9044
9144
|
description: 'Day volume (Decimal string)',
|
|
9045
9145
|
nullable: true
|
|
9046
9146
|
},
|
|
9047
9147
|
yearHigh: {
|
|
9048
|
-
type: '
|
|
9148
|
+
type: 'string',
|
|
9049
9149
|
description: '52-week high (Decimal string)',
|
|
9050
9150
|
nullable: true
|
|
9051
9151
|
},
|
|
9052
9152
|
yearLow: {
|
|
9053
|
-
type: '
|
|
9153
|
+
type: 'string',
|
|
9054
9154
|
description: '52-week low (Decimal string)',
|
|
9055
9155
|
nullable: true
|
|
9056
9156
|
}
|