@noresponse/mcp 0.6.13 → 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/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.13",
48120
+ sdkVersion: "0.6.15",
48121
48121
  genVersion: "internal",
48122
- userAgent: "noresponse-sdk/mcp-typescript 0.6.13 internal 1 @noresponse/mcp"
48122
+ userAgent: "noresponse-sdk/mcp-typescript 0.6.15 internal 1 @noresponse/mcp"
48123
48123
  };
48124
48124
  });
48125
48125
 
@@ -54445,6 +54445,203 @@ Retrieve the account decision at one recorded risk version. The answer uses the
54445
54445
  };
54446
54446
  });
54447
54447
 
54448
+ // src/models/aggregatedimension.ts
54449
+ var AggregateDimension$zodSchema;
54450
+ var init_aggregatedimension = __esm(() => {
54451
+ init_zod();
54452
+ AggregateDimension$zodSchema = _enum([
54453
+ "decision",
54454
+ "flow",
54455
+ "recommendation",
54456
+ "band",
54457
+ "reason",
54458
+ "lane",
54459
+ "country",
54460
+ "asn",
54461
+ "list_match"
54462
+ ]).describe("decision, recommendation and band: the first answer's. flow: the assessment's. list_match: the action of the list entry that decided the account when it was first answered. reason: a reason the first answer fired, with its impact band. lane: an evidence lane the first answer listed in incomplete_sources. country and asn: the submitted IP's, from the IP data.");
54463
+ });
54464
+
54465
+ // src/models/answerrevision.ts
54466
+ var AnswerRevision$zodSchema;
54467
+ var init_answerrevision = __esm(() => {
54468
+ init_zod();
54469
+ AnswerRevision$zodSchema = _enum([
54470
+ "latest",
54471
+ "first"
54472
+ ]).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.");
54473
+ });
54474
+
54475
+ // src/models/bucket.ts
54476
+ var Bucket$zodSchema;
54477
+ var init_bucket = __esm(() => {
54478
+ init_zod();
54479
+ Bucket$zodSchema = _enum([
54480
+ "hour",
54481
+ "day",
54482
+ "week"
54483
+ ]).describe("The period each count covers, in UTC; a week starts on Monday.");
54484
+ });
54485
+
54486
+ // src/models/decision.ts
54487
+ var Decision$zodSchema;
54488
+ var init_decision = __esm(() => {
54489
+ init_zod();
54490
+ Decision$zodSchema = _enum([
54491
+ "allow",
54492
+ "step_up",
54493
+ "review",
54494
+ "block"
54495
+ ]).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.");
54496
+ });
54497
+
54498
+ // src/models/assessmentaggregaterequest.ts
54499
+ var AssessmentAggregateRequestMetric$zodSchema, AssessmentAggregateRequest$zodSchema;
54500
+ var init_assessmentaggregaterequest = __esm(() => {
54501
+ init_zod();
54502
+ init_aggregatedimension();
54503
+ init_answerrevision();
54504
+ init_bucket();
54505
+ init_decision();
54506
+ init_flow();
54507
+ init_recommendation();
54508
+ init_status();
54509
+ AssessmentAggregateRequestMetric$zodSchema = _enum([
54510
+ "count",
54511
+ "score_histogram",
54512
+ "score_outcomes",
54513
+ "late_flips"
54514
+ ]);
54515
+ AssessmentAggregateRequest$zodSchema = object({
54516
+ bucket: Bucket$zodSchema.describe("The period each count covers, in UTC; a week starts on Monday."),
54517
+ 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."),
54518
+ 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."),
54519
+ from: string2().describe("The first bucket's start."),
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."),
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."),
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."),
54523
+ recommendation: Recommendation$zodSchema.optional().describe("The recommended action: allow, step_up or review. Your application applies it."),
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."),
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."),
54526
+ to: string2().describe("The end, excluded: the start of the bucket after the last.")
54527
+ }).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.");
54528
+ });
54529
+
54530
+ // src/funcs/assessmentsAggregate.ts
54531
+ function assessmentsAggregate(client$, request, options) {
54532
+ return new APIPromise($do14(client$, request, options));
54533
+ }
54534
+ async function $do14(client$, request, options) {
54535
+ const parsed$ = safeParse2(request, (value$) => AssessmentAggregateRequest$zodSchema.parse(value$), "Input validation failed");
54536
+ if (!parsed$.ok) {
54537
+ return [parsed$, { status: "invalid" }];
54538
+ }
54539
+ const payload$ = parsed$.value;
54540
+ const body$ = encodeJSON("body", payload$, { explode: true });
54541
+ const path$ = pathToFunc("/v1/assessments/aggregate")();
54542
+ const headers$ = new Headers(compactMap({
54543
+ "Content-Type": "application/json",
54544
+ Accept: options?.acceptHeaderOverride || "application/json;q=1, application/problem+json;q=0"
54545
+ }));
54546
+ const securityInput = await extractSecurity(client$._options.security);
54547
+ const requestSecurity = resolveGlobalSecurity(securityInput);
54548
+ const context = {
54549
+ options: client$._options,
54550
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
54551
+ operationID: "aggregateAssessments",
54552
+ oAuth2Scopes: null,
54553
+ resolvedSecurity: requestSecurity,
54554
+ securitySource: client$._options.security,
54555
+ retryConfig: options?.retries || client$._options.retryConfig || {
54556
+ strategy: "backoff",
54557
+ backoff: {
54558
+ initialInterval: 500,
54559
+ maxInterval: 8000,
54560
+ exponent: 2,
54561
+ maxElapsedTime: 30000
54562
+ },
54563
+ retryConnectionErrors: true
54564
+ },
54565
+ retryCodes: options?.retryCodes || [
54566
+ "408",
54567
+ "429",
54568
+ "5XX"
54569
+ ]
54570
+ };
54571
+ const requestRes = client$._createRequest(context, {
54572
+ security: requestSecurity,
54573
+ method: "POST",
54574
+ baseURL: options?.serverURL,
54575
+ path: path$,
54576
+ headers: headers$,
54577
+ body: body$,
54578
+ userAgent: client$._options.userAgent,
54579
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
54580
+ }, options);
54581
+ if (!requestRes.ok) {
54582
+ return [requestRes, { status: "invalid" }];
54583
+ }
54584
+ const req$ = requestRes.value;
54585
+ const doResult = await client$._do(req$, {
54586
+ context,
54587
+ errorCodes: [],
54588
+ retryConfig: context.retryConfig,
54589
+ retryCodes: context.retryCodes
54590
+ });
54591
+ if (!doResult.ok) {
54592
+ return [doResult, { status: "request-error", request: req$ }];
54593
+ }
54594
+ return [doResult, {
54595
+ status: "complete",
54596
+ request: req$,
54597
+ response: doResult.value
54598
+ }];
54599
+ }
54600
+ var init_assessmentsAggregate = __esm(() => {
54601
+ init_encodings();
54602
+ init_primitives();
54603
+ init_schemas3();
54604
+ init_security();
54605
+ init_url();
54606
+ init_assessmentaggregaterequest();
54607
+ init_async();
54608
+ });
54609
+
54610
+ // src/mcp-server/tools/assessmentsAggregate.ts
54611
+ var args14, tool$assessmentsAggregate;
54612
+ var init_assessmentsAggregate2 = __esm(() => {
54613
+ init_assessmentsAggregate();
54614
+ init_assessmentaggregaterequest();
54615
+ init_tools();
54616
+ args14 = {
54617
+ request: AssessmentAggregateRequest$zodSchema
54618
+ };
54619
+ tool$assessmentsAggregate = {
54620
+ name: "aggregate_assessments",
54621
+ description: `Count assessments by time, decision and reason
54622
+
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.`,
54624
+ annotations: {
54625
+ title: "Count assessments by time, decision and reason",
54626
+ destructiveHint: false,
54627
+ idempotentHint: true,
54628
+ openWorldHint: false,
54629
+ readOnlyHint: true
54630
+ },
54631
+ args: args14,
54632
+ tool: async (client, args, ctx) => {
54633
+ const [result] = await assessmentsAggregate(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
54634
+ if (!result.ok) {
54635
+ return {
54636
+ content: [{ type: "text", text: result.error.message }],
54637
+ isError: true
54638
+ };
54639
+ }
54640
+ return formatResult(result.value);
54641
+ }
54642
+ };
54643
+ });
54644
+
54448
54645
  // src/models/accountbindingrequest.ts
54449
54646
  var AccountBindingRequest$zodSchema;
54450
54647
  var init_accountbindingrequest = __esm(() => {
@@ -54495,9 +54692,9 @@ var init_bindprovisionalaccountop = __esm(() => {
54495
54692
 
54496
54693
  // src/funcs/assessmentsBindAccount.ts
54497
54694
  function assessmentsBindAccount(client$, request, options) {
54498
- return new APIPromise($do14(client$, request, options));
54695
+ return new APIPromise($do15(client$, request, options));
54499
54696
  }
54500
- async function $do14(client$, request, options) {
54697
+ async function $do15(client$, request, options) {
54501
54698
  const parsed$ = safeParse2(request, (value$) => BindProvisionalAccountRequest$zodSchema.parse(value$), "Input validation failed");
54502
54699
  if (!parsed$.ok) {
54503
54700
  return [parsed$, { status: "invalid" }];
@@ -54580,12 +54777,12 @@ var init_assessmentsBindAccount = __esm(() => {
54580
54777
  });
54581
54778
 
54582
54779
  // src/mcp-server/tools/assessmentsBindAccount.ts
54583
- var args14, tool$assessmentsBindAccount;
54780
+ var args15, tool$assessmentsBindAccount;
54584
54781
  var init_assessmentsBindAccount2 = __esm(() => {
54585
54782
  init_assessmentsBindAccount();
54586
54783
  init_bindprovisionalaccountop();
54587
54784
  init_tools();
54588
- args14 = {
54785
+ args15 = {
54589
54786
  request: BindProvisionalAccountRequest$zodSchema
54590
54787
  };
54591
54788
  tool$assessmentsBindAccount = {
@@ -54600,7 +54797,7 @@ One-time association to an opaque stable customer account. The assessment is its
54600
54797
  openWorldHint: false,
54601
54798
  readOnlyHint: false
54602
54799
  },
54603
- args: args14,
54800
+ args: args15,
54604
54801
  tool: async (client, args, ctx) => {
54605
54802
  const [result] = await assessmentsBindAccount(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
54606
54803
  if (!result.ok) {
@@ -54802,9 +54999,9 @@ var init_createassessmentop = __esm(() => {
54802
54999
 
54803
55000
  // src/funcs/assessmentsCreate.ts
54804
55001
  function assessmentsCreate(client$, request, options) {
54805
- return new APIPromise($do15(client$, request, options));
55002
+ return new APIPromise($do16(client$, request, options));
54806
55003
  }
54807
- async function $do15(client$, request, options) {
55004
+ async function $do16(client$, request, options) {
54808
55005
  const parsed$ = safeParse2(request, (value$) => CreateAssessmentRequest$zodSchema.parse(value$), "Input validation failed");
54809
55006
  if (!parsed$.ok) {
54810
55007
  return [parsed$, { status: "invalid" }];
@@ -54882,12 +55079,12 @@ var init_assessmentsCreate = __esm(() => {
54882
55079
  });
54883
55080
 
54884
55081
  // src/mcp-server/tools/assessmentsCreate.ts
54885
- var args15, tool$assessmentsCreate;
55082
+ var args16, tool$assessmentsCreate;
54886
55083
  var init_assessmentsCreate2 = __esm(() => {
54887
55084
  init_assessmentsCreate();
54888
55085
  init_createassessmentop();
54889
55086
  init_tools();
54890
- args15 = {
55087
+ args16 = {
54891
55088
  request: CreateAssessmentRequest$zodSchema
54892
55089
  };
54893
55090
  tool$assessmentsCreate = {
@@ -54902,7 +55099,7 @@ Assesses one account creation, login or purchase (flow) and answers with the acc
54902
55099
  openWorldHint: false,
54903
55100
  readOnlyHint: false
54904
55101
  },
54905
- args: args15,
55102
+ args: args16,
54906
55103
  tool: async (client, args, ctx) => {
54907
55104
  const [result] = await assessmentsCreate(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
54908
55105
  if (!result.ok) {
@@ -54979,9 +55176,9 @@ var init_deleteassessmentop = __esm(() => {
54979
55176
 
54980
55177
  // src/funcs/assessmentsDelete.ts
54981
55178
  function assessmentsDelete(client$, request, options) {
54982
- return new APIPromise($do16(client$, request, options));
55179
+ return new APIPromise($do17(client$, request, options));
54983
55180
  }
54984
- async function $do16(client$, request, options) {
55181
+ async function $do17(client$, request, options) {
54985
55182
  const parsed$ = safeParse2(request, (value$) => DeleteAssessmentRequest$zodSchema.parse(value$), "Input validation failed");
54986
55183
  if (!parsed$.ok) {
54987
55184
  return [parsed$, { status: "invalid" }];
@@ -55063,12 +55260,12 @@ var init_assessmentsDelete = __esm(() => {
55063
55260
  });
55064
55261
 
55065
55262
  // src/mcp-server/tools/assessmentsDelete.ts
55066
- var args16, tool$assessmentsDelete;
55263
+ var args17, tool$assessmentsDelete;
55067
55264
  var init_assessmentsDelete2 = __esm(() => {
55068
55265
  init_assessmentsDelete();
55069
55266
  init_deleteassessmentop();
55070
55267
  init_tools();
55071
- args16 = {
55268
+ args17 = {
55072
55269
  request: DeleteAssessmentRequest$zodSchema
55073
55270
  };
55074
55271
  tool$assessmentsDelete = {
@@ -55083,7 +55280,7 @@ Deletes one assessment in the environment of your key, with its versions, eviden
55083
55280
  openWorldHint: false,
55084
55281
  readOnlyHint: false
55085
55282
  },
55086
- args: args16,
55283
+ args: args17,
55087
55284
  tool: async (client, args, ctx) => {
55088
55285
  const [result] = await assessmentsDelete(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
55089
55286
  if (!result.ok) {
@@ -55098,12 +55295,12 @@ Deletes one assessment in the environment of your key, with its versions, eviden
55098
55295
  });
55099
55296
 
55100
55297
  // src/mcp-server/tools/assessmentsGet.ts
55101
- var args17, tool$assessmentsGet;
55298
+ var args18, tool$assessmentsGet;
55102
55299
  var init_assessmentsGet2 = __esm(() => {
55103
55300
  init_assessmentsGet();
55104
55301
  init_getassessmentop();
55105
55302
  init_tools();
55106
- args17 = {
55303
+ args18 = {
55107
55304
  request: GetAssessmentRequest$zodSchema
55108
55305
  };
55109
55306
  tool$assessmentsGet = {
@@ -55118,7 +55315,7 @@ Returns the highest assessment_version, with the account's current risk. Require
55118
55315
  openWorldHint: false,
55119
55316
  readOnlyHint: true
55120
55317
  },
55121
- args: args17,
55318
+ args: args18,
55122
55319
  tool: async (client, args, ctx) => {
55123
55320
  const [result] = await assessmentsGet(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
55124
55321
  if (!result.ok) {
@@ -55147,9 +55344,9 @@ var init_assessmentquery = __esm(() => {
55147
55344
 
55148
55345
  // src/funcs/assessmentsQuery.ts
55149
55346
  function assessmentsQuery(client$, request, options) {
55150
- return new APIPromise($do17(client$, request, options));
55347
+ return new APIPromise($do18(client$, request, options));
55151
55348
  }
55152
- async function $do17(client$, request, options) {
55349
+ async function $do18(client$, request, options) {
55153
55350
  const parsed$ = safeParse2(request, (value$) => AssessmentQuery$zodSchema.parse(value$), "Input validation failed");
55154
55351
  if (!parsed$.ok) {
55155
55352
  return [parsed$, { status: "invalid" }];
@@ -55226,12 +55423,12 @@ var init_assessmentsQuery = __esm(() => {
55226
55423
  });
55227
55424
 
55228
55425
  // src/mcp-server/tools/assessmentsQuery.ts
55229
- var args18, tool$assessmentsQuery;
55426
+ var args19, tool$assessmentsQuery;
55230
55427
  var init_assessmentsQuery2 = __esm(() => {
55231
55428
  init_assessmentsQuery();
55232
55429
  init_assessmentquery();
55233
55430
  init_tools();
55234
- args18 = {
55431
+ args19 = {
55235
55432
  request: AssessmentQuery$zodSchema
55236
55433
  };
55237
55434
  tool$assessmentsQuery = {
@@ -55246,7 +55443,7 @@ History is a POST with account_id in the body so an account identifier stays out
55246
55443
  openWorldHint: false,
55247
55444
  readOnlyHint: true
55248
55445
  },
55249
- args: args18,
55446
+ args: args19,
55250
55447
  tool: async (client, args, ctx) => {
55251
55448
  const [result] = await assessmentsQuery(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
55252
55449
  if (!result.ok) {
@@ -55328,9 +55525,9 @@ var init_recordassessmentoutcomeop = __esm(() => {
55328
55525
 
55329
55526
  // src/funcs/assessmentsRecordOutcome.ts
55330
55527
  function assessmentsRecordOutcome(client$, request, options) {
55331
- return new APIPromise($do18(client$, request, options));
55528
+ return new APIPromise($do19(client$, request, options));
55332
55529
  }
55333
- async function $do18(client$, request, options) {
55530
+ async function $do19(client$, request, options) {
55334
55531
  const parsed$ = safeParse2(request, (value$) => RecordAssessmentOutcomeRequest$zodSchema.parse(value$), "Input validation failed");
55335
55532
  if (!parsed$.ok) {
55336
55533
  return [parsed$, { status: "invalid" }];
@@ -55414,12 +55611,12 @@ var init_assessmentsRecordOutcome = __esm(() => {
55414
55611
  });
55415
55612
 
55416
55613
  // src/mcp-server/tools/assessmentsRecordOutcome.ts
55417
- var args19, tool$assessmentsRecordOutcome;
55614
+ var args20, tool$assessmentsRecordOutcome;
55418
55615
  var init_assessmentsRecordOutcome2 = __esm(() => {
55419
55616
  init_assessmentsRecordOutcome();
55420
55617
  init_recordassessmentoutcomeop();
55421
55618
  init_tools();
55422
- args19 = {
55619
+ args20 = {
55423
55620
  request: RecordAssessmentOutcomeRequest$zodSchema
55424
55621
  };
55425
55622
  tool$assessmentsRecordOutcome = {
@@ -55434,7 +55631,7 @@ Records what you later learned about an assessed account: confirmed_abuse, accou
55434
55631
  openWorldHint: false,
55435
55632
  readOnlyHint: false
55436
55633
  },
55437
- args: args19,
55634
+ args: args20,
55438
55635
  tool: async (client, args, ctx) => {
55439
55636
  const [result] = await assessmentsRecordOutcome(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
55440
55637
  if (!result.ok) {
@@ -55490,9 +55687,9 @@ var init_getassessmentversionop = __esm(() => {
55490
55687
 
55491
55688
  // src/funcs/assessmentsRetrieveVersion.ts
55492
55689
  function assessmentsRetrieveVersion(client$, request, options) {
55493
- return new APIPromise($do19(client$, request, options));
55690
+ return new APIPromise($do20(client$, request, options));
55494
55691
  }
55495
- async function $do19(client$, request, options) {
55692
+ async function $do20(client$, request, options) {
55496
55693
  const parsed$ = safeParse2(request, (value$) => GetAssessmentVersionRequest$zodSchema.parse(value$), "Input validation failed");
55497
55694
  if (!parsed$.ok) {
55498
55695
  return [parsed$, { status: "invalid" }];
@@ -55582,12 +55779,12 @@ var init_assessmentsRetrieveVersion = __esm(() => {
55582
55779
  });
55583
55780
 
55584
55781
  // src/mcp-server/tools/assessmentsRetrieveVersion.ts
55585
- var args20, tool$assessmentsRetrieveVersion;
55782
+ var args21, tool$assessmentsRetrieveVersion;
55586
55783
  var init_assessmentsRetrieveVersion2 = __esm(() => {
55587
55784
  init_assessmentsRetrieveVersion();
55588
55785
  init_getassessmentversionop();
55589
55786
  init_tools();
55590
- args20 = {
55787
+ args21 = {
55591
55788
  request: GetAssessmentVersionRequest$zodSchema
55592
55789
  };
55593
55790
  tool$assessmentsRetrieveVersion = {
@@ -55602,7 +55799,7 @@ Retrieve a retained assessment version with its original decision, policy, flow
55602
55799
  openWorldHint: false,
55603
55800
  readOnlyHint: true
55604
55801
  },
55605
- args: args20,
55802
+ args: args21,
55606
55803
  tool: async (client, args, ctx) => {
55607
55804
  const [result] = await assessmentsRetrieveVersion(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
55608
55805
  if (!result.ok) {
@@ -55616,22 +55813,11 @@ Retrieve a retained assessment version with its original decision, policy, flow
55616
55813
  };
55617
55814
  });
55618
55815
 
55619
- // src/models/decision.ts
55620
- var Decision$zodSchema;
55621
- var init_decision = __esm(() => {
55622
- init_zod();
55623
- Decision$zodSchema = _enum([
55624
- "allow",
55625
- "step_up",
55626
- "review",
55627
- "block"
55628
- ]).describe("The decision of the assessment's latest stored revision: block when its stored risk.block is true, otherwise its recommendation. This is not the account's current decision or held-admission state. Combined with recommendation using AND.");
55629
- });
55630
-
55631
55816
  // src/models/assessmentsearchrequest.ts
55632
55817
  var AssessmentSearchRequest$zodSchema;
55633
55818
  var init_assessmentsearchrequest = __esm(() => {
55634
55819
  init_zod();
55820
+ init_answerrevision();
55635
55821
  init_decision();
55636
55822
  init_flow();
55637
55823
  init_recommendation();
@@ -55640,12 +55826,13 @@ var init_assessmentsearchrequest = __esm(() => {
55640
55826
  AssessmentSearchRequest$zodSchema = object({
55641
55827
  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."),
55642
55828
  cursor: string2().optional().describe("Opaque, expiring cursor bound to this environment, operation and every filter. Keep the filters unchanged."),
55643
- decision: Decision$zodSchema.optional().describe("The decision of the assessment's latest stored revision: block when its stored risk.block is true, otherwise its recommendation. This is not the account's current decision or held-admission state. Combined with recommendation using AND."),
55829
+ 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."),
55644
55830
  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."),
55645
55831
  from: string2(),
55646
55832
  limit: int().default(20),
55647
55833
  recommendation: Recommendation$zodSchema.optional().describe("The recommended action: allow, step_up or review. Your application applies it."),
55648
55834
  response_mode: ResponseMode$zodSchema.optional().describe("standard returns the consolidated risk response; detailed adds merged provider-neutral facts when the key has detailed scope. There is no raw mode."),
55835
+ 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."),
55649
55836
  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."),
55650
55837
  to: string2()
55651
55838
  }).describe("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. This read does not require an idempotency key.");
@@ -55653,9 +55840,9 @@ var init_assessmentsearchrequest = __esm(() => {
55653
55840
 
55654
55841
  // src/funcs/assessmentsSearch.ts
55655
55842
  function assessmentsSearch(client$, request, options) {
55656
- return new APIPromise($do20(client$, request, options));
55843
+ return new APIPromise($do21(client$, request, options));
55657
55844
  }
55658
- async function $do20(client$, request, options) {
55845
+ async function $do21(client$, request, options) {
55659
55846
  const parsed$ = safeParse2(request, (value$) => AssessmentSearchRequest$zodSchema.parse(value$), "Input validation failed");
55660
55847
  if (!parsed$.ok) {
55661
55848
  return [parsed$, { status: "invalid" }];
@@ -55732,12 +55919,12 @@ var init_assessmentsSearch = __esm(() => {
55732
55919
  });
55733
55920
 
55734
55921
  // src/mcp-server/tools/assessmentsSearch.ts
55735
- var args21, tool$assessmentsSearch;
55922
+ var args22, tool$assessmentsSearch;
55736
55923
  var init_assessmentsSearch2 = __esm(() => {
55737
55924
  init_assessmentsSearch();
55738
55925
  init_assessmentsearchrequest();
55739
55926
  init_tools();
55740
- args21 = {
55927
+ args22 = {
55741
55928
  request: AssessmentSearchRequest$zodSchema
55742
55929
  };
55743
55930
  tool$assessmentsSearch = {
@@ -55752,7 +55939,7 @@ Search retained assessments created in [from,to), over at most 366 days. Filters
55752
55939
  openWorldHint: false,
55753
55940
  readOnlyHint: true
55754
55941
  },
55755
- args: args21,
55942
+ args: args22,
55756
55943
  tool: async (client, args, ctx) => {
55757
55944
  const [result] = await assessmentsSearch(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
55758
55945
  if (!result.ok) {
@@ -55802,9 +55989,9 @@ var init_integrationrequest = __esm(() => {
55802
55989
 
55803
55990
  // src/funcs/integrationsCreate.ts
55804
55991
  function integrationsCreate(client$, request, options) {
55805
- return new APIPromise($do21(client$, request, options));
55992
+ return new APIPromise($do22(client$, request, options));
55806
55993
  }
55807
- async function $do21(client$, request, options) {
55994
+ async function $do22(client$, request, options) {
55808
55995
  const parsed$ = safeParse2(request, (value$) => IntegrationRequest$zodSchema.parse(value$), "Input validation failed");
55809
55996
  if (!parsed$.ok) {
55810
55997
  return [parsed$, { status: "invalid" }];
@@ -55868,12 +56055,12 @@ var init_integrationsCreate = __esm(() => {
55868
56055
  });
55869
56056
 
55870
56057
  // src/mcp-server/tools/integrationsCreate.ts
55871
- var args22, tool$integrationsCreate;
56058
+ var args23, tool$integrationsCreate;
55872
56059
  var init_integrationsCreate2 = __esm(() => {
55873
56060
  init_integrationsCreate();
55874
56061
  init_integrationrequest();
55875
56062
  init_tools();
55876
- args22 = {
56063
+ args23 = {
55877
56064
  request: IntegrationRequest$zodSchema
55878
56065
  };
55879
56066
  tool$integrationsCreate = {
@@ -55888,7 +56075,7 @@ Registers a WorkOS, Auth0 or Supabase integration and returns its hosted endpoin
55888
56075
  openWorldHint: false,
55889
56076
  readOnlyHint: false
55890
56077
  },
55891
- args: args22,
56078
+ args: args23,
55892
56079
  tool: async (client, args, ctx) => {
55893
56080
  const [result] = await integrationsCreate(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
55894
56081
  if (!result.ok) {
@@ -55938,9 +56125,9 @@ var init_deleteintegrationop = __esm(() => {
55938
56125
 
55939
56126
  // src/funcs/integrationsDelete.ts
55940
56127
  function integrationsDelete(client$, request, options) {
55941
- return new APIPromise($do22(client$, request, options));
56128
+ return new APIPromise($do23(client$, request, options));
55942
56129
  }
55943
- async function $do22(client$, request, options) {
56130
+ async function $do23(client$, request, options) {
55944
56131
  const parsed$ = safeParse2(request, (value$) => DeleteIntegrationRequest$zodSchema.parse(value$), "Input validation failed");
55945
56132
  if (!parsed$.ok) {
55946
56133
  return [parsed$, { status: "invalid" }];
@@ -56022,12 +56209,12 @@ var init_integrationsDelete = __esm(() => {
56022
56209
  });
56023
56210
 
56024
56211
  // src/mcp-server/tools/integrationsDelete.ts
56025
- var args23, tool$integrationsDelete;
56212
+ var args24, tool$integrationsDelete;
56026
56213
  var init_integrationsDelete2 = __esm(() => {
56027
56214
  init_integrationsDelete();
56028
56215
  init_deleteintegrationop();
56029
56216
  init_tools();
56030
- args23 = {
56217
+ args24 = {
56031
56218
  request: DeleteIntegrationRequest$zodSchema
56032
56219
  };
56033
56220
  tool$integrationsDelete = {
@@ -56042,7 +56229,7 @@ Removes the integration and its secrets; its endpoint answers 404 from then on,
56042
56229
  openWorldHint: false,
56043
56230
  readOnlyHint: false
56044
56231
  },
56045
- args: args23,
56232
+ args: args24,
56046
56233
  tool: async (client, args, ctx) => {
56047
56234
  const [result] = await integrationsDelete(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
56048
56235
  if (!result.ok) {
@@ -56058,9 +56245,9 @@ Removes the integration and its secrets; its endpoint answers 404 from then on,
56058
56245
 
56059
56246
  // src/funcs/integrationsList.ts
56060
56247
  function integrationsList(client$, options) {
56061
- return new APIPromise($do23(client$, options));
56248
+ return new APIPromise($do24(client$, options));
56062
56249
  }
56063
- async function $do23(client$, options) {
56250
+ async function $do24(client$, options) {
56064
56251
  const path$ = pathToFunc("/v1/integrations")();
56065
56252
  const headers$ = new Headers(compactMap({
56066
56253
  Accept: options?.acceptHeaderOverride || "application/json;q=1, application/problem+json;q=0"
@@ -56223,9 +56410,9 @@ var init_rotateintegrationsecretop = __esm(() => {
56223
56410
 
56224
56411
  // src/funcs/integrationsRotate.ts
56225
56412
  function integrationsRotate(client$, request, options) {
56226
- return new APIPromise($do24(client$, request, options));
56413
+ return new APIPromise($do25(client$, request, options));
56227
56414
  }
56228
- async function $do24(client$, request, options) {
56415
+ async function $do25(client$, request, options) {
56229
56416
  const parsed$ = safeParse2(request, (value$) => RotateIntegrationSecretRequest$zodSchema.parse(value$), "Input validation failed");
56230
56417
  if (!parsed$.ok) {
56231
56418
  return [parsed$, { status: "invalid" }];
@@ -56295,12 +56482,12 @@ var init_integrationsRotate = __esm(() => {
56295
56482
  });
56296
56483
 
56297
56484
  // src/mcp-server/tools/integrationsRotate.ts
56298
- var args24, tool$integrationsRotate;
56485
+ var args25, tool$integrationsRotate;
56299
56486
  var init_integrationsRotate2 = __esm(() => {
56300
56487
  init_integrationsRotate();
56301
56488
  init_rotateintegrationsecretop();
56302
56489
  init_tools();
56303
- args24 = {
56490
+ args25 = {
56304
56491
  request: RotateIntegrationSecretRequest$zodSchema
56305
56492
  };
56306
56493
  tool$integrationsRotate = {
@@ -56315,7 +56502,7 @@ For Auth0, send {} and the answer's secret is the new shared secret, shown once.
56315
56502
  openWorldHint: false,
56316
56503
  readOnlyHint: false
56317
56504
  },
56318
- args: args24,
56505
+ args: args25,
56319
56506
  tool: async (client, args, ctx) => {
56320
56507
  const [result] = await integrationsRotate(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
56321
56508
  if (!result.ok) {
@@ -56430,9 +56617,9 @@ var init_listkeysop = __esm(() => {
56430
56617
 
56431
56618
  // src/funcs/keysList.ts
56432
56619
  function keysList(client$, request, options) {
56433
- return new APIPromise($do25(client$, request, options));
56620
+ return new APIPromise($do26(client$, request, options));
56434
56621
  }
56435
- async function $do25(client$, request, options) {
56622
+ async function $do26(client$, request, options) {
56436
56623
  const parsed$ = safeParse2(request, (value$) => ListKeysRequest$zodSchema.parse(value$), "Input validation failed");
56437
56624
  if (!parsed$.ok) {
56438
56625
  return [parsed$, { status: "invalid" }];
@@ -56514,12 +56701,12 @@ var init_keysList = __esm(() => {
56514
56701
  });
56515
56702
 
56516
56703
  // src/mcp-server/tools/keysList.ts
56517
- var args25, tool$keysList;
56704
+ var args26, tool$keysList;
56518
56705
  var init_keysList2 = __esm(() => {
56519
56706
  init_keysList();
56520
56707
  init_listkeysop();
56521
56708
  init_tools();
56522
- args25 = {
56709
+ args26 = {
56523
56710
  request: ListKeysRequest$zodSchema
56524
56711
  };
56525
56712
  tool$keysList = {
@@ -56534,7 +56721,7 @@ Lists the keys of the signing key's environment, newest first, at most 200, revo
56534
56721
  openWorldHint: false,
56535
56722
  readOnlyHint: true
56536
56723
  },
56537
- args: args25,
56724
+ args: args26,
56538
56725
  tool: async (client, args, ctx) => {
56539
56726
  const [result] = await keysList(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
56540
56727
  if (!result.ok) {
@@ -56588,9 +56775,9 @@ var init_revokekeyop = __esm(() => {
56588
56775
 
56589
56776
  // src/funcs/keysRevoke.ts
56590
56777
  function keysRevoke(client$, request, options) {
56591
- return new APIPromise($do26(client$, request, options));
56778
+ return new APIPromise($do27(client$, request, options));
56592
56779
  }
56593
- async function $do26(client$, request, options) {
56780
+ async function $do27(client$, request, options) {
56594
56781
  const parsed$ = safeParse2(request, (value$) => RevokeKeyRequest$zodSchema.parse(value$), "Input validation failed");
56595
56782
  if (!parsed$.ok) {
56596
56783
  return [parsed$, { status: "invalid" }];
@@ -56676,12 +56863,12 @@ var init_keysRevoke = __esm(() => {
56676
56863
  });
56677
56864
 
56678
56865
  // src/mcp-server/tools/keysRevoke.ts
56679
- var args26, tool$keysRevoke;
56866
+ var args27, tool$keysRevoke;
56680
56867
  var init_keysRevoke2 = __esm(() => {
56681
56868
  init_keysRevoke();
56682
56869
  init_revokekeyop();
56683
56870
  init_tools();
56684
- args26 = {
56871
+ args27 = {
56685
56872
  request: RevokeKeyRequest$zodSchema
56686
56873
  };
56687
56874
  tool$keysRevoke = {
@@ -56696,7 +56883,7 @@ Revokes a key of the signing key's environment at once: its next request answers
56696
56883
  openWorldHint: false,
56697
56884
  readOnlyHint: false
56698
56885
  },
56699
- args: args26,
56886
+ args: args27,
56700
56887
  tool: async (client, args, ctx) => {
56701
56888
  const [result] = await keysRevoke(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
56702
56889
  if (!result.ok) {
@@ -56807,9 +56994,9 @@ var init_createlistentryop = __esm(() => {
56807
56994
 
56808
56995
  // src/funcs/listsCreate.ts
56809
56996
  function listsCreate(client$, request, options) {
56810
- return new APIPromise($do27(client$, request, options));
56997
+ return new APIPromise($do28(client$, request, options));
56811
56998
  }
56812
- async function $do27(client$, request, options) {
56999
+ async function $do28(client$, request, options) {
56813
57000
  const parsed$ = safeParse2(request, (value$) => CreateListEntryRequest$zodSchema.parse(value$), "Input validation failed");
56814
57001
  if (!parsed$.ok) {
56815
57002
  return [parsed$, { status: "invalid" }];
@@ -56896,12 +57083,12 @@ var init_listsCreate = __esm(() => {
56896
57083
  });
56897
57084
 
56898
57085
  // src/mcp-server/tools/listsCreate.ts
56899
- var args27, tool$listsCreate;
57086
+ var args28, tool$listsCreate;
56900
57087
  var init_listsCreate2 = __esm(() => {
56901
57088
  init_listsCreate();
56902
57089
  init_createlistentryop();
56903
57090
  init_tools();
56904
- args27 = {
57091
+ args28 = {
56905
57092
  request: CreateListEntryRequest$zodSchema
56906
57093
  };
56907
57094
  tool$listsCreate = {
@@ -56916,7 +57103,7 @@ Adds an exact email (kind email) or an email domain (kind email_domain) to the s
56916
57103
  openWorldHint: false,
56917
57104
  readOnlyHint: false
56918
57105
  },
56919
- args: args27,
57106
+ args: args28,
56920
57107
  tool: async (client, args, ctx) => {
56921
57108
  const [result] = await listsCreate(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
56922
57109
  if (!result.ok) {
@@ -56969,9 +57156,9 @@ var init_deletelistentryop = __esm(() => {
56969
57156
 
56970
57157
  // src/funcs/listsDelete.ts
56971
57158
  function listsDelete(client$, request, options) {
56972
- return new APIPromise($do28(client$, request, options));
57159
+ return new APIPromise($do29(client$, request, options));
56973
57160
  }
56974
- async function $do28(client$, request, options) {
57161
+ async function $do29(client$, request, options) {
56975
57162
  const parsed$ = safeParse2(request, (value$) => DeleteListEntryRequest$zodSchema.parse(value$), "Input validation failed");
56976
57163
  if (!parsed$.ok) {
56977
57164
  return [parsed$, { status: "invalid" }];
@@ -57061,12 +57248,12 @@ var init_listsDelete = __esm(() => {
57061
57248
  });
57062
57249
 
57063
57250
  // src/mcp-server/tools/listsDelete.ts
57064
- var args28, tool$listsDelete;
57251
+ var args29, tool$listsDelete;
57065
57252
  var init_listsDelete2 = __esm(() => {
57066
57253
  init_listsDelete();
57067
57254
  init_deletelistentryop();
57068
57255
  init_tools();
57069
- args28 = {
57256
+ args29 = {
57070
57257
  request: DeleteListEntryRequest$zodSchema
57071
57258
  };
57072
57259
  tool$listsDelete = {
@@ -57081,7 +57268,7 @@ Removes an entry from the signing key's environment's list and re-decides the ac
57081
57268
  openWorldHint: false,
57082
57269
  readOnlyHint: false
57083
57270
  },
57084
- args: args28,
57271
+ args: args29,
57085
57272
  tool: async (client, args, ctx) => {
57086
57273
  const [result] = await listsDelete(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
57087
57274
  if (!result.ok) {
@@ -57146,9 +57333,9 @@ var init_listlistentriesop = __esm(() => {
57146
57333
 
57147
57334
  // src/funcs/listsList.ts
57148
57335
  function listsList(client$, request, options) {
57149
- return new APIPromise($do29(client$, request, options));
57336
+ return new APIPromise($do30(client$, request, options));
57150
57337
  }
57151
- async function $do29(client$, request, options) {
57338
+ async function $do30(client$, request, options) {
57152
57339
  const parsed$ = safeParse2(request, (value$) => ListListEntriesRequest$zodSchema.parse(value$), "Input validation failed");
57153
57340
  if (!parsed$.ok) {
57154
57341
  return [parsed$, { status: "invalid" }];
@@ -57234,12 +57421,12 @@ var init_listsList = __esm(() => {
57234
57421
  });
57235
57422
 
57236
57423
  // src/mcp-server/tools/listsList.ts
57237
- var args29, tool$listsList;
57424
+ var args30, tool$listsList;
57238
57425
  var init_listsList2 = __esm(() => {
57239
57426
  init_listsList();
57240
57427
  init_listlistentriesop();
57241
57428
  init_tools();
57242
- args29 = {
57429
+ args30 = {
57243
57430
  request: ListListEntriesRequest$zodSchema
57244
57431
  };
57245
57432
  tool$listsList = {
@@ -57254,7 +57441,7 @@ Lists every entry of the signing key's environment's list, newest first: each an
57254
57441
  openWorldHint: false,
57255
57442
  readOnlyHint: true
57256
57443
  },
57257
- args: args29,
57444
+ args: args30,
57258
57445
  tool: async (client, args, ctx) => {
57259
57446
  const [result] = await listsList(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
57260
57447
  if (!result.ok) {
@@ -57324,9 +57511,9 @@ var init_listrequestdiagnosticsop = __esm(() => {
57324
57511
 
57325
57512
  // src/funcs/requestsList.ts
57326
57513
  function requestsList(client$, request, options) {
57327
- return new APIPromise($do30(client$, request, options));
57514
+ return new APIPromise($do31(client$, request, options));
57328
57515
  }
57329
- async function $do30(client$, request, options) {
57516
+ async function $do31(client$, request, options) {
57330
57517
  const parsed$ = safeParse2(request, (value$) => ListRequestDiagnosticsRequest$zodSchema.parse(value$), "Input validation failed");
57331
57518
  if (!parsed$.ok) {
57332
57519
  return [parsed$, { status: "invalid" }];
@@ -57412,12 +57599,12 @@ var init_requestsList = __esm(() => {
57412
57599
  });
57413
57600
 
57414
57601
  // src/mcp-server/tools/requestsList.ts
57415
- var args30, tool$requestsList;
57602
+ var args31, tool$requestsList;
57416
57603
  var init_requestsList2 = __esm(() => {
57417
57604
  init_requestsList();
57418
57605
  init_listrequestdiagnosticsop();
57419
57606
  init_tools();
57420
- args30 = {
57607
+ args31 = {
57421
57608
  request: ListRequestDiagnosticsRequest$zodSchema
57422
57609
  };
57423
57610
  tool$requestsList = {
@@ -57432,7 +57619,7 @@ Search authenticated request attempts by time, route, status or request correlat
57432
57619
  openWorldHint: false,
57433
57620
  readOnlyHint: true
57434
57621
  },
57435
- args: args30,
57622
+ args: args31,
57436
57623
  tool: async (client, args, ctx) => {
57437
57624
  const [result] = await requestsList(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
57438
57625
  if (!result.ok) {
@@ -57582,9 +57769,9 @@ var init_getsettingsop = __esm(() => {
57582
57769
 
57583
57770
  // src/funcs/settingsGet.ts
57584
57771
  function settingsGet(client$, request, options) {
57585
- return new APIPromise($do31(client$, request, options));
57772
+ return new APIPromise($do32(client$, request, options));
57586
57773
  }
57587
- async function $do31(client$, request, options) {
57774
+ async function $do32(client$, request, options) {
57588
57775
  const parsed$ = safeParse2(request, (value$) => GetSettingsRequest$zodSchema.parse(value$), "Input validation failed");
57589
57776
  if (!parsed$.ok) {
57590
57777
  return [parsed$, { status: "invalid" }];
@@ -57670,12 +57857,12 @@ var init_settingsGet = __esm(() => {
57670
57857
  });
57671
57858
 
57672
57859
  // src/mcp-server/tools/settingsGet.ts
57673
- var args31, tool$settingsGet;
57860
+ var args32, tool$settingsGet;
57674
57861
  var init_settingsGet2 = __esm(() => {
57675
57862
  init_settingsGet();
57676
57863
  init_getsettingsop();
57677
57864
  init_tools();
57678
- args31 = {
57865
+ args32 = {
57679
57866
  request: GetSettingsRequest$zodSchema
57680
57867
  };
57681
57868
  tool$settingsGet = {
@@ -57690,7 +57877,7 @@ Reads the settings of the signing key's environment: retention in days; per flow
57690
57877
  openWorldHint: false,
57691
57878
  readOnlyHint: true
57692
57879
  },
57693
- args: args31,
57880
+ args: args32,
57694
57881
  tool: async (client, args, ctx) => {
57695
57882
  const [result] = await settingsGet(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
57696
57883
  if (!result.ok) {
@@ -57793,9 +57980,9 @@ var init_updatesettingsop = __esm(() => {
57793
57980
 
57794
57981
  // src/funcs/settingsUpdate.ts
57795
57982
  function settingsUpdate(client$, request, options) {
57796
- return new APIPromise($do32(client$, request, options));
57983
+ return new APIPromise($do33(client$, request, options));
57797
57984
  }
57798
- async function $do32(client$, request, options) {
57985
+ async function $do33(client$, request, options) {
57799
57986
  const parsed$ = safeParse2(request, (value$) => UpdateSettingsRequest$zodSchema.parse(value$), "Input validation failed");
57800
57987
  if (!parsed$.ok) {
57801
57988
  return [parsed$, { status: "invalid" }];
@@ -57882,12 +58069,12 @@ var init_settingsUpdate = __esm(() => {
57882
58069
  });
57883
58070
 
57884
58071
  // src/mcp-server/tools/settingsUpdate.ts
57885
- var args32, tool$settingsUpdate;
58072
+ var args33, tool$settingsUpdate;
57886
58073
  var init_settingsUpdate2 = __esm(() => {
57887
58074
  init_settingsUpdate();
57888
58075
  init_updatesettingsop();
57889
58076
  init_tools();
57890
- args32 = {
58077
+ args33 = {
57891
58078
  request: UpdateSettingsRequest$zodSchema
57892
58079
  };
57893
58080
  tool$settingsUpdate = {
@@ -57902,7 +58089,7 @@ Changes only what the body names, in one transaction: retention_days, refused_so
57902
58089
  openWorldHint: false,
57903
58090
  readOnlyHint: false
57904
58091
  },
57905
- args: args32,
58092
+ args: args33,
57906
58093
  tool: async (client, args, ctx) => {
57907
58094
  const [result] = await settingsUpdate(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
57908
58095
  if (!result.ok) {
@@ -57929,9 +58116,9 @@ var init_webhookendpointrequest = __esm(() => {
57929
58116
 
57930
58117
  // src/funcs/webhookEndpointsCreate.ts
57931
58118
  function webhookEndpointsCreate(client$, request, options) {
57932
- return new APIPromise($do33(client$, request, options));
58119
+ return new APIPromise($do34(client$, request, options));
57933
58120
  }
57934
- async function $do33(client$, request, options) {
58121
+ async function $do34(client$, request, options) {
57935
58122
  const parsed$ = safeParse2(request, (value$) => WebhookEndpointRequest$zodSchema.parse(value$), "Input validation failed");
57936
58123
  if (!parsed$.ok) {
57937
58124
  return [parsed$, { status: "invalid" }];
@@ -57995,12 +58182,12 @@ var init_webhookEndpointsCreate = __esm(() => {
57995
58182
  });
57996
58183
 
57997
58184
  // src/mcp-server/tools/webhookEndpointsCreate.ts
57998
- var args33, tool$webhookEndpointsCreate;
58185
+ var args34, tool$webhookEndpointsCreate;
57999
58186
  var init_webhookEndpointsCreate2 = __esm(() => {
58000
58187
  init_webhookEndpointsCreate();
58001
58188
  init_webhookendpointrequest();
58002
58189
  init_tools();
58003
- args33 = {
58190
+ args34 = {
58004
58191
  request: WebhookEndpointRequest$zodSchema
58005
58192
  };
58006
58193
  tool$webhookEndpointsCreate = {
@@ -58015,7 +58202,7 @@ Registers a webhook endpoint and returns it with its first signing secret, shown
58015
58202
  openWorldHint: false,
58016
58203
  readOnlyHint: false
58017
58204
  },
58018
- args: args33,
58205
+ args: args34,
58019
58206
  tool: async (client, args, ctx) => {
58020
58207
  const [result] = await webhookEndpointsCreate(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
58021
58208
  if (!result.ok) {
@@ -58065,9 +58252,9 @@ var init_deletewebhookendpointop = __esm(() => {
58065
58252
 
58066
58253
  // src/funcs/webhookEndpointsDelete.ts
58067
58254
  function webhookEndpointsDelete(client$, request, options) {
58068
- return new APIPromise($do34(client$, request, options));
58255
+ return new APIPromise($do35(client$, request, options));
58069
58256
  }
58070
- async function $do34(client$, request, options) {
58257
+ async function $do35(client$, request, options) {
58071
58258
  const parsed$ = safeParse2(request, (value$) => DeleteWebhookEndpointRequest$zodSchema.parse(value$), "Input validation failed");
58072
58259
  if (!parsed$.ok) {
58073
58260
  return [parsed$, { status: "invalid" }];
@@ -58149,12 +58336,12 @@ var init_webhookEndpointsDelete = __esm(() => {
58149
58336
  });
58150
58337
 
58151
58338
  // src/mcp-server/tools/webhookEndpointsDelete.ts
58152
- var args34, tool$webhookEndpointsDelete;
58339
+ var args35, tool$webhookEndpointsDelete;
58153
58340
  var init_webhookEndpointsDelete2 = __esm(() => {
58154
58341
  init_webhookEndpointsDelete();
58155
58342
  init_deletewebhookendpointop();
58156
58343
  init_tools();
58157
- args34 = {
58344
+ args35 = {
58158
58345
  request: DeleteWebhookEndpointRequest$zodSchema
58159
58346
  };
58160
58347
  tool$webhookEndpointsDelete = {
@@ -58169,7 +58356,7 @@ Deletes the endpoint and its signing keys. Deliveries still queued for it are dr
58169
58356
  openWorldHint: false,
58170
58357
  readOnlyHint: false
58171
58358
  },
58172
- args: args34,
58359
+ args: args35,
58173
58360
  tool: async (client, args, ctx) => {
58174
58361
  const [result] = await webhookEndpointsDelete(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
58175
58362
  if (!result.ok) {
@@ -58185,9 +58372,9 @@ Deletes the endpoint and its signing keys. Deliveries still queued for it are dr
58185
58372
 
58186
58373
  // src/funcs/webhookEndpointsList.ts
58187
58374
  function webhookEndpointsList(client$, options) {
58188
- return new APIPromise($do35(client$, options));
58375
+ return new APIPromise($do36(client$, options));
58189
58376
  }
58190
- async function $do35(client$, options) {
58377
+ async function $do36(client$, options) {
58191
58378
  const path$ = pathToFunc("/v1/webhooks")();
58192
58379
  const headers$ = new Headers(compactMap({
58193
58380
  Accept: options?.acceptHeaderOverride || "application/json;q=1, application/problem+json;q=0"
@@ -58379,9 +58566,9 @@ var init_listwebhookdeliveriesop = __esm(() => {
58379
58566
 
58380
58567
  // src/funcs/webhookEndpointsListDeliveries.ts
58381
58568
  function webhookEndpointsListDeliveries(client$, request, options) {
58382
- return new APIPromise($do36(client$, request, options));
58569
+ return new APIPromise($do37(client$, request, options));
58383
58570
  }
58384
- async function $do36(client$, request, options) {
58571
+ async function $do37(client$, request, options) {
58385
58572
  const parsed$ = safeParse2(request, (value$) => ListWebhookDeliveriesRequest$zodSchema.parse(value$), "Input validation failed");
58386
58573
  if (!parsed$.ok) {
58387
58574
  return [parsed$, { status: "invalid" }];
@@ -58468,12 +58655,12 @@ var init_webhookEndpointsListDeliveries = __esm(() => {
58468
58655
  });
58469
58656
 
58470
58657
  // src/mcp-server/tools/webhookEndpointsListDeliveries.ts
58471
- var args35, tool$webhookEndpointsListDeliveries;
58658
+ var args36, tool$webhookEndpointsListDeliveries;
58472
58659
  var init_webhookEndpointsListDeliveries2 = __esm(() => {
58473
58660
  init_webhookEndpointsListDeliveries();
58474
58661
  init_listwebhookdeliveriesop();
58475
58662
  init_tools();
58476
- args35 = {
58663
+ args36 = {
58477
58664
  request: ListWebhookDeliveriesRequest$zodSchema
58478
58665
  };
58479
58666
  tool$webhookEndpointsListDeliveries = {
@@ -58488,7 +58675,7 @@ Every POST the endpoint received, newest first: the event id and type, which att
58488
58675
  openWorldHint: false,
58489
58676
  readOnlyHint: true
58490
58677
  },
58491
- args: args35,
58678
+ args: args36,
58492
58679
  tool: async (client, args, ctx) => {
58493
58680
  const [result] = await webhookEndpointsListDeliveries(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
58494
58681
  if (!result.ok) {
@@ -58562,9 +58749,9 @@ var init_replaywebhookdeliveryop = __esm(() => {
58562
58749
 
58563
58750
  // src/funcs/webhookEndpointsReplayDelivery.ts
58564
58751
  function webhookEndpointsReplayDelivery(client$, request, options) {
58565
- return new APIPromise($do37(client$, request, options));
58752
+ return new APIPromise($do38(client$, request, options));
58566
58753
  }
58567
- async function $do37(client$, request, options) {
58754
+ async function $do38(client$, request, options) {
58568
58755
  const parsed$ = safeParse2(request, (value$) => ReplayWebhookDeliveryRequest$zodSchema.parse(value$), "Input validation failed");
58569
58756
  if (!parsed$.ok) {
58570
58757
  return [parsed$, { status: "invalid" }];
@@ -58638,12 +58825,12 @@ var init_webhookEndpointsReplayDelivery = __esm(() => {
58638
58825
  });
58639
58826
 
58640
58827
  // src/mcp-server/tools/webhookEndpointsReplayDelivery.ts
58641
- var args36, tool$webhookEndpointsReplayDelivery;
58828
+ var args37, tool$webhookEndpointsReplayDelivery;
58642
58829
  var init_webhookEndpointsReplayDelivery2 = __esm(() => {
58643
58830
  init_webhookEndpointsReplayDelivery();
58644
58831
  init_replaywebhookdeliveryop();
58645
58832
  init_tools();
58646
- args36 = {
58833
+ args37 = {
58647
58834
  request: ReplayWebhookDeliveryRequest$zodSchema
58648
58835
  };
58649
58836
  tool$webhookEndpointsReplayDelivery = {
@@ -58658,7 +58845,7 @@ Queues the event for the endpoint again: the same event id and body it received,
58658
58845
  openWorldHint: false,
58659
58846
  readOnlyHint: false
58660
58847
  },
58661
- args: args36,
58848
+ args: args37,
58662
58849
  tool: async (client, args, ctx) => {
58663
58850
  const [result] = await webhookEndpointsReplayDelivery(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
58664
58851
  if (!result.ok) {
@@ -58744,9 +58931,9 @@ var init_rotatewebhooksigningkeyop = __esm(() => {
58744
58931
 
58745
58932
  // src/funcs/webhookEndpointsRotateSigningKey.ts
58746
58933
  function webhookEndpointsRotateSigningKey(client$, request, options) {
58747
- return new APIPromise($do38(client$, request, options));
58934
+ return new APIPromise($do39(client$, request, options));
58748
58935
  }
58749
- async function $do38(client$, request, options) {
58936
+ async function $do39(client$, request, options) {
58750
58937
  const parsed$ = safeParse2(request, (value$) => RotateWebhookSigningKeyRequest$zodSchema.parse(value$), "Input validation failed");
58751
58938
  if (!parsed$.ok) {
58752
58939
  return [parsed$, { status: "invalid" }];
@@ -58816,12 +59003,12 @@ var init_webhookEndpointsRotateSigningKey = __esm(() => {
58816
59003
  });
58817
59004
 
58818
59005
  // src/mcp-server/tools/webhookEndpointsRotateSigningKey.ts
58819
- var args37, tool$webhookEndpointsRotateSigningKey;
59006
+ var args38, tool$webhookEndpointsRotateSigningKey;
58820
59007
  var init_webhookEndpointsRotateSigningKey2 = __esm(() => {
58821
59008
  init_webhookEndpointsRotateSigningKey();
58822
59009
  init_rotatewebhooksigningkeyop();
58823
59010
  init_tools();
58824
- args37 = {
59011
+ args38 = {
58825
59012
  request: RotateWebhookSigningKeyRequest$zodSchema
58826
59013
  };
58827
59014
  tool$webhookEndpointsRotateSigningKey = {
@@ -58836,7 +59023,7 @@ Issues a new signing key for the endpoint and returns its secret once. Every del
58836
59023
  openWorldHint: false,
58837
59024
  readOnlyHint: false
58838
59025
  },
58839
- args: args37,
59026
+ args: args38,
58840
59027
  tool: async (client, args, ctx) => {
58841
59028
  const [result] = await webhookEndpointsRotateSigningKey(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
58842
59029
  if (!result.ok) {
@@ -58937,9 +59124,9 @@ var init_sendwebhooktesteventop = __esm(() => {
58937
59124
 
58938
59125
  // src/funcs/webhookEndpointsSendTestEvent.ts
58939
59126
  function webhookEndpointsSendTestEvent(client$, request, options) {
58940
- return new APIPromise($do39(client$, request, options));
59127
+ return new APIPromise($do40(client$, request, options));
58941
59128
  }
58942
- async function $do39(client$, request, options) {
59129
+ async function $do40(client$, request, options) {
58943
59130
  const parsed$ = safeParse2(request, (value$) => SendWebhookTestEventRequest$zodSchema.parse(value$), "Input validation failed");
58944
59131
  if (!parsed$.ok) {
58945
59132
  return [parsed$, { status: "invalid" }];
@@ -59009,12 +59196,12 @@ var init_webhookEndpointsSendTestEvent = __esm(() => {
59009
59196
  });
59010
59197
 
59011
59198
  // src/mcp-server/tools/webhookEndpointsSendTestEvent.ts
59012
- var args38, tool$webhookEndpointsSendTestEvent;
59199
+ var args39, tool$webhookEndpointsSendTestEvent;
59013
59200
  var init_webhookEndpointsSendTestEvent2 = __esm(() => {
59014
59201
  init_webhookEndpointsSendTestEvent();
59015
59202
  init_sendwebhooktesteventop();
59016
59203
  init_tools();
59017
- args38 = {
59204
+ args39 = {
59018
59205
  request: SendWebhookTestEventRequest$zodSchema
59019
59206
  };
59020
59207
  tool$webhookEndpointsSendTestEvent = {
@@ -59029,7 +59216,7 @@ endpoint.verification sends a signed challenge now and answers whether the endpo
59029
59216
  openWorldHint: false,
59030
59217
  readOnlyHint: false
59031
59218
  },
59032
- args: args38,
59219
+ args: args39,
59033
59220
  tool: async (client, args, ctx) => {
59034
59221
  const [result] = await webhookEndpointsSendTestEvent(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
59035
59222
  if (!result.ok) {
@@ -59047,7 +59234,7 @@ endpoint.verification sends a signed challenge now and answers whether the endpo
59047
59234
  function createMCPServer(deps) {
59048
59235
  const server = new McpServer({
59049
59236
  name: "NoResponse",
59050
- version: "0.6.13"
59237
+ version: "0.6.15"
59051
59238
  });
59052
59239
  const getClient = deps.getSDK || (() => new NoResponseCore({
59053
59240
  security: deps.security,
@@ -59071,6 +59258,7 @@ function createMCPServer(deps) {
59071
59258
  tool(tool$assessmentsDelete);
59072
59259
  tool(tool$assessmentsRecordOutcome);
59073
59260
  tool(tool$assessmentsQuery);
59261
+ tool(tool$assessmentsAggregate);
59074
59262
  tool(tool$assessmentsSearch);
59075
59263
  tool(tool$assessmentsRetrieveVersion);
59076
59264
  tool(tool$assessmentsBindAccount);
@@ -59130,6 +59318,7 @@ var init_server = __esm(() => {
59130
59318
  init_accountsRecordOutcome2();
59131
59319
  init_accountsRetireCredential2();
59132
59320
  init_accountsRetrieveDecision2();
59321
+ init_assessmentsAggregate2();
59133
59322
  init_assessmentsBindAccount2();
59134
59323
  init_assessmentsCreate2();
59135
59324
  init_assessmentsDelete2();
@@ -59192,6 +59381,12 @@ Records what you later learned about an assessed account: confirmed_abuse, accou
59192
59381
  description: `Page through one account's unexpired assessments.
59193
59382
 
59194
59383
  History is a POST with account_id in the body so an account identifier stays out of URLs and access logs. Requires the history scope. Read-only and safe to retry. Newest first, each at its latest assessment_version. An account with no assessments answers 200 with empty items. The cursor is opaque and bound to your workspace and the account; a tampered or expired cursor answers 400 invalid_cursor. response_mode=detailed needs the detailed scope. Each item's identifiers holds the identifiers its assessment was sent, exactly as received.`
59384
+ },
59385
+ {
59386
+ name: "aggregate_assessments",
59387
+ description: `Count assessments by time, decision and reason
59388
+
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.`
59195
59390
  },
59196
59391
  {
59197
59392
  name: "search_assessments",
@@ -67896,7 +68091,7 @@ var routes = buildRouteMap({
67896
68091
  var app = buildApplication(routes, {
67897
68092
  name: "mcp",
67898
68093
  versionInfo: {
67899
- currentVersion: "0.6.13"
68094
+ currentVersion: "0.6.15"
67900
68095
  }
67901
68096
  });
67902
68097
  run(app, process3.argv.slice(2), buildContext(process3));
@@ -67904,5 +68099,5 @@ export {
67904
68099
  app
67905
68100
  };
67906
68101
 
67907
- //# debugId=C65D8B95DD85934464756E2164756E21
68102
+ //# debugId=22C47626FCAA45E564756E2164756E21
67908
68103
  //# sourceMappingURL=mcp-server.js.map