@lerianstudio/matcher-mcp 4.5.0-beta.24 → 4.5.0-beta.26
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,12 @@ 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 backoffice invoicing read belongs with its two siblings above and NOT with the
|
|
176
|
+
// curated tools, for a reason stronger than "it is an operator surface": it is
|
|
177
|
+
// addressed by slug and answers with another company's name, address and CPF/CNPJ.
|
|
178
|
+
// The copilot is tenant-scoped, so a curated tool here would be a tool whose whole
|
|
179
|
+
// purpose is to read a stranger's tax id.
|
|
180
|
+
'admin-workspace-billing', // GET /v1/admin/workspaces/{slug}/billing
|
|
175
181
|
// billing webhook (generic-only) — the inbound payment-processor receiver. It is
|
|
176
182
|
// not an operator action in any sense: it is JWT-less, authenticated by a signature
|
|
177
183
|
// over the raw body under a secret only the server holds, and the relay
|
|
@@ -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;AAC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,sBAAsB,EAAE,mFAAmF;IAC3G,kBAAkB,EAAE,2EAA2E;IAC/F,kBAAkB,EAAE,2EAA2E;IAC/F,oBAAoB,EAAE,6EAA6E;IACnG,mBAAmB,EAAE,4EAA4E;IAEjG,iEAAiE;IACjE,mBAAmB,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,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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AA6C;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"}
|
package/dist/spec/openapi.yaml
CHANGED
|
@@ -224,6 +224,38 @@ components:
|
|
|
224
224
|
- createdAt
|
|
225
225
|
- updatedAt
|
|
226
226
|
type: object
|
|
227
|
+
AdminWorkspaceBilling:
|
|
228
|
+
additionalProperties: false
|
|
229
|
+
properties:
|
|
230
|
+
companyName:
|
|
231
|
+
description: Legal name the workspace signed up with — the party the invoice is issued to.
|
|
232
|
+
type: string
|
|
233
|
+
email:
|
|
234
|
+
description: Billing contact the invoice is sent to.
|
|
235
|
+
type: string
|
|
236
|
+
overageUncoveredCents:
|
|
237
|
+
description: "Overage already incurred that the credit balance has not covered, in integer BRL cents — what this workspace owes, and the amount to invoice. It is a receivable and never a negative balance: a new billing period does NOT clear it, it survives a trial-to-paid conversion, and a credit purchase settles it. 0 when nothing is owed."
|
|
238
|
+
format: int64
|
|
239
|
+
type: integer
|
|
240
|
+
slug:
|
|
241
|
+
description: The workspace read.
|
|
242
|
+
type: string
|
|
243
|
+
taxIdStatus:
|
|
244
|
+
description: "Whether the tax id could be read: \"available\" (on file, returned below), \"not_collected\" (the customer supplied none, or never reached checkout), or \"unavailable\" (the payment processor could not be asked — retry; this is NOT \"none supplied\")."
|
|
245
|
+
type: string
|
|
246
|
+
taxIdType:
|
|
247
|
+
description: "Which Brazilian tax id is held: br_cpf (individual) or br_cnpj (company). Present only when taxIdStatus is \"available\"."
|
|
248
|
+
type: string
|
|
249
|
+
taxIdValue:
|
|
250
|
+
description: The CPF/CNPJ as the customer entered it. Customer PII — present only when taxIdStatus is "available".
|
|
251
|
+
type: string
|
|
252
|
+
required:
|
|
253
|
+
- slug
|
|
254
|
+
- companyName
|
|
255
|
+
- email
|
|
256
|
+
- taxIdStatus
|
|
257
|
+
- overageUncoveredCents
|
|
258
|
+
type: object
|
|
227
259
|
AdminWorkspaceResult:
|
|
228
260
|
additionalProperties: false
|
|
229
261
|
properties:
|
|
@@ -8156,8 +8188,12 @@ components:
|
|
|
8156
8188
|
message:
|
|
8157
8189
|
description: Human-readable verification result.
|
|
8158
8190
|
type: string
|
|
8191
|
+
slug:
|
|
8192
|
+
description: Workspace handle (the company slug) whose setup is now under way. Empty when the link was already used or has expired.
|
|
8193
|
+
type: string
|
|
8159
8194
|
required:
|
|
8160
8195
|
- message
|
|
8196
|
+
- slug
|
|
8161
8197
|
type: object
|
|
8162
8198
|
VersionBody:
|
|
8163
8199
|
additionalProperties: false
|
|
@@ -8295,9 +8331,22 @@ components:
|
|
|
8295
8331
|
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.
|
|
8296
8332
|
format: int64
|
|
8297
8333
|
type: integer
|
|
8334
|
+
overageUncoveredCents:
|
|
8335
|
+
description: "Overage already incurred that the credit balance has not covered, in integer BRL cents — what the workspace owes. It is a receivable and never a negative balance: a new billing period does NOT clear it, it survives a trial-to-paid conversion, and the next credit purchase settles it. 0 when nothing is owed."
|
|
8336
|
+
format: int64
|
|
8337
|
+
type: integer
|
|
8298
8338
|
plan:
|
|
8299
8339
|
description: Commercial plan the workspace is on ("free" or a paid tier).
|
|
8300
8340
|
type: string
|
|
8341
|
+
provisioningFailed:
|
|
8342
|
+
description: Whether setup has terminally failed. A failed setup is NOT retried — re-driving it cannot resolve the cause — and is distinguishable from one still in progress without reading logs.
|
|
8343
|
+
type: boolean
|
|
8344
|
+
provisioningState:
|
|
8345
|
+
description: "Setup lifecycle of the workspace: \"provisioning\" (still being built), \"active\" (ready to use), or \"failed\" (setup will not complete on its own — we have been told)."
|
|
8346
|
+
type: string
|
|
8347
|
+
provisioningStep:
|
|
8348
|
+
description: "The setup step that is owed: \"create_tenant\", \"associate_service\", \"migrate_tenant\", \"provision_console\", or \"\" when nothing is owed. On a failed workspace this is the step it died on."
|
|
8349
|
+
type: string
|
|
8301
8350
|
trialEndsAt:
|
|
8302
8351
|
description: When the free trial ends (UTC). Omitted for a paid plan that never trialed.
|
|
8303
8352
|
format: date-time
|
|
@@ -8314,9 +8363,13 @@ components:
|
|
|
8314
8363
|
- linesRemaining
|
|
8315
8364
|
- trialExpired
|
|
8316
8365
|
- expiryReason
|
|
8366
|
+
- provisioningState
|
|
8367
|
+
- provisioningStep
|
|
8368
|
+
- provisioningFailed
|
|
8317
8369
|
- monthlyLineAllowance
|
|
8318
8370
|
- overageRateCentsPerThousandLines
|
|
8319
8371
|
- overageCreditBalanceCents
|
|
8372
|
+
- overageUncoveredCents
|
|
8320
8373
|
- minCreditPurchaseCents
|
|
8321
8374
|
- maxCreditPurchaseCents
|
|
8322
8375
|
type: object
|
|
@@ -8403,6 +8456,37 @@ paths:
|
|
|
8403
8456
|
summary: Readiness check
|
|
8404
8457
|
tags:
|
|
8405
8458
|
- Health
|
|
8459
|
+
/v1/admin/workspaces/{slug}/billing:
|
|
8460
|
+
get:
|
|
8461
|
+
description: "Returns what a human needs to issue this workspace's NFS-e by hand: the legal name, the billing contact, the CPF/CNPJ the customer supplied at checkout — read through from the payment processor on demand, never stored on this side — and the standing unpaid overage the invoice is for, in integer BRL cents. That amount is a receivable, not a negative balance: a new billing period does not clear it and it survives a trial-to-paid conversion, so what an operator reads here is what the customer still owes. taxIdStatus distinguishes \"available\" from \"not_collected\" (the customer supplied none) and \"unavailable\" (the processor could not be asked), so an unreachable processor degrades to a stated answer instead of an error and is never mistaken for a customer with no tax id. The tax id is customer PII and is returned ONLY here, to an operator gated by the workspace admin action; it is never logged or traced. The target slug comes from the URL path: this is a backoffice operation, NOT a tenant-scoped route. An unknown workspace returns 404. Errors use RFC 9457 problem+json."
|
|
8462
|
+
operationId: admin-workspace-billing
|
|
8463
|
+
parameters:
|
|
8464
|
+
- description: Slug of the workspace to act on.
|
|
8465
|
+
in: path
|
|
8466
|
+
name: slug
|
|
8467
|
+
required: true
|
|
8468
|
+
schema:
|
|
8469
|
+
description: Slug of the workspace to act on.
|
|
8470
|
+
maxLength: 255
|
|
8471
|
+
type: string
|
|
8472
|
+
responses:
|
|
8473
|
+
"200":
|
|
8474
|
+
content:
|
|
8475
|
+
application/json:
|
|
8476
|
+
schema:
|
|
8477
|
+
$ref: "#/components/schemas/AdminWorkspaceBilling"
|
|
8478
|
+
description: OK
|
|
8479
|
+
default:
|
|
8480
|
+
content:
|
|
8481
|
+
application/problem+json:
|
|
8482
|
+
schema:
|
|
8483
|
+
$ref: "#/components/schemas/Detail"
|
|
8484
|
+
description: Error
|
|
8485
|
+
security:
|
|
8486
|
+
- BearerAuth: []
|
|
8487
|
+
summary: Read a workspace's invoicing identification (backoffice)
|
|
8488
|
+
tags:
|
|
8489
|
+
- Onboarding
|
|
8406
8490
|
/v1/admin/workspaces/{slug}/reactivate:
|
|
8407
8491
|
put:
|
|
8408
8492
|
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."
|
|
@@ -15997,7 +16081,7 @@ paths:
|
|
|
15997
16081
|
- Onboarding
|
|
15998
16082
|
/v1/signup/verify:
|
|
15999
16083
|
post:
|
|
16000
|
-
description: "Completes self-service onboarding. This is a PUBLIC, anonymous, pre-tenant route: it exchanges the emailed verification token for a
|
|
16084
|
+
description: "Completes email verification and starts self-service onboarding. This is a PUBLIC, anonymous, pre-tenant route: it exchanges the emailed verification token for a workspace whose setup is now under way, and returns the workspace handle. It does NOT wait for setup to finish — creating the environment includes a schema migration whose duration the server does not control, so a background worker drives it to completion and the response comes back immediately. It is idempotent: a repeat call records nothing new, and a token that no longer resolves (already used or expired) returns the same 200 response. The route is rate-limited per client IP."
|
|
16001
16085
|
operationId: signup-verify
|
|
16002
16086
|
requestBody:
|
|
16003
16087
|
content:
|
|
@@ -77,7 +77,13 @@ export function registerWorkspaceUsageTool(server) {
|
|
|
77
77
|
'0%. Never re-derive whether the trial is over; trialExpired and ' +
|
|
78
78
|
'expiryReason are the authority. Returns a structured RFC 9457 error on ' +
|
|
79
79
|
'failure (404 when the caller has no self-serve workspace, 403 ' +
|
|
80
|
-
'MTCH-0021 when billing has suspended it).'
|
|
80
|
+
'MTCH-0021 when billing has suspended it). Also returns the money in ' +
|
|
81
|
+
'both directions, in integer BRL cents: overageCreditBalanceCents ' +
|
|
82
|
+
'(prepaid credit left) and overageUncoveredCents (overage already ' +
|
|
83
|
+
'incurred that the credit did not cover — what the workspace OWES). ' +
|
|
84
|
+
'The second is a receivable, not a negative balance: a new billing ' +
|
|
85
|
+
'period does not clear it, so never tell a customer a rollover settled ' +
|
|
86
|
+
'it, and never report it as a credit.',
|
|
81
87
|
}, async (extra) => {
|
|
82
88
|
let client;
|
|
83
89
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage.js","sourceRoot":"","sources":["../../../src/tools/workspace/usage.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,iFAAiF;AACjF,+EAA+E;AAC/E,8EAA8E;AAC9E,2EAA2E;AAC3E,EAAE;AACF,iFAAiF;AACjF,+EAA+E;AAC/E,iFAAiF;AACjF,6EAA6E;AAC7E,2DAA2D;AAC3D,EAAE;AACF,iFAAiF;AACjF,6EAA6E;AAI7E,OAAO,EACL,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,6BAA6B,CAAA;AACpC,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEjE,2FAA2F;AAC3F,MAAM,sBAAsB,GAAG,uBAAuB,CAAA;AAatD;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,WAAW,CACzB,IAAsC;IAEtC,IAAI,IAAI,EAAE,aAAa,KAAK,UAAU,EAAE,CAAC;QACvC,OAAO,IAAI,CAAA;IACb,CAAC;IAED,MAAM,EAAE,YAAY,EAAE,gBAAgB,EAAE,GAAG,IAAI,CAAA;IAC/C,IAAI,OAAO,YAAY,KAAK,QAAQ,IAAI,OAAO,gBAAgB,KAAK,QAAQ,EAAE,CAAC;QAC7E,OAAO,IAAI,CAAA;IACb,CAAC;IAED,IAAI,CAAC,CAAC,gBAAgB,GAAG,CAAC,CAAC,EAAE,CAAC;QAC5B,OAAO,IAAI,CAAA;IACb,CAAC;IAED,qEAAqE;IACrE,kDAAkD;IAClD,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,YAAY,GAAG,gBAAgB,CAAC,GAAG,IAAI,CAAC,GAAG,EAAE,CAAA;AAClE,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,0BAA0B,CAAC,MAAiB;IAC1D,MAAM,CAAC,YAAY,CACjB,iBAAiB,EACjB;QACE,WAAW,EACT,gEAAgE;YAChE,sEAAsE;YACtE,iEAAiE;YACjE,kEAAkE;YAClE,uEAAuE;YACvE,0DAA0D;YAC1D,wEAAwE;YACxE,uEAAuE;YACvE,yEAAyE;YACzE,uEAAuE;YACvE,oEAAoE;YACpE,yEAAyE;YACzE,iBAAiB;YACjB,wEAAwE;YACxE,sEAAsE;YACtE,sEAAsE;YACtE,kEAAkE;YAClE,yEAAyE;YACzE,gEAAgE;YAChE,
|
|
1
|
+
{"version":3,"file":"usage.js","sourceRoot":"","sources":["../../../src/tools/workspace/usage.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,iFAAiF;AACjF,+EAA+E;AAC/E,8EAA8E;AAC9E,2EAA2E;AAC3E,EAAE;AACF,iFAAiF;AACjF,+EAA+E;AAC/E,iFAAiF;AACjF,6EAA6E;AAC7E,2DAA2D;AAC3D,EAAE;AACF,iFAAiF;AACjF,6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