@noresponse/mcp 0.6.17 → 0.8.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/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.8.0
4
+
5
+ * `SDK.assessments.search()`:
6
+ * `request` **Changed**
7
+ * `response` **Changed**
8
+
9
+ ## 0.7.0
10
+
11
+ * `SDK.usage.get()`: `response.console_lookups` **Added**
12
+
3
13
  ## 0.6.17
4
14
 
5
15
  * `SDK.assessments.create()`: `response.code` **Changed** (Breaking ⚠️)
package/bin/mcp-server.js CHANGED
@@ -48136,9 +48136,9 @@ var init_config = __esm(() => {
48136
48136
  SDK_METADATA = {
48137
48137
  language: "typescript",
48138
48138
  openapiDocVersion: "1",
48139
- sdkVersion: "0.6.17",
48139
+ sdkVersion: "0.8.0",
48140
48140
  genVersion: "internal",
48141
- userAgent: "noresponse-sdk/mcp-typescript 0.6.17 internal 1 @noresponse/mcp"
48141
+ userAgent: "noresponse-sdk/mcp-typescript 0.8.0 internal 1 @noresponse/mcp"
48142
48142
  };
48143
48143
  });
48144
48144
 
@@ -56270,9 +56270,11 @@ var init_assessmentsearchrequest = __esm(() => {
56270
56270
  account_id: string2().optional().describe("Your own opaque identifier for the account being checked, scoped to your workspace. Use an id you mint, with no direct identifier (email, phone, name or national id) in it. '|' is accepted so an Auth0 user id such as 'auth0|64abc' passes unchanged; '@', '+', '$' and whitespace are refused by the pattern, as is an exact-shape JWT; a hex digest such as a SHA-256 is allowed, because hashing an internal id is a common pseudonymous scheme. A value such as '07700900123' or 'jane.doe.gmail.com' cannot be told apart from an opaque id. It travels in bodies, and in a URL only as the path segment of GET /v1/accounts/{account_id} and its /assessments. An assessment requested by a provider hook at pre_registration, which has no account yet, carries the server-issued account_id pre: followed by its assessment_id."),
56271
56271
  asn: int().optional(),
56272
56272
  band: Band$zodSchema.optional(),
56273
+ changed: boolean2().optional().describe("true returns only assessments whose latest stored revision's decision differs from their first answer's decision (see decision); false only the others. An assessment whose first answer or latest revision has no decision yet is not changed. Cannot be combined with revision first."),
56273
56274
  country: string2().optional(),
56274
56275
  cursor: string2().optional().describe("Opaque, expiring cursor bound to this environment, operation and every filter. Keep the filters unchanged."),
56275
56276
  decision: Decision$zodSchema.optional().describe("An assessment's own decision: block when its stored risk.block is true, otherwise its recommendation. It is not the account's decision or held-admission state."),
56277
+ email: string2().optional().describe("Assessments of every account that one of its retained admitted assessments sent this mailbox as identifiers.email, matched as lists match an email entry: case-insensitive, a +tag removed and, at gmail.com and googlemail.com, the dots of the local part ignored. Only assessments stored since email list matching began carry the mailbox. An address that is not a valid mailbox is refused with 400."),
56276
56278
  flow: Flow$zodSchema.optional().describe("The event an assessment is made for: account_creation (a user creates an account), login (a user returns to an existing account) or purchase (a payment or a credit grant). The account's risk is reported with the decision for this flow."),
56277
56279
  from: string2(),
56278
56280
  impact: Impact$zodSchema.optional().describe("The selected reason's served impact band. Requires reason."),
@@ -56383,7 +56385,7 @@ var init_assessmentsSearch2 = __esm(() => {
56383
56385
  name: "search_assessments",
56384
56386
  description: `Search assessments across this environment
56385
56387
 
56386
- Search retained assessments created in [from,to), over at most 366 days. Filters use each assessment decision, rather than the current account decision. Results can change between pages. Keep the assessment version to retrieve the exact decision later. Each item's detail.identifiers holds the identifiers its assessment was sent, exactly as received. This read does not require an idempotency key.`,
56388
+ Search retained assessments created in [from,to), over at most 366 days. Filters use each assessment decision, rather than the current account decision. Results can change between pages. Keep the assessment version to retrieve the exact decision later. Each item's detail.identifiers holds the identifiers its assessment was sent, exactly as received, and first_decision holds the decision of its first answer. email finds every assessment of the accounts that sent a mailbox, matched as lists match it. changed keeps the assessments a later revision changed. total counts every match, exactly up to 10000. This read does not require an idempotency key.`,
56387
56389
  annotations: {
56388
56390
  title: "Search assessments in this environment",
56389
56391
  destructiveHint: false,
@@ -68078,6 +68080,17 @@ Change named retention, source or flow settings in one transaction. Requires set
68078
68080
  };
68079
68081
  });
68080
68082
 
68083
+ // src/models/consolelookups.ts
68084
+ var ConsoleLookups$zodSchema;
68085
+ var init_consolelookups = __esm(() => {
68086
+ init_zod();
68087
+ ConsoleLookups$zodSchema = object({
68088
+ limit: int().describe("Lookups allowed per UTC day."),
68089
+ resets_at: string2().describe("The next reset: the coming midnight UTC, when used returns to 0."),
68090
+ used: int().describe("Lookups spent since the last reset.")
68091
+ }).describe("The live environment's daily cap on assessments members make through the console (the playground), as spent on the current UTC day. Each console submission with a new Idempotency-Key spends one lookup; a replay spends nothing, and API keys and the test environment spend none. When used reaches limit, the next lookup answers 429 lookup_limit_reached until resets_at. The count is the one the cap enforces.");
68092
+ });
68093
+
68081
68094
  // src/models/metric.ts
68082
68095
  var Metric$zodSchema;
68083
68096
  var init_metric = __esm(() => {
@@ -68122,13 +68135,15 @@ var init_usagecount = __esm(() => {
68122
68135
  var Usage$zodSchema;
68123
68136
  var init_usage = __esm(() => {
68124
68137
  init_zod();
68138
+ init_consolelookups();
68125
68139
  init_usagecount();
68126
68140
  Usage$zodSchema = object({
68141
+ console_lookups: ConsoleLookups$zodSchema.optional().describe("The live environment's daily cap on assessments members make through the console (the playground), as spent on the current UTC day. Each console submission with a new Idempotency-Key spends one lookup; a replay spends nothing, and API keys and the test environment spend none. When used reaches limit, the next lookup answers 429 lookup_limit_reached until resets_at. The count is the one the cap enforces."),
68127
68142
  from: string2().describe("The first UTC day covered."),
68128
68143
  items: array(UsageCount$zodSchema).describe("Ordered by environment (live first), then day, metric, flow and depth."),
68129
68144
  to: string2().describe("The last UTC day covered, included."),
68130
68145
  workspace_id: string2().describe("The workspace id, which is also its live environment's workspace id; the test environment's is the same id with :test appended. A workspace created through the API is tnt_ and a 26-character ULID.")
68131
- }).describe("Body of the 200 answer to GET /v1/workspaces/{workspace_id}/usage: what the workspace's environments were metered for on each UTC day from from through to. Each billable unit is counted once, where it becomes final: an assessment when it is admitted (by flow and depth), a webhook delivery once per event per endpoint (retries and replays add nothing), and a key-usage event once when the ingest accepts it. A count does not change when the assessment, account or workspace is later deleted. A day, environment or metric with nothing counted has no item. No prices, limits or billing.");
68146
+ }).describe("Body of the 200 answer to GET /v1/workspaces/{workspace_id}/usage: what the workspace's environments were metered for on each UTC day from from through to. Each billable unit is counted once, where it becomes final: an assessment when it is admitted (by flow and depth), a webhook delivery once per event per endpoint (retries and replays add nothing), and a key-usage event once when the ingest accepts it. A count does not change when the assessment, account or workspace is later deleted. A day, environment or metric with nothing counted has no item. No prices or billing. console_lookups is the one limit: the live environment's daily cap on console lookups, as spent today.");
68132
68147
  });
68133
68148
 
68134
68149
  // src/models/getusageop.ts
@@ -68273,7 +68288,7 @@ var init_usageGet2 = __esm(() => {
68273
68288
  name: "get_workspace_usage",
68274
68289
  description: `Read a workspace's usage.
68275
68290
 
68276
- Read daily usage units for the environments you can access. These counts are unpriced.`,
68291
+ Read daily usage units for the environments you can access. These counts are unpriced. With live access it also returns the daily console lookup cap: used, limit and resets_at.`,
68277
68292
  annotations: {
68278
68293
  title: "Read unpriced workspace usage in the key's environment",
68279
68294
  destructiveHint: false,
@@ -69544,7 +69559,7 @@ endpoint.verification sends a signed challenge now and answers whether the endpo
69544
69559
  function createMCPServer(deps) {
69545
69560
  const server = new McpServer({
69546
69561
  name: "NoResponse",
69547
- version: "0.6.17"
69562
+ version: "0.8.0"
69548
69563
  });
69549
69564
  const getClient = deps.getSDK || (() => new NoResponseCore({
69550
69565
  security: deps.security,
@@ -69808,7 +69823,7 @@ Count this environment's assessments created in [from,to) by hour, day or week,
69808
69823
  name: "search_assessments",
69809
69824
  description: `Search assessments across this environment
69810
69825
 
69811
- Search retained assessments created in [from,to), over at most 366 days. Filters use each assessment decision, rather than the current account decision. Results can change between pages. Keep the assessment version to retrieve the exact decision later. Each item's detail.identifiers holds the identifiers its assessment was sent, exactly as received. This read does not require an idempotency key.`
69826
+ Search retained assessments created in [from,to), over at most 366 days. Filters use each assessment decision, rather than the current account decision. Results can change between pages. Keep the assessment version to retrieve the exact decision later. Each item's detail.identifiers holds the identifiers its assessment was sent, exactly as received, and first_decision holds the decision of its first answer. email finds every assessment of the accounts that sent a mailbox, matched as lists match it. changed keeps the assessments a later revision changed. total counts every match, exactly up to 10000. This read does not require an idempotency key.`
69812
69827
  },
69813
69828
  {
69814
69829
  name: "get_assessment_version",
@@ -70054,7 +70069,7 @@ Replay a recorded delivery for the current audit subscription. Requires audit_ma
70054
70069
  name: "get_workspace_usage",
70055
70070
  description: `Read a workspace's usage.
70056
70071
 
70057
- Read daily usage units for the environments you can access. These counts are unpriced.`
70072
+ Read daily usage units for the environments you can access. These counts are unpriced. With live access it also returns the daily console lookup cap: used, limit and resets_at.`
70058
70073
  },
70059
70074
  {
70060
70075
  name: "list_invites",
@@ -78825,7 +78840,7 @@ var routes = buildRouteMap({
78825
78840
  var app = buildApplication(routes, {
78826
78841
  name: "mcp",
78827
78842
  versionInfo: {
78828
- currentVersion: "0.6.17"
78843
+ currentVersion: "0.8.0"
78829
78844
  }
78830
78845
  });
78831
78846
  run(app, process3.argv.slice(2), buildContext(process3));
@@ -78833,5 +78848,5 @@ export {
78833
78848
  app
78834
78849
  };
78835
78850
 
78836
- //# debugId=435D2514276F2BE364756E2164756E21
78851
+ //# debugId=826D0A8F103B637D64756E2164756E21
78837
78852
  //# sourceMappingURL=mcp-server.js.map