@lerianstudio/matcher-mcp 5.0.0-beta.28 → 5.0.0-beta.29

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.
@@ -172,6 +172,10 @@ export const GENERIC_ONLY_OPERATION_IDS = [
172
172
  // required knowing the operationId.)
173
173
  'admin-suspend-workspace', // PUT /v1/admin/workspaces/{slug}/suspend
174
174
  'admin-reactivate-workspace', // PUT /v1/admin/workspaces/{slug}/reactivate
175
+ // The enterprise plan assignment joins its two siblings above, and is the one of the
176
+ // four an agent must least be able to reach: it changes what a company is charged, on
177
+ // a workspace named in the path rather than in the caller's own token.
178
+ 'admin-assign-workspace-plan', // PUT /v1/admin/workspaces/{slug}/plan
175
179
  // The backoffice invoicing read belongs with its two siblings above and NOT with the
176
180
  // curated tools, for a reason stronger than "it is an operator surface": it is
177
181
  // addressed by slug and answers with another company's name, address and CPF/CNPJ.
@@ -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,uEAAuE;AACvE,gFAAgF;AAChF,4EAA4E;AAC5E,2EAA2E;AAC3E,+EAA+E;AAC/E,4EAA4E;AAC5E,+EAA+E;AAC/E,yEAAyE;AACzE,4EAA4E;AAC5E,EAAE;AACF,0EAA0E;AAC1E,+EAA+E;AAC/E,6EAA6E;AAC7E,+EAA+E;AAC/E,4EAA4E;AAC5E,gFAAgF;AAChF,8DAA8D;AAC9D,EAAE;AACF,kDAAkD;AAClD,kFAAkF;AAClF,+EAA+E;AAC/E,+EAA+E;AAC/E,6EAA6E;AAC7E,uDAAuD;AAEvD;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,6CAA6C;IAC7C,mBAAmB,EAAE,mDAAmD;IACxE,mBAAmB,EAAE,gEAAgE;IACrF,gBAAgB,EAAE,gEAAgE;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AAmB,EAAE,sEAAsE;CACnF,CAAA;AAEV;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,8EAA8E;IAC9E,kEAAkE;IAClE,iBAAiB;IACjB,4EAA4E;IAC5E,+DAA+D;IAC/D,iBAAiB;IACjB,+EAA+E;IAC/E,wEAAwE;IACxE,wBAAwB,EAAE,8CAA8C;IACxE,yBAAyB,EAAE,8CAA8C;IACzE,0BAA0B,EAAE,oEAAoE;IAChG,0BAA0B,EAAE,6DAA6D;IACzF,8EAA8E;IAC9E,4DAA4D;IAC5D,0BAA0B,EAAE,wDAAwD;IACpF,+EAA+E;IAC/E,qEAAqE;IACrE,iBAAiB,EAAE,gCAAgC;IACnD,yEAAyE;IACzE,6EAA6E;IAC7E,8EAA8E;IAC9E,wEAAwE;IACxE,QAAQ,EAAE,kBAAkB;IAC5B,eAAe,EAAE,yBAAyB;IAC1C,0EAA0E;IAC1E,qEAAqE;IACrE,uBAAuB,EAAE,wCAAwC;IACjE,oEAAoE;IACpE,4EAA4E;IAC5E,6EAA6E;IAC7E,2EAA2E;IAC3E,8EAA8E;IAC9E,qCAAqC;IACrC,yBAAyB,EAAE,0CAA0C;IACrE,4BAA4B,EAAE,6CAA6C;IAC3E,qFAAqF;IACrF,+EAA+E;IAC/E,mFAAmF;IACnF,mFAAmF;IACnF,0CAA0C;IAC1C,yBAAyB,EAAE,0CAA0C;IACrE,iFAAiF;IACjF,oFAAoF;IACpF,wEAAwE;IACxE,iFAAiF;IACjF,oFAAoF;IACpF,uBAAuB,EAAE,2BAA2B;CAC5C,CAAA"}
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,uEAAuE;AACvE,gFAAgF;AAChF,4EAA4E;AAC5E,2EAA2E;AAC3E,+EAA+E;AAC/E,4EAA4E;AAC5E,+EAA+E;AAC/E,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uCAAuC;IACtE,qFAAqF;IACrF,+EAA+E;IAC/E,mFAAmF;IACnF,mFAAmF;IACnF,0CAA0C;IAC1C,yBAAyB,EAAE,0CAA0C;IACrE,iFAAiF;IACjF,oFAAoF;IACpF,wEAAwE;IACxE,iFAAiF;IACjF,oFAAoF;IACpF,uBAAuB,EAAE,2BAA2B;CAC5C,CAAA"}
@@ -230,6 +230,33 @@ components:
230
230
  - createdAt
231
231
  - updatedAt
232
232
  type: object
233
+ AdminAssignPlanInputBody:
234
+ additionalProperties: false
235
+ properties:
236
+ plan:
237
+ description: "The plan code to assign. ONLY \"enterprise\" is accepted: self-serve plans are bought through checkout and converged from the live subscription's price, so assigning one here would be a payment-processor bypass the next processor delivery silently reverts. Any other code is refused with 409."
238
+ maxLength: 64
239
+ type: string
240
+ required:
241
+ - plan
242
+ type: object
243
+ AdminAssignPlanResult:
244
+ additionalProperties: false
245
+ properties:
246
+ billingStatus:
247
+ description: The commercial standing the workspace now holds. An enterprise contract is in good standing the moment it is signed, so this is always "active".
248
+ type: string
249
+ plan:
250
+ description: The plan the workspace now holds.
251
+ type: string
252
+ slug:
253
+ description: The workspace assigned.
254
+ type: string
255
+ required:
256
+ - slug
257
+ - plan
258
+ - billingStatus
259
+ type: object
233
260
  AdminWorkspaceBilling:
234
261
  additionalProperties: false
235
262
  properties:
@@ -8452,7 +8479,7 @@ components:
8452
8479
  format: int64
8453
8480
  type: integer
8454
8481
  monthlyLineAllowance:
8455
- description: Billable lines the plan includes per month, from the price list. Monthly on every plan regardless of billing interval. 0 when the stored plan code is not in the catalogue.
8482
+ description: Billable lines the plan includes per month, from the price list. Monthly on every plan regardless of billing interval. 0 when the plan is unmetered (see volumeUnmetered) or the stored plan code is not in the catalogue.
8456
8483
  format: int64
8457
8484
  type: integer
8458
8485
  overageCreditBalanceCents:
@@ -8460,7 +8487,7 @@ components:
8460
8487
  format: int64
8461
8488
  type: integer
8462
8489
  overageRateCentsPerThousandLines:
8463
- description: What lines beyond the allowance cost, in integer BRL cents per THOUSAND lines (per-thousand because the entry rate is 0,4 cents a line and would truncate to zero). 0 when the stored plan code is not in the catalogue.
8490
+ description: What lines beyond the allowance cost, in integer BRL cents per THOUSAND lines (per-thousand because the entry rate is 0,4 cents a line and would truncate to zero). 0 when the plan is unmetered (see volumeUnmetered) or the stored plan code is not in the catalogue.
8464
8491
  format: int64
8465
8492
  type: integer
8466
8493
  overageUncoveredCents:
@@ -8486,6 +8513,9 @@ components:
8486
8513
  trialExpired:
8487
8514
  description: Whether the trial is over on EITHER axis (time or volume), or the workspace is already suspended.
8488
8515
  type: boolean
8516
+ volumeUnmetered:
8517
+ description: "Whether this plan is unmetered: its volume ceiling and its overage price are contractual (enterprise) rather than from the price list. When true, monthlyLineAllowance and overageRateCentsPerThousandLines are both 0 because no figure applies — do NOT render them as terms, and do not read the zero rate as free overage."
8518
+ type: boolean
8489
8519
  required:
8490
8520
  - plan
8491
8521
  - billingStatus
@@ -8498,6 +8528,7 @@ components:
8498
8528
  - provisioningState
8499
8529
  - provisioningStep
8500
8530
  - provisioningFailed
8531
+ - volumeUnmetered
8501
8532
  - monthlyLineAllowance
8502
8533
  - overageRateCentsPerThousandLines
8503
8534
  - overageCreditBalanceCents
@@ -8628,6 +8659,43 @@ paths:
8628
8659
  summary: Read a workspace's invoicing identification (backoffice)
8629
8660
  tags:
8630
8661
  - Onboarding
8662
+ /v1/admin/workspaces/{slug}/plan:
8663
+ put:
8664
+ description: "Puts a workspace on the contractual enterprise plan: persists plan=enterprise and billing_status=active together, then evicts the billing edge-gate and volume-resolver caches so the contractual ceiling applies immediately. ONLY \"enterprise\" is accepted. This is not a generic set-plan operation: self-serve plans are bought through hosted checkout and converged from the live subscription's price, so assigning one by hand would be a payment-processor bypass that the next processor delivery silently reverts — any other plan code returns 409. It REFUSES a workspace whose subscription the payment processor could still bill (409): the operator cancels there first, where the proration and refund decision gets human eyes, and this route never moves processor money. That refusal covers every subscription that is not permanently over — one awaiting card authentication or one that is paused is not charging today and resumes tomorrow, and it would revert this plan the moment it does; only a cancelled or expired subscription is assignable over. If the processor cannot be asked, the request is refused as retryable (503) rather than allowed through. A suspended workspace is refused (409) because this operation moves no access posture — reactivate it first, and the write is compare-and-swapped on the status read, so a suspension landing mid-request is refused rather than reversed. There is no reverse: removing the enterprise plan is not offered. The target slug comes from the URL path (backoffice operation, workspace admin action). An unknown workspace returns 404. Errors use RFC 9457 problem+json."
8665
+ operationId: admin-assign-workspace-plan
8666
+ parameters:
8667
+ - description: Slug of the workspace to assign the plan to.
8668
+ in: path
8669
+ name: slug
8670
+ required: true
8671
+ schema:
8672
+ description: Slug of the workspace to assign the plan to.
8673
+ maxLength: 255
8674
+ type: string
8675
+ requestBody:
8676
+ content:
8677
+ application/json:
8678
+ schema:
8679
+ $ref: "#/components/schemas/AdminAssignPlanInputBody"
8680
+ required: true
8681
+ responses:
8682
+ "200":
8683
+ content:
8684
+ application/json:
8685
+ schema:
8686
+ $ref: "#/components/schemas/AdminAssignPlanResult"
8687
+ description: OK
8688
+ default:
8689
+ content:
8690
+ application/problem+json:
8691
+ schema:
8692
+ $ref: "#/components/schemas/Detail"
8693
+ description: Error
8694
+ security:
8695
+ - BearerAuth: []
8696
+ summary: Assign the enterprise plan to a workspace (backoffice)
8697
+ tags:
8698
+ - Onboarding
8631
8699
  /v1/admin/workspaces/{slug}/reactivate:
8632
8700
  put:
8633
8701
  description: "Restores a suspended workspace: persists billing_status=active, re-enables interactive console login at the IdP, reactivates the tenant at the Tenant Manager (best-effort), and evicts the billing edge-gate cache. The target slug comes from the URL path (backoffice operation, workspace admin action). Idempotent. Errors use RFC 9457 problem+json."
@@ -16495,7 +16563,7 @@ paths:
16495
16563
  - Onboarding
16496
16564
  /v1/workspace/credit-purchase:
16497
16565
  post:
16498
- description: "Opens a ONE-OFF hosted payment session that buys prepaid overage credit for the AUTHENTICATED tenant's own workspace, and returns the URL to redirect the browser to. It is never a subscription. The workspace is resolved from the JWT tenant-slug claim: this endpoint never accepts a tenant identifier in the body, path, query or headers. Any workspace may buy — trialing, lapsed, monthly or annual — because the customer who has run out of allowance is the one being told to buy. Payment is by CARD on every plan, including annual: the instrument that funds overage credit is deliberately not the subscription's instrument, and the card is saved for future CREDIT purchases only. An amount outside the price list's minimum and maximum is refused before the processor is called. The credit balance moves ONLY when the processor confirms the payment through the verified webhook — never on the return page and never in this response. Errors use the RFC 9457 application/problem+json contract."
16566
+ description: "Opens a ONE-OFF hosted payment session that buys prepaid overage credit for the AUTHENTICATED tenant's own workspace, and returns the URL to redirect the browser to. It is never a subscription. The workspace is resolved from the JWT tenant-slug claim: this endpoint never accepts a tenant identifier in the body, path, query or headers. Any workspace on a self-serve plan may buy — trialing, lapsed, monthly or annual — because the customer who has run out of allowance is the one being told to buy. A workspace on a CONTRACTUAL plan is refused with 409: its volume is not metered, so prepaid overage credit buys it nothing. Payment is by CARD on every plan, including annual: the instrument that funds overage credit is deliberately not the subscription's instrument, and the card is saved for future CREDIT purchases only. An amount outside the price list's minimum and maximum is refused before the processor is called. The credit balance moves ONLY when the processor confirms the payment through the verified webhook — never on the return page and never in this response. Errors use the RFC 9457 application/problem+json contract."
16499
16567
  operationId: workspace-credit-purchase
16500
16568
  requestBody:
16501
16569
  content:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lerianstudio/matcher-mcp",
3
- "version": "5.0.0-beta.28",
3
+ "version": "5.0.0-beta.29",
4
4
  "type": "module",
5
5
  "description": "Model Context Protocol server for the Matcher reconciliation engine",
6
6
  "license": "Apache-2.0",