@lerianstudio/matcher-mcp 5.0.0-beta.99 → 5.0.0
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/README.md +8 -11
- package/dist/config.js +16 -67
- package/dist/config.js.map +1 -1
- package/dist/copilot/system-prompt.js +17 -2
- package/dist/copilot/system-prompt.js.map +1 -1
- package/dist/matcher/client.js +1 -1
- package/dist/matcher/client.js.map +1 -1
- package/dist/matcher/idempotency.js +1 -1
- package/dist/matcher/idempotency.js.map +1 -1
- package/dist/observability/otel.js +79 -96
- package/dist/observability/otel.js.map +1 -1
- package/dist/spec/curated-operations.js +3 -3
- package/dist/spec/curated-operations.js.map +1 -1
- package/dist/spec/index.js +1 -1
- package/dist/spec/index.js.map +1 -1
- package/dist/spec/openapi.yaml +69 -15
- package/dist/spec/schema-parity.js +2 -2
- package/dist/spec/schema-parity.js.map +1 -1
- package/dist/tools/context/create.js +13 -3
- package/dist/tools/context/create.js.map +1 -1
- package/dist/tools/context/list.js +1 -1
- package/dist/tools/context/list.js.map +1 -1
- package/dist/tools/context/setup-progress.js +1 -1
- package/dist/tools/context/setup-progress.js.map +1 -1
- package/dist/tools/context/shared.js +2 -9
- package/dist/tools/context/shared.js.map +1 -1
- package/dist/tools/context/update.js +10 -2
- package/dist/tools/context/update.js.map +1 -1
- package/dist/tools/curated-tool.js +2 -4
- package/dist/tools/curated-tool.js.map +1 -1
- package/dist/tools/dashboard/shared.js +3 -11
- package/dist/tools/dashboard/shared.js.map +1 -1
- package/dist/tools/dispute/list.js +1 -1
- package/dist/tools/dispute/list.js.map +1 -1
- package/dist/tools/dispute/shared.js +2 -9
- package/dist/tools/dispute/shared.js.map +1 -1
- package/dist/tools/exception/history.js +2 -2
- package/dist/tools/exception/history.js.map +1 -1
- package/dist/tools/exception/list.js +3 -3
- package/dist/tools/exception/list.js.map +1 -1
- package/dist/tools/exception/shared.js +1 -8
- package/dist/tools/exception/shared.js.map +1 -1
- package/dist/tools/fee-rule/list.js +1 -1
- package/dist/tools/fee-rule/list.js.map +1 -1
- package/dist/tools/fee-rule/shared.js +1 -9
- package/dist/tools/fee-rule/shared.js.map +1 -1
- package/dist/tools/fee-schedule/create.js +1 -1
- package/dist/tools/fee-schedule/create.js.map +1 -1
- package/dist/tools/fee-schedule/list.js +1 -1
- package/dist/tools/fee-schedule/list.js.map +1 -1
- package/dist/tools/fee-schedule/shared.js +2 -9
- package/dist/tools/fee-schedule/shared.js.map +1 -1
- package/dist/tools/field-map/create.js +1 -1
- package/dist/tools/field-map/create.js.map +1 -1
- package/dist/tools/field-map/list.js +1 -1
- package/dist/tools/field-map/list.js.map +1 -1
- package/dist/tools/field-map/shared.js +20 -36
- package/dist/tools/field-map/shared.js.map +1 -1
- package/dist/tools/field-map/update.js +3 -2
- package/dist/tools/field-map/update.js.map +1 -1
- package/dist/tools/generic/describe-operation.js +2 -8
- package/dist/tools/generic/describe-operation.js.map +1 -1
- package/dist/tools/generic/invoke.js +1 -1
- package/dist/tools/generic/invoke.js.map +1 -1
- package/dist/tools/generic/list-operations.js +1 -1
- package/dist/tools/generic/list-operations.js.map +1 -1
- package/dist/tools/ingestion/job-transactions-list.js +2 -2
- package/dist/tools/ingestion/job-transactions-list.js.map +1 -1
- package/dist/tools/ingestion/jobs-list.js +2 -2
- package/dist/tools/ingestion/jobs-list.js.map +1 -1
- package/dist/tools/ingestion/shared.js +1 -10
- package/dist/tools/ingestion/shared.js.map +1 -1
- package/dist/tools/ingestion/transactions-search.js +2 -2
- package/dist/tools/ingestion/transactions-search.js.map +1 -1
- package/dist/tools/ingestion/upload-begin.js +1 -1
- package/dist/tools/ingestion/upload-begin.js.map +1 -1
- package/dist/tools/ingestion/upload.js +1 -1
- package/dist/tools/ingestion/upload.js.map +1 -1
- package/dist/tools/match-rule/list.js +1 -1
- package/dist/tools/match-rule/list.js.map +1 -1
- package/dist/tools/match-rule/shared.js +1 -10
- package/dist/tools/match-rule/shared.js.map +1 -1
- package/dist/tools/matching/get.js +1 -1
- package/dist/tools/matching/get.js.map +1 -1
- package/dist/tools/matching/groups.js +1 -1
- package/dist/tools/matching/groups.js.map +1 -1
- package/dist/tools/matching/list.js +1 -1
- package/dist/tools/matching/list.js.map +1 -1
- package/dist/tools/matching/shared.js +1 -9
- package/dist/tools/matching/shared.js.map +1 -1
- package/dist/tools/report/index.js +5 -1
- package/dist/tools/report/index.js.map +1 -1
- package/dist/tools/report/shared.js +1 -12
- package/dist/tools/report/shared.js.map +1 -1
- package/dist/tools/shared-dispatch.js +4 -0
- package/dist/tools/shared-dispatch.js.map +1 -1
- package/dist/tools/source/create.js +9 -9
- package/dist/tools/source/create.js.map +1 -1
- package/dist/tools/source/list.js +1 -1
- package/dist/tools/source/list.js.map +1 -1
- package/dist/tools/source/shared.js +1 -9
- package/dist/tools/source/shared.js.map +1 -1
- package/dist/transport/body-limit.js +1 -6
- package/dist/transport/body-limit.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"curated-operations.js","sourceRoot":"","sources":["../../src/spec/curated-operations.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,wDAAwD;AACxD,EAAE;AACF,kBAAkB;AAClB,
|
|
1
|
+
{"version":3,"file":"curated-operations.js","sourceRoot":"","sources":["../../src/spec/curated-operations.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,wDAAwD;AACxD,EAAE;AACF,kBAAkB;AAClB,yDAAyD;AACzD,gFAAgF;AAChF,4EAA4E;AAC5E,mEAAmE;AACnE,2EAA2E;AAC3E,4EAA4E;AAC5E,+EAA+E;AAC/E,yEAAyE;AACzE,4EAA4E;AAC5E,EAAE;AACF,yEAAyE;AACzE,sEAAsE;AACtE,4EAA4E;AAC5E,6EAA6E;AAC7E,6EAA6E;AAC7E,4EAA4E;AAC5E,8EAA8E;AAC9E,mEAAmE;AACnE,8DAA8D;AAC9D,EAAE;AACF,kDAAkD;AAClD,kFAAkF;AAClF,+EAA+E;A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F;IACjF,oFAAoF;IACpF,uBAAuB,EAAE,2BAA2B;CAC5C,CAAA"}
|
package/dist/spec/index.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
// no external documents, and a `$ref` cycle is broken with a placeholder rather
|
|
14
14
|
// than recursing forever.
|
|
15
15
|
/** The HTTP methods we index (lowercased OpenAPI path-item keys). */
|
|
16
|
-
|
|
16
|
+
const HTTP_METHODS = [
|
|
17
17
|
'get',
|
|
18
18
|
'put',
|
|
19
19
|
'post',
|
package/dist/spec/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/spec/index.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAC1D,EAAE;AACF,8EAA8E;AAC9E,gFAAgF;AAChF,iFAAiF;AACjF,6EAA6E;AAC7E,yCAAyC;AACzC,EAAE;AACF,8EAA8E;AAC9E,gFAAgF;AAChF,iFAAiF;AACjF,gFAAgF;AAChF,gFAAgF;AAChF,0BAA0B;AAE1B,qEAAqE;AACrE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/spec/index.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAC1D,EAAE;AACF,8EAA8E;AAC9E,gFAAgF;AAChF,iFAAiF;AACjF,6EAA6E;AAC7E,yCAAyC;AACzC,EAAE;AACF,8EAA8E;AAC9E,gFAAgF;AAChF,iFAAiF;AACjF,gFAAgF;AAChF,gFAAgF;AAChF,0BAA0B;AAE1B,qEAAqE;AACrE,MAAM,YAAY,GAAG;IACnB,KAAK;IACL,KAAK;IACL,MAAM;IACN,QAAQ;IACR,OAAO;CACC,CAAA;AAyEV,MAAM,UAAU,GAAG,uBAAuB,CAAA;AAE1C;;;;;;GAMG;AACH,SAAS,KAAK,CACZ,IAAa,EACb,OAAgC,EAChC,IAAyB;IAEzB,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;QACxB,OAAO,I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A;YAChB,MAAM,OAAO,GAAG,OAAO,EAAE,CAAC,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAA;YAEhE,MAAM,iBAAiB,GAAG,wBAAwB,CAAC,EAAE,EAAE,OAAO,CAAC,CAAA;YAE/D,MAAM,OAAO,GAAqB;gBAChC,WAAW;gBACX,MAAM,EAAE,MAAM,CAAC,WAAW,EAAgC;gBAC1D,IAAI;gBACJ,GAAG;gBACH,OAAO;gBACP,UAAU;gBACV,WAAW;gBACX,qBAAqB,EAAE,qBAAqB,CAAC,EAAE,CAAC;gBAChD,GAAG,CAAC,iBAAiB,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,iBAAiB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aAClE,CAAA;YAED,IAAI,UAAU,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC;gBAChC,QAAQ,CAAC,IAAI,CACX,0BAA0B,WAAW,IAAI;oBACvC,IAAI,MAAM,CAAC,WAAW,EAAE,IAAI,IAAI,iCAAiC,CACpE,CAAA;gBACD,SAAQ;YACV,CAAC;YACD,UAAU,CAAC,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,CAAA;QACtC,CAAC;IACH,CAAC;IAED,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAA;AACjC,CAAC"}
|
package/dist/spec/openapi.yaml
CHANGED
|
@@ -46,7 +46,7 @@ components:
|
|
|
46
46
|
description: Cursor to fetch the next page; empty when there are no more pages
|
|
47
47
|
type: string
|
|
48
48
|
prevCursor:
|
|
49
|
-
description:
|
|
49
|
+
description: "Always empty: this list pages forward only. To go back, re-send a cursor you already followed, or omit it for the first page"
|
|
50
50
|
type: string
|
|
51
51
|
required:
|
|
52
52
|
- items
|
|
@@ -1893,6 +1893,14 @@ components:
|
|
|
1893
1893
|
type:
|
|
1894
1894
|
- array
|
|
1895
1895
|
- "null"
|
|
1896
|
+
signConvention:
|
|
1897
|
+
description: "How this context's data carries sign. SAME: a payment carries the same sign as what it settles, so a negative amount is a reversal. OPPOSITE: a payment carries the opposite sign of the invoice it settles. Defaults to SAME. In 1:N contexts only payments of the declared sign are allocated to an invoice, and in N:M contexts a short-paid invoice keeps an open balance only when it is positive under SAME, or when the rule's sign mode is opposite under OPPOSITE; any other short payment stays unmatched; a carried open balance settles on a payment of the declared sign or on a reversal from the invoice's own side, and a row from an archived source stays unmatched. It cannot change once the context has carried a partial balance, or while a match run is in progress."
|
|
1898
|
+
enum:
|
|
1899
|
+
- SAME
|
|
1900
|
+
- OPPOSITE
|
|
1901
|
+
examples:
|
|
1902
|
+
- SAME
|
|
1903
|
+
type: string
|
|
1896
1904
|
sources:
|
|
1897
1905
|
description: Sources to create inline with the context.
|
|
1898
1906
|
items:
|
|
@@ -5492,9 +5500,15 @@ components:
|
|
|
5492
5500
|
- "null"
|
|
5493
5501
|
pagination:
|
|
5494
5502
|
$ref: "#/components/schemas/CursorPagination"
|
|
5503
|
+
unattributedAdjustments:
|
|
5504
|
+
description: Per-currency totals of the window's recorded adjustments that no row includes, sorted by currency. They sit outside items and must not be added to any row; the list is identical on every page of one query, and empty when there are none.
|
|
5505
|
+
items:
|
|
5506
|
+
$ref: "#/components/schemas/UnattributedAdjustmentResponse"
|
|
5507
|
+
type: array
|
|
5495
5508
|
required:
|
|
5496
5509
|
- items
|
|
5497
5510
|
- pagination
|
|
5511
|
+
- unattributedAdjustments
|
|
5498
5512
|
type: object
|
|
5499
5513
|
ManualMatchResponse:
|
|
5500
5514
|
additionalProperties: false
|
|
@@ -5837,10 +5851,10 @@ components:
|
|
|
5837
5851
|
additionalProperties:
|
|
5838
5852
|
format: int64
|
|
5839
5853
|
type: integer
|
|
5840
|
-
description: Aggregate run statistics as an open key-value map; consumers must tolerate unknown keys and treat a missing key as unknown rather than zero. Known keys include matches, candidates_left, candidates_right, unmatched_left, unmatched_right, unmatched_external, auto_matched_left, auto_matched_right, pending_review_left, pending_review_right, proposed_left, proposed_right, exceptions_raised (newly created), exceptions_updated (re-touched), plus per-rule families rule_matched:<ruleID> and rule_meta:<ruleID>:<TYPE
|
|
5854
|
+
description: Aggregate run statistics as an open key-value map; consumers must tolerate unknown keys and treat a missing key as unknown rather than zero. Known keys include matches, candidates_left, candidates_right, unmatched_left, unmatched_right, unmatched_external, auto_matched_left, auto_matched_right, pending_review_left, pending_review_right, proposed_left, proposed_right, exceptions_raised (newly created), exceptions_updated (re-touched), plus per-rule families rule_matched:<ruleID> and rule_meta:<ruleID>:<TYPE>. A run recovered after an interruption reports the exception rows its earlier attempt created under exceptions_updated, not exceptions_raised
|
|
5841
5855
|
type: object
|
|
5842
5856
|
status:
|
|
5843
|
-
description: "Current status of the run: QUEUED (async submit, awaiting worker pickup), PROCESSING (in flight), FINALIZING (a transient finishing-up state — a poll MAY briefly observe it between PROCESSING and COMPLETED, and it is also observable while a run is recovered after a crash; treat it as in-flight, not terminal), COMPLETED (finished), or FAILED (errored)"
|
|
5857
|
+
description: "Current status of the run: QUEUED (async submit, awaiting worker pickup), PROCESSING (in flight), FINALIZING (a transient finishing-up state — a poll MAY briefly observe it between PROCESSING and COMPLETED, and it is also observable while a run is recovered after a crash; treat it as in-flight, not terminal), COMPLETED (finished), or FAILED (errored). An async run in flight when its pod stops goes back from PROCESSING to QUEUED and is picked up again with a new startedAt"
|
|
5844
5858
|
enum:
|
|
5845
5859
|
- QUEUED
|
|
5846
5860
|
- PROCESSING
|
|
@@ -6068,7 +6082,7 @@ components:
|
|
|
6068
6082
|
- USD
|
|
6069
6083
|
type: string
|
|
6070
6084
|
expectedBalance:
|
|
6071
|
-
description:
|
|
6085
|
+
description: "Total owed on the item's identity: the face of the obligation it opened on plus every later obligation with the same identity, as a decimal string"
|
|
6072
6086
|
examples:
|
|
6073
6087
|
- "1000.00"
|
|
6074
6088
|
type: string
|
|
@@ -6397,6 +6411,14 @@ components:
|
|
|
6397
6411
|
examples:
|
|
6398
6412
|
- Bank Reconciliation Q1
|
|
6399
6413
|
type: string
|
|
6414
|
+
signConvention:
|
|
6415
|
+
description: "How this context's data carries sign. SAME: a payment carries the same sign as what it settles, so a negative amount is a reversal. OPPOSITE: a payment carries the opposite sign of the invoice it settles. In 1:N contexts only payments of the declared sign are allocated to an invoice, and in N:M contexts a short-paid invoice keeps an open balance only when it is positive under SAME, or when the rule's sign mode is opposite under OPPOSITE; any other short payment stays unmatched; a carried open balance settles on a payment of the declared sign or on a reversal from the invoice's own side, and a row from an archived source stays unmatched. It cannot change once the context has carried a partial balance, or while a match run is in progress."
|
|
6416
|
+
enum:
|
|
6417
|
+
- SAME
|
|
6418
|
+
- OPPOSITE
|
|
6419
|
+
examples:
|
|
6420
|
+
- SAME
|
|
6421
|
+
type: string
|
|
6400
6422
|
status:
|
|
6401
6423
|
description: Lifecycle status. DRAFT is being configured; ACTIVE runs; PAUSED is suspended; ARCHIVED is retired.
|
|
6402
6424
|
enum:
|
|
@@ -6436,6 +6458,7 @@ components:
|
|
|
6436
6458
|
- feeToleranceAbs
|
|
6437
6459
|
- feeTolerancePct
|
|
6438
6460
|
- autoMatchOnUpload
|
|
6461
|
+
- signConvention
|
|
6439
6462
|
- createdAt
|
|
6440
6463
|
- updatedAt
|
|
6441
6464
|
type: object
|
|
@@ -8402,6 +8425,23 @@ components:
|
|
|
8402
8425
|
- exceptions
|
|
8403
8426
|
- matchRates
|
|
8404
8427
|
type: object
|
|
8428
|
+
UnattributedAdjustmentResponse:
|
|
8429
|
+
additionalProperties: false
|
|
8430
|
+
properties:
|
|
8431
|
+
currency:
|
|
8432
|
+
description: ISO 4217 currency code of the adjustments in this total.
|
|
8433
|
+
examples:
|
|
8434
|
+
- USD
|
|
8435
|
+
type: string
|
|
8436
|
+
total:
|
|
8437
|
+
description: "Signed sum of the recorded adjustments no row includes: positive for debits, negative for credits, as a decimal string. Each one's match group or transaction reaches more than one row, and the report never splits an amount."
|
|
8438
|
+
examples:
|
|
8439
|
+
- "3.50"
|
|
8440
|
+
type: string
|
|
8441
|
+
required:
|
|
8442
|
+
- currency
|
|
8443
|
+
- total
|
|
8444
|
+
type: object
|
|
8405
8445
|
UnmatchRequest:
|
|
8406
8446
|
additionalProperties: false
|
|
8407
8447
|
properties:
|
|
@@ -8547,6 +8587,14 @@ components:
|
|
|
8547
8587
|
- Bank Reconciliation Q2
|
|
8548
8588
|
maxLength: 100
|
|
8549
8589
|
type: string
|
|
8590
|
+
signConvention:
|
|
8591
|
+
description: "How this context's data carries sign. SAME: a payment carries the same sign as what it settles, so a negative amount is a reversal. OPPOSITE: a payment carries the opposite sign of the invoice it settles. Omit to leave it unchanged. In 1:N contexts only payments of the declared sign are allocated to an invoice, and in N:M contexts a short-paid invoice keeps an open balance only when it is positive under SAME, or when the rule's sign mode is opposite under OPPOSITE; any other short payment stays unmatched; a carried open balance settles on a payment of the declared sign or on a reversal from the invoice's own side, and a row from an archived source stays unmatched. It cannot change once the context has carried a partial balance, or while a match run is in progress."
|
|
8592
|
+
enum:
|
|
8593
|
+
- SAME
|
|
8594
|
+
- OPPOSITE
|
|
8595
|
+
examples:
|
|
8596
|
+
- OPPOSITE
|
|
8597
|
+
type: string
|
|
8550
8598
|
status:
|
|
8551
8599
|
description: Lifecycle status to transition to. ACTIVE runs the context; PAUSED suspends scheduling; ARCHIVED retires it.
|
|
8552
8600
|
enum:
|
|
@@ -8813,7 +8861,7 @@ components:
|
|
|
8813
8861
|
maxLength: 50
|
|
8814
8862
|
type: string
|
|
8815
8863
|
side:
|
|
8816
|
-
description: Matching side this source feeds. LEFT and RIGHT are the two sides reconciled against each other.
|
|
8864
|
+
description: Matching side this source feeds. LEFT and RIGHT are the two sides reconciled against each other. A change is refused with a 409 once the context has carried a partial balance, or while a match run is in progress.
|
|
8817
8865
|
enum:
|
|
8818
8866
|
- LEFT
|
|
8819
8867
|
- RIGHT
|
|
@@ -9170,11 +9218,17 @@ info:
|
|
|
9170
9218
|
|
|
9171
9219
|
## Idempotency
|
|
9172
9220
|
|
|
9173
|
-
POST, PUT and PATCH requests accept an optional `Idempotency
|
|
9221
|
+
POST, PUT and PATCH requests accept an optional `X-Idempotency` header. It is the one header a key travels in and it has no synonym: a mutating request that carries an older spelling and no `X-Idempotency` is refused with 400 rather than processed unkeyed. Keys are 1-128 characters of letters, digits, hyphen, underscore or colon, are scoped per tenant, caller, method and request target, and are strictly opt-in: a request sent without the header is never de-duplicated. A retry under a key whose first attempt completed replays that stored response and carries `X-Idempotency-Replayed: true`; a retry that arrives while the first attempt is still in flight is refused with 409.
|
|
9222
|
+
|
|
9223
|
+
A retry must repeat the original request. On an ordinary route the body is part of what identifies it, so a completed key re-sent with a DIFFERENT body is refused with 422 and nothing is applied — send the correction under a new key. The two file routes (`POST /v1/imports/contexts/{contextId}/sources/{sourceId}/upload` and the matching `/preview`) consume their body as a live stream and cannot re-read it, so there the key itself is the identity under that method and path: a completed key re-sent replays the first answer whatever file the retry carries.
|
|
9224
|
+
|
|
9225
|
+
A key is ONE attempt. A refusal the request earned is recorded like any other answer, and every resend under that key replays it for the retention window — a caller that wants to correct its request mints a new key. Three answers do NOT spend the key, because none of them is an answer to the request itself: a 429 from the rate limiter, a 402 from the volume quota, and a 502 with code `MTCH-0513`, where the dispatch target answered and DECLINED before anything was created there. Every other 5xx HOLDS the key, including that code's near neighbour, the dispatch whose outcome could not be confirmed (502, code `MTCH-0514`), whose exception may already exist in the target system: the outcome was not recorded, so every resend under that key is refused 409 and nothing is sent again. Deliberately attempting such an operation again therefore requires a NEW key.
|
|
9226
|
+
|
|
9227
|
+
`X-Idempotency-Fenced` rides every response whose outcome the guard could not receipt, a 2xx included. `true` means the hold landed: the key still protects the operation and every resend under it is refused 409. Only `false` means a resend would EXECUTE — the answer in hand may already have applied and the key no longer protects it, so check whether the first attempt took effect before sending anything again.
|
|
9174
9228
|
|
|
9175
|
-
A
|
|
9229
|
+
Two bounds close the contract. A response larger than about 1 MB is delivered to its caller in full, but it is not stored for replay: a duplicate under the same key is answered 409 instead of replayed. And an over-sized body is refused with 413 and spends nothing. On every route but one the service-wide request body limit refuses it before the key is read. The streaming upload (`POST /v1/imports/contexts/{contextId}/sources/{sourceId}/upload`) is exempt from that limit: the key is read first and ingestion enforces its own upload limit inside the handler, so its 413 is a fourth answer that releases the key, and a smaller file may be re-sent under it.
|
|
9176
9230
|
|
|
9177
|
-
Secret mints are
|
|
9231
|
+
Secret mints are another, sharper exception. `POST /v1/discovery/aggregator-connections/{id}/connect-token`, `POST /v1/discovery/webhooks/tokens`, `POST /v1/exceptions/callbacks/credentials` and `POST /v1/exceptions/callbacks/credentials/{credentialId}/rotate` each return a raw credential exactly ONCE, and storing that answer would keep the secret re-readable for the life of the key — so those four routes IGNORE the idempotency header entirely. Nothing is stored, nothing is replayed, and `X-Idempotency-Replayed` is never sent on them. A retry under the same key MINTS AGAIN and leaves a second live credential behind, so treat a mint as non-idempotent: read the first attempt's response rather than resending it. A surplus callback credential can be revoked through its own operation; a surplus aggregator webhook token has no revoke operation today and stays live.
|
|
9178
9232
|
license:
|
|
9179
9233
|
name: Lerian Studio General License
|
|
9180
9234
|
title: Matcher Reconciliation API
|
|
@@ -9514,7 +9568,7 @@ paths:
|
|
|
9514
9568
|
tags:
|
|
9515
9569
|
- Configuration
|
|
9516
9570
|
patch:
|
|
9517
|
-
description: "Updates fields on a reconciliation context by ID. Transitions to ACTIVE are gated on server-side activation readiness: an unready context is rejected with a 409 carrying the configuration invalid-state code."
|
|
9571
|
+
description: "Updates fields on a reconciliation context by ID. Transitions to ACTIVE are gated on server-side activation readiness: an unready context is rejected with a 409 carrying the configuration invalid-state code. A sign-convention change is refused with a 409 once the context has carried a partial balance, or while a match run is in progress."
|
|
9518
9572
|
operationId: updateContext
|
|
9519
9573
|
parameters:
|
|
9520
9574
|
- description: Context ID
|
|
@@ -9555,7 +9609,7 @@ paths:
|
|
|
9555
9609
|
code: MTCH-0103
|
|
9556
9610
|
schema:
|
|
9557
9611
|
$ref: "#/components/schemas/Detail"
|
|
9558
|
-
description: Context activation is blocked by an invalid transition, a duplicate name, an archived context, or missing activation requirements.
|
|
9612
|
+
description: Context activation is blocked by an invalid transition, a duplicate name, an archived context, or missing activation requirements; a sign-convention change, once the context has carried a partial balance or while a match run is in progress.
|
|
9559
9613
|
default:
|
|
9560
9614
|
content:
|
|
9561
9615
|
application/problem+json:
|
|
@@ -10489,7 +10543,7 @@ paths:
|
|
|
10489
10543
|
tags:
|
|
10490
10544
|
- Configuration
|
|
10491
10545
|
patch:
|
|
10492
|
-
description: Updates fields on a reconciliation source by ID.
|
|
10546
|
+
description: Updates fields on a reconciliation source by ID. A side change is refused with a 409 once the source's context has carried a partial balance, or while a match run is in progress.
|
|
10493
10547
|
operationId: updateSource
|
|
10494
10548
|
parameters:
|
|
10495
10549
|
- description: Context ID
|
|
@@ -10831,7 +10885,7 @@ paths:
|
|
|
10831
10885
|
tags:
|
|
10832
10886
|
- Configuration
|
|
10833
10887
|
post:
|
|
10834
|
-
description: "Creates a field map for a source within a context. A source holds at most one field map: creating a second is rejected with a 409 carrying the configuration has-field-map code, and the caller should update the existing map instead. Mapping keys form a closed vocabulary: required keys are external_id, amount, currency, date; optional keys are description, fee_amount, fee_currency.
|
|
10888
|
+
description: "Creates a field map for a source within a context. A source holds at most one field map: creating a second is rejected with a 409 carrying the configuration has-field-map code, and the caller should update the existing map instead. Mapping keys form a closed vocabulary: required keys are external_id, amount, currency, date; optional keys are description, fee_amount, fee_currency, direction. Every value except direction names a source column and must be a non-empty string. direction is an object with exactly three non-empty string fields, column, debit and credit, for a file that marks each row as a debit or a credit in a column of its own instead of with a sign: column names that column, and debit and credit are the values it holds, compared ignoring case and surrounding spaces, and the two must differ. With direction mapped, a debit row imports with a negative amount and a credit row with a positive one, the amount column must hold unsigned amounts, and a row whose amount carries a sign, or whose direction value is blank or neither value, is refused. direction applies to CSV, JSON and XML uploads only."
|
|
10835
10889
|
operationId: createFieldMap
|
|
10836
10890
|
parameters:
|
|
10837
10891
|
- description: Context ID
|
|
@@ -12611,7 +12665,7 @@ paths:
|
|
|
12611
12665
|
type: string
|
|
12612
12666
|
- description: Idempotency key for deduplication
|
|
12613
12667
|
in: header
|
|
12614
|
-
name: X-Idempotency
|
|
12668
|
+
name: X-Idempotency
|
|
12615
12669
|
required: true
|
|
12616
12670
|
schema:
|
|
12617
12671
|
description: Idempotency key for deduplication
|
|
@@ -13441,7 +13495,7 @@ paths:
|
|
|
13441
13495
|
tags:
|
|
13442
13496
|
- Configuration
|
|
13443
13497
|
patch:
|
|
13444
|
-
description: "Updates fields on a field map by ID. Mapping keys form a closed vocabulary: required keys are external_id, amount, currency, date; optional keys are description, fee_amount, fee_currency.
|
|
13498
|
+
description: "Updates fields on a field map by ID. Mapping keys form a closed vocabulary: required keys are external_id, amount, currency, date; optional keys are description, fee_amount, fee_currency, direction. Every value except direction names a source column and must be a non-empty string. direction is an object with exactly three non-empty string fields, column, debit and credit, for a file that marks each row as a debit or a credit in a column of its own instead of with a sign: column names that column, and debit and credit are the values it holds, compared ignoring case and surrounding spaces, and the two must differ. With direction mapped, a debit row imports with a negative amount and a credit row with a positive one, the amount column must hold unsigned amounts, and a row whose amount carries a sign, or whose direction value is blank or neither value, is refused. direction applies to CSV, JSON and XML uploads only."
|
|
13445
13499
|
operationId: updateFieldMap
|
|
13446
13500
|
parameters:
|
|
13447
13501
|
- description: Field map ID
|
|
@@ -13478,7 +13532,7 @@ paths:
|
|
|
13478
13532
|
- Configuration
|
|
13479
13533
|
/v1/governance/actor-mappings:
|
|
13480
13534
|
get:
|
|
13481
|
-
description: Lists actor mappings by actor ID with optional actor ID prefix filtering. Does not return display name or email.
|
|
13535
|
+
description: Lists actor mappings by actor ID with optional actor ID prefix filtering. Does not return display name or email. Pagination is forward-only (no prevCursor); use the nextCursor value to fetch subsequent pages.
|
|
13482
13536
|
operationId: listActorMappings
|
|
13483
13537
|
parameters:
|
|
13484
13538
|
- description: Actor ID prefix
|
|
@@ -156,7 +156,7 @@ function walkZod(schema, path, out) {
|
|
|
156
156
|
* enums. Wrapper types are unwrapped; arrays recurse into their element under a
|
|
157
157
|
* `[]` segment; enums surface their `.options`.
|
|
158
158
|
*/
|
|
159
|
-
|
|
159
|
+
function introspectShape(shape) {
|
|
160
160
|
const out = {
|
|
161
161
|
propertyPaths: new Set(),
|
|
162
162
|
closedEnums: new Map(),
|
|
@@ -219,7 +219,7 @@ function walkSpec(node, path, out) {
|
|
|
219
219
|
* already inlined) into its property paths and enums — same path notation as
|
|
220
220
|
* {@link introspectShape} so the two are directly comparable.
|
|
221
221
|
*/
|
|
222
|
-
|
|
222
|
+
function introspectSpecSchema(schema) {
|
|
223
223
|
const out = {
|
|
224
224
|
propertyPaths: new Set(),
|
|
225
225
|
closedEnums: new Map(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-parity.js","sourceRoot":"","sources":["../../src/spec/schema-parity.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,0BAA0B;AAC1B,EAAE;AACF,kBAAkB;AAClB,+EAA+E;AAC/E,iFAAiF;AACjF,iFAAiF;AACjF,8EAA8E;AAC9E,4CAA4C;AAC5C,iFAAiF;AACjF,kFAAkF;AAClF,8EAA8E;AAC9E,iFAAiF;AACjF,8EAA8E;AAC9E,8EAA8E;AAC9E,iFAAiF;AACjF,kFAAkF;AAClF,EAAE;AACF,uCAAuC;AACvC,gFAAgF;AAChF,gFAAgF;AAChF,8EAA8E;AAC9E,0EAA0E;AAC1E,8EAA8E;AAC9E,iFAAiF;AACjF,kBAAkB;AAClB,EAAE;AACF,gFAAgF;AAChF,4EAA4E;AAC5E,gFAAgF;AAChF,iFAAiF;AACjF,2DAA2D;AAC3D,EAAE;AACF,8BAA8B;AAC9B,iFAAiF;AACjF,+EAA+E;AAC/E,0CAA0C;AAC1C,EAAE;AACF,sBAAsB;AACtB,+EAA+E;AAC/E,uEAAuE;AACvE,4EAA4E;AAC5E,oEAAoE;AACpE,+EAA+E;AAC/E,gFAAgF;AAChF,yBAAyB;AAoCzB,8EAA8E;AAE9E,iEA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AY,EAAE,sBAAsB;IACpC,YAAY,EAAE,sBAAsB;IACpC,YAAY;IACZ,cAAc,EAAE,wBAAwB;IACxC,cAAc,EAAE,wBAAwB;IACxC,WAAW;IACX,QAAQ,EAAE,uBAAuB;IACjC,YAAY;IACZ,UAAU,EAAE,oBAAoB;IAChC,oBAAoB,EAAE,qBAAqB;IAC3C,oBAAoB,EAAE,oBAAoB;IAC1C,sBAAsB,EAAE,sBAAsB;IAC9C,qBAAqB,EAAE,qBAAqB;IAC5C,iBAAiB,EAAE,2BAA2B;IAC9C,mBAAmB,EAAE,oBAAoB;IACzC,WAAW,EAAE,qBAAqB;IAClC,UAAU;IACV,YAAY,EAAE,sBAAsB;IACpC,cAAc,EAAE,wBAAwB;IACxC,YAAY;IACZ,iBAAiB,EAAE,2BAA2B;CAC/C,CAAA"}
|
|
@@ -22,10 +22,12 @@ import { CONTEXTS_PATH } from './shared.js';
|
|
|
22
22
|
export const CONTEXT_TYPES = ['1:1', '1:N', 'N:M'];
|
|
23
23
|
/** Fee normalization mode applied before amount comparison. */
|
|
24
24
|
export const FEE_NORMALIZATIONS = ['NET', 'GROSS'];
|
|
25
|
+
/** How the context's data carries sign: a payment signed like what it settles, or opposite. */
|
|
26
|
+
export const SIGN_CONVENTIONS = ['SAME', 'OPPOSITE'];
|
|
25
27
|
/** Maximum inline match rules a context may be created with. */
|
|
26
|
-
|
|
28
|
+
const MAX_INLINE_RULES = 50;
|
|
27
29
|
/** Maximum inline sources a context may be created with. */
|
|
28
|
-
|
|
30
|
+
const MAX_INLINE_SOURCES = 10;
|
|
29
31
|
/** Zod raw shape for `context_create` input — mirrors CreateContextRequest. */
|
|
30
32
|
export const createContextInputShape = {
|
|
31
33
|
name: z
|
|
@@ -76,6 +78,13 @@ export const createContextInputShape = {
|
|
|
76
78
|
.optional()
|
|
77
79
|
.describe('Business-day calendar the aging threshold is measured against (e.g. ' +
|
|
78
80
|
'US_FED, BR_ANBIMA). Omit/empty measures the age in raw calendar days.'),
|
|
81
|
+
signConvention: z
|
|
82
|
+
.enum(SIGN_CONVENTIONS)
|
|
83
|
+
.optional()
|
|
84
|
+
.describe("How this context's data carries sign. SAME: a payment carries the same " +
|
|
85
|
+
'sign as what it settles, so a negative amount is a reversal. OPPOSITE: ' +
|
|
86
|
+
'a payment carries the opposite sign of the invoice it settles. ' +
|
|
87
|
+
'Defaults to SAME.'),
|
|
79
88
|
rules: z
|
|
80
89
|
.array(z.record(z.string(), z.unknown()))
|
|
81
90
|
.max(MAX_INLINE_RULES)
|
|
@@ -105,7 +114,8 @@ export function registerContextCreateTool(server) {
|
|
|
105
114
|
'"daily"). Optional: autoMatchOnUpload (bool), feeNormalization ' +
|
|
106
115
|
'(NET|GROSS), feeToleranceAbs/feeTolerancePct (decimal strings), ' +
|
|
107
116
|
'open-item aging (agedBreakThresholdDays business-day SLA + ' +
|
|
108
|
-
'agedBreakCalendar, e.g. BR_ANBIMA),
|
|
117
|
+
'agedBreakCalendar, e.g. BR_ANBIMA), signConvention (SAME|OPPOSITE, ' +
|
|
118
|
+
'default SAME), and inline rules[] (≤50) / ' +
|
|
109
119
|
'sources[] (≤10). Returns the created context, or a structured RFC 9457 ' +
|
|
110
120
|
'error. A bare create is a DRAFT that cannot activate; after applying, ' +
|
|
111
121
|
'call next_step with the returned contextId and perform the action it ' +
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/tools/context/create.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAChD,EAAE;AACF,6EAA6E;AAC7E,gFAAgF;AAChF,mFAAmF;AACnF,+EAA+E;AAC/E,+EAA+E;AAC/E,8EAA8E;AAC9E,gFAAgF;AAChF,+BAA+B;AAC/B,EAAE;AACF,iFAAiF;AACjF,8DAA8D;AAE9D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,aAAa,EAAE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gBAAgB,CAAC;SACrB,QAAQ,EAAE;SACV,QAAQ,CACP,uEAAuE;QACrE,kEAAkE;QAClE,uCAAuC,CAC1C;IACH,OAAO,EAAE,CAAC;SACP,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;SACxC,GAAG,CAAC,kBAAkB,CAAC;SACvB,QAAQ,EAAE;SACV,QAAQ,CACP,qEAAqE;QACnE,oEAAoE;QACpE,mCAAmC,CACtC;CACJ,CAAA;AAED;;;;GAIG;AACH,MAAM,UAAU,yBAAyB,CAAC,MAAiB;IACzD,MAAM,CAAC,YAAY,CACjB,gBAAgB,EAChB;QACE,WAAW,EACT,iEAAiE;YACjE,yEAAyE;YACzE,oEAAoE;YACpE,wEAAwE;YACxE,iEAAiE;YACjE,kEAAkE;YAClE,6DAA6D;YAC7D,qEAAqE;YACrE,4CAA4C;YAC5C,yEAAyE;YACzE,wEAAwE;YACxE,uEAAuE;YACvE,+BAA+B;QACjC,WAAW,EAAE,uBAAuB;KACrC,EACD,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QACpB,OAAO,mBAAmB,CACxB,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,IAAI,EAAE,EACnD,KAAK,CACN,CAAA;IACH,CAAC,CACF,CAAA;AACH,CAAC"}
|
|
@@ -16,7 +16,7 @@ import { CONTEXTS_PATH } from './shared.js';
|
|
|
16
16
|
/** Lifecycle statuses a context can be filtered by on the list endpoint. */
|
|
17
17
|
export const CONTEXT_STATUSES = ['DRAFT', 'ACTIVE', 'PAUSED', 'ARCHIVED'];
|
|
18
18
|
/** Zod raw shape for `context_list` input — pagination knobs + optional filters. */
|
|
19
|
-
|
|
19
|
+
const listContextsInputShape = {
|
|
20
20
|
limit: pageLimit,
|
|
21
21
|
cursor: nextCursor,
|
|
22
22
|
type: z
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/tools/context/list.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,EAAE;AACF,+EAA+E;AAC/E,8EAA8E;AAC9E,kFAAkF;AAClF,gFAAgF;AAChF,4EAA4E;AAC5E,YAAY;AAEZ,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAG1D,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAGlD,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAE3C,4EAA4E;AAC5E,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,CAAU,CAAA;AAElF,oFAAoF;AACpF,MAAM,
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/tools/context/list.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,EAAE;AACF,+EAA+E;AAC/E,8EAA8E;AAC9E,kFAAkF;AAClF,gFAAgF;AAChF,4EAA4E;AAC5E,YAAY;AAEZ,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAG1D,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAGlD,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAE3C,4EAA4E;AAC5E,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,CAAU,CAAA;AAElF,oFAAoF;AACpF,MAAM,sBAAsB,GAAG;IAC7B,KAAK,EAAE,SAAS;IAChB,MAAM,EAAE,UAAU;IAClB,IAAI,EAAE,CAAC;SACJ,IAAI,CAAC,aAAa,CAAC;SACnB,QAAQ,EAAE;SACV,QAAQ,CACP,8EAA8E,CAC/E;IACH,MAAM,EAAE,CAAC;SACN,IAAI,CAAC,gBAAgB,CAAC;SACtB,QAAQ,EAAE;SACV,QAAQ,CACP,0EAA0E;QACxE,2CAA2C,CAC9C;CACJ,CAAA;AAOD,+EAA+E;AAC/E,SAAS,cAAc,CAAC,IAAuB;IAC7C,OAAO,SAAS,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAA;AAC/D,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,uBAAuB,CAAC,MAAiB;IACvD,MAAM,CAAC,YAAY,CACjB,cAAc,EACd;QACE,WAAW,EACT,2DAA2D;YAC3D,0EAA0E;YAC1E,4EAA4E;YAC5E,2EAA2E;YAC3E,sEAAsE;YACtE,iCAAiC;QACnC,WAAW,EAAE,sBAAsB;KACpC,EACD,YAAY,CACV,cAAc,EACd,GAAG,EAAE,CAAC,aAAa,EACnB,mBAAmB,CACpB,CACF,CAAA;AACH,CAAC"}
|
|
@@ -20,7 +20,7 @@ export function contextSetupProgressPath(contextId) {
|
|
|
20
20
|
return `${contextPath(contextId)}/setup-progress`;
|
|
21
21
|
}
|
|
22
22
|
/** Zod raw shape for `context_setup_progress` input — just the context id. */
|
|
23
|
-
|
|
23
|
+
const getContextSetupProgressInputShape = {
|
|
24
24
|
contextId: z
|
|
25
25
|
.string()
|
|
26
26
|
.min(1)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup-progress.js","sourceRoot":"","sources":["../../../src/tools/context/setup-progress.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,EAAE;AACF,4EAA4E;AAC5E,0EAA0E;AAC1E,+EAA+E;AAC/E,4EAA4E;AAC5E,4EAA4E;AAC5E,yEAAyE;AACzE,sEAAsE;AACtE,qEAAqE;AACrE,sEAAsE;AACtE,EAAE;AACF,sEAAsE;AACtE,2DAA2D;AAE3D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAEzC,uDAAuD;AACvD,MAAM,UAAU,wBAAwB,CAAC,SAAiB;IACxD,OAAO,GAAG,WAAW,CAAC,SAAS,CAAC,iBAAiB,CAAA;AACnD,CAAC;AAED,8EAA8E;AAC9E,MAAM,
|
|
1
|
+
{"version":3,"file":"setup-progress.js","sourceRoot":"","sources":["../../../src/tools/context/setup-progress.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,EAAE;AACF,4EAA4E;AAC5E,0EAA0E;AAC1E,+EAA+E;AAC/E,4EAA4E;AAC5E,4EAA4E;AAC5E,yEAAyE;AACzE,sEAAsE;AACtE,qEAAqE;AACrE,sEAAsE;AACtE,EAAE;AACF,sEAAsE;AACtE,2DAA2D;AAE3D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAEzC,uDAAuD;AACvD,MAAM,UAAU,wBAAwB,CAAC,SAAiB;IACxD,OAAO,GAAG,WAAW,CAAC,SAAS,CAAC,iBAAiB,CAAA;AACnD,CAAC;AAED,8EAA8E;AAC9E,MAAM,iCAAiC,GAAG;IACxC,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,CAAC,mEAAmE,CAAC;CACjF,CAAA;AAED;;;;GAIG;AACH,MAAM,UAAU,gCAAgC,CAAC,MAAiB;IAChE,MAAM,CAAC,YAAY,CACjB,wBAAwB,EACxB;QACE,WAAW,EACT,mEAAmE;YACnE,uEAAuE;YACvE,sEAAsE;YACtE,oEAAoE;YACpE,sEAAsE;YACtE,qEAAqE;YACrE,sEAAsE;YACtE,+DAA+D;YAC/D,kEAAkE;YAClE,4DAA4D;YAC5D,sEAAsE;YACtE,+DAA+D;YAC/D,sEAAsE;YACtE,sDAAsD;YACtD,8CAA8C;YAC9C,+CAA+C;YAC/C,iDAAiD;YACjD,6CAA6C;YAC7C,8CAA8C;YAC9C,mEAAmE;YACnE,sEAAsE;YACtE,aAAa;QACf,WAAW,EAAE,iCAAiC;KAC/C,EACD,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QACpB,OAAO,mBAAmB,CACxB,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,wBAAwB,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,EACjE,KAAK,CACN,CAAA;IACH,CAAC,CACF,CAAA;AACH,CAAC"}
|
|
@@ -3,15 +3,8 @@
|
|
|
3
3
|
// This module holds the context resource paths, nothing else: the base path and
|
|
4
4
|
// the single-context sub-path builder, factored exactly once so every context
|
|
5
5
|
// tool — the table rows in index.ts and the tools that keep their own file —
|
|
6
|
-
// addresses the same URLs.
|
|
7
|
-
|
|
8
|
-
// (toToolError).
|
|
9
|
-
//
|
|
10
|
-
// Security: no tenant identifier is ever read or injected (matcher derives
|
|
11
|
-
// tenant from the relayed JWT); no context tool input carries one. The
|
|
12
|
-
// `contextId` forwarded into the path is a routing param matcher validates
|
|
13
|
-
// ownership of, not a tenant field.
|
|
14
|
-
/** Base path for the reconciliation-context resource (tenant-scoped; tenant from the token). */
|
|
6
|
+
// addresses the same URLs.
|
|
7
|
+
/** Base path for the reconciliation-context resource. */
|
|
15
8
|
export const CONTEXTS_PATH = '/v1/contexts';
|
|
16
9
|
/** Build the single-context sub-path, URL-encoding the id so reserved chars are safe. */
|
|
17
10
|
export function contextPath(contextId) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../src/tools/context/shared.ts"],"names":[],"mappings":"AAAA,iDAAiD;AACjD,EAAE;AACF,gFAAgF;AAChF,8EAA8E;AAC9E,6EAA6E;AAC7E,
|
|
1
|
+
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../src/tools/context/shared.ts"],"names":[],"mappings":"AAAA,iDAAiD;AACjD,EAAE;AACF,gFAAgF;AAChF,8EAA8E;AAC9E,6EAA6E;AAC7E,2BAA2B;AAE3B,yDAAyD;AACzD,MAAM,CAAC,MAAM,aAAa,GAAG,cAAc,CAAA;AAE3C,yFAAyF;AACzF,MAAM,UAAU,WAAW,CAAC,SAAiB;IAC3C,OAAO,GAAG,aAAa,IAAI,kBAAkB,CAAC,SAAS,CAAC,EAAE,CAAA;AAC5D,CAAC"}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
// tenant).
|
|
12
12
|
import { z } from 'zod';
|
|
13
13
|
import { bodyWithout } from '../request-fields.js';
|
|
14
|
-
import { CONTEXT_TYPES, FEE_NORMALIZATIONS } from './create.js';
|
|
14
|
+
import { CONTEXT_TYPES, FEE_NORMALIZATIONS, SIGN_CONVENTIONS } from './create.js';
|
|
15
15
|
import { dispatchToolRequest } from '../shared-dispatch.js';
|
|
16
16
|
import { contextPath } from './shared.js';
|
|
17
17
|
/**
|
|
@@ -83,6 +83,13 @@ export const updateContextInputShape = {
|
|
|
83
83
|
.optional()
|
|
84
84
|
.describe('Business-day calendar the aging threshold is measured against. Empty ' +
|
|
85
85
|
'string clears it (raw calendar days); omit to leave it unchanged.'),
|
|
86
|
+
signConvention: z
|
|
87
|
+
.enum(SIGN_CONVENTIONS)
|
|
88
|
+
.optional()
|
|
89
|
+
.describe("How this context's data carries sign. SAME: a payment carries the same " +
|
|
90
|
+
'sign as what it settles, so a negative amount is a reversal. OPPOSITE: ' +
|
|
91
|
+
'a payment carries the opposite sign of the invoice it settles. Omit to ' +
|
|
92
|
+
'leave it unchanged; it cannot be cleared.'),
|
|
86
93
|
};
|
|
87
94
|
/**
|
|
88
95
|
* Build the PATCH body from the input minus the path-only `contextId`. Only the
|
|
@@ -106,7 +113,8 @@ export function registerContextUpdateTool(server) {
|
|
|
106
113
|
'(NET|GROSS, or "" to clear), feeToleranceAbs/feeTolerancePct ' +
|
|
107
114
|
'(decimal strings), ' +
|
|
108
115
|
'open-item aging (agedBreakThresholdDays — 0 disables — + ' +
|
|
109
|
-
'agedBreakCalendar). No tenant field
|
|
116
|
+
'agedBreakCalendar), signConvention (SAME|OPPOSITE). No tenant field ' +
|
|
117
|
+
'is accepted. Returns the updated ' +
|
|
110
118
|
'context, or a structured RFC 9457 error.',
|
|
111
119
|
inputSchema: updateContextInputShape,
|
|
112
120
|
}, async (args, extra) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../src/tools/context/update.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,EAAE;AACF,4EAA4E;AAC5E,4EAA4E;AAC5E,iFAAiF;AACjF,6EAA6E;AAC7E,yEAAyE;AACzE,8EAA8E;AAC9E,6EAA6E;AAC7E,iFAAiF;AACjF,WAAW;AAEX,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAElD,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../src/tools/context/update.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,EAAE;AACF,4EAA4E;AAC5E,4EAA4E;AAC5E,iFAAiF;AACjF,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C;YACnC,0CAA0C;QAC5C,WAAW,EAAE,uBAAuB;KACrC,EACD,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QACpB,OAAO,mBAAmB,CACxB;YACE,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC;YACjC,IAAI,EAAE,eAAe,CAAC,IAAI,CAAC;SAC5B,EACD,KAAK,CACN,CAAA;IACH,CAAC,CACF,CAAA;AACH,CAAC"}
|
|
@@ -6,10 +6,8 @@
|
|
|
6
6
|
// without moving one byte of the published surface — the name, description and
|
|
7
7
|
// input schema a client sees are exactly the row's fields.
|
|
8
8
|
//
|
|
9
|
-
//
|
|
10
|
-
//
|
|
11
|
-
// relay and fails closed when no usable credential was provided. `extra` is
|
|
12
|
-
// forwarded untouched so the per-request credential reaches that relay.
|
|
9
|
+
// Each row dispatches through shared-dispatch.ts with `extra` untouched, so the
|
|
10
|
+
// per-request credential reaches that relay.
|
|
13
11
|
import { dispatchToolRequest, } from './shared-dispatch.js';
|
|
14
12
|
/**
|
|
15
13
|
* Spread a built query into a MatcherRequest, OMITTING the key when the builder
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"curated-tool.js","sourceRoot":"","sources":["../../src/tools/curated-tool.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,EAAE;AACF,+EAA+E;AAC/E,gFAAgF;AAChF,2EAA2E;AAC3E,+EAA+E;AAC/E,2DAA2D;AAC3D,EAAE;AACF,
|
|
1
|
+
{"version":3,"file":"curated-tool.js","sourceRoot":"","sources":["../../src/tools/curated-tool.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,EAAE;AACF,+EAA+E;AAC/E,gFAAgF;AAChF,2EAA2E;AAC3E,+EAA+E;AAC/E,2DAA2D;AAC3D,EAAE;AACF,gFAAgF;AAChF,6CAA6C;AAM7C,OAAO,EACL,mBAAmB,GAEpB,MAAM,sBAAsB,CAAA;AAW7B;;;;;GAKG;AACH,MAAM,UAAU,SAAS,CACvB,KAA8B;IAE9B,OAAO,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAA;AAC7C,CAAC;AAeD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAClC,MAAiB,EACjB,OAAgC;IAEhC,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;QAC5B,IAAI,OAAO,KAAK,KAAK,UAAU,EAAE,CAAC;YAChC,KAAK,CAAC,MAAM,CAAC,CAAA;YACb,SAAQ;QACV,CAAC;QAED,MAAM,CAAC,YAAY,CACjB,KAAK,CAAC,IAAI,EACV,EAAE,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,WAAW,EAAE,KAAK,CAAC,UAAU,EAAE,EACjE,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CACd,mBAAmB,CACjB,KAAK,CAAC,OAAO,CAAC,IAA+B,CAAC,EAC9C,KAAK,EACL,SAAS,EACT,KAAK,CAAC,SAAS,CAChB,CACJ,CAAA;IACH,CAAC;AACH,CAAC"}
|
|
@@ -7,16 +7,9 @@
|
|
|
7
7
|
// shares the IDENTICAL inputs — a contextId path param plus an optional
|
|
8
8
|
// date_from/date_to/source_id query. This module factors all of that exactly
|
|
9
9
|
// once (the base path + slice builder, the shared input shape, and the query
|
|
10
|
-
// builder) so the seven table rows stay thin (just "name the slice").
|
|
11
|
-
// itself lives in shared-dispatch.ts, so curated + generic surfaces map matcher
|
|
12
|
-
// errors through the identical path (toToolError).
|
|
10
|
+
// builder) so the seven table rows stay thin (just "name the slice").
|
|
13
11
|
//
|
|
14
|
-
// Security:
|
|
15
|
-
// owns the request-scoped relay and fails closed when no usable credential was
|
|
16
|
-
// provided. The contextId path param is a routing identifier (matcher validates
|
|
17
|
-
// the context belongs to the relayed token's tenant); no tenant identifier is
|
|
18
|
-
// ever read or injected, and no dashboard tool input carries one. source_id is a
|
|
19
|
-
// data filter, never a tenant field.
|
|
12
|
+
// Security: source_id is a data filter, never a tenant field.
|
|
20
13
|
import { z } from 'zod';
|
|
21
14
|
import { reportDateFrom, reportDateTo } from '../input-fields.js';
|
|
22
15
|
import { pickQuery } from '../request-fields.js';
|
|
@@ -40,8 +33,7 @@ export function contextDashboardSlicePath(contextId, slice) {
|
|
|
40
33
|
* Dates are YYYY-MM-DD strings; matcher defaults the window (last 30 days ending
|
|
41
34
|
* tomorrow UTC) when omitted and enforces a <=90-day span — we relay the bounds
|
|
42
35
|
* verbatim and let matcher own that validation (a 90-day breach surfaces as a
|
|
43
|
-
* structured RFC 9457 error).
|
|
44
|
-
* NOT tenant fields.
|
|
36
|
+
* structured RFC 9457 error).
|
|
45
37
|
*
|
|
46
38
|
* F4: the 30-day default is a silent clip, not a "no data" signal — a caller
|
|
47
39
|
* with no UI date-picker (an LLM operator) gets a real, well-formed payload
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../src/tools/dashboard/shared.ts"],"names":[],"mappings":"AAAA,mDAAmD;AACnD,EAAE;AACF,+EAA+E;AAC/E,kFAAkF;AAClF,gFAAgF;AAChF,gFAAgF;AAChF,wEAAwE;AACxE,6EAA6E;AAC7E,6EAA6E;AAC7E,
|
|
1
|
+
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../src/tools/dashboard/shared.ts"],"names":[],"mappings":"AAAA,mDAAmD;AACnD,EAAE;AACF,+EAA+E;AAC/E,kFAAkF;AAClF,gFAAgF;AAChF,gFAAgF;AAChF,wEAAwE;AACxE,6EAA6E;AAC7E,6EAA6E;AAC7E,sEAAsE;AACtE,EAAE;AACF,8DAA8D;AAE9D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAGjE,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAEhD,iFAAiF;AACjF,MAAM,UAAU,oBAAoB,CAAC,SAAiB;IACpD,OAAO,wBAAwB,kBAAkB,CAAC,SAAS,CAAC,YAAY,CAAA;AAC1E,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,yBAAyB,CACvC,SAAiB,EACjB,KAAa;IAEb,OAAO,GAAG,oBAAoB,CAAC,SAAS,CAAC,IAAI,KAAK,EAAE,CAAA;AACtD,CAAC;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,CACP,yEAAyE;QACvE,qBAAqB,CACxB;IACH,SAAS,EAAE,cAAc;IACzB,OAAO,EAAE,YAAY;IACrB,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,sEAAsE;QACpE,kCAAkC,CACrC;CACJ,CAAA;AAOD;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CACjC,IAAyB;IAEzB,OAAO,SAAS,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC,CAAA;AAC/D,CAAC"}
|
|
@@ -40,7 +40,7 @@ export const DISPUTE_SORT_FIELDS = [
|
|
|
40
40
|
/** Sort directions matcher supports. */
|
|
41
41
|
export const DISPUTE_SORT_ORDERS = ['asc', 'desc'];
|
|
42
42
|
/** Zod raw shape for `dispute_list` input — filters, date window, pagination, sort. */
|
|
43
|
-
|
|
43
|
+
const listDisputesInputShape = {
|
|
44
44
|
state: z
|
|
45
45
|
.enum(DISPUTE_STATES)
|
|
46
46
|
.optional()
|