@noresponse/mcp 0.8.0 → 0.9.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,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.9.0
4
+
5
+ * `SDK.assessments.aggregate()`:
6
+ * `request.time_zone` **Added**
7
+ * `response.time_zone` **Added**
8
+
3
9
  ## 0.8.0
4
10
 
5
11
  * `SDK.assessments.search()`:
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.8.0",
48139
+ sdkVersion: "0.9.0",
48140
48140
  genVersion: "internal",
48141
- userAgent: "noresponse-sdk/mcp-typescript 0.8.0 internal 1 @noresponse/mcp"
48141
+ userAgent: "noresponse-sdk/mcp-typescript 0.9.0 internal 1 @noresponse/mcp"
48142
48142
  };
48143
48143
  });
48144
48144
 
@@ -54880,7 +54880,7 @@ var init_bucket = __esm(() => {
54880
54880
  "hour",
54881
54881
  "day",
54882
54882
  "week"
54883
- ]).describe("The period each count covers, in UTC; a week starts on Monday.");
54883
+ ]).describe("The period each count covers: an hour, or a day or a week (from Monday) in time_zone. Hour buckets are whole UTC hours in any time zone.");
54884
54884
  });
54885
54885
 
54886
54886
  // src/models/decision.ts
@@ -54942,7 +54942,7 @@ var init_assessmentaggregaterequest = __esm(() => {
54942
54942
  AssessmentAggregateRequest$zodSchema = object({
54943
54943
  asn: int().optional(),
54944
54944
  band: Band$zodSchema.optional(),
54945
- bucket: Bucket$zodSchema.describe("The period each count covers, in UTC; a week starts on Monday."),
54945
+ bucket: Bucket$zodSchema.describe("The period each count covers: an hour, or a day or a week (from Monday) in time_zone. Hour buckets are whole UTC hours in any time zone."),
54946
54946
  country: string2().optional(),
54947
54947
  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."),
54948
54948
  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."),
@@ -54960,8 +54960,9 @@ var init_assessmentaggregaterequest = __esm(() => {
54960
54960
  score_max: int().optional().describe("Inclusive upper score bound, at least score_min when both are supplied."),
54961
54961
  score_min: int().optional().describe("Inclusive lower score bound. Pending answers without a score do not match."),
54962
54962
  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."),
54963
+ time_zone: string2().default("UTC").describe("The IANA time zone whose local midnight starts each day and week bucket, such as Europe/London or Asia/Kolkata; daylight saving changes make those days 23 or 25 hours long. A name the zone database does not know is refused (400 invalid_request naming time_zone). Day and week buckets in a zone other than UTC cover at most 92 days (400 invalid_request naming to); a year of them reads too many hourly counts to answer in time. Hour buckets stay whole UTC hours. Bucket starts, from and to stay instants. With the default population, a zone whose local midnight falls inside a UTC hour (a half-hour offset such as Asia/Kolkata) is refused for day and week buckets, as those counts are kept by the hour; retained_first_answers counts it."),
54963
54964
  to: string2().describe("The end, excluded: the start of the bucket after the last.")
54964
- }).describe("Count this environment's assessments created in [from,to) by bucket, from counts kept as each assessment is first answered, not by scanning assessments. Each assessment counts once, by its first answer (the answer served when it was first answered); later revisions and late results do not count it again, and late_flips counts its later account decision changes. from and to start a bucket (an hour, a UTC day, or a week from Monday 00:00 UTC), cover at most 366 days (31 for hour buckets) and from is inside the retention period. The filters are POST /v1/assessments/search's and describe the first answer, so a cell drills down to search with the same filters, revision first and the cell's bucket as from and to. Counts hold no identifier and stay when an assessment or account is deleted or erased; they expire with retention and go with the workspace. Reasons are counted by code and impact band, not by weight. No Idempotency-Key. Select retained_first_answers for exact facet filters and pairs over retained detail. This mode supports count, score_histogram and score_outcomes, and refuses late_flips. It has a 31-day and 100000-record work budget.");
54965
+ }).describe("Count this environment's assessments created in [from,to) by bucket, from counts kept as each assessment is first answered, not by scanning assessments. Each assessment counts once, by its first answer (the answer served when it was first answered); later revisions and late results do not count it again, and late_flips counts its later account decision changes. from and to start a bucket (an hour, or a day or a week from Monday that starts at midnight in time_zone, UTC by default), cover at most 366 days (31 for hour buckets, 92 for day and week buckets in a time_zone other than UTC) and from is inside the retention period. The filters are POST /v1/assessments/search's and describe the first answer, so a cell drills down to search with the same filters, revision first and the cell's bucket as from and to. Counts hold no identifier and stay when an assessment or account is deleted or erased; they expire with retention and go with the workspace. Reasons are counted by code and impact band, not by weight. No Idempotency-Key. Select retained_first_answers for exact facet filters and pairs over retained detail. This mode supports count, score_histogram and score_outcomes, and refuses late_flips. It has a 31-day and 100000-record work budget.");
54965
54966
  });
54966
54967
 
54967
54968
  // src/funcs/assessmentsAggregate.ts
@@ -55057,7 +55058,7 @@ var init_assessmentsAggregate2 = __esm(() => {
55057
55058
  name: "aggregate_assessments",
55058
55059
  description: `Count assessments by time, decision and reason
55059
55060
 
55060
- 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.`,
55061
+ Count this environment's assessments created in [from,to) by UTC hour, or by day or week from local midnight in time_zone (an IANA name, UTC by default; at most 92 days in a zone other than UTC), 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.`,
55061
55062
  annotations: {
55062
55063
  title: "Count assessments by time, decision and reason",
55063
55064
  destructiveHint: false,
@@ -69559,7 +69560,7 @@ endpoint.verification sends a signed challenge now and answers whether the endpo
69559
69560
  function createMCPServer(deps) {
69560
69561
  const server = new McpServer({
69561
69562
  name: "NoResponse",
69562
- version: "0.8.0"
69563
+ version: "0.9.0"
69563
69564
  });
69564
69565
  const getClient = deps.getSDK || (() => new NoResponseCore({
69565
69566
  security: deps.security,
@@ -69817,7 +69818,7 @@ History is a POST with account_id in the body so an account identifier stays out
69817
69818
  name: "aggregate_assessments",
69818
69819
  description: `Count assessments by time, decision and reason
69819
69820
 
69820
- 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.`
69821
+ Count this environment's assessments created in [from,to) by UTC hour, or by day or week from local midnight in time_zone (an IANA name, UTC by default; at most 92 days in a zone other than UTC), 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.`
69821
69822
  },
69822
69823
  {
69823
69824
  name: "search_assessments",
@@ -78840,7 +78841,7 @@ var routes = buildRouteMap({
78840
78841
  var app = buildApplication(routes, {
78841
78842
  name: "mcp",
78842
78843
  versionInfo: {
78843
- currentVersion: "0.8.0"
78844
+ currentVersion: "0.9.0"
78844
78845
  }
78845
78846
  });
78846
78847
  run(app, process3.argv.slice(2), buildContext(process3));
@@ -78848,5 +78849,5 @@ export {
78848
78849
  app
78849
78850
  };
78850
78851
 
78851
- //# debugId=826D0A8F103B637D64756E2164756E21
78852
+ //# debugId=A28E4380E8ABFAE664756E2164756E21
78852
78853
  //# sourceMappingURL=mcp-server.js.map