@noresponse/mcp 0.6.14 → 0.6.15

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,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.6.15
4
+
5
+ * `SDK.assessments.aggregate()`:
6
+ * `request.metrics[].enum(score_outcomes)` **Added**
7
+ * `response` **Changed** (Breaking ⚠️)
8
+
3
9
  ## 0.6.14
4
10
 
5
11
  * `SDK.assessments.aggregate()`: **Added**
package/bin/mcp-server.js CHANGED
@@ -48117,9 +48117,9 @@ var init_config = __esm(() => {
48117
48117
  SDK_METADATA = {
48118
48118
  language: "typescript",
48119
48119
  openapiDocVersion: "1",
48120
- sdkVersion: "0.6.14",
48120
+ sdkVersion: "0.6.15",
48121
48121
  genVersion: "internal",
48122
- userAgent: "noresponse-sdk/mcp-typescript 0.6.14 internal 1 @noresponse/mcp"
48122
+ userAgent: "noresponse-sdk/mcp-typescript 0.6.15 internal 1 @noresponse/mcp"
48123
48123
  };
48124
48124
  });
48125
48125
 
@@ -54509,6 +54509,7 @@ var init_assessmentaggregaterequest = __esm(() => {
54509
54509
  AssessmentAggregateRequestMetric$zodSchema = _enum([
54510
54510
  "count",
54511
54511
  "score_histogram",
54512
+ "score_outcomes",
54512
54513
  "late_flips"
54513
54514
  ]);
54514
54515
  AssessmentAggregateRequest$zodSchema = object({
@@ -54518,7 +54519,7 @@ var init_assessmentaggregaterequest = __esm(() => {
54518
54519
  from: string2().describe("The first bucket's start."),
54519
54520
  group_by: array(AggregateDimension$zodSchema).optional().describe("At most two dimensions to count by, of which at most one is reason, lane, country or asn. An assessment counts once in each of its reasons and incomplete lanes, so those groups can add up to more than the bucket's count."),
54520
54521
  limit: int().default(20).describe("The most groups answered: the largest over the whole range, then by value. groups_truncated says when there were more."),
54521
- metrics: array(AssessmentAggregateRequestMetric$zodSchema).optional().describe("count: each bucket's count and groups. score_histogram: first answers by flow and 5-point score bucket. late_flips: changes of an assessment's account decision for its flow after its first answer, by from, to and delay."),
54522
+ metrics: array(AssessmentAggregateRequestMetric$zodSchema).optional().describe("count: each bucket's count and groups. score_histogram: first answers by flow and 5-point score bucket. score_outcomes: the histogram's first answers that have a reported outcome, by flow, 5-point score bucket and the latest outcome reported for the assessment (POST /v1/assessments/{assessment_id}/outcomes); the rest of a bin has none reported. late_flips: changes of an assessment's account decision for its flow after its first answer, by from, to and delay."),
54522
54523
  recommendation: Recommendation$zodSchema.optional().describe("The recommended action: allow, step_up or review. Your application applies it."),
54523
54524
  revision: AnswerRevision$zodSchema.optional().describe("Which answer of each assessment the filters describe: latest, the latest stored revision, or first, the first answer, as served when the assessment was first answered (POST /v1/assessments/aggregate counts first answers). A cell of an aggregate drills down to POST /v1/assessments/search with the same filters, revision first and the cell's bucket as from and to."),
54524
54525
  status: Status$zodSchema.optional().describe("complete: final; nothing is still running. A lane that failed or missed its 10 s deadline stays listed in incomplete_sources, and confidence is lower. partial: a recommendation exists and at least one lane is still running or did not settle (see incomplete_sources). pending: nothing usable before the deadline; no recommendation yet, poll or wait for the webhook."),
@@ -54619,7 +54620,7 @@ var init_assessmentsAggregate2 = __esm(() => {
54619
54620
  name: "aggregate_assessments",
54620
54621
  description: `Count assessments by time, decision and reason
54621
54622
 
54622
- Count this environment's assessments created in [from,to) by hour, day or week, grouped by up to two of decision, flow, recommendation, band, reason, lane, country, asn and list_match. Each assessment counts once, by its first answer; late results do not count it again and appear in late_flips. Optional metrics add a score histogram per flow and late account decision changes. from and to start a bucket and cover at most 366 days (31 for hour buckets) inside the retention period. The filters are search's and describe the first answer: send them to search with revision first to list a cell's assessments. Counts hold no identifier, stay when an assessment or account is deleted, and report reasons by code and impact band. No Idempotency-Key.`,
54623
+ Count this environment's assessments created in [from,to) by hour, day or week, grouped by up to two of decision, flow, recommendation, band, reason, lane, country, asn and list_match. Each assessment counts once, by its first answer; late results do not count it again and appear in late_flips. Optional metrics add a score histogram per flow, that histogram by the latest reported outcome, and late account decision changes. from and to start a bucket and cover at most 366 days (31 for hour buckets) inside the retention period. The filters are search's and describe the first answer: send them to search with revision first to list a cell's assessments. Counts hold no identifier, stay when an assessment or account is deleted, and report reasons by code and impact band. No Idempotency-Key.`,
54623
54624
  annotations: {
54624
54625
  title: "Count assessments by time, decision and reason",
54625
54626
  destructiveHint: false,
@@ -59233,7 +59234,7 @@ endpoint.verification sends a signed challenge now and answers whether the endpo
59233
59234
  function createMCPServer(deps) {
59234
59235
  const server = new McpServer({
59235
59236
  name: "NoResponse",
59236
- version: "0.6.14"
59237
+ version: "0.6.15"
59237
59238
  });
59238
59239
  const getClient = deps.getSDK || (() => new NoResponseCore({
59239
59240
  security: deps.security,
@@ -59385,7 +59386,7 @@ History is a POST with account_id in the body so an account identifier stays out
59385
59386
  name: "aggregate_assessments",
59386
59387
  description: `Count assessments by time, decision and reason
59387
59388
 
59388
- Count this environment's assessments created in [from,to) by hour, day or week, grouped by up to two of decision, flow, recommendation, band, reason, lane, country, asn and list_match. Each assessment counts once, by its first answer; late results do not count it again and appear in late_flips. Optional metrics add a score histogram per flow and late account decision changes. from and to start a bucket and cover at most 366 days (31 for hour buckets) inside the retention period. The filters are search's and describe the first answer: send them to search with revision first to list a cell's assessments. Counts hold no identifier, stay when an assessment or account is deleted, and report reasons by code and impact band. No Idempotency-Key.`
59389
+ Count this environment's assessments created in [from,to) by hour, day or week, grouped by up to two of decision, flow, recommendation, band, reason, lane, country, asn and list_match. Each assessment counts once, by its first answer; late results do not count it again and appear in late_flips. Optional metrics add a score histogram per flow, that histogram by the latest reported outcome, and late account decision changes. from and to start a bucket and cover at most 366 days (31 for hour buckets) inside the retention period. The filters are search's and describe the first answer: send them to search with revision first to list a cell's assessments. Counts hold no identifier, stay when an assessment or account is deleted, and report reasons by code and impact band. No Idempotency-Key.`
59389
59390
  },
59390
59391
  {
59391
59392
  name: "search_assessments",
@@ -68090,7 +68091,7 @@ var routes = buildRouteMap({
68090
68091
  var app = buildApplication(routes, {
68091
68092
  name: "mcp",
68092
68093
  versionInfo: {
68093
- currentVersion: "0.6.14"
68094
+ currentVersion: "0.6.15"
68094
68095
  }
68095
68096
  });
68096
68097
  run(app, process3.argv.slice(2), buildContext(process3));
@@ -68098,5 +68099,5 @@ export {
68098
68099
  app
68099
68100
  };
68100
68101
 
68101
- //# debugId=FF0E38F80AA6CB4764756E2164756E21
68102
+ //# debugId=22C47626FCAA45E564756E2164756E21
68102
68103
  //# sourceMappingURL=mcp-server.js.map