@noresponse/mcp 0.4.3 → 0.4.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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.4
4
+
5
+ * `SDK.assessments.create()`: `response.account.risk.decision.enum(held)` **Added** (Breaking ⚠️)
6
+ * `SDK.assessments.get()`: `response.account.risk.decision.enum(held)` **Added** (Breaking ⚠️)
7
+ * `SDK.accounts.listChanged()`: `response.items[].risk.decision.enum(held)` **Added** (Breaking ⚠️)
8
+ * `SDK.accounts.get()`: `response.risk.decision.enum(held)` **Added** (Breaking ⚠️)
9
+
3
10
  ## 0.4.3
4
11
 
5
12
  No changes detected.
package/bin/mcp-server.js CHANGED
@@ -48104,9 +48104,9 @@ var init_config = __esm(() => {
48104
48104
  SDK_METADATA = {
48105
48105
  language: "typescript",
48106
48106
  openapiDocVersion: "1",
48107
- sdkVersion: "0.4.3",
48107
+ sdkVersion: "0.4.4",
48108
48108
  genVersion: "internal",
48109
- userAgent: "noresponse-sdk/mcp-typescript 0.4.3 internal 1 @noresponse/mcp"
48109
+ userAgent: "noresponse-sdk/mcp-typescript 0.4.4 internal 1 @noresponse/mcp"
48110
48110
  };
48111
48111
  });
48112
48112
 
@@ -50255,8 +50255,9 @@ var init_accountdecision = __esm(() => {
50255
50255
  "allow",
50256
50256
  "step_up",
50257
50257
  "review",
50258
- "block"
50259
- ]).describe("block when the score reached your block threshold (risk.block of the assessment), otherwise the assessment's recommendation. Your application applies it.");
50258
+ "block",
50259
+ "held"
50260
+ ]).describe("block when the score reached your block threshold (risk.block of the assessment), otherwise the assessment's recommendation. held only for a flow whose admission is held (settings flows.<flow>.admission), when the account's current assessment was made for that flow and its investigation has not completed (status partial): the final decision arrives as account.risk_changed when the investigation completes, decided by its score, or when the hold's deadline (hold_seconds after the assessment was created) passes first, as the flow's on_expiry action or the decision the evidence so far gives, whichever is stricter. Your application applies it.");
50260
50261
  });
50261
50262
 
50262
50263
  // src/models/accountdecisionsbyflow.ts
@@ -50265,10 +50266,10 @@ var init_accountdecisionsbyflow = __esm(() => {
50265
50266
  init_zod();
50266
50267
  init_accountdecision();
50267
50268
  AccountDecisionsByFlow$zodSchema = object({
50268
- account_creation: AccountDecision$zodSchema.describe("block when the score reached your block threshold (risk.block of the assessment), otherwise the assessment's recommendation. Your application applies it."),
50269
- login: AccountDecision$zodSchema.describe("block when the score reached your block threshold (risk.block of the assessment), otherwise the assessment's recommendation. Your application applies it."),
50270
- purchase: AccountDecision$zodSchema.describe("block when the score reached your block threshold (risk.block of the assessment), otherwise the assessment's recommendation. Your application applies it.")
50271
- }).describe("The decision for each flow: the account's score under that flow's thresholds. A flow the workspace has not set uses its account_creation thresholds, so the flows differ only where it set them.");
50269
+ account_creation: AccountDecision$zodSchema.describe("block when the score reached your block threshold (risk.block of the assessment), otherwise the assessment's recommendation. held only for a flow whose admission is held (settings flows.<flow>.admission), when the account's current assessment was made for that flow and its investigation has not completed (status partial): the final decision arrives as account.risk_changed when the investigation completes, decided by its score, or when the hold's deadline (hold_seconds after the assessment was created) passes first, as the flow's on_expiry action or the decision the evidence so far gives, whichever is stricter. Your application applies it."),
50270
+ login: AccountDecision$zodSchema.describe("block when the score reached your block threshold (risk.block of the assessment), otherwise the assessment's recommendation. held only for a flow whose admission is held (settings flows.<flow>.admission), when the account's current assessment was made for that flow and its investigation has not completed (status partial): the final decision arrives as account.risk_changed when the investigation completes, decided by its score, or when the hold's deadline (hold_seconds after the assessment was created) passes first, as the flow's on_expiry action or the decision the evidence so far gives, whichever is stricter. Your application applies it."),
50271
+ purchase: AccountDecision$zodSchema.describe("block when the score reached your block threshold (risk.block of the assessment), otherwise the assessment's recommendation. held only for a flow whose admission is held (settings flows.<flow>.admission), when the account's current assessment was made for that flow and its investigation has not completed (status partial): the final decision arrives as account.risk_changed when the investigation completes, decided by its score, or when the hold's deadline (hold_seconds after the assessment was created) passes first, as the flow's on_expiry action or the decision the evidence so far gives, whichever is stricter. Your application applies it.")
50272
+ }).describe("The decision for each flow: the account's score under that flow's thresholds. A flow the workspace has not set uses its account_creation thresholds, so the flows differ only where it set them. The flow of the current assessment is held while that flow's admission is held and the assessment's investigation has not completed.");
50272
50273
  });
