@lunch-money/v2-api-spec 2.11.0-preview.3 → 2.11.0-preview.4

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.
@@ -1914,37 +1914,6 @@ components:
1914
1914
  required:
1915
1915
  - balances
1916
1916
 
1917
- balanceHistoryUpdateErrorObject:
1918
- type: object
1919
- x-internal: true
1920
- additionalProperties: true
1921
- properties:
1922
- request_balances_index:
1923
- type: integer
1924
- format: int32
1925
- description: Zero-based index into the `balances` request array
1926
- message:
1927
- type: string
1928
- description: Error message describing why the row could not be updated
1929
- required:
1930
- - request_balances_index
1931
- - message
1932
-
1933
- upsertBalanceHistoryResponseObject:
1934
- type: object
1935
- x-internal: true
1936
- additionalProperties: false
1937
- properties:
1938
- updated_balance_history:
1939
- $ref: "#/components/schemas/balanceHistoryAccountObject"
1940
- errors:
1941
- type: array
1942
- items:
1943
- $ref: "#/components/schemas/balanceHistoryUpdateErrorObject"
1944
- required:
1945
- - updated_balance_history
1946
- - errors
1947
-
1948
1917
  updateBalanceHistoryDetailsRequestObject:
1949
1918
  type: object
1950
1919
  x-internal: true
@@ -6975,60 +6944,35 @@ paths:
6975
6944
  currency: usd
6976
6945
  to_base: 41500
6977
6946
  crypto_balance: null
6978
- partial success request:
6979
- value:
6980
- balances:
6981
- - date: "2026-03-01"
6982
- balance: "41500.0000"
6983
- - date: "2026-04-01"
6984
- balance: "41625.5000"
6985
- symbol: btc
6986
6947
  responses:
6987
6948
  "200":
6988
- description: One or more balance history entries were processed
6949
+ description: All balance history entries were upserted successfully
6989
6950
  content:
6990
6951
  application/json:
6991
6952
  schema:
6992
- $ref: "#/components/schemas/upsertBalanceHistoryResponseObject"
6953
+ $ref: "#/components/schemas/balanceHistoryAccountObject"
6993
6954
  examples:
6994
6955
  balances updated:
6995
6956
  value:
6996
- updated_balance_history:
6997
- source:
6998
- type: manual
6999
- manual_account_id: 119807
7000
- balances:
7001
- - id: 601
7002
- date: "2026-03-01"
7003
- balance: "41500.0000"
7004
- currency: usd
7005
- to_base: 41500
7006
- crypto_balance: null
7007
- - id: 602
7008
- date: "2026-04-01"
7009
- balance: "41625.5000"
7010
- currency: usd
7011
- to_base: 41625.5
7012
- crypto_balance: null
7013
- errors: []
7014
- partial success:
7015
- value:
7016
- updated_balance_history:
7017
- source:
7018
- type: manual
7019
- manual_account_id: 119807
7020
- balances:
7021
- - id: 601
7022
- date: "2026-03-01"
7023
- balance: "41500.0000"
7024
- currency: usd
7025
- to_base: 41500
7026
- crypto_balance: null
7027
- errors:
7028
- - request_balances_index: 1
7029
- message: "`symbol` may not be set when `account_type` is `manual` or `plaid`."
6957
+ source:
6958
+ type: manual
6959
+ manual_account_id: 119807
6960
+ balances:
6961
+ - id: 601
6962
+ date: "2026-03-01"
6963
+ balance: "41500.0000"
6964
+ currency: usd
6965
+ to_base: 41500
6966
+ crypto_balance: null
6967
+ - id: 602
6968
+ date: "2026-04-01"
6969
+ balance: "41625.5000"
6970
+ currency: usd
6971
+ to_base: 41625.5
6972
+ crypto_balance: null
7030
6973
  "400":
7031
- description: Bad Request
6974
+ description: Bad Request. The entire request is rejected if any row in
6975
+ `balances` fails validation; no rows are updated.
7032
6976
  content:
7033
6977
  application/json:
7034
6978
  schema:
@@ -7049,16 +6993,25 @@ paths:
7049
6993
  message: Request Validation Failure
7050
6994
  errors:
7051
6995
  - errMsg: "`date` must be the first day of a month."
6996
+ request_balances_index: 0
7052
6997
  future date:
7053
6998
  value:
7054
6999
  message: Request Validation Failure
7055
7000
  errors:
7056
7001
  - errMsg: "`date` must not be in the future."
7002
+ request_balances_index: 1
7057
7003
  crypto balance not allowed:
7058
7004
  value:
7059
7005
  message: Request Validation Failure
7060
7006
  errors:
