@lerianstudio/matcher-mcp 1.5.0-beta.3 → 1.5.0-beta.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.
package/dist/server.js
CHANGED
|
@@ -113,7 +113,7 @@ function registerTools(server) {
|
|
|
113
113
|
registerListOperationsTool(server, index);
|
|
114
114
|
registerDescribeOperationTool(server, index);
|
|
115
115
|
// Generic invoke (task 1.2.3): assembles + validates + dispatches any of the
|
|
116
|
-
//
|
|
116
|
+
// 174 operations with the caller's relayed token (fail-closed). Shares the
|
|
117
117
|
// RFC 9457 → tool-error mapping (toToolError) with the curated surface.
|
|
118
118
|
registerInvokeTool(server, index);
|
|
119
119
|
// Curated fee-schedule vertical (task 1.3.2): six typed tools (create/list/
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
// covers — the registry the drift guard checks against.
|
|
3
3
|
//
|
|
4
4
|
// WHY THIS EXISTS
|
|
5
|
-
// The server exposes two surfaces over the
|
|
5
|
+
// The server exposes two surfaces over the 174-operation matcher spec:
|
|
6
6
|
// 1. The GENERIC trio (matcher_list_operations / describe / invoke) reads the
|
|
7
7
|
// spec at runtime, so it tracks the spec automatically. `load.test.ts`
|
|
8
|
-
// already pins `index.operations.size ===
|
|
8
|
+
// already pins `index.operations.size === 174` as that side's canary.
|
|
9
9
|
// 2. The CURATED tools (the ~72 hand-written Zod tools under `src/tools/*/`)
|
|
10
10
|
// hard-code their own method+path. NOTHING in those tools consults the
|
|
11
11
|
// spec, and their unit tests assert against the same hard-coded literal —
|
|
@@ -162,5 +162,12 @@ export const GENERIC_ONLY_OPERATION_IDS = [
|
|
|
162
162
|
// PUBLIC pre-login PKCE bootstrap for the console (client id + issuer per
|
|
163
163
|
// workspace slug); browser-facing discovery, not an operator action.
|
|
164
164
|
'workspace-auth-config', // GET /v1/workspaces/{slug}/auth-config
|
|
165
|
+
// standalone-SaaS Phase 2 control-plane (generic-only) — tenant billing read
|
|
166
|
+
// plus backoffice workspace-lifecycle admin. Straightforward body-less ops
|
|
167
|
+
// nobody has hand-curated a Zod tool for; billing read is tenant-scoped, the
|
|
168
|
+
// admin pair is an internal backoffice surface, not an operator action.
|
|
169
|
+
'workspace-billing', // GET /v1/workspace/billing
|
|
170
|
+
'admin-suspend-workspace', // PUT /v1/admin/workspaces/{slug}/suspend
|
|
171
|
+
'admin-reactivate-workspace', // PUT /v1/admin/workspaces/{slug}/reactivate
|
|
165
172
|
];
|
|
166
173
|
//# sourceMappingURL=curated-operations.js.map
|
|
@@ -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;IAClF,kBAAkB,EAAE,mDAAmD;IACvE,qBAAqB,EAAE,yEAAyE;IAChG,mBAAmB,EAAE,gEAAgE;IAErF,qCAAqC;IACrC,eAAe,EAAE,8DAA8D;IAC/E,eAAe,EAAE,qDAAqD;IACtE,YAAY,EAAE,qDAAqD;IACnE,cAAc,EAAE,8DAA8D;IAC9E,eAAe,EAAE,qDAAqD;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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;
|
|
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;IAClF,kBAAkB,EAAE,mDAAmD;IACvE,qBAAqB,EAAE,yEAAyE;IAChG,mBAAmB,EAAE,gEAAgE;IAErF,qCAAqC;IACrC,eAAe,EAAE,8DAA8D;IAC/E,eAAe,EAAE,qDAAqD;IACtE,YAAY,EAAE,qDAAqD;IACnE,cAAc,EAAE,8DAA8D;IAC9E,eAAe,EAAE,qDAAqD;IAEtE,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EAAoE;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,6EAA6E;IAC7E,2EAA2E;IAC3E,6EAA6E;IAC7E,wEAAwE;IACxE,mBAAmB,EAAE,4BAA4B;IACjD,yBAAyB,EAAE,0CAA0C;IACrE,4BAA4B,EAAE,6CAA6C;CACnE,CAAA"}
|
package/dist/spec/openapi.yaml
CHANGED
|
@@ -224,6 +224,19 @@ components:
|
|
|
224
224
|
- createdAt
|
|
225
225
|
- updatedAt
|
|
226
226
|
type: object
|
|
227
|
+
AdminWorkspaceResult:
|
|
228
|
+
additionalProperties: false
|
|
229
|
+
properties:
|
|
230
|
+
action:
|
|
231
|
+
description: "The action applied: \"suspended\" or \"reactivated\"."
|
|
232
|
+
type: string
|
|
233
|
+
slug:
|
|
234
|
+
description: The workspace acted on.
|
|
235
|
+
type: string
|
|
236
|
+
required:
|
|
237
|
+
- slug
|
|
238
|
+
- action
|
|
239
|
+
type: object
|
|
227
240
|
AgeBucketDTO:
|
|
228
241
|
additionalProperties: false
|
|
229
242
|
properties:
|
|
@@ -7931,6 +7944,28 @@ components:
|
|
|
7931
7944
|
- organization
|
|
7932
7945
|
- issuer
|
|
7933
7946
|
type: object
|
|
7947
|
+
WorkspaceBilling:
|
|
7948
|
+
additionalProperties: false
|
|
7949
|
+
properties:
|
|
7950
|
+
billingStatus:
|
|
7951
|
+
description: "Commercial lifecycle: trialing, active, past_due, or suspended."
|
|
7952
|
+
type: string
|
|
7953
|
+
daysRemaining:
|
|
7954
|
+
description: Whole days left in the trial, derived server-side. 0 when there is no trial or it has already ended.
|
|
7955
|
+
format: int64
|
|
7956
|
+
type: integer
|
|
7957
|
+
plan:
|
|
7958
|
+
description: Commercial plan the workspace is on ("free" or a paid tier).
|
|
7959
|
+
type: string
|
|
7960
|
+
trialEndsAt:
|
|
7961
|
+
description: When the free trial ends (UTC). Omitted for a paid plan that never trialed.
|
|
7962
|
+
format: date-time
|
|
7963
|
+
type: string
|
|
7964
|
+
required:
|
|
7965
|
+
- plan
|
|
7966
|
+
- billingStatus
|
|
7967
|
+
- daysRemaining
|
|
7968
|
+
type: object
|
|
7934
7969
|
securitySchemes:
|
|
7935
7970
|
BearerAuth:
|
|
7936
7971
|
bearerFormat: JWT
|
|
@@ -8009,6 +8044,68 @@ paths:
|
|
|
8009
8044
|
summary: Readiness check
|
|
8010
8045
|
tags:
|
|
8011
8046
|
- Health
|
|
8047
|
+
/v1/admin/workspaces/{slug}/reactivate:
|
|
8048
|
+
put:
|
|
8049
|
+
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."
|
|
8050
|
+
operationId: admin-reactivate-workspace
|
|
8051
|
+
parameters:
|
|
8052
|
+
- description: Slug of the workspace to act on.
|
|
8053
|
+
in: path
|
|
8054
|
+
name: slug
|
|
8055
|
+
required: true
|
|
8056
|
+
schema:
|
|
8057
|
+
description: Slug of the workspace to act on.
|
|
8058
|
+
maxLength: 255
|
|
8059
|
+
type: string
|
|
8060
|
+
responses:
|
|
8061
|
+
"200":
|
|
8062
|
+
content:
|
|
8063
|
+
application/json:
|
|
8064
|
+
schema:
|
|
8065
|
+
$ref: "#/components/schemas/AdminWorkspaceResult"
|
|
8066
|
+
description: OK
|
|
8067
|
+
default:
|
|
8068
|
+
content:
|
|
8069
|
+
application/problem+json:
|
|
8070
|
+
schema:
|
|
8071
|
+
$ref: "#/components/schemas/Detail"
|
|
8072
|
+
description: Error
|
|
8073
|
+
security:
|
|
8074
|
+
- BearerAuth: []
|
|
8075
|
+
summary: Reactivate a suspended workspace (backoffice)
|
|
8076
|
+
tags:
|
|
8077
|
+
- Onboarding
|
|
8078
|
+
/v1/admin/workspaces/{slug}/suspend:
|
|
8079
|
+
put:
|
|
8080
|
+
description: "Suspends a workspace's commercial access: persists billing_status=suspended (source of truth), cuts interactive console login at the IdP, suspends the tenant's matcher service association at the Tenant Manager (best-effort), and evicts the billing edge-gate cache so API traffic is cut within the gate TTL. The target slug comes from the URL path: this is a backoffice operation gated by the workspace admin action, NOT a tenant-scoped route — the operator acts across workspaces. Idempotent. Errors use RFC 9457 problem+json."
|
|
8081
|
+
operationId: admin-suspend-workspace
|
|
8082
|
+
parameters:
|
|
8083
|
+
- description: Slug of the workspace to act on.
|
|
8084
|
+
in: path
|
|
8085
|
+
name: slug
|
|
8086
|
+
required: true
|
|
8087
|
+
schema:
|
|
8088
|
+
description: Slug of the workspace to act on.
|
|
8089
|
+
maxLength: 255
|
|
8090
|
+
type: string
|
|
8091
|
+
responses:
|
|
8092
|
+
"200":
|
|
8093
|
+
content:
|
|
8094
|
+
application/json:
|
|
8095
|
+
schema:
|
|
8096
|
+
$ref: "#/components/schemas/AdminWorkspaceResult"
|
|
8097
|
+
description: OK
|
|
8098
|
+
default:
|
|
8099
|
+
content:
|
|
8100
|
+
application/problem+json:
|
|
8101
|
+
schema:
|
|
8102
|
+
$ref: "#/components/schemas/Detail"
|
|
8103
|
+
description: Error
|
|
8104
|
+
security:
|
|
8105
|
+
- BearerAuth: []
|
|
8106
|
+
summary: Suspend a workspace (backoffice)
|
|
8107
|
+
tags:
|
|
8108
|
+
- Onboarding
|
|
8012
8109
|
/v1/contexts:
|
|
8013
8110
|
get:
|
|
8014
8111
|
description: Returns a cursor-paginated list of reconciliation contexts, optionally filtered by type and status.
|
|
@@ -15472,6 +15569,28 @@ paths:
|
|
|
15472
15569
|
summary: Verify a self-service signup
|
|
15473
15570
|
tags:
|
|
15474
15571
|
- Onboarding
|
|
15572
|
+
/v1/workspace/billing:
|
|
15573
|
+
get:
|
|
15574
|
+
description: "Returns the authenticated tenant's own commercial state: its plan, billing status, trial deadline, and the whole days remaining in the trial (derived server-side). The tenant is resolved from the JWT tenant-slug claim — this endpoint never accepts a tenant identifier in the request and can only read the caller's own workspace. A tenant with no self-serve workspace record (the default/system tenant, or an unknown slug) returns 404. Errors use the RFC 9457 application/problem+json contract."
|
|
15575
|
+
operationId: workspace-billing
|
|
15576
|
+
responses:
|
|
15577
|
+
"200":
|
|
15578
|
+
content:
|
|
15579
|
+
application/json:
|
|
15580
|
+
schema:
|
|
15581
|
+
$ref: "#/components/schemas/WorkspaceBilling"
|
|
15582
|
+
description: OK
|
|
15583
|
+
default:
|
|
15584
|
+
content:
|
|
15585
|
+
application/problem+json:
|
|
15586
|
+
schema:
|
|
15587
|
+
$ref: "#/components/schemas/Detail"
|
|
15588
|
+
description: Error
|
|
15589
|
+
security:
|
|
15590
|
+
- BearerAuth: []
|
|
15591
|
+
summary: Read the current workspace's commercial state
|
|
15592
|
+
tags:
|
|
15593
|
+
- Onboarding
|
|
15475
15594
|
/v1/workspaces/{slug}/auth-config:
|
|
15476
15595
|
get:
|
|
15477
15596
|
description: "Resolves the minimum a browser needs to start a PKCE login for a workspace: the console OAuth client id, the identity-provider organization, and the public issuer URL. This is a PUBLIC, anonymous, read-only, pre-tenant route: it carries no operator JWT and returns nothing about the account, its owner, or its lifecycle. It answers only for ACTIVE workspaces; a nonexistent, still-provisioning, or suspended workspace returns an IDENTICAL 404 (no enumeration of lifecycle state). The response is briefly cacheable and the route is rate-limited per client IP. Errors use the RFC 9457 application/problem+json contract."
|