@lerianstudio/matcher-mcp 4.5.0-beta.32 → 4.5.0-beta.34

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.
@@ -182,6 +182,11 @@ components:
182
182
  examples:
183
183
  - Bank wire fee adjustment
184
184
  type: string
185
+ direction:
186
+ description: "Direction of the entry: DEBIT explains a shortfall (moves the outstanding variance up, toward zero), CREDIT explains a surplus (moves it down)"
187
+ examples:
188
+ - DEBIT
189
+ type: string
185
190
  id:
186
191
  description: Unique identifier for the adjustment
187
192
  examples:
@@ -216,6 +221,7 @@ components:
216
221
  - id
217
222
  - contextId
218
223
  - type
224
+ - direction
219
225
  - amount
220
226
  - currency
221
227
  - description
@@ -2937,6 +2943,12 @@ components:
2937
2943
  - 524288
2938
2944
  format: int64
2939
2945
  type: integer
2946
+ contextId:
2947
+ description: Identifier of the reconciliation context this export was queued for (UUID).
2948
+ examples:
2949
+ - 550e8400-e29b-41d4-a716-446655440000
2950
+ format: uuid
2951
+ type: string
2940
2952
  createdAt:
2941
2953
  description: Timestamp when the job was created (RFC 3339, UTC).
2942
2954
  examples:
@@ -3025,6 +3037,7 @@ components:
3025
3037
  type: string
3026
3038
  required:
3027
3039
  - id
3040
+ - contextId
3028
3041
  - reportType
3029
3042
  - format
3030
3043
  - status
@@ -4357,6 +4370,41 @@ components:
4357
4370
  - requiredFields
4358
4371
  - createdAt
4359
4372
  type: object
4373
+ ListAdjustmentsResponse:
4374
+ additionalProperties: false
4375
+ properties:
4376
+ hasMore:
4377
+ examples:
4378
+ - true
4379
+ type: boolean
4380
+ items:
4381
+ description: Page of recorded adjustments
4382
+ items:
4383
+ $ref: "#/components/schemas/AdjustmentResponse"
4384
+ maxItems: 200
4385
+ type:
4386
+ - array
4387
+ - "null"
4388
+ limit:
4389
+ examples:
4390
+ - 20
4391
+ format: int64
4392
+ maximum: 200
4393
+ minimum: 1
4394
+ type: integer
4395
+ nextCursor:
4396
+ examples:
4397
+ - eyJpZCI6IjEyMyJ9
4398
+ type: string
4399
+ prevCursor:
4400
+ examples:
4401
+ - eyJpZCI6IjEyMiJ9
4402
+ type: string
4403
+ required:
4404
+ - items
4405
+ - limit
4406
+ - hasMore
4407
+ type: object
4360
4408
  ListArchivesResponse:
4361
4409
  additionalProperties: false
4362
4410
  properties:
@@ -8121,6 +8169,11 @@ components:
8121
8169
  VarianceReportRowResponse:
8122
8170
  additionalProperties: false
8123
8171
  properties:
8172
+ adjustmentsApplied:
8173
+ description: "Signed sum of the adjustments an operator recorded against this row: positive for debits, negative for credits, as a decimal string."
8174
+ examples:
8175
+ - "200.00"
8176
+ type: string
8124
8177
  currency:
8125
8178
  description: ISO 4217 currency code for the amounts in this row.
8126
8179
  examples:
@@ -8138,10 +8191,15 @@ components:
8138
8191
  - INTERCHANGE
8139
8192
  type: string
8140
8193
  netVariance:
8141
- description: Signed difference between actual and expected totals (actual minus expected), as a decimal string.
8194
+ description: Signed difference between actual and expected totals (actual minus expected), as a decimal string. This is the RAW difference and ignores any adjustment an operator recorded.
8142
8195
  examples:
8143
8196
  - "-200.00"
8144
8197
  type: string
8198
+ outstandingVariance:
8199
+ description: Net variance plus applied adjustments — the difference nobody has explained yet, as a decimal string. Zero means fully explained.
8200
+ examples:
8201
+ - "0.00"
8202
+ type: string
8145
8203
  sourceId:
8146
8204
  description: Identifier of the source for this variance row (UUID).
8147
8205
  examples:
@@ -8171,6 +8229,8 @@ components:
8171
8229
  - totalExpected
8172
8230
  - totalActual
8173
8231
  - netVariance
8232
+ - adjustmentsApplied
8233
+ - outstandingVariance
8174
8234
  type: object
8175
8235
  VerifyBody:
8176
8236
  additionalProperties: false
@@ -14152,6 +14212,73 @@ paths:
14152
14212
  summary: List match candidates for a transaction
14153
14213
  tags:
14154
14214
  - Matching
14215
+ /v1/matching/contexts/{contextId}/adjustments:
14216
+ get:
14217
+ description: Lists the balancing entries an operator recorded against a context, newest first. These are the corrections the variance report nets into its outstanding figure, so this is the read that makes that figure decomposable. Narrow to one match group with matchGroupId.
14218
+ operationId: listAdjustments
14219
+ parameters:
14220
+ - description: Context ID whose adjustments to list
14221
+ in: path
14222
+ name: contextId
14223
+ required: true
14224
+ schema:
14225
+ description: Context ID whose adjustments to list
14226
+ format: uuid
14227
+ type: string
14228
+ - description: Narrow to the entries balancing one match group. Omit to read the whole context.
14229
+ explode: false
14230
+ in: query
14231
+ name: matchGroupId
14232
+ schema:
14233
+ description: Narrow to the entries balancing one match group. Omit to read the whole context.
14234
+ format: uuid
14235
+ type: string
14236
+ - description: Maximum number of records to return
14237
+ explode: false
14238
+ in: query
14239
+ name: limit
14240
+ schema:
14241
+ default: 20
14242
+ description: Maximum number of records to return
14243
+ format: int64
14244
+ maximum: 200
14245
+ minimum: 1
14246
+ type: integer
14247
+ - description: Opaque pagination cursor
14248
+ explode: false
14249
+ in: query
14250
+ name: cursor
14251
+ schema:
14252
+ description: Opaque pagination cursor
14253
+ type: string
14254
+ - description: Sort order
14255
+ explode: false
14256
+ in: query
14257
+ name: sort_order
14258
+ schema:
14259
+ description: Sort order
14260
+ enum:
14261
+ - asc
14262
+ - desc
14263
+ type: string
14264
+ responses:
14265
+ "200":
14266
+ content:
14267
+ application/json:
14268
+ schema:
14269
+ $ref: "#/components/schemas/ListAdjustmentsResponse"
14270
+ description: OK
14271
+ default:
14272
+ content:
14273
+ application/problem+json:
14274
+ schema:
14275
+ $ref: "#/components/schemas/Detail"
14276
+ description: Error
14277
+ security:
14278
+ - BearerAuth: []
14279
+ summary: List recorded adjustments
14280
+ tags:
14281
+ - Matching
14155
14282
  /v1/matching/contexts/{contextId}/open-items:
14156
14283
  get:
14157
14284
  description: Returns a cursor-paginated list of open-item residual ledger entries for a reconciliation context — the carried, partially-filled, and aged obligations the context carries forward across match runs. These are structurally distinct from never-matched (UNMATCHED) transactions. Optionally narrowed by lifecycle status. The listing is readable regardless of context status.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lerianstudio/matcher-mcp",
3
- "version": "4.5.0-beta.32",
3
+ "version": "4.5.0-beta.34",
4
4
  "type": "module",
5
5
  "description": "Model Context Protocol server for the Matcher reconciliation engine",
6
6
  "license": "Apache-2.0",