7061
7007
  - errMsg: "`crypto_balance` may only be set when `account_type` is `crypto_manual` or `deleted`."
7008
+ request_balances_index: 0
7009
+ invalid row in bulk request:
7010
+ value:
7011
+ message: Request Validation Failure
7012
+ errors:
7013
+ - errMsg: "`symbol` may not be set when `account_type` is `manual` or `plaid`."
7014
+ request_balances_index: 1
7062
7015
  "401":
7063
7016
  $ref: "#/components/responses/unauthorizedToken"
7064
7017
  "404":
@@ -7280,62 +7233,36 @@ paths:
7280
7233
  - date: "2026-04-01"
7281
7234
  balance: "6500.0000"
7282
7235
  crypto_balance: "0.100020003000400050"
7283
- partial success request:
7284
- value:
7285
- balances:
7286
- - date: "2026-03-01"
7287
- balance: "6400.0000"
7288
- crypto_balance: "0.100020003000400050"
7289
- - date: "2026-04-01"
7290
- balance: "not-a-number"
7291
7236
  responses:
7292
7237
  "200":
7293
- description: One or more balance history entries were processed
7238
+ description: All balance history entries were upserted successfully
7294
7239
  content:
7295
7240
  application/json:
7296
7241
  schema:
7297
- $ref: "#/components/schemas/upsertBalanceHistoryResponseObject"
7242
+ $ref: "#/components/schemas/balanceHistoryAccountObject"
7298
7243
  examples:
7299
7244
  balances updated:
7300
7245
  value:
7301
- updated_balance_history:
7302
- source:
7303
- type: crypto_synced
7304
- crypto_synced_id: 33004
7305
- symbol: btc
7306
- balances:
7307
- - id: 604
7308
- date: "2026-03-01"
7309
- balance: "6400.0000"
7310
- currency: usd
7311
- to_base: 6400
7312
- crypto_balance: "0.100020003000400050"
7313
- - id: 605
7314
- date: "2026-04-01"
7315
- balance: "6500.0000"
7316
- currency: usd
7317
- to_base: 6500
7318
- crypto_balance: "0.100020003000400050"
7319
- errors: []
7320
- partial success:
7321
- value:
7322
- updated_balance_history:
7323
- source:
7324
- type: crypto_synced
7325
- crypto_synced_id: 33004
7326
- symbol: btc
7327
- balances:
7328
- - id: 604
7329
- date: "2026-03-01"
7330
- balance: "6400.0000"
7331
- currency: usd
7332
- to_base: 6400
7333
- crypto_balance: "0.100020003000400050"
7334
- errors:
7335
- - request_balances_index: 1
7336
- message: "`balance` must be a valid numeric string or number."
7246
+ source:
7247
+ type: crypto_synced
7248
+ crypto_synced_id: 33004
7249
+ symbol: btc
7250
+ balances:
7251
+ - id: 604
7252
+ date: "2026-03-01"
7253
+ balance: "6400.0000"
7254
+ currency: usd
7255
+ to_base: 6400
7256
+ crypto_balance: "0.100020003000400050"
7257
+ - id: 605
7258
+ date: "2026-04-01"
7259
+ balance: "6500.0000"
7260
+ currency: usd
7261
+ to_base: 6500
7262
+ crypto_balance: "0.100020003000400050"
7337
7263
  "400":
7338
- description: Bad Request
7264
+ description: Bad Request. The entire request is rejected if any row in
7265
+ `balances` fails validation; no rows are updated.
7339
7266
  content:
7340
7267
  application/json:
7341
7268
  schema:
@@ -7351,11 +7278,19 @@ paths:
7351
7278
  message: Request Validation Failure
7352
7279
  errors:
7353
7280
  - errMsg: "`date` must be the first day of a month."
7281
+ request_balances_index: 0
7354
7282
  future date:
7355
7283
  value:
7356
7284
  message: Request Validation Failure
7357
7285
  errors:
7358
7286
  - errMsg: "`date` must not be in the future."
7287
+ request_balances_index: 1
7288
+ invalid row in bulk request:
7289
+ value:
7290
+ message: Request Validation Failure
7291
+ errors:
7292
+ - errMsg: "`balance` must be a valid numeric string or number."
7293
+ request_balances_index: 1
7359
7294
  "401":
7360
7295
  $ref: "#/components/responses/unauthorizedToken"
7361
7296
  "404":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lunch-money/v2-api-spec",
3
- "version": "2.11.0-preview.3",
3
+ "version": "2.11.0-preview.4",
4
4
  "description": "OpenAPI specification and version history for the Lunch Money v2 API",
5
5
  "main": "lunch-money-api-v2.yaml",
6
6
  "files": [