50273
50274
 
50274
50275
  // src/models/reasoncode.ts
@@ -50350,7 +50351,7 @@ var init_accountrisk = __esm(() => {
50350
50351
  init_accountdecision();
50351
50352
  init_accountriskreason();
50352
50353
  AccountRisk$zodSchema = object({
50353
- decision: AccountDecision$zodSchema.describe("block when the score reached your block threshold (risk.block of the assessment), otherwise the assessment's recommendation. Your application applies it."),
50354
+ decision: AccountDecision$zodSchema.describe("block when the score reached your block threshold (risk.block of the assessment), otherwise the assessment's recommendation. held only for a flow whose admission is held (settings flows.<flow>.admission), when the account's current assessment was made for that flow and its investigation has not completed (status partial): the final decision arrives as account.risk_changed when the investigation completes, decided by its score, or when the hold's deadline (hold_seconds after the assessment was created) passes first, as the flow's on_expiry action or the decision the evidence so far gives, whichever is stricter. Your application applies it."),
50354
50355
  reasons: array(AccountRiskReason$zodSchema).describe("Every reason that fired, highest weight first. The weights sum to score before clamping."),
50355
50356
  score: int().describe("0 (safe) to 100 (risky), as risk.score of the assessment.")
50356
50357
  });
@@ -50364,7 +50365,7 @@ var init_account = __esm(() => {
50364
50365
  init_accountrisk();
50365
50366
  Account$zodSchema = object({
50366
50367
  assessment_id: string2().describe("The assessment the current risk comes from."),
50367
- decisions_by_flow: AccountDecisionsByFlow$zodSchema.describe("The decision for each flow: the account's score under that flow's thresholds. A flow the workspace has not set uses its account_creation thresholds, so the flows differ only where it set them."),
50368
+ decisions_by_flow: AccountDecisionsByFlow$zodSchema.describe("The decision for each flow: the account's score under that flow's thresholds. A flow the workspace has not set uses its account_creation thresholds, so the flows differ only where it set them. The flow of the current assessment is held while that flow's admission is held and the assessment's investigation has not completed."),
50368
50369
  id: string2().describe("The account_id the workspace sends with its assessments."),
50369
50370
  risk: AccountRisk$zodSchema,
50370
50371
  risk_version: int().describe("The version of the account's current risk. It increases every time the account's current risk or decisions_by_flow changes, and does not decrease. Of two copies of an account, the one with the higher risk_version is newer. account.risk_changed carries the risk_version that its change made."),
@@ -55357,7 +55358,7 @@ endpoint.verification sends a signed challenge now and answers whether the endpo
55357
55358
  function createMCPServer(deps) {
55358
55359
  const server = new McpServer({
55359
55360
  name: "NoResponse",
55360
- version: "0.4.3"
55361
+ version: "0.4.4"
55361
55362
  });
55362
55363
  const getClient = deps.getSDK || (() => new NoResponseCore({
55363
55364
  security: deps.security,
@@ -64062,7 +64063,7 @@ var routes = buildRouteMap({
64062
64063
  var app = buildApplication(routes, {
64063
64064
  name: "mcp",
64064
64065
  versionInfo: {
64065
- currentVersion: "0.4.3"
64066
+ currentVersion: "0.4.4"
64066
64067
  }
64067
64068
  });
64068
64069
  run(app, process3.argv.slice(2), buildContext(process3));
@@ -64070,5 +64071,5 @@ export {
64070
64071
  app
64071
64072
  };
64072
64073
 
64073
- //# debugId=04ECF577D7FFCD0864756E2164756E21
64074
+ //# debugId=4EFD458062BF892F64756E2164756E21
64074
64075
  //# sourceMappingURL=mcp-server.js.map